在Launcher.java的OnCreate方法中启动要开机进入的apk:
packages/apps/Launcher3
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -25,6 +25,7 @@ import static com.android.launcher3.LauncherState.NORMAL;
import static com.android.launcher3.dragndrop.DragLayer.ALPHA_INDEX_LAUNCHER_LOAD;
import static com.android.launcher3.logging.LoggerUtils.newContainerTarget;
import static com.android.launcher3.logging.LoggerUtils.newTarget;
+import android.content.ComponentName;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
@@ -345,6 +346,13 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
mRotationHelper.initialize();
TraceHelper.endSection("Launcher-onCreate");
+
+ Intent intent = new Intent();
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ ComponentName comp = new ComponentName("com.sddzxy.app.myapp","com.fliphtml5.app.fhreader.MainActivity");
+ intent.setComponent(comp);
+ startActivity(intent);
+
}