如何使Android设备开机时电源是否插好?开机时、电源、设备、Android

2023-09-04 11:15:54 作者:晓风残月

我需要用这个了三星平板。

I need to use this for a Samsung Tablet.

一般如果设备关断和USB电缆被连接的显示会醒来一段秒表示动画电池。相反,我想让它启动。

Usually if the device is switched-off and the USB cable is being connected the display will wake up for some seconds showing an animated battery. Instead I want to let it boot.

我怀疑这是接近金属。我在哪里必须做出修改? 在内核中,在Android平台上,或者是这个隐藏在制造商的一些专有code?

I suspect this is close to the metal. Where do I have to make a modification? In the kernel, in the Android platform, or is this hidden in some proprietary code of the manufacturer?

推荐答案

在XDA成员已经发布了的解决方案这其中似乎工作在某些三星设备。

A member on XDA has posted a solution for this which seems to work on some Samsung devices.

我们的想法是,以取代的​​脚本电池图标(将出现,当然只要设备被插入)与自定义脚本,将引导电话。为了使这项工作找到 /系统/斌/ playlpm 。重命名旧 playlpm playlpm.bak ,并将它与下面的脚本替换​​:

The idea is to replace the script for the battery icon (which will appear of course as soon as the device is plugged in) with a custom script that will boot the phone. To make this work locate /system/bin/playlpm. Rename the old playlpm to playlpm.bak and replace it with the following script:

#!/system/bin/sh
/system/bin/reboot

有关更多信息,请阅读的线程上XDA

For more information read the thread on XDA