Closed deepeshp closed 4 years ago
Hi Deepesh,
I'm not sure what's the issue, but could you check the following
adb shell dpm set-device-owner xxxxx/.xxx
)Regards, Roman
On Tue, Feb 25, 2020 at 2:24 PM Deepesh Pandey notifications@github.com wrote:
Following logs are obtained when the button is clicked in MainActivity and the app fails to update.
2020-02-25 14:21:34.442 1239-1280/? W/PackageManager: installPackageLI 2020-02-25 14:21:34.446 945-1314/? E/installd: Failed to delete /data/app/vmdl2079193720.tmp: No such file or directory
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sixo/silent-update/issues/1?email_source=notifications&email_token=ACSRRJWZU2PHR4SYBP2JSCDREULYRA5CNFSM4K3IZ7VKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQCFL6A, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSRRJU6UOOVH3ZNKXKIGSTREULYRANCNFSM4K3IZ7VA .
-- Blog: www.sisik.eu My apps https://play.google.com/store/apps/dev?id=9177152940126947746
Hi Roman!
Thank you very much for your response. I think the bug lies with the location. If I just push the updated application via adb at the path /data/local/tmp then the thing works. However, in my case I am downloading an application and saving it in external storage
Environment.getExternalStorageDirectory()
and the code is unable to install the application from this location. After session.commit nothing happens and my app is already a device owner and also i have given external storage permissions. Let me know if you are aware of this bug.
Thank you very much.
Hi Roman! I found the bug in my code. It was something to do with the inconsistent package names. Thanks for your response on this whole issue. I am closing this issue.
Following logs are obtained when the button is clicked in MainActivity and the app fails to update.
2020-02-25 14:21:34.442 1239-1280/? W/PackageManager: installPackageLI 2020-02-25 14:21:34.446 945-1314/? E/installd: Failed to delete /data/app/vmdl2079193720.tmp: No such file or directory