battery - Charging an Android Device -


is there possibility change battery level programmatically, mean charge programatically myself or system call(android sees power device connected , charges)?

i have following use case:

there 1 output(micro usb) connected usb hub possibility connect many usb devices, 1 of devices should power device.

i can see programmatically devices connected phone, cant realize @ moment how can programmatically android: please charge usb device.

is system call , require source code of android os modified in right way? have downloaded source code https://source.android.com/ , run make on these code, can't eclipse - exceptions raised due lack of resources :-)

is possible remove android os device , modified version own on it?

thank advices

usb devices draw power usb host. when connect peripherals phone acts usb host. in case peripheral device draws power phone , not other way.

i don't think usb host can draw power device.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -