如何使Android设备开机时电源是否插好? [英] How to make Android device boot when power is plugged in?

查看:317
本文介绍了如何使Android设备开机时电源是否插好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这篇关于如何使Android设备开机时电源是否插好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆