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

18 篇文章 3 订阅
18 篇文章 1 订阅

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)
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值