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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,813件の閲覧回数
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

ラベル(2)
0 件の賞賛
返信
1 返信

1,768件の閲覧回数
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 件の賞賛
返信