phhusson / vendor_hardware_overlay Goto Github PK
View Code? Open in Web Editor NEWThis includes hardware-specific overlays for Treble ROM
This includes hardware-specific overlays for Treble ROM
This projects includes hardware-specific overlay changes, and an app which selects it dynamically Here are the list of changes: - Set Telephony:config_enabled_lte to true on all 4G devices, so the user can select 4G network type in the settings - Enable Night Mode on devices where appropriate - Enable Navigation Bar on devices not setting qemu.hw.keys (HTC U11+) - On Essential PH-1,extends Status Bar to cover the camera notch
I'm honestly do not understanding if you're keeping master to test and then merge into pie or what, would be cool if there's a clarification on that.
I recently got my xperia 10 III and right away loaded a PHH-trebble based ROM on it. Works great except for a few tiny things such as auto brightness.
I'm kinda new to Android hacking stuff but know my way around software development so figured I'd try to help out.
Over at XDA ada12 mentioned it's a matter of adding some overlay values.
Looking around the repo I found that @j4ger recently added an overlay for another Sony device, so that gives a starting point but is a bit more than ada12 made it out to be. Which method did you use to obtain these files?
Looking at https://github.com/sonyxperiadev/device-sony-pdx213 I see files that seem quite related, but no mention of config_autoBrightnessLcdBacklightValues
that ada12 was talking about, and which is indeed present in the pdx206
folder.
Does that get assembled from other places, or does it simply not have the right stuff? The only mention of brightness in that repo is commented out.
Another issue had someone asking for an overlay, which got pointed to this thread:
https://forum.xda-developers.com/t/guide-how-to-make-gsis-overlay-file-for-your-phone.3878974/
I'd be happy to try to follow that, but A) if the official Sony repo has the right stuff that seems a lot easier. B) I already flashed a new ROM so I don't have access to the stock ROM anymore to try this.
I did download the official firmware using XperiFirm, are the files in question in there somewhere? Not sure if you can just unzip and mount these images somehow.
How fix Battery usage data isn't available using overlay
TnX
Hello.
please add an overlay for Elephone Solider
Elephone.zip
I am decompiled overlays system/product/overlays infinix note 30 and systemui, and saw that they set position of hardware fingerprint scaner, statusbar paddings, etc. They not work by default.
Tried in PixelOs 14 (01 march and 18 february) and EvoX. With Magisk modulegsi-infinixnote30all_v2.5 it's work's fine.
overlay files found in some of the models have config_defaultPeakRefreshRate configured. Does the specified key and/or config_defaultRefreshRate actually work in GSI rom or at least in those models?
I tried to build overlays with config_defaultPeakRefreshRate set for my phone, it doesn't work but I am not certain about the key being useless.
https://github.com/search?q=repo%3Aphhusson%2Fvendor_hardware_overlay%20config_defaultPeakRefreshRate&type=code
Hi @phhusson ,
I would like to do some tests on my device by adding some attribute. Is there a way to build the overlay locally and install it on my device running system-squeak-arm64-ab-vndklite-gapps-secure.img.xz?
Thank you!
Nova 2s device
EMUI 9 A9.0
28vndk
In my framework-res there are two files power_profile and power_profile_test. Which one should I use?
power_profile.zip
I have several phones, all with center cutouts.
LG Phoenix 5 AT&T (LM-K300AM, MTK)
Wingtech Visible Midnight (WTVIS01, MTK)
ZTE Blade A7 Prime (Z6201V, MTK)
Why isn't there a selection for the various cutout types and SystemUI corner spacing in Phh-Treble Settings menu?
I would recommend this to be added, in a way similar to a fork project (https://sourceforge.net/projects/treblerom/files/crDRom11/) which would make the lives of non-developers much easier.
I need to create a fork for samsung galaxy a30s, but I don't understand HOW?
There seems to be an overlay for the s10e, but i think it is made for the exynoss models and is beeing aplied to both snapdragon and exynoss models..
On the snapdragon models, the proximity sensor isn't working.
I have managed to decompile the framework-res apk, and make the tests, but i don't know if i should make a new overlay for the snapdragon variant or update the existing one.
Hi, I am new.
I want to ask how to install a this file. I compiled it with github actions and get a apk file. I want to ask how can I install it?
There are glitches and artifacts everywhere. After manually adding "debug.hwui.renderer=opengl" in build.prop everything is fine.
https://github.com/soracqt/vendor_hardware_overlay
I am trying to add redmi9t overlay
But the build ends with a mysterious error
aapt v
Android Asset Packaging Tool, v0.2-7929954
apktool ver
Apktool v2.6.0
my os
artixlinux
Generating treble-overlay-xiaomi-redmi9t
First type is not attr!
aapt F 03-21 07:12:04 17693 17693 First type is not attr!
./build.sh: line 45: 17693 Aborted aapt package -f -F "${name}-unsigned.apk" -M "$path/AndroidManifest.xml" -S "$path/res" -I android.jar
Is this my environment bad? Should I ignore this error then?
I created an overlay for Huawei Y9 2019 Model JKM, auto-Brightness is working but i have lost Night Light feature. The option is showing as Ambient Display(LiveDisplay) and none of the available options(auto, on, off) in Ambient Display(LiveDisplay) that i select works. I just want to fix this bug as everything else is working fine.
I extracted the framework-res.apk from my stock android 9.0 rom.
Completely new here so I have a problem with my samsung a10 which is stuck in headphone mode I was looking for a software fix rather then hardware and I got here I know how to root and use adb, termux too etc. I was wondering if someone here could help with that and tell me where to begin
Hi!
I've built an overlay for my Xiaomi 11T Pro based on #536, but it seems that it is not being built correctly, because I found this in the logcat (and it doesn't work, duh):
06-11 00:10:49.403 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-xiaomi-11tpro.apk: Invalid manifest package: bad character '1'
I've confirmed that the APK in the phone (at /system/product/overlay
) is the same as the build output by comparing the sha256 hash. This is the only file that I have added to the phone.
apktool
can decompile the APK without problems
I've built the APK with the ./build/build.sh
script
Here are the logcat lines imediately above and below the error line (the other overlays come with the phone):
06-11 00:10:49.401 2769 3087 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-mi11lite5g.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/renoir*
06-11 00:10:49.401 2769 3087 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-mi11lite5g.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/renoir*
06-11 00:10:49.401 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-xiaomi-mi11lite5g.apk: /system/product/overlay/treble-overlay-xiaomi-mi11lite5g.apk (at Binary XML file line #5): Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-mi11lite5g.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/renoir*
06-11 00:10:49.402 2769 3087 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-civi.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/mona*
06-11 00:10:49.402 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-redmi6a.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/cactus*
06-11 00:10:49.402 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-redmi6a.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/cactus*
06-11 00:10:49.402 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-xiaomi-redmi6a.apk: /system/product/overlay/treble-overlay-xiaomi-redmi6a.apk (at Binary XML file line #5): Skipping target and overlay pair android and /system/product/overlay/treble-overlay-xiaomi-redmi6a.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/cactus*
06-11 00:10:49.403 2769 3088 I PackageParsing: Skipping target and overlay pair com.android.systemui and /system/product/overlay/treble-overlay-xiaomi-civi-systemui.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/mona*
06-11 00:10:49.403 2769 3088 I PackageParsing: Skipping target and overlay pair com.android.systemui and /system/product/overlay/treble-overlay-xiaomi-civi-systemui.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/mona*
06-11 00:10:49.403 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-xiaomi-civi-systemui.apk: /system/product/overlay/treble-overlay-xiaomi-civi-systemui.apk (at Binary XML file line #5): Skipping target and overlay pair com.android.systemui and /system/product/overlay/treble-overlay-xiaomi-civi-systemui.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/mona*
06-11 00:10:49.403 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-xiaomi-11tpro.apk: Invalid manifest package: bad character '1'
06-11 00:10:49.403 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-wifi5g.apk: overlay ignored due to required system property: persist.sys.overlay.wifi5g with value: true
06-11 00:10:49.404 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-wifi5g.apk: overlay ignored due to required system property: persist.sys.overlay.wifi5g with value: true
06-11 00:10:49.404 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-wifi5g.apk: /system/product/overlay/treble-overlay-wifi5g.apk (at Binary XML file line #5): Skipping target and overlay pair android and /system/product/overlay/treble-overlay-wifi5g.apk: overlay ignored due to required system property: persist.sys.overlay.wifi5g with value: true
06-11 00:10:49.404 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vsmart-live.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +vsmart/V620A_open*
06-11 00:10:49.405 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vsmart-live.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +vsmart/V620A_open*
06-11 00:10:49.405 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-vsmart-live.apk: /system/product/overlay/treble-overlay-vsmart-live.apk (at Binary XML file line #5): Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vsmart-live.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +vsmart/V620A_open*
06-11 00:10:49.405 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vsmart-joy3.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +vsmart/casuarina*
06-11 00:10:49.405 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vsmart-joy3.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +vsmart/casuarina*
06-11 00:10:49.405 2769 2769 W PackageManager: Failed to parse /system/product/overlay/treble-overlay-vsmart-joy3.apk: /system/product/overlay/treble-overlay-vsmart-joy3.apk (at Binary XML file line #5): Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vsmart-joy3.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +vsmart/casuarina*
06-11 00:10:49.406 2769 3088 I PackageParsing: Skipping target and overlay pair android and /system/product/overlay/treble-overlay-vivo-y20.apk: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*vivo/2026*
Here is the APK file if needed: https://drive.google.com/file/d/143YHIeGbUFJ1uu1svTBQtCa6b7rf62vp/view?usp=sharing
System information if relevant:
Arch Linux 5.18.2-arch1-1
$ xmlstarlet --version
1.6.1
compiled against libxml2 2.9.10, linked with 20914
compiled against libxslt 1.1.34, linked with 10135-GITv1.1.35
Thanks in advance!
Starting with API 28 OEMs use ro.product.vendor.device for device name definition in /vendor/build.prop
Xiaomi Mi 8:
https://github.com/TadiT7/xiaomi_dipper_dump/blob/8385f43b85cc3c4f055fff6289776374c4c5d6e9/vendor/build.prop#L18
Xiaomi Mi Mix 2S: https://github.com/TadiT7/xiaomi_polaris_dump/blob/d069dedee55a3fb62d003a3a30a7642cb1d2e295/vendor/build.prop#L18
Google Pixel 2: https://github.com/TadiT7/google_walleye_dump/blob/8033f01f57d9cf11b3b2686c51a4a3e9a4dffaef/vendor/build.prop#L18
OnePlus 6: https://github.com/TadiT7/oneplus_enchilada_dump/blob/d1462ce505d9e70d0288ed4359ef21b998e9edbe/vendor/build.prop#L10
The overlay is made successfully, but my device screen has jagged edges , is there a way to fix this?The overlay is made successfully, but my device screen has jagged edges around it, is there a way to fix this?
Lenovo k5pro flash AOSP 9.0 mtp not work
hwservicemanager: getTransport: Cannot find entry [email protected]::IUsbGadget/default in either framework or device manifest.
UsbDeviceManager: USB GADGET HAL not present in the device
UsbDeviceManagerJNI: could not open control for mtp Permission denied
UsbDeviceManagerJNI: could not open control for ptp Permission denied
How to fix?
aosp 8.1, mtp work
The Redmi Note 10 and 10S have essentially the same display which means the SystemUI overlays should fit nicely with each other. I was thinking that instead of bundling in all overlays, we could just create releases with build-scripts
so that the user only flashes their own. This will help in the following ways:
The current build system is efficient but it seems it will not scale very well as devices increase. Furthermore, I think we could also find a way for the user to access which overlays have been activated.
I'll be glad to help out if it is required.
#535 might help since it is essentially the same device.
Originally posted by @azan-n in #605 (comment)
Rebooting into recovery to put the overlay into the RW mounted system image is an annoying task to do. Is there a possibility to load the values in the config.xml once the phone has booted? Can I just adb push the created apk and run it or are there other things that need to be done?
This is my first time adding Open Gapps to my AOSP codebase.
I have made changes to device.mk.
I have tried different combinations in terms of build variants (pico to stock), different exclusion, force rules, but irrespective of what I try I get this error.
WebViewFactory: Chromium WebView package does not exist
WebViewFactory: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
This basically stalls, the Out of the box setup experience (or pretty much any screen that requires Google account creation/fetching, as it uses a webview).
In the developer options, Webview
Implementation is none
. It does not show any options either.
I am building my AOSP for Pixel 2(Walleye).
Hi,
in the hope not asking a too stupid question:
I successfully run android-8.1.0_r61 (plain AOSP / treble_arm64_bvN) compiled by using https://github.com/phhusson/treble_manifest (branch android-8.1) with no additional patches applied on a Xiaomi Mi A2 Lite.
So far, so good, everything works as expected, except the display cutout: The statusbar-items are hidden behind the notch, the typical issue with notch-devices and custom ROMs.
So I checked a bit more and can see this:
phhgsi_arm64_ab:/system # cat /data/resource-cache/overlays.list
/system/overlay/treble-overlay-NightMode.apk /data/resource-cache/system@[email protected]@idmap
/system/overlay/treble-overlay-devinputjack.apk /data/resource-cache/system@[email protected]@idmap
/system/overlay/treble-overlay-xiaomi-mia2lite.apk /data/resource-cache/system@[email protected]@idmap
/system/overlay/treble-overlay-webview.apk /data/resource-cache/system@[email protected]@idmap
Also, in /system/overlay/ there is the "treble-overlay-xiaomi-mia2lite.apk".
So, to me it looks like the mia2lite overlay is there and it is loaded.
If I understand: https://github.com/phhusson/vendor_hardware_overlay/blob/master/Xiaomi/MiA2Lite/res/values/notch.xml#L26 correctly, when this above mentioned overlay is loaded, the notch should be supported in android 8, or?
I ask, because the statusbar still gets hidden behind the notch as mentioned. The only way to work around that is to do a (as root inside a adb-shell):
wm overscan 0,80,0,0
If I build the exact same thing but with android-9, the notch is supported and the statusbar perfectly fits it.
Thank you for an answer!
Martin
The regex for identifying the Samsung Galaxy A20 device on line 7 conflicts with the A20s overlay, making it unusable. I have no way of seeing the fingerprint of the Samsung Galaxy A20 right now but, an example of the problem that is caused: Overlay set value error, killing headset and others.
(I know the A20s overlay has not been accepted yet, but I want to report this)
fix automatic brightness, use battery not appear, and headset
3.5 jack working only in Lineage based Q and R GSI in AOSP not working
Can't make call and receive call. When want to make call, suddenly call ended.
Hello Master!
I faced on all possible Firmware/Vendor Bases (Android 9 & 10 and with all Regions) that VoLTE, Wifi Calling and HD Calls at all are not available. The calling Quality is also pretty poor from our side to the other (Some kind of Robo Voice comes out).
Besides that are we lacking of AoD (Assertive or always On Display), Camera Button Support (Starting the Camera and press for Records inside the Apps) and double tap to wake. Which are all native Features of this Devices. I would like to help out with Fixes if i can, just need some guidiance...
Would be great to help out the SONY Community a bit more, espcially since the XPERIA 1 & 5 and 1 MK2 are really great Devices on the Hardware and Software side. But i really miss to run a clean GSI from You...
Best Regards!
Hello I'm new to this so please bare with me just wanted to know if any one is working on this fix for Bluetooth and calling Bluetooth can't hear we may had a fix but its not sticking after reboot. I know phusson has sent out and made a report about it . but was just asking if anything is being done I know you guys are busy with a lot but hopefully I can get an answer thank you for your time oh device Moto E5 plus Hannah again Thank you for your hard work ...
https://github.com/phhusson/vendor_hardware_overlay/tree/pie/Tethering
Being an override in /system/product with priority 10 it overrides the tethering overlay in vendor, and it breaks wifihotspot on galaxy s7; it might be common for exynos devices to have to the following overlay instead
<string-array translatable="false" name="config_tether_wifi_regexs">
<item>"wlan\\d"</item>
<item>"swlan0"</item>
</string-array>
and for older kernels
<bool translatable="false" name="config_tether_enable_bpf_offload">false</bool>
A workaround is to remove the overlay when such conflict occurs. Perhaps the overlay can be less shotgun and hinges on some mtk props to activate? Or perhaps the workaround of removing /system/product/overlay/treble-overlay-tethering.apk
can be documented in Common Issues and fixes on the wiki
please somone tell step by step installation of this
my phone is xiaomi 11t pro
sorry I'm new.
With this I have builded overlays withiut PC. Only termux + git. (test.sh is working, but can't build on the phone).
Can you add this to help sections?
https://github.com/Johx22/Overlay-builder
Using Github Actions to build device specific overlays for Phh based GSI's
How to use
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.