Skip to content

Instantly share code, notes, and snippets.

@Nokius
Created March 20, 2015 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nokius/67a134644b69559b458d to your computer and use it in GitHub Desktop.
Save Nokius/67a134644b69559b458d to your computer and use it in GitHub Desktop.
MerSDK user@Build-Box-III:~/mer/android/droid$ grep -Rs "\"reboot"\" *
bootable/recovery/recovery_cmds.h: { "reboot", reboot_main },
bootable/recovery/reboot.c: const char *cmd = "reboot";
bootable/recovery/reboot.c: perror("reboot");
bootable/recovery-cm/recovery_cmds.h: { "reboot", reboot_main },
development/testrunner/runtest.py: self._adb.SendCommand("reboot")
external/strace/linux/mips/syscallent.h: { 3, 0, sys_reboot, "reboot" }, /* 4088 */
external/strace/linux/mips/syscallent.h: { 3, 0, sys_reboot, "reboot" }, /* 5164 */
external/strace/linux/mips/syscallent.h: { 3, 0, sys_reboot, "reboot" }, /* 6164 */
external/strace/linux/arm/syscallent.h: { 3, 0, sys_reboot, "reboot" }, /* 88 */
external/strace/linux/i386/syscallent.h: { 3, 0, sys_reboot, "reboot" }, /* 88 */
external/strace/linux/sh/syscallent.h: { 3, 0, sys_reboot, "reboot" }, /* 88 */
external/busybox/android/reboot.c: perror("reboot");
external/busybox/init/init.c: new_init_action(CTRLALTDEL, "reboot", "");
external/busybox/init/init.c: m = "reboot";
external/busybox/init/halt.c: mode[0] = strdup("reboot");
external/busybox/miscutils/last.c: else if (strncmp(ut.ut_user, "reboot", 6) == 0)
external/busybox/miscutils/last_fancy.c: if (strcmp(ut->ut_user, "reboot") == 0) {
external/busybox/include-full/applet_tables.h:"reboot" "\0"
external/koush/Superuser/Superuser/src/com/koushikdutta/superuser/MainActivity.java: StreamUtility.copyStream(in = zf.getInputStream(ze), reboot = openFileOutput("reboot", MODE_PRIVATE));
external/koush/Superuser/Superuser/src/com/koushikdutta/superuser/MainActivity.java: String.format("chmod 755 %s\n", getFileStreamPath("reboot").getAbsolutePath()) +
external/koush/Superuser/Superuser/src/com/koushikdutta/superuser/MainActivity.java: StreamUtility.writeFile(rebootScript, "reboot recovery ; " + getFileStreamPath("reboot").getAbsolutePath() + " recovery ;");
external/koush/Superuser/Superuser/jni/reboot/reboot.c:** This was reverse engineered from an HTC "reboot" binary and is an attempt
external/koush/Superuser/Superuser/jni/reboot/reboot.c: perror("reboot");
external/grub/NEWS:* New commands, "reboot" and "halt".
external/grub/stage2/builtins.c: "reboot",
external/grub/stage2/builtins.c: "reboot",
external/libppp/src/defs.c: "reboot", "errdead", "hangup", "term", "nodial", "nologin",
external/dhcpcd/if-options.c: {"reboot", required_argument, NULL, 'y'},
^[[Aframeworks/base/docs/html/tools/help/MonkeyDevice.jd:<A NAME="reboot"></A>
frameworks/base/cmds/svc/src/com/android/commands/svc/PowerCommand.java: } else if ("reboot".equals(args[1])) {
kernel/lge/hammerhead/tools/lguest/lguest.c:/* Remember the arguments to the program so we can "reboot" */
kernel/lge/hammerhead/tools/lguest/lguest.c: /* Save the args: we "reboot" by execing ourselves again. */
kernel/lge/hammerhead/kernel/power/hibernate.c: [HIBERNATION_REBOOT] = "reboot",
kernel/lge/hammerhead/kernel/debug/kdb/kdb_main.c: kdb_register_repeat("reboot", kdb_reboot, "",
kernel/lge/hammerhead/drivers/xen/manage.c: { "reboot", do_reboot },
kernel/lge/hammerhead/drivers/watchdog/eurotechwdt.c: io, irq, (!strcmp("int", ev) ? "int" : "reboot"));
kernel/lge/hammerhead/drivers/tty/serial/msm_serial_debugger.c: } else if (!strcmp(cmd, "reboot")) {
kernel/lge/hammerhead/drivers/net/fddi/defxx.c: * Linux. This routine would be called during "reboot" or
kernel/lge/hammerhead/Documentation/powerpc/eeh-pci-error-recovery.txt:the OS the ability to "reboot"/recover individual PCI devices.
kernel/lge/hammerhead/Documentation/power/basic-pm-debugging.txt:To check if hibernation works, you can try to hibernate in the "reboot" mode:
kernel/lge/hammerhead/Documentation/power/basic-pm-debugging.txt:resuming the system.] Moreover, hibernating in the "reboot" and "shutdown"
kernel/lge/hammerhead/Documentation/power/basic-pm-debugging.txt:to hibernate or resume in the "reboot" mode, you should try the "platform" mode:
kernel/lge/hammerhead/Documentation/power/basic-pm-debugging.txt:(it is similar to the "reboot" mode, but it requires you to press the power
kernel/lge/hammerhead/Documentation/power/basic-pm-debugging.txt:"reboot", "shutdown" and "platform" modes. If that does not work, there
kernel/lge/hammerhead/Documentation/power/drivers-testing.txt:b) Load the driver and attempt to hibernate in the "reboot", "shutdown" and
kernel/lge/hammerhead/Documentation/power/drivers-testing.txt: in the "reboot", "shutdown" and "platform" modes.
kernel/lge/hammerhead/arch/parisc/hpux/sys_hpux.c: "reboot", /* 55 */
kernel/lge/hammerhead/arch/arm/common/fiq_debugger.c: } else if (!strncmp(cmd, "reboot", 6)) {
kernel/lge/hammerhead/arch/arm/mach-bcmring/arch.c: .procname = "reboot",
kernel/lge/hammerhead/arch/um/drivers/mconsole_user.c: { "reboot", mconsole_reboot, MCONSOLE_PROC },
kernel/oppo/n1/tools/lguest/lguest.c:/* Remember the arguments to the program so we can "reboot" */
kernel/oppo/n1/tools/lguest/lguest.c: /* Save the args: we "reboot" by execing ourselves again. */
kernel/oppo/n1/kernel/power/hibernate.c: [HIBERNATION_REBOOT] = "reboot",
kernel/oppo/n1/kernel/debug/kdb/kdb_main.c: kdb_register_repeat("reboot", kdb_reboot, "",
kernel/oppo/n1/drivers/xen/manage.c: { "reboot", do_reboot },
kernel/oppo/n1/drivers/watchdog/eurotechwdt.c: io, irq, (!strcmp("int", ev) ? "int" : "reboot"));
kernel/oppo/n1/drivers/tty/serial/msm_serial_debugger.c: } else if (!strcmp(cmd, "reboot")) {
kernel/oppo/n1/drivers/net/fddi/defxx.c: * Linux. This routine would be called during "reboot" or
kernel/oppo/n1/Documentation/powerpc/eeh-pci-error-recovery.txt:the OS the ability to "reboot"/recover individual PCI devices.
kernel/oppo/n1/Documentation/power/basic-pm-debugging.txt:To check if hibernation works, you can try to hibernate in the "reboot" mode:
kernel/oppo/n1/Documentation/power/basic-pm-debugging.txt:resuming the system.] Moreover, hibernating in the "reboot" and "shutdown"
kernel/oppo/n1/Documentation/power/basic-pm-debugging.txt:to hibernate or resume in the "reboot" mode, you should try the "platform" mode:
kernel/oppo/n1/Documentation/power/basic-pm-debugging.txt:(it is similar to the "reboot" mode, but it requires you to press the power
kernel/oppo/n1/Documentation/power/basic-pm-debugging.txt:"reboot", "shutdown" and "platform" modes. If that does not work, there
kernel/oppo/n1/Documentation/power/drivers-testing.txt:b) Load the driver and attempt to hibernate in the "reboot", "shutdown" and
kernel/oppo/n1/Documentation/power/drivers-testing.txt: in the "reboot", "shutdown" and "platform" modes.
kernel/oppo/n1/arch/parisc/hpux/sys_hpux.c: "reboot", /* 55 */
kernel/oppo/n1/arch/arm/common/fiq_debugger.c: } else if (!strncmp(cmd, "reboot", 6)) {
kernel/oppo/n1/arch/arm/mach-bcmring/arch.c: .procname = "reboot",
kernel/oppo/n1/arch/um/drivers/mconsole_user.c: { "reboot", mconsole_reboot, MCONSOLE_PROC },
out/target/product/find5/obj/KERNEL_OBJ/source/tools/lguest/lguest.c:/* Remember the arguments to the program so we can "reboot" */
out/target/product/find5/obj/KERNEL_OBJ/source/tools/lguest/lguest.c: /* Save the args: we "reboot" by execing ourselves again. */
out/target/product/find5/obj/KERNEL_OBJ/source/kernel/power/hibernate.c: [HIBERNATION_REBOOT] = "reboot",
out/target/product/find5/obj/KERNEL_OBJ/source/kernel/debug/kdb/kdb_main.c: kdb_register_repeat("reboot", kdb_reboot, "",
out/target/product/find5/obj/KERNEL_OBJ/source/drivers/xen/manage.c: { "reboot", do_reboot },
out/target/product/find5/obj/KERNEL_OBJ/source/drivers/watchdog/eurotechwdt.c: io, irq, (!strcmp("int", ev) ? "int" : "reboot"));
out/target/product/find5/obj/KERNEL_OBJ/source/drivers/tty/serial/msm_serial_debugger.c: } else if (!strcmp(cmd, "reboot")) {
out/target/product/find5/obj/KERNEL_OBJ/source/drivers/net/fddi/defxx.c: * Linux. This routine would be called during "reboot" or
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/powerpc/eeh-pci-error-recovery.txt:the OS the ability to "reboot"/recover individual PCI devices.
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/basic-pm-debugging.txt:To check if hibernation works, you can try to hibernate in the "reboot" mode:
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/basic-pm-debugging.txt:resuming the system.] Moreover, hibernating in the "reboot" and "shutdown"
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/basic-pm-debugging.txt:to hibernate or resume in the "reboot" mode, you should try the "platform" mode:
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/basic-pm-debugging.txt:(it is similar to the "reboot" mode, but it requires you to press the power
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/basic-pm-debugging.txt:"reboot", "shutdown" and "platform" modes. If that does not work, there
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/drivers-testing.txt:b) Load the driver and attempt to hibernate in the "reboot", "shutdown" and
out/target/product/find5/obj/KERNEL_OBJ/source/Documentation/power/drivers-testing.txt: in the "reboot", "shutdown" and "platform" modes.
out/target/product/find5/obj/KERNEL_OBJ/source/arch/parisc/hpux/sys_hpux.c: "reboot", /* 55 */
out/target/product/find5/obj/KERNEL_OBJ/source/arch/arm/common/fiq_debugger.c: } else if (!strncmp(cmd, "reboot", 6)) {
out/target/product/find5/obj/KERNEL_OBJ/source/arch/arm/mach-bcmring/arch.c: .procname = "reboot",
out/target/product/find5/obj/KERNEL_OBJ/source/arch/um/drivers/mconsole_user.c: { "reboot", mconsole_reboot, MCONSOLE_PROC },
pdk/apps/CameraITS/pymodules/its/device.py: """Examine sys.argv, and reboot if the "reboot" arg is present.
pdk/apps/CameraITS/pymodules/its/device.py: if s[:6] == "reboot":
pdk/apps/CameraITS/README:adding a "reboot" or "reboot=N" command line argument, where N is the number of
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/sdk/api/9.xml:<method name="reboot"
prebuilts/sdk/api/12.xml:<method name="reboot"
prebuilts/sdk/api/10.xml:<method name="reboot"
prebuilts/sdk/api/11.xml:<method name="reboot"
prebuilts/sdk/api/8.xml:<method name="reboot"
prebuilts/sdk/api/13.xml:<method name="reboot"
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/mips-o32-linux.xml: <syscall name="reboot" number="4088"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/sparc-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/mips-n32-linux.xml: <syscall name="reboot" number="6164"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/sparc64-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/share/gdb/syscalls/mips-n64-linux.xml: <syscall name="reboot" number="5164"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/mips-o32-linux.xml: <syscall name="reboot" number="4088"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/sparc-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/mips-n32-linux.xml: <syscall name="reboot" number="6164"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/sparc64-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/mips-n64-linux.xml: <syscall name="reboot" number="5164"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/mips-o32-linux.xml: <syscall name="reboot" number="4088"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/sparc-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/mips-n32-linux.xml: <syscall name="reboot" number="6164"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/sparc64-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/mips-n64-linux.xml: <syscall name="reboot" number="5164"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/mips-o32-linux.xml: <syscall name="reboot" number="4088"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/sparc-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/mips-n32-linux.xml: <syscall name="reboot" number="6164"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/sparc64-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/share/gdb/syscalls/mips-n64-linux.xml: <syscall name="reboot" number="5164"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/mips-o32-linux.xml: <syscall name="reboot" number="4088"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/sparc-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/mips-n32-linux.xml: <syscall name="reboot" number="6164"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/sparc64-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/share/gdb/syscalls/mips-n64-linux.xml: <syscall name="reboot" number="5164"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/mips-o32-linux.xml: <syscall name="reboot" number="4088"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/sparc-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/mips-n32-linux.xml: <syscall name="reboot" number="6164"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/ppc64-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/ppc-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/i386-linux.xml: <syscall name="reboot" number="88"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/sparc64-linux.xml: <syscall name="reboot" number="55"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/amd64-linux.xml: <syscall name="reboot" number="169"/>
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/share/gdb/syscalls/mips-n64-linux.xml: <syscall name="reboot" number="5164"/>
system/vold/cryptfs.c: property_set(ANDROID_RB_PROPERTY, "reboot");
system/core/fastboot/fastboot.c: } else if(!strcmp(*argv, "reboot")) {
system/core/fastboot/fastboot_protocol.txt: "reboot" Reboot the device.
system/core/fastboot/engine.c: Action *a = queue_action(OP_COMMAND, "reboot");
system/core/adb/commandline.c: if(!strcmp(argv[0], "remount") || !strcmp(argv[0], "reboot")
system/core/reboot/reboot.c: const char *cmd = "reboot";
system/core/reboot/reboot.c: perror("reboot");
system/core/init/builtins.c: } else if (strncmp(command, "reboot", 6) == 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment