I want to download and install / remove APKs in background programmatically on a google glass device.
Steps i already tried:
- Move APK to /system/priv-apps
- Try to sign the APK with the system signature (I don't know if I signed it with the correct one)
- Set the android sharedUserId to "android.uid.system" -> this gave me a permission error while installing
Can anybody help me getting my App signed by a system signature? I really do not want to code a shell script running on each boot..
I am also getting the following error while trying to exec the
pm install -r APK_PATH
command programmatically:
Error running exec(). Command: [su] Working Directory: null Environment: null
Please help me! :-)