What's the command/script that is executed to get the mobile out of charging mode?
I mean the command/script executed when unpluging USB charger.
Related
I can't mount any external devices from the rear usb slot or the side usb slot with a cable after using the usb_modeswitch command. Is there any way to change the usb mode back to normal? This is driving me crazy.
Hi everyone. My phone (i9100) is in this condition:
- brick.
- no charge icon when plug in the AC charger and USB cable.
- pc does not detect any USB device when plug in. (by lsusb command in ubuntu 13.10)
- can not go to download mode, recovery mode.
- nothing happen when press the power button.
I think there is something wrong with the power ic.
What should I do to unbrick it with the lowest cost?
Thank you for any help!
If you want it fixed guaranteed (assuming nothing else is wrong hardware-wise) ? Replace motherboard.
Is it possible turn on USB debbug without acess the phone? For example, with command by fastboot or something like?
Hey friends i have connect usb light http://img.banggood.com/images/2014/outingting/03/SKU209457/SKU209457-4.jpg to Xiaomi Redmi Note 3 (snapdragon Version), it went ON successfully, But i don't know as how to disable it's power supply or turn it off using command prompt,
here are USB files inside system (sys/class/power_supply)
Can some one please help me with command ?
or is there any apk which have on off switch for it, ?
Hello,
I have one old phone Alcatel Pixi 4 5.0 5045A (roooted) and Resurrection Remix is installed. I want to use this phone to show some info from my PC.
I have mount phone and i have use Macrodroid to control screen when i power on or off my PC. But i want more, i need to power off and power on phone when USB in phone detect power from my PC or when is USB plugged in.
I can setup power off with MacroDroid but i can't find any solution to power on phone when USB cable plugged in. SO this should be work in simple way, phone is off, USB cable plugged in and phone instead of charging should automatically power on.
I can't access fastboot options on this phone not sure why, is locked or something else is problem. I have install TWRP and than i flashed supersu to root device, after than i have custom rom installed.
Anyone have idea how to make it to automatically Power on when USB Charger is plugged in? I have found some tutorials for samsung phone but noting for tihs one.
Ok i found solution, edit init.rc and added lines
Code:
setprop ro.bootmode "normal"
setprop sys.powerctl "reboot"
After
Code:
on charger
class_start charger