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

扶醉桌前 提交于 2019-12-04 22:38:10
Paul Beusterien

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

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

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!