Giter VIP home page Giter VIP logo

vendor_hardware_overlay's Introduction

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

vendor_hardware_overlay's People

Contributors

algphello avatar andrey167 avatar andycgyan avatar coinveil4065852 avatar crazo7924 avatar deivu avatar dunedan avatar finecofinit avatar iamlooker avatar iceows avatar jacoboi13 avatar johx22 avatar jumper047 avatar kampalus avatar mkenfenheuer avatar paulowesll avatar petercxy avatar phhusson avatar ponces avatar rinmichi avatar rufus582 avatar skittels15 avatar suwakowww avatar syoker avatar tadit7 avatar thefiredragon avatar thongass000 avatar trinhloi avatar trinhloivn avatar yourordinarycat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vendor_hardware_overlay's Issues

Overlay for headphone mode

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

Overlay for default refresh rate (does config_defaultPeakRefreshRate work?)

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
image

I'm trying to add an overlay for Sony pdx213 (xperia 10 III), and could use a few pointers

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.

jagged edges

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?

How to debug overlays

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?

Samsung galaxy S10e(snapdragon) overlay

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.

Lenovo k5 Pro

3.5 jack working only in Lineage based Q and R GSI in AOSP not working

ro.vendor.product.device is deprecated in API 28 vendors

Tethering overlay might require some looking into

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

Branch naming

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.

SONY XPERIA 1 & 5 Functions and Telephony

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!

MiA2Lite display cutout not supported on treble aosp android-8.1?

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

Huawei P20 lite[ANE] overlay doesnt work

No automatic brightness option and no cutout.
Tested all pie GSIs. I dont know how to fix it, but I can test overlay on my device.

PS. ANE hasnt ro.hw.oemName prop. Adding it in vendor doesnt fix problem.
Adb logs if need
error.txt
all.txt

Install?

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?

Bluetooth / calling Bluetooth can't hear

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 ...

No webview installed

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).

Night Light not working - Huawei Y9 2019(JKM-LX1)

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.

suggestion: Flash overlays instead of bundling

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:

  1. Reduce the clutter in the /product part.
  2. Allow the project to scale without having redundant files and exorbitant file sizes.
  3. Assure the user that they have been using the correct overlay.

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)

Invalid manifest package

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):

Logcat
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!

Lenovo k5pro flash AOSP 9.0 mtp not work

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

Volume problem (Android 13)

Hello! I am using an Android 13 GSI, ArrowOS, for testing, and in the middle of the tests I noticed that the volume bar always stayed at 0%, but when playing any sound it was as if it was at 100%. Is it possible to fix this with an overlay? Thank you!

Device: Samsung Galaxy A31
Screenshot_20230118-221121_Arrow Launcher

Overlays for Infinix note 30 not working "out-of-box"

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.

Need a generic center-notch overlay.

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.

[A20 & A20s overlays] Direct overlay conflict

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)

Infinix Note 10 X693

Can't make call and receive call. When want to make call, suddenly call ended.

alternative way to build overlays(Github Actions)

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

  1. Fork vendor_hardware_overlay and make the necessary changes.
  2. Fork this repo
  3. Click on Actions tab. Under workflows click Overlay
  4. Click Run Workflow.
  5. In FORK_URL input the URL of vendor_hardware_overlay which was forked to your Github Repositories
  6. Click Run Workflow
  7. Once the building is done a zip file will be generated containing all overlays. Extract and get your Device Overlay

Build failed?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.