Tweaks for using Android phone as a System Monitor display - Android Q&A, Help & Troubleshooting

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

Related

[Q] Froyo, Wired Tether, Driver issue?

OS:
Win7 64bit
Phone: HTC Droid Eris
ROM: FroShedYo.V7 (reflashed (factory, dav, dav, factory, dav, dav, factory) on 12/12)
Ok, my searching of the forums hasn't turned up anything, so here we go:
I'm running FroShedYo.V7 on my Eris. I was using EasyTether, which then seemed to stop working. No idea as to why, but it would simply no longer recognize that the phone was connected. ADB didn't see it, either.
So, I uninstalled the Android Phone device, updated my Android SDK (and the USB driver), reboot the phone and PC, and started again.
I put the phone into recover and connected. Some drivers installed, I get the ADB Interface, I can do whatever I want via ADB. The Hardware IDs are this:
USB\VID_0BB4&PID_0C98&REV_0100&MI_01
USB\VID_0BB4&PID_0C98&MI_01
I decide to try the basic wired tether app in the ROM. Fire it up, Device Manager loses the Android Phone, and it re-appears under Other Devices with the Exclamation Mark indicating something is wrong. The hardware IDs are different as well, now appearing as:
USB\VID_0BB4&PID_0FFE&REV_0100
USB\VID_0BB4&PID_0FFE
I'm at a bit of a loss. Wireless tether does work, but runs very hot and is a battery drain (even when plugged in to charge over USB).
Any suggestions?
ts383 said:
OS:
Win7 64bit
Phone: HTC Droid Eris
ROM: FroShedYo.V7 (reflashed (factory, dav, dav, factory, dav, dav, factory) on 12/12)
Ok, my searching of the forums hasn't turned up anything, so here we go:
I'm running FroShedYo.V7 on my Eris. I was using EasyTether, which then seemed to stop working. No idea as to why, but it would simply no longer recognize that the phone was connected. ADB didn't see it, either.
So, I uninstalled the Android Phone device, updated my Android SDK (and the USB driver), reboot the phone and PC, and started again.
I put the phone into recover and connected. Some drivers installed, I get the ADB Interface, I can do whatever I want via ADB. The Hardware IDs are this:
USB\VID_0BB4&PID_0C98&REV_0100&MI_01
USB\VID_0BB4&PID_0C98&MI_01
I decide to try the basic wired tether app in the ROM. Fire it up, Device Manager loses the Android Phone, and it re-appears under Other Devices with the Exclamation Mark indicating something is wrong. The hardware IDs are different as well, now appearing as:
USB\VID_0BB4&PID_0FFE&REV_0100
USB\VID_0BB4&PID_0FFE
I'm at a bit of a loss. Wireless tether does work, but runs very hot and is a battery drain (even when plugged in to charge over USB).
Any suggestions?
Click to expand...
Click to collapse
Try this:
1. Disconnect the phone from the computer.
2. Go to HTC's website and find the download for the appropriate version of HTCSync for the Droid Eris.
3. Install HTCSync.
4. Connect the phone to the computer. Wait for it to install all drivers (might take a minute or two).
5. Enable wired tethering. It may install some more drivers.
Should be working from there on. I've tested this on both 32 and 64-bit Windows 7 and Vista.
FYI, Wired Tethering for root normally takes a minute or two to start working on the computer. Froyo's native USB-tethering starts working MUCH faster, pretty much immediately.
Also, when I tether in any way, I normally take my phone out of my case and remove the back, and sometimes even let a fan run blowing over it at a low speed to alleviate the heat.
At times I've experienced that the battery drains faster than it charges. Not all the time, but you're not alone.

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!

Note 8 screen black, short vibration pulse, help?

Ive got a note 8 that just died on me today. The screen remains blank no matter what I do. When I plug into any charger, it sends out random short vibrations usually every few seconds. Ive tried rebooting, force rebooting, recovery booting, nothing lights up the screen. No combination of volume and power keys accomplish anything. The battery had around 40% when it went out. Please help me recover this thing! Ive replaced the battery and LCD on it once. I really don't want to just throw random parts at it hoping for a fix. Yes Ive checked every connection to be secure. I am thoroughly stumped.
Skytex said:
Ive got a note 8 that just died on me today. The screen remains blank no matter what I do. When I plug into any charger, it sends out random short vibrations usually every few seconds. Ive tried rebooting, force rebooting, recovery booting, nothing lights up the screen. No combination of volume and power keys accomplish anything. The battery had around 40% when it went out. Please help me recover this thing! Ive replaced the battery and LCD on it once. I really don't want to just throw random parts at it hoping for a fix. Yes Ive checked every connection to be secure. I am thoroughly stumped.
Click to expand...
Click to collapse
Connect the phone to the PC and then open a command prompt window where you installed ADB and run adb in the command prompt window and when it opens then type adb shell reboot recovery and see if it reboots to recovery mode but it requires that you have USB debugging enabled in developer options and if it's not enabled then there's nothing else you can do.
Its totally stock. Never installed adb on this phone
Skytex said:
Its totally stock. Never installed adb on this phone
Click to expand...
Click to collapse
Adb is "installed" on your computer, not phone. Adb/fastboot commands are delivered to the device.
https://developer.android.com/studio/releases/platform-tools

Categories

Resources