|
@@ -1290,6 +1290,13 @@ Value* RebootNowFn(const char* name, State* state, const std::vector<std::unique
|
1290
|
1290
|
android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_cmd);
|
1291
|
1291
|
|
1292
|
1292
|
sleep(5);
|
|
1293
|
+
|
|
1294
|
+ // Attempt to reboot using older methods in case the recovery
|
|
1295
|
+ // that we are updating does not support init reboots
|
|
1296
|
+ android_reboot(ANDROID_RB_RESTART, 0, 0);
|
|
1297
|
+
|
|
1298
|
+ sleep(5);
|
|
1299
|
+
|
1293
|
1300
|
return ErrorAbort(state, kRebootFailure, "%s() failed to reboot", name);
|
1294
|
1301
|
}
|
1295
|
1302
|
|