简体   繁体   English

如何更改Androidmanifest.xml中的默认权限

[英]How to change the default permissions in Androidmanifest.xml

I got a question about the "Androidmanifest.xml".我有一个关于“Androidmanifest.xml”的问题。 The default settings of the installation of an application is that the application have permission to the SD-card and Telephone Calls.安装应用程序的默认设置是该应用程序具有SD卡和电话呼叫的权限。

How can I set that the application has only access to the SD-card and not to the Telephone Calls what is set as default?如何设置该应用程序只能访问 SD 卡,而不能访问默认设置的电话?

You cannot modify permissions besides Manifest.除了 Manifest 之外,您不能修改权限。 However, some custom ROMS allow you to alter installed app's permissions too, but then that is not something an ordinary user can/should follow.但是,一些自定义 ROM 也允许您更改已安装应用程序的权限,但这不是普通用户可以/应该遵循的。

If you would get root access on a device (by using an exploit or any other legit way), you could extract the manifest file from the installed application (apk file) then modify (add or remove permissions) the manifest file and then repack (inject) the application with the modified manifest .如果您要在设备上获得 root 访问权限(通过利用漏洞或任何其他合法方式),您可以从已安装的应用程序(apk 文件)中提取清单文件,然后修改(添加或删除权限)清单文件,然后重新打包(注入)具有修改后的清单的应用程序。 Next time the application would run it would get the new (modified) permissions.下次应用程序运行时,它将获得新的(修改后的)权限。

Note: by any means this is not a standard procedure, or something a Google Play application should do!注意:无论如何这都不是标准程序,也不是Google Play应用程序应该做的事情!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM