phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.36k stars 658 forks source link

No battery usage info need create overlay (ZTE Visible R2 Z5151V) #927

Open winger2009 opened 4 years ago

winger2009 commented 4 years ago

Everything works using the pie gsi on ZTE Visible R2 (model Z5151V) except for no battery usage information. The ZTE visible R2 was released with Oreo 8.1 and is treble compatible (ARM 64 A only) The XDA thread says we need to create an overlay in system/vendor by submitting a new issue with the stock farmworkers.apk. framework-res.zip

I checked the GSI overlay tutorial but couldn't build it myself without a Linux machine.

phhusson commented 4 years ago

I also need /vendor/build.prop

phhusson commented 4 years ago

t.zip

Copy the attached test-zte-visible-r2-signed.apk to /system/overlay, and reboot.

This should fix battery usage & auto brightness. Please report back as to whether it worked.

winger2009 commented 4 years ago

I also need /vendor/build.prop Here you go: build.prop.txt

I copied your apk to /system/overlay and set permission to 0644, then rebooted. Currently it still says "battery data isn't available". I will wait some time and see if the battery data would be available.

Edit: now I can see screen on time usage in battery usage.

Edit 2: I can see battery usage now. There is still one small bug: the "Last full charge" is always showing the gsi build date after a reboot. Now the "Last full charge" is showing 9 days ago, which is the build date of v121, even if I just fully charged it today. Anyway to fix this? Thx.