1.顯示隱藏系統進程 修改ProcessManagerActivity的Adapter 2.鎖屏清理 ...
1.顯示隱藏系統進程
修改ProcessManagerActivity的Adapter
..... @Override public int getCount() { if(SpUtil.getBoolean(getApplicationContext(), ConstantValue.SHOW_SYSTEM, false)){ return mCustomerList.size()+mSystemList.size()+2; }else{ return mCustomerList.size()+1; } }
2.鎖屏清理
public class LockScreenService extends Service { private IntentFilter intentFilter; private InnerReceiver innerReceiver; @Override public void onCreate() { //鎖屏action intentFilter = new IntentFilter(Intent.ACTION_SCREEN_OFF); innerReceiver = new InnerReceiver(); registerReceiver(innerReceiver, intentFilter); super.onCreate(); } @Override public IBinder onBind(Intent intent) { return null; } @Override public void onDestroy() { if(innerReceiver!=null){ unregisterReceiver(innerReceiver); } super.onDestroy(); } class InnerReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { //清理手機正在運行的進程 ProcessInfoProvider.killAll(context); } } }