com.google.android.afw.gts.AfwSupportTest#testManagedProfileSupported

9 篇文章 0 订阅

com.google.android.afw.gts.AfwSupportTest#testManagedProfileSupported fail

junit.framework.AssertionFailedError: Device is able to support managed profiles, but android.software.device_admin and android.software.managed_users are not enabled 

分析:根据报错信息,应该与 android.software.device_admin 和 android.software.managed_users 相关
在 adb shell pm list features 出现列表中没有出现 android.software.device_admin 和 android.software.managed_users

在工程中搜索 android.software.managed_users 发现路径: device/mediatek/common 下的device.mk中有

ifeq ($(strip $(MTK_ANDROID_FOR_WORK_SUPPORT)), yes)
    PRODUCT_COPY_FILES += frameworks/native/data/etc/android.software.device_admin.xml:system/etc/permissions/android.software.device_admin.xml
    PRODUCT_COPY_FILES += frameworks/native/data/etc/android.software.managed_users.xml:system/etc/permissions/android.software.managed_users.xml
    PRODUCT_PROPERTY_OVERRIDES += ro.mtk_afw_support=1

说明 android.software.device_admin 和 android.software.managed_users 是有配置的,与 MTK_ANDROID_FOR_WORK_SUPPORT 相关,如果MTK_ANDROID_FOR_WORK_SUPPORT
为yes ,这两个feature将可以被载入

在路径: vendor/tinno/v3991/trunk 下的 ProjectConfig.mk 文件中发现

MTK_ANDROID_FOR_WORK_SUPPORT = no  

这说明是MTK_ANDROID_FOR_WORK_SUPPORT 宏没有打开的问题,改为yes即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值