[SABER-SD/Android] I'd like to fix the battery status.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[SABER-SD/Android] I'd like to fix the battery status.

577 Views
norisugi
Contributor II

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 ?

Labels (2)
0 Kudos
2 Replies

427 Views
SergioSolis
NXP Employee
NXP Employee

sorry, what do you mean by fixing the battery status?, do you want to hide the icon?

0 Kudos

427 Views
norisugi
Contributor II

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 ?

0 Kudos