简体   繁体   中英

Testing as android.uid.system user

I am developing an android app that will run under the android.uid.system user (the tablet manufacturer is signing the app for me so it will be able to run under this user id).

The problem I have is that it takes about 2 to 3 weeks each time I want the app signing. As I make code changes I want to be able to test them under the system user but it is not feasible for me to wait this long to be able to test/debug my changes - especially if they turn out to be wrong.

Is there any way I can test the app on the tablet as the system user (or mimicking system user privileges) without having to get it signed every time?

Further info: I am developing on windows 7, using Eclipse IDE. The tablets are running Android 4.4.2 and 4.4.4 (2 different models). The tablets are not and will not be rooted. Assume a fairly basic level of understanding of app signing on my part.

Thanks in advance

Root the device and install app to system/app folder

I have sorted this myself by rooting the device for development purposes and then copying the app from the data/app folder to system/app and then removing the it from data/app folder.

The device then treats it as a system app and so far all of the system level functions I have tried have been working (such as reboot device and set timezone).

This article helped (although I had to copy (cp) and remove (rm) rather than move (mv) the app).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM