run-as says 'package is unknown' after upgrading Android to 4.3
Asked Answered
R

3

20

I have a simple script that downloads database from phone to my PC it uses 'run-as', it worked well, but now, run-as says 'package is unknown' my application is installed on device, nothing changed, just Android was updated to 4.3

Do you have the same problems? how to bypass this or resolve ?

Raddatz answered 3/8, 2013 at 11:13 Comment(3)
I think it's because of this bug: code.google.com/p/android/issues/detail?id=58373Symposiac
just had this on lollipop :-( gist.github.com/ligi/d8fe38701eb00f8514ae )Metsky
From my tests, it works on Android 6Mahdi
L
2

We ran into the missing run-as problem when the Galaxy S4 released without it. We were using run-as to start a gdbserver for app debugging.

We worked around the issue by starting gdbserver as an Android service. More details at run-as Package 'a.b.c' is unknown - Galaxy S4 Jellybean or Android 4.3

Lightening answered 6/8, 2013 at 22:42 Comment(0)
R
0

I changed a little my script, but it needs phone to be rooted

%adb% shell "su root cp /data/data/%PACKAGE%/databases/%DB% /sdcard/my/%DB%"

%adb% pull /sdcard/my/%DB% db

Raddatz answered 4/8, 2013 at 9:18 Comment(0)
W
0

Just spent half a day faced the same problem on my Nexus 7 (800x1280). The issue described here, as user408952 mentioned:

https://code.google.com/p/android/issues/detail?id=58373

Answer #32 from the link above worked for me: I've installed 4.3 factory image and everything works. No root needed!

Wandie answered 27/9, 2013 at 15:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.