插入电源时如何使Android设备启动? [英] How to make Android device boot when power is plugged in?

查看:17
本文介绍了插入电源时如何使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平台中,还是隐藏在厂商的一些专有代码中?

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.

这个想法是用一个可以启动手机的自定义脚本替换电池图标的脚本(当然,一旦插入设备,它就会出现).为了使这项工作找到 /system/bin/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天全站免登陆