I am working on a google-glass project, where i have to install/update an app programmatically, in my Research i have following complication:
- Getting System Dialog actions, to perform click programmatically
- In order to install programmatically, the intent leads to System Dialog for user permission, but its not possible to stimulate the action of System Dialog programmatically. This solution is no possible link
- Using EMM Solution (WSO2 IOT)
- I used WSO2-IOT, but since there is no device policy manager available for google-glass, so even installing the agent apk wont help, as i can not avail any service provided by the EMM (WSO2 IOT), (to install or update my app)
- Getting System Privileges without Root
- In order to use the following permissions:
- <uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
- <uses-permission android:name="android.permission.DELETE_PACKAGES"/>
According to my knowledge and research so far the only current solution is the third solution, that is to get the System Privileges. In order to get it, i also tried Sigined the APK with the system certificate.
Still i get the error:java.lang.SecurityException: Neither user 10056 nor current process has android.permission.INSTALL_PACKAGES.
Also i have tried adding the android:sharedUserId="android.uid.system
to the manifest as described here
So far there is no success with achieving it. I would like to know how can i achieve installing an app silently in the background, with out rooting the device.
Any suggetions that will help will highly be appretiated.
Thank you.