Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否用来热修改activity-alias的enabled属性,绕过系统自动关闭应用的问题 #5

Open
zhuzhutai opened this issue Jul 5, 2024 · 0 comments

Comments

@zhuzhutai
Copy link

修改app启动launcher的icon的时候,
packageManager.setComponentEnabledSetting( alias, if (use) PackageManager.COMPONENT_ENABLED_STATE_ENABLED else PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP )
虽然设置了PackageManager.DONT_KILL_APP,但是大概率还是会被系统强行关闭。
能否热修这个activity-alias的enabled,绕过系统这个限制呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant