[Android GMS 认证] CTS 问题列表之 CtsOsTestCases

android.os.storage.cts.StorageManagerTest#testMountAndUnmountObbNormal  fail     junit.framework.AssertionFailedError: OBB should be mounted
android.os.storage.cts.StorageManagerTest#testMountAndUnmountTwoObbs    fail    junit.framework.AssertionFailedError: OBB should be mounted

可以查一下kernel下面的CONFIG_BLK_DEV_LOOP这个宏有没有开,没有开就不会创建loop设备

kernel\msm-3.18\arch\arm\configs\msm8909-perf_defconfig
kernel\msm-3.18\arch\arm\configs\msm8909w_defconfig
CONFIG_BLK_DEV_LOOP=y

另外,就是sepolicy的问题:
kernel.te
+
+# MTP sync (b/15835289)
+# kernel thread "loop0", used by the loop block device, for ASECs (b/17158723)
+allow kernel priv_app:fd use;
+allow kernel untrusted_app:fd use;
+allow kernel sdcard_type:file { read write };
+
+# Allow the kernel to read OBB files from app directories. (b/17428116)
+# Kernel thread "loop0" reads a vold supplied file descriptor.
+# Fixes CTS tests:
+#  * android.os.storage.cts.StorageManagerTest#testMountAndUnmountObbNormal
+#  * android.os.storage.cts.StorageManagerTest#testMountAndUnmountTwoObbs
+allow kernel vold:fd use;
+allow kernel app_data_file:file read;
+allow kernel asec_image_file:file read;
+
+domain_auto_trans(kernel, init_exec, init)
 

猜你喜欢

转载自blog.csdn.net/zhms/article/details/83443477