How to make Android device boot when power is plugged in?

后端 未结 6 1174
长发绾君心
长发绾君心 2020-12-15 09:40

I need to use this for a Samsung Tablet.

Usually if the device is switched-off and the USB cable is being connected the display will wake up for some seconds showing

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 10:18

    I have a rooted Samsung S4 mini. The following steps worked for me:

    1. mount -o remount,rw /system
    2. mv /system/bin/lpm /system/bin/lpm.orig
    3. create /system/bin/lpm as follows:

      #!/system/bin/sh
      /system/bin/lpm.orig &
      while [ true ]; do
        sleep 1
        ps | grep lpm.orig && sleep 3 && /system/bin/reboot
      done
      
    4. chown root.shell /system/bin/lpm

提交回复
热议问题