|
Edited by rhen at 2016-3-20 16:59 \n\n
Hi bencebacsi!
To answer your questions:
1. battery consumption should be minimal. You won't notice any.
You can only see more battery consumption when you connect a headset but doesn't play anything on it.
Without the service, the OS turns off the sound system when there is no sound playing, but this service keeps it on.
I can post a battery stat for a day of usage in the evening if you want.
2. The app do the work in a background service which is start automatically on boot.
At first, I tried to start the service when the headphone plugged in, but I haven't found it reliable so decided to start a little service and that service listens for the headphone connection. It consumes only 4MB of RAM and doesn't affect battery since it doesn't do anything but waiting for headset connection when the headset doesn't connected.
The service is independent from the GUI. You don't have to start the GUI even once.
The GUI is just to give you the ability to turn the service off if you want and give some information.
I can make a version without a GUI if you want, but it will work the same. The only difference will be that there won't be launcher icon and the ability to turn it off.
You can copy it into system/app or priv-app folder if you want but it won't make any difference. |
|