Start activity Package Installer
Moderator: Martin
Start activity Package Installer
Start activity Package Installer not working here. Can anyone check it?
Edit: Got an old apk of 1.35, 1.36. Its working on 1.35, 1.36 but not with 1.37.
Edit: Got an old apk of 1.35, 1.36. Its working on 1.35, 1.36 but not with 1.37.
Re: Start activity Package Installer
Hi,
Thanks for reporting!
Automagic has to declare a new permission otherwise the package installer silently ignores the request.
I'll add the permission in 1.38.
Regards,
Martin
Thanks for reporting!
Automagic has to declare a new permission otherwise the package installer silently ignores the request.
I'll add the permission in 1.38.
Regards,
Martin
Re: Start activity Package Installer
@anuraag : It seems starting from oreo above, Automagic requires permission REQUEST_INSTALL_PACKAGES to install app thru package installer
https://stackoverflow.com/questions/473 ... aller-oreo
There is additional permission need to be allowed, so that Automagic can initiate the package installer. Have checked the permission and Automagic 1.37 doesn't have it currently. Older version don't have this permission either. But I am lazy to try older version on my current pie phone.
I wonder why older version is working. Maybe you try it on device prior to oreo?
https://stackoverflow.com/questions/473 ... aller-oreo
There is additional permission need to be allowed, so that Automagic can initiate the package installer. Have checked the permission and Automagic 1.37 doesn't have it currently. Older version don't have this permission either. But I am lazy to try older version on my current pie phone.
I wonder why older version is working. Maybe you try it on device prior to oreo?
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Start activity Package Installer
I have tested them on same device with oreo.Desmanto wrote:I wonder why older version is working. Maybe you try it on device prior to oreo?
I think those permission are present in previous builds. It somehow not working/removed as 1.37 targets API level 28.
Re: Start activity Package Installer
@Martin
Action: android.intent.action.DELETE
Data URI: package:{packageName}
Always gives operation = cancel and result_code = 0
Action: android.intent.action.DELETE
Data URI: package:{packageName}
Always gives operation = cancel and result_code = 0
Re: Start activity Package Installer
Oh yes, you are right. I misread the compile SDK. AM 1.36 below still target Nougat. 1.37 above already target Pie, hence must comply to the latest permission.anuraag wrote:I have tested them on same device with oreo.
I think those permission are present in previous builds. It somehow not working/removed as 1.37 targets API level 28.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Start activity Package Installer
@anuraag: deleting a package requires another permission on Android P (android.permission.REQUEST_DELETE_PACKAGES). I'll add this permission too.
It seems that you also have to add a special extra to get a result code of OK, otherwise the package installer always returns 0. Please try to add putBoolean("android.intent.extra.RETURN_RESULT", true) in the extras field to see if this helps.
Regards,
Martin
It seems that you also have to add a special extra to get a result code of OK, otherwise the package installer always returns 0. Please try to add putBoolean("android.intent.extra.RETURN_RESULT", true) in the extras field to see if this helps.
Regards,
Martin
Re: Start activity Package Installer
@Martin
Latest EAP solves installation issue. But choosing file returns "content://" which does not work. "file://" scheme works.
Uninstall still gives operation=cancel and result_code=0 with extra field android.intent.extra.RETURN_RESULT
Latest EAP solves installation issue. But choosing file returns "content://" which does not work. "file://" scheme works.
Uninstall still gives operation=cancel and result_code=0 with extra field android.intent.extra.RETURN_RESULT
Re: Start activity Package Installer
Did you select a file on the "external SD card" or are you using Android Q?
Start Activity with following settings works for me for uninstalling:
Action: android.intent.action.DELETE
Data URI: package:app.to.uninstall
Extras: putBoolean("android.intent.extra.RETURN_RESULT", true);
Wait for result: checked
When executing the action I get variable operation=ok and result_code=-1.
I've tested this on Android Q. What device and Android version are you using?
Start Activity with following settings works for me for uninstalling:
Action: android.intent.action.DELETE
Data URI: package:app.to.uninstall
Extras: putBoolean("android.intent.extra.RETURN_RESULT", true);
Wait for result: checked
When executing the action I get variable operation=ok and result_code=-1.
I've tested this on Android Q. What device and Android version are you using?
Re: Start activity Package Installer
Yes external sd card. Internal storage is fine. I am using android 8.1.
Checked again. Operation=cancel and result_code=0 . Moto G5 plus with stock android 8.1.Martin wrote: ↑16 Apr 2019 17:23Start Activity with following settings works for me for uninstalling:
Action: android.intent.action.DELETE
Data URI: package:app.to.uninstall
Extras: putBoolean("android.intent.extra.RETURN_RESULT", true);
Wait for result: checked
When executing the action I get variable operation=ok and result_code=-1.
I've tested this on Android Q. What device and Android version are you using?
Edit: same with android.intent.action.VIEW now. On previous version 1.37 i was getting operation=ok for android.intent.action.VIEW.