1)首先你应该使用合适的方法来root设备。例如 razorclaw.apk(或适合您设备的)。
2)获取隐藏状态栏的逻辑。前任。
process = Runtime.getRuntime().exec(new String[]{"su","-c","service call activity 79 s16 com.android.systemui"});
process.waitFor();
3) 编写一个广播接收器
public class MyBootRecever extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
intent.setClass(context, UserLogin.class);
context.startActivity(intent);
}
}
4)在AndroidManifest.xml中配置BroadcastReceiver
<receiver android:name="MyBootRecever">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>