phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

Unusual battery drain on almost every GSI-based ROM #1905

Closed abdullah5490 closed 3 years ago

abdullah5490 commented 3 years ago

On my infinix note7 (MTK6768), I tried multiple GSI ROMs based on V307 and V308patches and got same problem. My battery drains so quickly even in the sleep state. If I left the device for 7-8hrs without any usage and no apps installed, it consume 20% (or more) battery. even there's no notification occur during that time. Do you have any suggestion to make this thing better? I really want to use GSI experience instead of infinix's XOS.

Haus3master commented 3 years ago

This is a common thing on mtk devices, using Lineage OS R mod gsi seems to fix the drain

phhusson commented 3 years ago

Uh, I've never heard of such an issue on all mediatek devices, and I have 30 days of battery life running my aosp floss gsi on unihertz titan. So uh, can you back your claim?

17 juin 2021 17:53:03 Haus3master @.***>:

This is a common thing on mtk devices, using Lineage OS R mod gsi seems to fix the drain

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-863358419], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OXC4F35PC6S3M5H4MLTTIK57ANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4ORONPEL3UZCWPKMKALTTIK57A5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGN243UY.gif]

Haus3master commented 3 years ago

Uh, I've never heard of such an issue on all mediatek devices, and I have 30 days of battery life running my aosp floss gsi on unihertz titan. So uh, can you back your claim? 17 juin 2021 17:53:03 Haus3master @.***>: This is a common thing on mtk devices, using Lineage OS R mod gsi seems to fix the drain — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[#1905 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OXC4F35PC6S3M5H4MLTTIK57ANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4ORONPEL3UZCWPKMKALTTIK57A5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGN243UY.gif]

I can't, that's the point, it happens randomly, or actually might be at least in my case is that my battery is 3 years old, so, yeah, and my device now has a corrupted preloader because of a power outage during so flash tool operation, so its basically dead unless I find the test ports, so, please consider my comment irrelevant as of now

abdullah5490 commented 3 years ago

Then please suggest something. My device is mtk6768. No root no custom recovery. Currently on pixel experience GSI.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pierre-Hugues HUSSON @.> Sent: Thursday, June 17, 2021 8:55:00 PM To: phhusson/treble_experimentations @.> Cc: abdullah5490 @.>; Author @.> Subject: Re: [phhusson/treble_experimentations] Unusual battery drain on almost every GSI-based ROM (#1905)

Uh, I've never heard of such an issue on all mediatek devices, and I have 30 days of battery life running my aosp floss gsi on unihertz titan. So uh, can you back your claim?

17 juin 2021 17:53:03 Haus3master @.***>:

This is a common thing on mtk devices, using Lineage OS R mod gsi seems to fix the drain

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-863358419], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OXC4F35PC6S3M5H4MLTTIK57ANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4ORONPEL3UZCWPKMKALTTIK57A5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGN243UY.gif]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-863359836, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADYWUUQGZEFCDROIHV774PDTTILFJANCNFSM463BGKQA.

phhusson commented 3 years ago

When you say "based one", does it mean that you didn't test my aosp?

17 juin 2021 09:22:25 abdullah5490 @.***>:

On my infinix note7 (MTK6768), I tried multiple GSI ROMs based on V307 and V308patches and got same problem. My battery drains so quickly even in the sleep state. If I left the device for 7-8hrs without any usage and no apps installed, it consume 20% (or more) battery. even there's no notification occur during that time. Do you have any suggestion to make this thing better? I really want to use GSI experience instead of infinix's XOS.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OUPKU76I4OPLQOTOFLTTGPDDANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OS6ZBEXBOD3QX37KSDTTGPDDA5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NYMPFGQ.gif]

abdullah5490 commented 3 years ago

The only ROM left is your aosp image. If its something different, i’ll try today.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pierre-Hugues HUSSON @.> Sent: Thursday, June 17, 2021 9:25:45 PM To: phhusson/treble_experimentations @.> Cc: abdullah5490 @.>; Author @.> Subject: Re: [phhusson/treble_experimentations] Unusual battery drain on almost every GSI-based ROM (#1905)

When you say "based one", does it mean that you didn't test my aosp?

17 juin 2021 09:22:25 abdullah5490 @.***>:

On my infinix note7 (MTK6768), I tried multiple GSI ROMs based on V307 and V308patches and got same problem. My battery drains so quickly even in the sleep state. If I left the device for 7-8hrs without any usage and no apps installed, it consume 20% (or more) battery. even there's no notification occur during that time. Do you have any suggestion to make this thing better? I really want to use GSI experience instead of infinix's XOS.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OUPKU76I4OPLQOTOFLTTGPDDANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OS6ZBEXBOD3QX37KSDTTGPDDA5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NYMPFGQ.gif]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-863383927, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADYWUUSJZCJJQ5TGEHLUFX3TTIOYTANCNFSM463BGKQA.

phhusson commented 3 years ago

Well my aosp is the only rom I make for starters. Please try with floss variant, without installing any app

17 juin 2021 18:29:45 abdullah5490 @.***>:

The only ROM left is your aosp image. If its something different, i’ll try today.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pierre-Hugues HUSSON @.> Sent: Thursday, June 17, 2021 9:25:45 PM To: phhusson/treble_experimentations @.> Cc: abdullah5490 @.>; Author @.> Subject: Re: [phhusson/treble_experimentations] Unusual battery drain on almost every GSI-based ROM (#1905)

When you say "based one", does it mean that you didn't test my aosp?

17 juin 2021 09:22:25 abdullah5490 @.***>:

On my infinix note7 (MTK6768), I tried multiple GSI ROMs based on V307 and V308patches and got same problem. My battery drains so quickly even in the sleep state. If I left the device for 7-8hrs without any usage and no apps installed, it consume 20% (or more) battery. even there's no notification occur during that time. Do you have any suggestion to make this thing better? I really want to use GSI experience instead of infinix's XOS.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OUPKU76I4OPLQOTOFLTTGPDDANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OS6ZBEXBOD3QX37KSDTTGPDDA5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NYMPFGQ.gif]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-863383927, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADYWUUSJZCJJQ5TGEHLUFX3TTIOYTANCNFSM463BGKQA.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-863386727], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OUDRKE5S76RO7OWZ33TTIPHRANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OQ5YOIBH6IIN4MZMX3TTIPHRA5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGN3DYZY.gif]

abdullah5490 commented 3 years ago

Well my aosp is the only rom I make for starters. Please try with floss variant, without installing any app.

  1. Please confirm, Are you talking about This Release?

  2. According to a comment on #1449, in "floss", there's replacement of official Gapps with open source alternatives. I need "android accessibility suite" to operate my phone independently, which is a part of Gapps. Does it included by any mean in "floss"?

  3. What's "patches.zip" -- I can't find it's details of usage. Also, I don't have custom recovery, How can I use if needed?

  4. Does the Overlay have any impact on battery drain? My MTK device don't have overlay available in the it and currently i'm on "pixel experience GSI".

phhusson commented 3 years ago
  1. Ys
  2. I don't think there is any accessibility tool in my floss variant, maybe an old talkback, but that's it. Stay on gapps variant for the moment... Though maybe I have bugs with the accessibility suite itself
  3. That's for ROM developers, not users
  4. It can have a small impact, but that would be under 10% of margin (so 2 weeks minus 10%, well that still rounds up to 2 weeks)
lbbboy commented 3 years ago

On my infinix note7 (MTK6768), I tried multiple GSI ROMs based on V307 and V308patches and got same problem. My battery drains so quickly even in the sleep state. If I left the device for 7-8hrs without any usage and no apps installed, it consume 20% (or more) battery. even there's no notification occur during that time. Do you have any suggestion to make this thing better? I really want to use GSI experience instead of infinix's XOS.

Snapdragon 430 is the same. The original mobile phone system is Android 8.0

abdullah5490 commented 3 years ago
  1. Ys
  2. I don't think there is any accessibility tool in my floss variant, maybe an old talkback, but that's it. Stay on gapps variant for the moment... Though maybe I have bugs with the accessibility suite itself
  3. That's for ROM developers, not users
  4. It can have a small impact, but that would be under 10% of margin (so 2 weeks minus 10%, well that still rounds up to 2 weeks)

ok, let me try and get back to you. Please keep this issue open so that I can deliver my feedback to you. Or, mention any other medium of discussing my experience later.

abdullah5490 commented 3 years ago

I flashed it today and started using it, got few innitials doubts:

  1. Why there are few apps not available on my device? for example, when I try to install netflix via playstore, it says "device not compatible". Is it something to do with the root? If so, any method to hide root in superSU?
  2. Why every AOSP based ROM show 3 sim slots, where my phone has only 2 without any e-sim? Its infinix note7, it's overlay are already merged in to your latest commit at This Pull Request
phhusson commented 3 years ago

For Netflix, I recommend to install it from Aurora Store For the later, I don't know.

28 juin 2021 19:52:03 abdullah5490 @.***>:

I flashed it today and started using it, got few innitials doubts:

    • Why there are few apps not available on my device? for example, when I try to install netflix via playstore, it says "device not compatible". Is it something to do with the root? If so, any method to hide root in superSU?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-869892773], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OUEFZF4KZUF7Z5IVVTTVCZEHANCNFSM463BGKQA]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OSV5PH7E2K4T3DCDADTVCZEHA5CNFSM463BGKQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGPMYFJI.gif]

abdullah5490 commented 3 years ago

@phhusson Look at the following screenshots. Battery usage still unavailable, Even the correct overlay for my device (treble-infinix-note7.apk) is loaded. What else should I do to get battery stats working? I want to track my battery usage because its still quote higher than expected, so I want to see which app is draining battery unusually. battery usage overlay

phhusson commented 3 years ago

2 days for an IPS 7" 5Ah device looks pretty reasonable to me (though ofc it can go up to 3 weeks if you do nothing with it)

Anyway for your issue, open a different github issue. My guess would be that logs will help you, and maybe the . at " 2.55. 2.11</ item>" breaks stuff

Le sam. 3 juil. 2021 à 14:02, abdullah5490 @.***> a écrit :

@phhusson https://github.com/phhusson Look at the following screenshots. Battery usage still unavailable, Even the correct overlay for my device (treble-infinix-note7.apk) is loaded. What else should I do to get battery stats working? I want to track my battery usage because its still quote higher than expected, so I want to see which app is draining battery unusually. [image: battery usage] https://user-images.githubusercontent.com/15821394/124353376-95c8e500-dc1f-11eb-9a89-ccd34d3b6b53.jpeg [image: overlay] https://user-images.githubusercontent.com/15821394/124353381-a1b4a700-dc1f-11eb-8483-56a53ab2f5ff.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1905#issuecomment-873397124, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OSFYFOUYSHFQASYXATTV335VANCNFSM463BGKQA .

markusgerber76 commented 3 years ago

frameworks-res__autogenerated.apk

Are you on a newer android than the stock (likely Yes).

I suspect autogenerated.apk as the fail point because the "frameworks"apk is listed does not mean it is running properly. Look in adb logcat (during the boot process) when the apk gets loaded. may be it throws errors or ignores. From my experience, this _autogenerated never runs properly in newer releases compared to device release. IIRC, this autogenerated are loaded from the vendor and cannot be changed.

I have a Cubot X19 (stock Android 9) and stats work OK with A9 but never with A10. Similar issue I had with Blackview phones.

Uh, I've never heard of such an issue on all mediatek devices, and I have 30 days of battery life running my aosp floss gsi on unihertz titan. So uh, can you back your claim?

Battery life is normal (a bit even better - without playservices).

abdullah5490 commented 3 years ago

@voltcraft1 thanks for details. I'm not just putting a bad claim, but i'm sharing my problem to look for any possible fix. Yes my device's stock is android10 and i'm trying to run android11 based GSI. I also submitted my logs and the treble dev says there's nothing wrong. What should I do with this framework.apk then? I built my device's overlay and placed under product/overlay and checked via adb that it is loaded. Battery life slitely improved but not very much, and battery usage stats are still not working. Additionally, i'm also facing slow mobile data speed issue in GSI ROMs as well, someone also refers that issue also to overlay even my overlay is present. Then, no one guided anywhere about a potential solution to try.

markusgerber76 commented 3 years ago

I'm not just putting a bad claim, but i'm sharing my problem to look for any possible fix.

All good. I understand the frustration.

treble dev says there's nothing wrong. What should I do with this framework.apk then?

Sadly this means, without complete source code (i.e) modifications OEMs do to frameworks_base these problems cannot be resolved.

slitely improved but not very much,

You may have some improvements by building AOSP to the version closest to your stock ROM (9). This worked better for a Cubot (as I wanted to avoid google services) still camera (was rubbish) and mobile data needed occasional restart.

At the end, in my experience A10 does use more power (due to graphics animations - my opinion) than A9.

ing slow mobile data speed issue in GSI ROM

look in adb logcat for errors/warning when this happens. Vendor RIL binary compatibility to AOSP is perhaps an issue.

Also project treble promises 100 % binary compatibility from practical point of view even A10 GSI does not work perfectly in Pixels. (I do not know why- read - https://source.android.com/setup/build/gsi#gsi-configuration-and-variances ). The binaries shipped in /vendor are not perfect upstream compatible. If they were one could flash the stock "Google or AOSP GSI" and get 100 % hardware working - no need for any patches.

In a linux world, generally you can change the UI totally (like KDE -> GNOME -> fluxbox) - but keep BASE the same. Though GSI (project treble) should do it, it does NOT.

Sorry.

abdullah5490 commented 3 years ago

@voltcraft1 actually my case is lil complicated. I want android11 because, i'm a visually impaired android user and google have introduced multi-fingers gestures support in accessibility framework in amdroie11 for the first time which greatly improved android OS accessibility for VI users. Moreover, infinix's stock interface has lots of UI related bugs which leads to usage problems for users of android accessibility service. I'm even ready to ignore the battery usage stats missing, but slow mobile data is really not possible to bare. I've also posted my logs in that data related issue at #1934 but no one commented yet.

markusgerber76 commented 3 years ago

Sadly RIL binary compatibility to AOSP cannot be resolved unless mediatek/vendor/infinix's releases a lot of information. Even then some one must read, understand and see how to patch AOSP. (Sometimes even "reasonably" open vendors like Qualcomm - for pixels - do not release all data - as they are proprietary)