位于/system/app 中的系统应用程序如何在 Android 4.4 KitKat 版本中拥有系统权限? [英] How can system app located in /system/app have system permission in Android 4.4 KitKat build?

查看:35
本文介绍了位于/system/app 中的系统应用程序如何在 Android 4.4 KitKat 版本中拥有系统权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Jaemoon.

I'm Jaemoon.

我位于/system/app 的系统应用程序运行良好,直到 Android 4.3 Jelly Bean但它开始出现一些问题,这是 Android 4.4 KitKat 中的安全问题.

My system app located in /system/app was running well until Android 4.3 Jelly Bean but it started having some problems which was security problem in Android 4.4 KitKat.

换句话说,我的系统应用程序需要诸如 android.permission.WRITE_APN_SETTINGS 和 android.permission.CONNECTIVITY_INTERNAL 之类的权限,并且在 Jelly Bean 之前表现良好但是从 KitKat 来看,存在如下安全问题.我不明白为什么我在 Jelly Bean 中运行良好的系统应用开始出现来自 KitKat 的安全问题.

In other words, My system app needed permissions such as android.permission.WRITE_APN_SETTINGS and android.permission.CONNECTIVITY_INTERNAL and did well until Jelly Bean but from KitKat, there were security problems as follows. I don't understand the reason why my system app doing well in Jelly Bean started to have security problems from KitKat.

我怀疑 KitKat 需要在某些脚本文件中进行新设置以获得系统权限.有人可以帮助我或指导我吗?

I am doubting that KitKat needs new setting in some script files for system permission. Could anyone help me or guide me ?

---------------------------------------------------------------------
java.lang.SecurityException: No permission to write APN settings: Neither user 10146 nor current process has android.permission.WRITE_APN_SETTINGS.
...
---------------------------------------------------------------------
java.lang.SecurityException: ConnectivityService: Neither user 10097 nor current process has android.permission.CONNECTIVITY_INTERNAL.
---------------------------------------------------------------------

提前致谢..

推荐答案

在 Android 4.4 中,只有位于 /system/priv-app 的应用拥有 系统"级别的权限.

In Android 4.4 just apps located at /system/priv-app have the "system" level permission.

Google 这样做是为了让三星等制造商可以更好地控制捆绑应用拥有的权限.

Google did this so that manufacturers like Samsung can have better control of the permissions the bundled apps have.

因此管理应用程序转到 /system/priv-app.游戏、免费增值应用和其他垃圾进入 /system/app

So administrative apps goes to /system/priv-app. Games, freemium apps and other garbages goes to /system/app

谢谢!

这篇关于位于/system/app 中的系统应用程序如何在 Android 4.4 KitKat 版本中拥有系统权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆