当壁式充电器插入自动开机 [英] Auto boot when wall charger is plugged

查看:828
本文介绍了当壁式充电器插入自动开机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序在那里requireds 3件事: -

I'm Developing an Android Application where it requireds 3 things:-

  1. 要保持应用了一个运行的具体时间,然后手机将关闭(工作正常)
  2. 当电话得到插座充电,我想手机会自动开机,没有击中任何电源按钮。 (不工作的墙上插座,但是当连接到笔记本电脑通过USB数据线工作)。
  3. 在开机后我的应用程序应该开始工作,自动(工作正常)

您必须知道: - 我的手机是摩托罗拉E(根),并希望做第2步。试过C $ CS约$但是,这并不对摩托车E.工作 当使用USB连接它给2作为回应,当与墙壁插座的充电器连接,它说1

You Must know :- My phone is Moto E (rooted) and want 2nd step to be done. Tried some codes but that does not work on moto E. When Connected with USB it gives 2 as response and when connected with Wall socket charger it says 1

任何帮助将是pciated鸭$ P $

Any help will be Appreciated

PS: - 自动启动工作用USB线与笔记本电脑,但不与插座充电器连接

P.S :- Auto Boot working with USB cable connected with Laptop but not with Socket Charger

更新-1 :1-找到 FASTBOOT的oem关机模式下充电0 用的Nexus 7,但不是摩托E处理。

Update-1: 1- Found fastboot oem off-mode-charge 0 working with Nexus 7 but not on Moto e.

2 - 摩托è启动时连接到路由器(USB适配器端口)

2- Moto e boots when connected to Router (USB Dongle Port)

推荐答案

我终于得到了解决,您可以通过删除系统/斌/ charge_only_mode 文件做到这一点。请做你自己的风险,并删除有该文件的备份之前。我得到的是当它连接到壁式充电器,现在它工作正常开机所需的结果。 所有最优秀的!

At last I got the solution, you can achieve this by deleting system/bin/charge_only_mode file. Please do that at your own risk and before deleting have backup of that file. I got the desired result that was boot when its connected to wall charger and now its working fine. All the best!

这篇关于当壁式充电器插入自动开机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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