Comments (3)
from vendor_hardware_overlay.
I get your frustrations buddy, I've been there before. Being such a niche product family, little resource and community can be found for this device, making further development somewhat tricky. Sony is kind enough to provide the SODP repos but I couldn't find too much useful config out of it (you could probably make use of power_config.xml but I wasn't able to see the difference before and after applying it).
Anyways I searched around and was able to get in touch with a previous maintainer of the device who shared his version of the device tree, which took a lot of testing and porting to create (it was initially a fork of the device tree for a Oneplus device and I believe they tested out the appropriate configurations for the current device). I used the values in that tree and made the overlay. A lot of other config items were applied but wasn't necessary for auto-brightness.
Unfortunately I searched Github and had no luck finding a existing open device tree repo for pdx213 (except for the one by Sony) which means you'll have to either make your own tree or try to find existing but private ones. I see Sjll (on xda and github) has been releasing roms for pdx213, see if you can contact him and get some help.
Another choice that sits somewhere in the middle is to find existing configs for device with similiar display panel (I doubt there's any device with the exact same panel) or its siblings (maybe even start with values from my overlay) and tweak it to an appropriate set. This could involve a lot of flashing and testing so be prepared.
As for unpacking Sony roms, you can easily see the partitions in .sin files and you need to further unpack those. Go search for a tool named UnSin on xda and follow the guide there. You'll probably need more tools such as lpunpack, ext2rd, etc, depending on which partiton you want to check out. I was able to extract framework-res.apk from system partition but found no configs related to brightness values so good luck with that.
from vendor_hardware_overlay.
I have indeed found that unsin will allow me to mount the firmware image, but as you said it only seems to contain the power config and not the config file that controls the stuff of interest like auto brightness.
At first glance it looks like Sony also did not provide the relevant config on their github but ada12 pointed out that the bulk of the config lives in https://github.com/sonyxperiadev/device-sony-common/blob/master/overlay/frameworks/base/core/res/res/values/config.xml with only device-specific extension in https://github.com/sonyxperiadev/device-sony-pdx213/blob/master/overlay/frameworks/base/core/res/res/values/config.xml so that's the route I'm trying to take. Let's see if it actually works.
Current progress is in #413
from vendor_hardware_overlay.
Related Issues (20)
- Night Light not working - Huawei Y9 2019(JKM-LX1) HOT 3
- [A20 & A20s overlays] Direct overlay conflict HOT 1
- Build failed? HOT 2
- Need a generic center-notch overlay. HOT 1
- Tethering overlay might require some looking into HOT 1
- Invalid manifest package HOT 1
- [Question] build for testing HOT 1
- alternative way to build overlays(Github Actions)
- suggestion: Flash overlays instead of bundling HOT 2
- Install? HOT 6
- jagged edges
- how to install?(mi11t pro) HOT 1
- Volume problem (Android 13)
- hello, how to create a fork? I don't understand at all. HOT 1
- Overlay for headphone mode
- Overlay for default refresh rate (does config_defaultPeakRefreshRate work?) HOT 1
- Two files power_profile
- Overlays for Infinix note 30 not working "out-of-box" HOT 1
- Tecno Pova 5 autobrightness fix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vendor_hardware_overlay.