Our product is not tablet, but STB. Its power source is AC.
So I'd like to fix the battery status.
Then I modified the BatteryService.java and set the constant value for mBatteryProps.
The display of the battery status is OK.
But when I turned on the wifi, wifi was turned off immediately.
As long as I see log, the teardown in ConnectivityService.java was called.
What should I do ?
sorry, what do you mean by fixing the battery status?, do you want to hide the icon?
Currently, when the usb cable isn't plugged to the USB OTG connector, Android shutdown.
Because the battery status becomes that the power source isn't plugged and the battery level is 0%
nevertheless the AC is plugged.
So as to avoid this, I'd like to set the related parameter to the constant value.
But when I modified the BatteryService.java and set the constant value for mBatteryProps,
the wifi was turned off immediately even if the wifi is turned on from the menu.
Does the wifi service monitor its status from another service other than battery service ?
What should I do ?