赞
踩
隐藏
PackageManager p = getPackageManager();
p.setApplicationEnabledSetting(packageName, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
显示
- PackageManager p = getPackageManager();
-
- p.setApplicationEnabledSetting(packageName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);
此方法如果不做系统签名,只能对相同UID进程生效
如果需要控制第三方APP需要声明
android:sharedUserId="android.uid.system"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。