Add "adb shell am restart" command.
So you can restart the system without being root.
Change-Id: I89770f497833ecbe2b69e3a0cfafae7ef472a9f5
diff --git a/core/java/android/app/IActivityManager.java b/core/java/android/app/IActivityManager.java
index 19858dc..3eda58c 100644
--- a/core/java/android/app/IActivityManager.java
+++ b/core/java/android/app/IActivityManager.java
@@ -396,6 +396,8 @@
public void reportActivityFullyDrawn(IBinder token) throws RemoteException;
+ public void restart() throws RemoteException;
+
/*
* Private non-Binder interfaces
*/
@@ -676,4 +678,5 @@
int CONVERT_TO_TRANSLUCENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+174;
int NOTIFY_ACTIVITY_DRAWN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+175;
int REPORT_ACTIVITY_FULLY_DRAWN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+176;
+ int RESTART_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+177;
}