android kill package

1.Method forceStopPackage = am.getClass().getDeclaredMethod    ("forceStopPackage", String.class); 
forceStopPackage.setAccessible(true); 
forceStopPackage.invoke(am, yourpkgname); 

2.android:sharedUserId="android.uid.system" 

3.<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"></uses-permission> 

你可能感兴趣的:(android)