开发者

Renaming Android apk Programmatically

开发者 https://www.devze.com 2023-02-12 23:24 出处:网络
Is it possible to rename a Android apk file extension programmatically without a rooted device? The goal is to disable a application from starting up, 开发者_Python百科is this possible? With one limit

Is it possible to rename a Android apk file extension programmatically without a rooted device? The goal is to disable a application from starting up, 开发者_Python百科is this possible?


With one limited exception, the Android security model prevents one application from altering files belonging to another, so the answer is no.


I think it's possible to disable applications using PackageManager.setApplicationEnabledSetting but you'll probably need to call it from an application signed with the same key as the app to be disabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消