Boot on when charging - LG G Pad X 8.0 Questions & Answers

I would like to setup the tablet so that it automatically boots up if the charge cable is plugged in and it has power.
I am running lineage.
From reading online, this involves over-riding the program which produces the battery charging animation when you plug it in while off. The file is typically in /system/bin but the name varies. I have not been able to figure out which file it is
Has anyone been able to set this up?

Related

Boot up when plugged in?

Hello,
I am working on a research project in which I need this phone to run continuously. However once the phone loses charge, Someone has to press the power button to turn it back on. I need the phone to power on without any human interaction. After looking at other forum posts, I found that I needed to modify the phones system settings. However i do not know which file in the system folder needs to be modified. The only thing that runs when the phone is off is the charging light. What file runs this charging light when the phone is off? or Is there a different file that runs when the phone is off? or Is there another way to make my phone do this? My phone is an HTC Evo 4g, It is also rooted.
Any help is appreciated

I tried to shutdown android phone from the terminal, now it is frozen, any help?

Hi,
I use Uhappy UP920, chinese phone, 6 months old,
my power button is sometimes hard to press, it is not working so good, so, I used IDE terminal in my android kitkat to shutdown my phone. I used next commands:
su # to become root
shutdown -k
I saw it is switching off, but during shutdown, phone is not totally shutdown than there is still the name of the phone on the screen and it is frozen. I can press power button how much I want, no result, I tried to press it in the same time with volume button, no result. it is not possibly to remove batter and to put it back.
so, this is not about locked pattern, about working phone so I could install app for changing power button to volume button, this is about frozen android software, I can't start it, when I use USB cable, computer doesn't recognize the phone, so, battery is not charging. I don't have ac adapter, I use USB to charge it. but battery is not totally empty, battery was 34% full when I tried to shutdown the phone.
any help?
is there any software I can start from computer and push the phone to start?
in this moment I use windows 7 but I can try Linux too, as I said, when I put USB cable in PC and my phone, nothing happens, PC doesn't recognize the phone, phone is not recognizing USB cable, batter is not charging as it does usually when I plugin the cable.
hi, I don't see option to delete thread/topic, i solved problem with pressing power button very strng on the table, it was finally shutdown and system booted again. problem solved.

Lollipop 5.1 bootloop....sort of?

Hello everyone,
I've been a reader for a while, purely out of interest. I've never really dabbled with customizing android. In that regard I am a noob... I recently acquired a Medion X6001 that I was planning to build into my car as informant/navigation. Phone root successful, developer options active, debugging and oem options active. Automate programmed to all the standards I was happy with., worked great. All that was left to do to was get the thing to boot on charge. The "fastboot oem off-mode-charge 0" command was unsuccessful so I resorted to trying to find the system file responsible for battery icon on charge with power off.
That's where I went wrong. This phone has two icons; first a battery with a bolt, then switches to another with blue fluid and battery percentage. I found the blue fluid battery icon - 'system/bin/kpoc_charger', unfortunately I needed the killswitch battery icon. So I made another guess and renamed - 'system/bin/lmkd'. This was the file directly before ...kpoc and my daft logic lead me to believe that that might have been the right file. Obviously, it wasn't.
So the problem? The phone won't boot. Not really... At first, it was entirely stuck in bootloop. So, the good sheep I am, I factory reset the phone through recovery. The phone still went into bootloop for a few minutes, but came out of it to an applet saying 'optimizing apps'. Took 10 minutes to optimize and then went through to another applet saying something along the lines of "system process not found, do you want to wait?". Behind this applet I could tantalizingly see the startup screen of a freshly reset android.... It gave the option to wait or push ok, neither of which were actually active to touch. If I held the power button it would give me the option to shutdown, reboot or screenshot, also none of which where actually active to touch.
So after more googling, I wiped the cache through recovery. Everything stayed the same; bootloops for a few minutes then applets. Only now everything is in Chinese kanji... which is why I can't reiterate verbatim what the applets originally said...
After around 12 hours of tirelessly searching the web I've tried everything I've found but every time I get through a door there's another one closed. I can't install twrp or clockwork, I can't flash the rom, the phone won't let me unlock the bootloader in fastboot. Went I type the command it asks if I want to unlock it: volume up yes, volume down no. But fails: "remote access denied"
Since the factory reset, I don't have access through adb anymore. If I let the phone boot I can see it connect to the computer, but only as mtp. The file is entirely empty. I have no access to usb debugging. And to remotely access that, I need to be able to unlock the bootloader.
I can't get around the blocks and everything that is advised to get around bootloops and flash through fastboot are seemingly impossible because I no longer have proper access. But I can't get into the phone to get access...
And to make matters worse, just now as I type this.... I can't get into fastboot anymore. I think the phone battery is dead, but apparently doesn't accept a charge. When I plug it in the battery symbol appears, the dark red led lights up indicating very low battery. Very shortly after that the led turns off, which is not how it was before I buggered everything. Battery icon stays on, but when I push the necessary buttons to get into recovery, everything goes blank and the phone does nothing. When released, battery icon comes back and red led for a few seconds. Repeat. Phone has been plugged in all night....
I'm nearly bald from pulling my hair out. I hope there's someone out there that can give me a hand. I have a hard time believing I bricked the phone just by changing a bin file name.
Thanks in advance!
fastboot
I have access to fastboot again. Plugged the phone into a different cable, is now charging. I can see the battery % through recovery.
Back in business....sort of.
Any idea's welcome.
bump
Anyone?
Well I found the ultimate cure: buy a new one.
I will however keep fumbling around with the other one and hopefully as my knowledge increases I'll have a break through.

Auto boot on charge

Hi there, I'm trying to turn my old Galaxy Ace to a standalone webcam with the battery replaced with a proper grid connected power supply.
Obviously, whenever the power goes temporarily down, the device goes into the charging status (green animation).
Instead, I would like to make it automatically boot when powered, just like windows phones used to.
Here are a few common methods which do not work in my case:
simple fastboot command from PC, since we have odin instead of fastboot;
replacement in the system/bin/lpm or playlpm file, since Samsung didn't use it then yet (there is no "lpm" service mentioned in the kernel);
modifications to the charger class launch in the kernel (within init.rc script). I fear that the cross between charging status and normal boot happens at an earlier stage in our device, am I wrong?
The closest solution to my problem was due to the CM 9.1 which happens to be the only ROM that reboots the device if you plug the charger after a manual shutdown. Unfortunately, if I suddenly power down and up the phone (it's like removing both battery and charger), I go into charging status again.
However, this ROM gives me some hope, because it means that the kernel itself can somehow play a role.
I would be glad to hear your ideas. Thank you!

Tweaks for using Android phone as a System Monitor display

I recently completed a PC build, and I've seen a trend recently of using an old android device as a system monitor inside of a pc case using this app: https://play.google.com/store/apps/details?id=com.trigonesoft.rsm
example image: https://www.pcgamesn.com/wp-content/uploads/2020/04/remote-system-monitor.jpg
However, leaving a phone inside of your pc case charging non-stop seems like a very bad idea due to heat generation, expanding battery over time etc.
I would like to know how I should approach making a couple tweaks after rooting the phone (Pixel 2 in this case).
1) Disable battery charging, allowing the phone to get power only from a connected USB cable. The desired behavior is that the battery does not charge at all and the phone only receives power from the PC. When the pc turns off, the phone should turn off/die as well.
2) Automatically open Remote System Monitor when the phone turns on without any user interaction. So when the pc is turned on, the phone boots and opens the app directly.
Are these things possible? How might I go about accomplishing this?
Thank you very much in advance.
If phone's Android is rooted then
1. Disabling charging can be done by running these ADB commands
Code:
adb shell "dumpsys battery set ac 0"
adb shell "dumpsys battery set usb 0"
adb shell "dumpsys battery set wireless 0"
2. Automatically booting when device gets powered on is also possible, but more complicated.
Look inside here:
[Q] Power on when plugged in (boot when docked)?
Appologies if this has been asked/answered here before. I tried searching, but didn't find any solution. Maybe someone else has stronger Google skills than I. Here is what I am trying to do. I'd like to find a way to have the Galaxy Tab power on...
forum.xda-developers.com

Categories

Resources