Is this possible to disable usb charging through xposed? - Android Q&A, Help & Troubleshooting

Hello. I'm unfamiliar with xposed framework. I came here just to ask, is this possible to develop an xposed module to do that (stop usb charging while device is on MTP or Digital Camera mode)? If yes, somebody please take my suggestion and do it. Thanks.

@HellScre4m
I just released an app to disable usb charging in Android phone. Dunno it works for you or not.
https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
It needs root access.

orangpelupa said:
@HellScre4m
I just released an app to disable usb charging in Android phone. Dunno it works for you or not.
https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
It needs root access.
Click to expand...
Click to collapse
Thanks dude. I'm just going to test. I will reply here about the results.
________________________
Didn't work on my Samsung Galaxy Grand Prime running Lollipop 5.1.1

Related

[Q] AmatROM USB Charging

Hello,
I have installed the AmatROM for Galaxy Tab 3 and I am still not getting USB charging. I would post in the ROM forum, but I do not have permissions yet.
kd7eir said:
Hello,
I have installed the AmatROM for Galaxy Tab 3 and I am still not getting USB charging. I would post in the ROM forum, but I do not have permissions yet.
Click to expand...
Click to collapse
Hey,
You could simply send me a PM about this ! :laugh:
Response to your notice:
The USB Charging is NOT normally implemented by the ROM itself
It's implemented by the Kernel and BinDroid Kernel have this feature.
Properly check your USB Cable and please, DON'T USE THE DEVICE WHILE IT'S CHARGING through the USB.
You can use Galaxy Current Charging (search in PlayStore) to check if it's charging or not.
Sent from my room mate's computer
Nonta72 said:
Hey,
You could simply send me a PM about this ! :laugh:
Response to your notice:
The USB Charging is NOT normally implemented by the ROM itself
It's implemented by the Kernel and BinDroid Kernel have this feature.
Properly check your USB Cable and please, DON'T USE THE DEVICE WHILE IT'S CHARGING through the USB.
You can use Galaxy Current Charging (search in PlayStore) to check if it's charging or not.
Sent from my room mate's computer
Click to expand...
Click to collapse
Thank you for the information. I reinstalled and it's charging via USB now.
kd7eir said:
Thank you for the information. I reinstalled and it's charging via USB now.
Click to expand...
Click to collapse
Good to hear
Hope u are enjoying the ROM
Sent from my room mate's computer

[Q] how to pair an xbox controller with my smartphone

i bought a wired xbox360 controller and i wanted to pair it with my phone, a samsung galaxy s3 (GT-I9300), and on it i have android 4.3...
when i connect the pad with the otg cable, it lights up in the centre, but the smartphone desn't recognized it, like if it isn't connected. i tried to use the "usb/tb joystick" app, and also the "tincore keymapper" app, but my device doesn't recognized the pad... how can i pair it with my smartphone?
ps. i have a rooted device if it can help
pps. soory for my bad english, but it isn't my first language
danai97 said:
i bought a wired xbox360 controller and i wanted to pair it with my phone, a samsung galaxy s3 (GT-I9300), and on it i have android 4.3...
when i connect the pad with the otg cable, it lights up in the centre, but the smartphone desn't recognized it, like if it isn't connected. i tried to use the "usb/tb joystick" app, and also the "tincore keymapper" app, but my device doesn't recognized the pad... how can i pair it with my smartphone?
ps. i have a rooted device if it can help
pps. soory for my bad english, but it isn't my first language
Click to expand...
Click to collapse
You must find kernel compatible with controler and enable it
Custom kernel requieres root and custom recovery.
verny94 said:
You must find kernel compatible with controler and enable it
Custom kernel requieres root and custom recovery.
Click to expand...
Click to collapse
which kernel is compatible with touchwiz 4.3 (and cm11 m8) and the controller?
ps. sorry but i dind't see your answer XD
danai97 said:
which kernel is compatible with touchwiz 4.3 (and cm11 m8) and the controller?
Click to expand...
Click to collapse
Uhm... CM11 don´t know, because I don´t use it.
TW 4.3 means stock ROM? Its Boeffla kernel.
verny94 said:
Uhm... CM11 don´t know, because I don´t use it.
TW 4.3 means stock ROM? Its Boeffla kernel.
Click to expand...
Click to collapse
What's the difference from this kernel and the stock one?
And yes tw 4.3 was for the stock rom XD

[Q] moto e support otg?

hi, i have a question, our smartphone support otg? i read a thread but i dont see the link, can u help me?
OTG Support - Moto E
OTG support was available for version 4.4.2 and after upgrading to 4.4.4 it stopped working. Now we get only 4.4.4 version pre-installed. Is there a way to downgrade to version 4.4.2?
naveenultimategamer said:
absolutely no and never...
Sent from my XT1022 using XDA Free mobile app
Click to expand...
Click to collapse
Dinesh Merrill said:
OTG support was available for version 4.4.2 and after upgrading to 4.4.4 it stopped working. Now we get only 4.4.4 version pre-installed. Is there a way to downgrade to version 4.4.2?
Click to expand...
Click to collapse
Moto E does not support OTG, it never did, it's both hardware and software limitation.
Is there a way to downgrade to version 4.4.2?
Dinesh Merrill said:
OTG support was available for version 4.4.2 and after upgrading to 4.4.4 it stopped working. Now we get only 4.4.4 version pre-installed. Is there a way to downgrade to version 4.4.2?
Click to expand...
Click to collapse
Is there a way to downgrade to version 4.4.2?
Yes flash 4.4.2 stock firmware without flashing gpt.bin file.
Yes, you can unlock Qualcomm settings.
Step 1 - install a custom android launcher, such as nova or apex.
Step 2 - long press on the home screen and popup appears, and click on add shortcuts. Shortcuts>activities>com.Qualcomm.settings>Qualcomm settings.
Whenever you connect your otg go to Qualcomm settings and click on enable otg or otg mode peripheral, and also switch on mass storage mode.
KabirUnreal said:
Yes, you can unlock Qualcomm settings.
Step 1 - install a custom android launcher, such as nova or apex.
Step 2 - long press on the home screen and popup appears, and click on add shortcuts. Shortcuts>activities>com.Qualcomm.settings>Qualcomm settings.
Whenever you connect your otg go to Qualcomm settings and click on enable otg or otg mode peripheral, and also switch on mass storage mode.
Click to expand...
Click to collapse
so is it working for u to have otg on moto e on lollipop?
Doesn't work in lollipop, but it did in KitKat.
KabirUnreal said:
Doesn't work in lollipop, but it did in KitKat.
Click to expand...
Click to collapse
[email protected]!!!!!
otg was working on kitkat?!!on moto e?
have you tested ?and on lollipop try fat32
Yes, you need to follow the instructions above and need ES File Explorer from, the play store.
Guys plz whoes on stock rom pls try if u can use otg in motoe using above method... It will help devs to implement this feature into custom roms.......
---------- Post added 25-02-2015 at 12:22 AM ---------- Previous post was 24-02-2015 at 11:25 PM ----------
Well i flashed stock rom just to cross-check if above methid will work,
Well bad news is that i tried all method in stock 4.4.4 rom and didn't nt conected my pen drive.... Not tested on soak test rom and stock 4.4.2 so anyone have 4.4.2 rom then check if it works...........
Adarsh1998 said:
Guys plz whoes on stock rom pls try if u can use otg in motoe using above method... It will help devs to implement this feature into custom roms.......
---------- Post added 25-02-2015 at 12:22 AM ---------- Previous post was 24-02-2015 at 11:25 PM ----------
Well i flashed stock rom just to cross-check if above methid will work,
Well bad news is that i tried all method in stock 4.4.4 rom and didn't nt conected my pen drive.... Not tested on soak test rom and stock 4.4.2 so anyone have 4.4.2 rom then check if it works...........
Click to expand...
Click to collapse
CONFIRMED!
OTG works on stock 4.4.2 using external powered usb hub, there is no mouse/keyboard detection but sucefully load my usb flash drive using the "Nexus Media Importer" app from playstore.
This means, Moto E has USB Host Support from hardware! The only limitation is in newest softwares/kernels!
SrDesalmado said:
CONFIRMED!
OTG works on stock 4.4.2 using external powered usb hub, there is no mouse/keyboard detection but sucefully load my usb flash drive using the "Nexus Media Importer" app from playstore.
This means, Moto E has USB Host Support from hardware! The only limitation is in newest softwares/kernels!
Click to expand...
Click to collapse
Seriously? I still doubt about it. Sorry but could you give me ss/ photo please?
SrDesalmado said:
CONFIRMED!
OTG works on stock 4.4.2 using external powered usb hub, there is no mouse/keyboard detection but sucefully load my usb flash drive using the "Nexus Media Importer" app from playstore.
This means, Moto E has USB Host Support from hardware! The only limitation is in newest softwares/kernels!
Click to expand...
Click to collapse
Not sure with external power supply normally any android device will Mont. .. We need to mount without ext powered usb hub... Like in moto g and x.....
Correct me if i Wrong
wLoader said:
Seriously? I still doubt about it. Sorry but could you give me ss/ photo please?
Click to expand...
Click to collapse
Adarsh1998 said:
Not sure with external power supply normally any android device will Mont. .. We need to mount without ext powered usb hub... Like in moto g and x.....
Correct me if i Wrong
Click to expand...
Click to collapse
Some Android device does not support any type of usb connections, like most of LG phones, these devices haven't otg drivers, XML permissions, mount partitions and kernell support, but in hardware i think the only limitation is the 5V power supply, and yes, you're right, mounting usb sticks through ext powered usb hub isn't otg support like moto g and x, is only a simple USB Host support
SrDesalmado said:
Some Android device does not support any type of usb connections, like most of LG phones, these devices haven't otg drivers, XML permissions, mount partitions and kernell support, but in hardware i think the only limitation is the 5V power supply, and yes, you're right, mounting usb sticks through ext powered usb hub isn't otg support like moto g and x, is only a simple USB Host support
Click to expand...
Click to collapse
is that moto e?in ss
-Adarsh- said:
is that moto e?in ss
Click to expand...
Click to collapse
Yeap
SrDesalmado said:
Yeap
Click to expand...
Click to collapse
Can u explain how you did it?and is that thing working on lollipop?
-Adarsh- said:
Can u explain how you did it?and is that thing working on lollipop?
Click to expand...
Click to collapse
@-Adarsh- Normally any android phones can mount usb with external powerd usb hub....
Srch in youtube like 'usb hub android' watch first vedio....
-Adarsh- said:
Can u explain how you did it?and is that thing working on lollipop?
Click to expand...
Click to collapse
I used a external powered usb hub and a simple otg cable, this method is working only on 4.4.2 stock firmware, don't ask me why, in lollipop it don't seems to work, but probally using a custom kernel is possible put usb host to work, let's wait for a developer to do that in future

M4 OTG(through powered otg)?

Has anyone tried whether otg works after using a powered otg cable?
Just like it worked on Xperia L .
Thanks if anyone can reply.
:good::good::good:
I mean it is need kernel and software support or anything else? On my old ace 3 it worked from cm11 to 12.1 well
FirstMn said:
I mean it is need kernel and software support or anything else? On my old ace 3 it worked from cm11 to 12.1 well
Click to expand...
Click to collapse
well it works well for the xperia L stock rom no need of cm.
http://forum.xda-developers.com/xperia-l/general/guide-usb-otg-support-sony-xperia-l-t2427150
and for nexus 4
http://forum.xda-developers.com/nexus-4/orig-development/usb-otg-externally-powered-usb-otg-t2181820
and some other devices got otg using this method as well.
I don't know whether this will work for lollipop.
we should be able to get otg to m4 through this or similar method.but actually nobody seems to be interested.
I dont have a powered otg cable or usb hub to test it.
If anyone can test it please let me know.
thanks
why is nobody interested?
Its a software bug with M4, other phones work without having external power.
boylush said:
Its a software bug with M4, other phones work without having external power.
Click to expand...
Click to collapse
If it is a software issue, we should be able to make it.
but i think the cpu and hardware supports usbhost but sony haven't made it possible to power a device externally.
and files such as Android.hardware.usb.host is missing on the m4.
check usb host checker.
if we can add these required files and power the device externally. otg should work just like xperia L.
:fingers-crossed::fingers-crossed::fingers-crossed::fingers-crossed:
dushandiaz said:
If it is a software issue, we should be able to make it.
but i think the cpu and hardware supports usbhost but sony haven't made it possible to power a device externally.
and files such as Android.hardware.usb.host is missing on the m4.
check usb host checker.
if we can add these required files and power the device externally. otg should work just like xperia L.
:fingers-crossed::fingers-crossed::fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
Should be a mapping issue

[APP][Root] OTG Enabler

A few days ago xda user yk1999 wrote the amazing tutorial, how to enable otg without power supply in our device. Thanks to him for it.
I decided that this method can be a bit complicated for users, so I made a small app to simplify otg enabling, no more need to use terminal.
This app requires root.
XDA:DevDB Information
OTG Enabler, Device Specific App for the Samsung Galaxy S3 Neo
Contributors
nikita36078, yk1999
Source Code: https://github.com/nikita36078/OTG-Enabler
Version Information
Status: No Longer Updated
Current Stable Version: 1.1
Stable Release Date: 2016-07-23
Created 2017-01-20
Last Updated 2018-04-15
Great job! now its really easy
Will this work for galaxy grand 2 or only for s3 neo?
apute said:
Will this work for galaxy grand 2 or only for s3 neo?
Click to expand...
Click to collapse
I don't know, you can try it
Not Working im stock 4.4.2 and root, device: GT-i9301i
triplex92 said:
Not Working im stock 4.4.2 and root, device: GT-i9301i
Click to expand...
Click to collapse
Are you sure that you follow instruction?
Then check in root explorer, do you have this file /sys/kernel/debug/regulator/8226_smbbp_otg/enable?
triplex92 said:
Not Working im stock 4.4.2 and root, device: GT-i9301i
Click to expand...
Click to collapse
Im on 4.4.2 Stock Rom too, rooted, and it worked like a charm
Good Job Bro.....It,s working fine...Excuse for my English
nikita36078 said:
A few days ago xda user yk1999 wrote the amazing tutorial, how to enable otg without power supply in our device. Thanks to him for it.
I decided that this method can be a bit complicated for users, so I made a small app to simplify otg enabling, no more need to use terminal.
Of course, app requires root.
Click to expand...
Click to collapse
Not working in mine. Please help
I tried the app, it worked perfectly,
except that when I was done of course I deactivated the function from the app it self
but, my phone didn't charge via it's usb port, even that i disabled it (coz i know u indicated that i should disable it otherwise it wont charge) and I had to restart the phone completely to get it to charge again.
PS : I'm on stock using the latest PHN 4.4.2 ROM Rooted, and have TWRP installed
nikita36078 said:
A few days ago xda user yk1999 wrote the amazing tutorial, how to enable otg without power supply in our device. Thanks to him for it.
I decided that this method can be a bit complicated for users, so I made a small app to simplify otg enabling, no more need to use terminal.
Of course, app requires root.
Click to expand...
Click to collapse
hi im in cm12.1
its worked but my flash memory just got power i dont had my files in memory!
please help me
Working fantastically on my S3 Neo GT-I9301I. No problem at all.
m.h.k.jahromi said:
hi im in cm12.1
its worked but my flash memory just got power i dont had my files in memory!
please help me
Click to expand...
Click to collapse
It seems that not all the types of flash memory works properly.
nikita36078 said:
It seems that not all the types of flash memory works properly.
Click to expand...
Click to collapse
But i try philips,hp,sony,kingmax flash memorys
and two keyboards
And all of them are just got power from my phone
and i dont had access to my files in my flash memorys.
Do you had access to your files?
m.h.k.jahromi said:
But i try philips,hp,sony,kingmax flash memorys
and two keyboards
And all of them are just got power from my phone
and i dont had access to my files in my flash memorys.
Do you had access to your files?
Click to expand...
Click to collapse
Yes, I tested it with AData and Emtec USB-flash. I'm on CM12.1 from nikolaa.
I tested with usb flash drive,external hard drive,zaza remote,mouse,keyboard and joystick and it is working good.
@Pavlex4 , pls stop spamming in all threads your problem, ok?
igor40151 said:
@Pavlex4 , pls stop spamming in all threads your problem, ok?
Click to expand...
Click to collapse
Yes.
Thank you so much @nikita36078
Sent from my SM-G935F using XDA-Developers mobile app
Pro Cal said:
I tried the app, it worked perfectly,
except that when I was done of course I deactivated the function from the app it self
but, my phone didn't charge via it's usb port, even that i disabled it (coz i know u indicated that i should disable it otherwise it wont charge) and I had to restart the phone completely to get it to charge again.
PS : I'm on stock using the latest PHN 4.4.2 ROM Rooted, and have TWRP installed
Click to expand...
Click to collapse
All works perfect, but only problem with turn off and charging not work. Need is restart phone to charge. Fix this bug. My nik60 rom 5.1.1.

Categories

Resources