[Overlay] Dil3mm4's Overlays for Bond Series devices (all variants)

Dil3mm4

Senior Member
Mar 22, 2018
355
2,124
113
This overlay APK it's "born" because of the necessity to overcome missing overlays (thanks Huawei, love ya xoxo) under /vendor/overlay .

What it does exactly?

Nothing more than adding AOSP overlay matching our device capabilities and also, inherits Bond power profile.

Do I need it?

Yes.
It will fix Battery stats problems and add compatible features for your BND over GSI.
This will conisderably enhance your experience on every GSI ROM giving better functionality overall.

Why you did that?

Because I'm sick of inheriting stuff that belongs to /vendor, in system.
Project Treble it's all about separating vendor implementation from system.
So why we should keep adding OEM stuff in that doesn't belong no more in /system

I have XYZ device with ZYX firmware can I use it?

As long as you're on a BND-*** device (with a non-EMUI firmware), you're good to go.
Otherwise DO NOT USE IT FOR THE LOVE OF MANKIND.

I don't have BND, but I want it on my Huawei device ! :( :(

Well, that's fine, join the Telegram group @GSI_HI6250, so that you could help me with stock files grabbing to make an overlay for your device. :)

Overlay configs (aka "what does dis do, ser tell pl0x"):

  • Allows all rotations;
  • Configs autobrightness levels;
  • Configs autobrightness Lcd values;
  • Configs BLE;
  • Sets Doze Component;
  • Sets Doze After screen off;
  • Configs autopowermodes (doze related);
  • Configs power management on:
    screen off due to proximity sensor interaction;
    decouple on suspend state;​
  • Configs brightness doze value;
  • Configs Intrusive led;
  • Configs dual band wifi support (where available);
  • Configs hotswap (where available);
  • Configs Color Transform on HWC;
  • Configs VoLTE available (even tho it needs support on GSI side);
  • Configs WFC over IMS;
  • Configs wifi background scanning support.

Installation Instructions
  1. Download the overlay
  2. With root, push the overlay to /vendor/overlay. Create the folder if it doesn't exist.
  3. Run the following command in a rooted terminal or ADB shell:
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/dil3mm4-overlay-BND.apk


XDA:DevDB Information
[Overlay] Dil3mm4's Overlays for Bond Series devices (all variants), Device Specific App for the Honor 7X

Contributors
Dil3mm4

Version Information
Status: Stable

Created 2018-07-12
Last Updated 2018-07-12
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
Does overlay link all hardware. Like camera and fingerprint, or just ambient light, and power profile?


EDIT:

self answered. It will not
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
This is what overlay is for.


Alllows all rotations.
Configs autobrightness levels
Configs autobrightness Lcd values
Configs BLE
Sets Doze Component
Sets Doze After screenoff
Configs autopowermodes (doze related)
Configs power management on:
screen off due to proximity sensor interaction;
decouple on suspend state;
Configs brightness doze
Configs Intrusive led
Configs dual band wifi support (where available)
Configs hotswap (where available)
Configs Colotransform on HWC
Configs VoLTE available (even tho it needs support on GSI side)
Configs WFC over IMS.
Configs wifi background scanner support
 

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
TWRP install-able overlay AKP

This zip is the same APK as the op. Just it is in a twrp flash template, with the permissions set by the script

The next step is either a twrp with this built in or (more easily done an aroma installer to cover all the devices this overlay method works for)


V2 zip is a test for multiple device flash-able version. It still only has BND overlay APK in it though. Need feedback if it has any install problems for anyone.

The remover at this point only works if install was done with V2

current permissions are set at on
Code:
C:\Users\Mr>adb shell ls -lZ /vendor/overlay
-rw-r--r--    1      9632 Aug  1  2008 u:object_r:vendor_overlay_file:s0 dil3mm4-overlay.apk
 

Attachments

Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
Iam using openkirin rom(pie ROM) will this work on it,and will this enable volte and save battery?

This has nothing to do with volte

And nothing to do with battery life, as far as battery, it only deals with the displayed battery percentage.

And at the end, not sure if it will even work on pie.
 
Last edited:

mrmazak

Senior Member
Jun 16, 2013
3,212
1,324
253
So I use them also with OpenKirin or just for gsi like aosp?
afaik these overlays have been included into the main tree from phh, while ago. So any recent (3 months or so) builds should have this included.

openkirin has there own methods to deal with these things, so dont think these are needed on their builds either
 
  • Like
Reactions: optionalmgrr.la