在manifest中plus->distribute->google->permissions中添加了如下权限
"<uses-permission android:name=\"com.huawei.android.launcher.permission.READ_SETTINGS\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher.permission.CHANGE_BADGE\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher3.permission.READ_SETTINGS\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher3.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher3.permission.CHANGE_BADGE\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher2.permission.READ_SETTINGS\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher2.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"com.huawei.android.launcher2.permission.CHANGE_BADGE\"/>",
但是运行应用依然提示:
Uncaught java.lang.SecurityException: Permission Denial: opening provider com.huawei.android.launcher.LauncherProvider from ProcessRecord{6c8daab 13281:io.dcloud.HBuilder/u0a411} (pid=13281, uid=10411) requires com.huawei.android.launcher.permission.READ_SETTINGS or com.huawei.android.launcher.permission.WRITE_SETTINGS;at android.app.ContextImpl$ApplicationContentResolver.call
zhmhmr (作者)
非常感谢,那就是说没有办法获得这个权限了?
2017-09-28 14:29