[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)
更多相关文章
- 如何查看Android设备的CPU架构信息
- 【android】如何查看Android设备的CPU架构信息
- Linux/Ubuntu下android设备添加adb驱动
- android设备上视频只有声音没有图像
- Android监控外接USB设备和获取USB等设备的详细信息
- 关于Android设备屏幕大小及密度的系统参数类
- JavaScript或PHP检测Android设备
- 无需 root 实现在 Android 设备上运行 Linux | Linux 中国