shell pm grant is not working on Scan2Deploy Studio

Good Morning to all

Can Scan2Deploy Studio execute this line on to MEMOR 17?
adb shell pm grant com.biqhs.map android.permission.READ_EXTERNAL_STORAGE

Best regards
Diogo Teixeira

Hello @Diogo_Teixeira,

Yes, Scan2Deploy can grant the read external storage permission.
To grant this permission, you would add a script to your Scan2Deploy profile.
The script will need to be the Shell type and would be as follows:

appops set --uid com.biqhs.map READ_EXTERNAL_STORAGE allow

However, the lowest firmware that the Memor 17 can support is Android 13 and on that firmware the permission read external storage has not effect.
image

So, you will need to have the developer of com.biqhs.map update their app to support a different permission.
On Android 13, the permission Manage External Storage is still supported, and allows broad access to the Download folder on the device. But, if this app is distributed on the Google Play Store, that permission is highly restricted and really only file explorer apps are allowed to use it.
The recommended permission is listed in the blue warning above, either READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_MEDIA_AUDIO.

Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer

1 Like