Skip to content

Instantly share code, notes, and snippets.

@TheComputerGuy96
Created April 30, 2017 16:55
Show Gist options
  • Select an option

  • Save TheComputerGuy96/c4251e350bef05dff3d33e9ad2b77a5c to your computer and use it in GitHub Desktop.

Select an option

Save TheComputerGuy96/c4251e350bef05dff3d33e9ad2b77a5c to your computer and use it in GitHub Desktop.
Modified /system/bin/lpm and /system/bin/playlpm file to boot a Samsung device into Android if charger is inserted
#!/system/bin/sh
# Run "chmod 755 /system/bin/playlpm; chown 0:2000 /system/bin/playlpm || chmod 0:2000 /system/bin/lpm; chown 0:2000 /system/bin/lpm" with root access after creating this file
/system/bin/reboot
@TheComputerGuy96
Copy link
Author

@GOALARG This script uses a regular reboot command (so that shouldn't happen assuming the device is working correctly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment