Menu Home

Android Framework: 重启代码

    private void RebootIntoRecovery() {
        PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
        pm.reboot("recovery");
    }
    <uses-permission android:name="android.permission.REBOOT" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.settings"
        coreApp="true"
        android:sharedUserId="android.uid.system">

Categories: android framework android应用

Tagged as:

lnmcc

Leave a Reply

Your email address will not be published.