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
@mmoollllee
Copy link

How are these files edited properly on Android 12?

@TheComputerGuy96
Copy link
Author

@mmoollllee I initially created this for my old 2014 Samsung phone (Galaxy Trend Plus) so things have probably changed since then and this might not work (with A/B partitions, multiple major Android updates and systemless mods among other things)

@GOALARG
Copy link

GOALARG commented Jan 19, 2026

why my phone reboot but in recovery mode?

@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