Introduction
Hello,
I've made a simple app to disable USB charging so you can keep plugging your phone to PC without charging to 100%. Personally i use it when I'm connected my phone for development (ADB over USB).
But i need your help. I wan't to make it compatible with more android devices, currently its just some LG, Xperia, and Xiaomi phones.
Right now, I need your help to increase its compatibility to Samsung Galaxy S7.
Images
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How you can help me?
If you have file manager access:
Go to /sys/class/power_supply (or something similar sounding).
Look for USB or Battery or similar sounding folder.
Enter those folders, and reply the screenshot of the files to this topic.
If you able to use Terminal:
type ls /sys/class/power_supply/
then, screenshot it (or copy paste it) and reply it here
type ls /sys/class/power_supply/battery (or other similar sounding folder you saw on /power_supply/)
then, screenshot it (or copy paste it) and reply it here
Thank you!
Features
Disable usb charging
Enable usb charging
Downloads
on play store (need root access)
https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
XDA:DevDB Information
Disable USB Charging, Tool/Utility for all devices (see above for details)
Contributors
orangpelupa
Version Information
Status: Alpha
Created 2016-06-28
Last Updated 2016-06-28
Hope this helps you. S7 Edge
Gesendet von meinem SM-G935F mit Tapatalk
Is there a similar way to enable otg and charge at the same time with this mod?
Wow this is really smart in its own way... very useful if you don't want to drain your computers power (at one point I was stuck using an old dell inspiron 5400 that I found on the side of the road one day and I had to make a split power and data USB cable because the computer would actually lose processing power and overall pcu power when any phones or anything were plugged in because the USB Jacks were practically fried)
Sent from my SM-G530T using Tapatalk
---------- Post added at 08:43 AM ---------- Previous post was at 08:39 AM ----------
nokian95ita said:
Is there a similar way to enable otg and charge at the same time with this mod?
Click to expand...
Click to collapse
This is nearly impossible. Chip that enables USB otg allows the phone to power the device therefore it would require the entire phone to be modified not to provide power to the USB OTG cord and you would need to make a cord that would charge the device and whatever is on the USB OTG (recommend two separate charge lines instead of just wiring power lines to both)
Pretty much would have to redesign the charger chip in the phone for this to be allowed...
Sent from my SM-G530T using Tapatalk
I swear i have thinked about apps like this,cool work.
You definitely did a good job figuring out how to get this to work... If I was willing to root my only phone I would install this app first
Sent from my SM-G530T using Tapatalk
In BATTERY folder there is a folders named Device, Power and Subsystem.
Do you need this folders?
Is this app still available?
Related
hello Xoom owners,
Xoom uses USB OTG but I'm curious what capabilities does it really has.
What's more - Android 3.1 supports it's host mode.
Have anyone tried to plug a USB audio DAC/AMP/ external audio devices to your Xoom?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PS. this USB DAC has internal battery and doesn't need power supply from tablet/PC
Did you have any issues using the Fiio DAC/Amp with the Xoom?
Thanks
Demiourgos said:
hello Xoom owners,
Xoom uses USB OTG but I'm curious what capabilities does it really has.
What's more - Android 3.1 supports it's host mode.
Have anyone tried to plug a USB audio DAC/AMP/ external audio devices to your Xoom?
PS. this USB DAC has internal battery and doesn't need power supply from tablet/PC
Click to expand...
Click to collapse
I tried plugging in the Korg nanoPAD and Serato. Both devices powered up but that was about it. I'm not rooted so I can't easily debug to see if the OS recognizes them even. Would be awesome if Google could give HC some DAW/Midi love, and of course some quality apps would need to follow (sigh)
I am not terribly familiar with either device. Looked up the nanoPAD and it looks like it requires a midi over USB driver to be installed, so it wouldn't have native USB Audio support like say a DAC would.
Still haven't been able to get a definite word on whether or not a DAC would work.
Thanks for the report on these peripherals, interesting to see people pushing the limits.
host mode doesn't mean that any usb device will work. Currently the only devices with built in drivers are keyboards, mice, and mass storage. Anything else requires a driver.
Sorry to dig up this thread but has anyone found a USB audio class driver for the Xoom? It appears the Xoom must have one lying around somewhere as the dock uses USB only for connection, right?
Bumping this;
http://forum.cyanogenmod.com/topic/55393-usb-audio-and-digital-out/
It seems like the xoom needs a driver with usbaudio, then something to switch the output.
USB host mode for our device?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nope. But I have an extremely crappy USB to Micro USB.
Sent from my myTouch_4G_Slide using xda app-developers app
AgentCherryColla said:
Nope. But I have an extremely crappy USB to Micro USB.
Sent from my myTouch_4G_Slide using xda app-developers app
Click to expand...
Click to collapse
wass dat [email protected] :good:
Some_dude36 said:
wass dat [email protected] :good:
Click to expand...
Click to collapse
Probably USB on the go(OTG).
AgentCherryColla said:
Nope. But I have an extremely crappy USB to Micro USB.
Sent from my myTouch_4G_Slide using xda app-developers app
Click to expand...
Click to collapse
Riyal said:
Probably USB on the go(OTG).
Click to expand...
Click to collapse
I just looked up usb on the go and it sounds like this *is* ubs host no? if not whats the difference
Some_dude36 said:
I just looked up usb on the go and it sounds like this *is* ubs host no? if not whats the difference
Click to expand...
Click to collapse
USB host mode allows you to connect various USB devices (external hard drives, digital cameras, card readers, input devices, etc.) to your device just like a regular computer. There are, however, a few limitations. The device must draw under 100mA (this can be bypassed by using a powered hub), and you will need a hardware adaptor to plug a fullsize USB cable into the tablet's undersized one.
USB OTG can be switched between client- (where you plug the tablet into a computer—for flashing and mounting cards on the computer), and host- (where the tablet acts like a computer) mode with the correct hardware adaptor.
Basically "almost" the same.
USB OTG = parrallel connection
Host Mode = one way connection
Good Riyal - but left out the most important reason why host mode is dangerous, moreso for our device then most others.
Hosting dictates who supplies power - and power regulation has ever been a thorn in pwoples sides who choose to hack the device at that level. The doubleshot has no hardware charging circuit, so there is a very real risk in frying the device with this kind of stuff.
Not an issue for flash drives and such - but plugging two doubleshots into each other could have some disasterous results with improper power regulation.
Part of the USB standard involves power supply, and this is I think the kink for people who actually have time to look into this.
Hi. Is there any tweak or hack that will enable me to use my tab as a powerbank by using otg cable and usb cable. it is clearly that the power can come out from the usb port because it can power up a pendrive or for some tablet a hard disk. So it sound like possible to enable a tablet to become a powerbank.
Furthermore, is there any tweak that will enable me to transfer data from a tablet to a phone or vice versa by using otg cable and usb cable.
Thanks everyone.
asking response
anyone? or im just the one who in need of this...
androidaman said:
Hi. Is there any tweak or hack that will enable me to use my tab as a powerbank by using otg cable and usb cable. it is clearly that the power can come out from the usb port because it can power up a pendrive or for some tablet a hard disk. So it sound like possible to enable a tablet to become a powerbank.
Furthermore, is there any tweak that will enable me to transfer data from a tablet to a phone or vice versa by using otg cable and usb cable.
Thanks everyone.
Click to expand...
Click to collapse
Nope. There ain't no way you can use your phone as power bank meanwhile you can use its battery if you can remove that to get some power in your phone.. That works nice.
Why do you need to transfer data from tablet to phone using otg when you've got superbeam by the side.
Download and install suoerbeam you'll be addicted....
meakshay_mishra said:
Nope. There ain't no way you can use your phone as power bank meanwhile you can use its battery if you can remove that to get some power in your phone.. That works nice.
Why do you need to transfer data from tablet to phone using otg when you've got superbeam by the side.
Download and install suoerbeam you'll be addicted....
Click to expand...
Click to collapse
ooo. thanks for the superbeam suggestion. but why we cannot make our tablet as a powerbank? is it kernel related?
Power Bank Charger
I Think This Power Bank is better . because Have Reddot Design Award.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://lordia.ir/شارژر-همراه-موبایل-و-تبلت-power-bank/
I have a Samsung (6) running Android 7 which I am using for USB-tethering (on a Raspberry Pi 4).
For (to me) unknown reasons the USB-tethering is occasionally switched off (=not only at re-boot of the device).
I was thinking that it would be great if I could create some sort of little process which makes sure to switch on USB-tethering every 30 seconds or so.
I have done some google script programming, but have no idea how to approach this issue on an Android device.
Any sort of suggestions if this is doable and how I could/should start would be most appreciated, but please remember I am a beginner and I do not intend to become an Android programmer.
Also: the device is not rooted (whatever that means).
Thank you.
mortpiedra said:
I have a Samsung (6) running Android 7 which I am using for USB-tethering (on a Raspberry Pi 4).
For (to me) unknown reasons the USB-tethering is occasionally switched off (=not only at re-boot of the device).
I was thinking that it would be great if I could create some sort of little process which makes sure to switch on USB-tethering every 30 seconds or so.
I have done some google script programming, but have no idea how to approach this issue on an Android device.
Any sort of suggestions if this is doable and how I could/should start would be most appreciated, but please remember I am a beginner and I do not intend to become an Android programmer.
Also: the device is not rooted (whatever that means).
Thank you.
Click to expand...
Click to collapse
You can always use an app like Automate, it's very easy to understand and use. One thing to keep in mind, USB tethering access is intentionally restricted (for security reasons) from Android 7.0 upwards for external apps. Most apps require you to manually go to settings and turn it on.
Luckily some android skins (like Samsung's OneUI or other OEMs) still allow access, you will need to try it out for yourself. Here is how your "script" or whatever you call it should look like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hope I helped
Make sure your USB cable is connected properly at both ends. If needed, unplug and plug it in again. Trying another USB cable is also a good idea if you have one to hand.
If you're plugged into a USB 2.0 port, try a USB 3.0, or USB 3.1. Alternatively, just try a different one. You never know if the USB port is faulty.
Rebooting your PC or laptop and restarting your phone might not be the solution to everything, but it's surprising how often it can fix something. Try it out, in this case, to see if your Windows tethering problem is fixed.
Solved by rooting the device and then using MacroDroid
So I need help / suggestion if there is some android tablet model which works for sure for that "auto power on" feature when charger is plugged.
Preferrably not 500€ top end model and usb-c charging port would be nice.
The tablet is coming to a car as a navigator / media use / obd measuring etc.
So it would be nice if I can make the tablet power on when I turn on the car..... and vice versa, power off when I turn off the car.
I have tried to do that in two different tablets without success.... tablets were Samsung Galaxy Tab A7 Lite and Lenovo Tab M10 HD 2. gen
Tried to find some info or help with those tabs, but didn´t manage to get those work.... maybe it is not possible or most obvious reason... I can´t / don´t know how to do it.
That power off feature I managed to do... but not the power on part.
So if anybody now some tab model which can be modded or make to work in that use, I would be very pleased.
Thanks in advance!!
I highly doubt you can do this.
jwoegerbauer said:
I highly doubt you can do this.
Click to expand...
Click to collapse
Oh I see
How about those "fastboot oem off-mode-charge 0" and same kind of commands...?
I think those work in some devices....
Fastboot commands doesn´t work in Samsung so that disables my Tab A7 Lite from that option...
And there is some "instructions" how to modify charging / boot files on rooted devices.... for example:
If you are root, you can edit this file to:
#!/system/bin/sh
/system/bin/reboot
And be sure to add those permissions to the file:
chmod 0755 /system/bin/playlpm
chown root.shell /system/bin/playlpm
Your device will now boot when plugged
But at least I can´t get that work either.... I didn´t manage to modify / edit those necessary files in tab´s root directory...
It should be obvious that an Android device must already be powered for it to work, means process commands.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sure... but I think iPhones do that.... and also OnePlus phone...quote from oneplus community "when you plug in the charger to charge and the phone is turned off, the phone will automatically switch on if the phone's power satisfies the power-on parameters (the power is higher than 2 percent )."
My last 2 cents here:
To measure the charge level of a battery, specific software must be running. Each software is executed by the CPU - the brain behind the total system, all the works are processed and executed by it. Every CPU needs power to work - what only is given when device is truly powered on.
Means: A device that "turns on" when the charger is connected is never really off, but is in a "snooze state" - will say that Android is temporarily stopped, thus not accible at all.
Have a nice day.