-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same piece of code execued in Oreo Am unable to install updated Apk. #2
Comments
The procedure is described in detail here (mentioned in README.md) It was tested on devices up until Android 10 and working as expected.
|
Thanks for the quick update Need some clarification on few points. 1.adb shell dpm set-device-owner eu.sisik.devowner/.DevAdminReceiver - This cmd used to set device owner as a first point what you mentioned in the above. and one more observation found like Please advice me on this. |
Starting since Android 7 (I think), you need to set testOnly flag to true (or use debug build), before you can call Once your app is activated as device owner, all updates (new apks with higher version code) should be build with testOnly=false But from your last comment it looks like your issue is that you were not able to set your app as device owner. The shell command (adb shell dpm...) usually returns some hint on what's wrong. The usual issue is that you were not following the instructions carefully or you didn't read the error message properly (e.g. the device should have no accounts added before dev owner activation). In rare cases the OEM did something that won't allow you to activate your app as device owner. |
Thanks a lot for your support. When am executing this command prompt adb shell dpm... |
So it looks like the issue is with your device. The command has to print out "SUCCESS" after executing. I guess there are some modifications to the standard Android system behaviour on your device. Sorry, can't help you with this. |
Thanks for your support. I will try to test another device and if any support required updated here. Thank you once again |
Maybe you could write the exact device model that wasn't working. Might help other people that want to create a kiosk device to decide what not to buy. |
I tried out this project am unable to updated apk with new version code.
Please illustrate more details how to execute and what is procedure to install updated apk without user interaction.
If possible please provide me the detailed steps to achieve this.
after session.commit() - Nothing happened.
The text was updated successfully, but these errors were encountered: