[RK3399][Android7.1] 调试笔记 --- 允许应用访问sdcard目录

Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83
Board: Firefly-RK3399

需求是低于api 23版本的应用直接可以读写sdcard,改动如下:

kris@eco:~/firefly_rk3399/frameworks/base/core/res$ g df AndroidManifest.xml 
diff --git a/frameworks/base/core/res/AndroidManifest.xml b/frameworks/base/core/res/AndroidManifest.xml
index 89c0f0c..c44a7a3 100644
--- a/frameworks/base/core/res/AndroidManifest.xml
+++ b/frameworks/base/core/res/AndroidManifest.xml
@@ -670,7 +670,7 @@
         android:permissionGroup="android.permission-group.STORAGE"
         android:label="@string/permlab_sdcardRead"
         android:description="@string/permdesc_sdcardRead"
-        android:protectionLevel="dangerous" />
+        android:protectionLevel="normal" />

     
     
                    

你可能感兴趣的:(RK3399,子类__SD,EMMC)