Support both internal storage(emmc) & external sdcard in IMX8qxp

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Support both internal storage(emmc) & external sdcard in IMX8qxp

1,728 次查看
wasim_nazir
Contributor II

Hi All,

I am trying to support internal emmc as internal storage and an external physical sdcard as external storage, both accessible by APPs separately in Android.

How to do this in IMX8qxp taken from imx-p9.0.0_2.3.0.

Thanks in Advance

0 项奖励
回复
1 回复

1,683 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Wasim,

Your question is how to get access to the SD card in Android, this issue has no relations to I.MX8QXP.

probably you can try this method:

1. find "frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java"

2. Open the file, and Find "grantPermissionsLPw" function.

  In the function, find "if (allowedSig)" in "case PermissionInfo.PROTECTION_SIGNATURE: {"

3. Change it like bleow

if (allowedSig || perm.equals("android.permission.MOUNT_UNMOUNT_FILESYSTEMS")
                     || perm.equals("android.permission.WRITE_MEDIA_STORAGE"))

Then try it.

If the way can't solve your problem, you can search related solution from internet, or android development site.

Hope above answer is helpful to you.

Have a nice day!

B.R,

Weidong

0 项奖励
回复