[AOSP][9][no root] SystemUI RRO overlay not taking effect - Xiaomi Mi 9 Questions & Answers

I'm trying to change some SystemUI resources through Runtime Resource Overlay/Overlay Manager Service, so I made an apk containing only resources.arsc and installed that apk in /vendor/overlay/ . I even made sure to manually update the idmap of this overlay, match owner, group and permissions, but, after rebooting from recovery to system, the overlay simply isn't applied.
The strange thing is that I made another overlay for framework-res (target: android) and it works perfectly, as expected.
My Mi 9 is on a custom ROM (LineageOS, Pie) and is not rooted.
Have you run into this issue? How do you think I can solve this?
Thanks =)

Related

My adb wont push anything into my framework plz help

I'm running the latest Zero Hero rom and I managed to push a different resources once then I used my noob themere skills to give it the blur animations which failed and I had changed the build.prop with the maxisma 1 as it has native led support before pushing the resources.
So I reflashed and everything went back out of the boot loop that I had created with my botched framework-res editing but now I can't push anything becuz the phone keeps saying the file system is read only.
Any thoughts on how to fix my noob mistakes and actually get the blur animations to work without somehow making my file systems go haywire.
adb remount......
the bootloop could be caused by the incompatible build.prop file, your not just supposed to switch them between roms.....
B-man007 said:
adb remount......
the bootloop could be caused by the incompatible build.prop file, your not just supposed to switch them between roms.....
Click to expand...
Click to collapse
No actually it isnt its becuz my noob themer skills and me messing with the framework to get blur transitions the build.prop is running smoothly on this build and thx for the adb remount tip

how to make exposed changes permanent???

please any one know .how to make xposed changes permanent??
that is it remains there ..... even we uninstall xposed...
AS far as my understanding goes, xposed redirects specific function calls at runtime to other functions with the intend to run different code than the app would normally do. That said, redirecting those calls can not work without xposed framework or without the xposed modules as no changes are made to the apps directly.
Correct me if I'm wrong.
You are absolutely no wrong, however if we decompile the apk that is being modded via some specific module and we change the code of the redirected functions to the one included within module and recompile the apk, we should get an apk working exactly the same as if it was hooked via xposed+module.
Please note that a lot of modules has been originally created basing on reverse idea: first someone made a mod by changing the java/smali code of some apks, then someone wrote a module making same changes but via xposed, on-the-fly.
In my opinion such an automated tool to recompile the apks and change their code basing on the code included in a xposed module IS possible.
No one made it yet, tho...
Definitely not possible. You cannot simply redirect code from one app to another. With xposed, you are always running within app that's being modded.
esgie said:
You are absolutely no wrong, however if we decompile the apk that is being modded via some specific module and we change the code of the redirected functions to the one included within module and recompile the apk, we should get an apk working exactly the same as if it was hooked via xposed+module.
Please note that a lot of modules has been originally created basing on reverse idea: first someone made a mod by changing the java/smali code of some apks, then someone wrote a module making same changes but via xposed, on-the-fly.
In my opinion such an automated tool to recompile the apks and change their code basing on the code included in a xposed module IS possible.
No one made it yet, tho...
Click to expand...
Click to collapse
Im with this guy, and if you read on xposed... yes its code being "injected" into the stock apk ...
What xposed does is creates side files (ran by zygote)
They get copied to /system/bin as app_process(xposed)
Or app_process(origional)
These files act as Init.d scripting... to inject this code...
I assume they make both these copies for reverting back to stock (disable the module)
It IS possible to make these changes permanent and re-compile the apk...
However ... de-coding the module ... to find out what is getting injected where... THATS where im at so far ...
Arter 97 has proven this possible with adaway as a standalone apk in conjuction with his youtube apk... im assuming hes using code to call upon the adaway apk files , and still using it like xposed... but merely without xposed..
If anyone with more experience could point us on how to track down how to find exactly WHAT code is being injected and where... it would be EXTREMELY helpful to many people not wanting to run 3rd party applications to get their desired functions...
Anyone feel free to chime in

[SOLVED] Custom script not working

Hi,
Since my Nexus 5 I'm used to flashing a custom script to remove system apps and push new ones.
Here is the file I'm currently using: CF-signed.zip (port from Nexus 5).
With my OP3T I can't use this script since it doesn't remove the mentioned apps and I have a weird bug. Actually I can't use the physical buttons, expand the QS tiles...
I guess it's a problem with the META-INF folder (cert, manifest, update-binary... I don't know).
If someone is using such a script please share it. I'll use it as a base for my own tweaks.
Thanks.
EDIT: I finally kept my old N5 structure and it's working flawlessly.

Create module that executes code if another app is started or run forever in background?

Hello!
I'm currently playing around with Java and Xposed development and I have created a simple Android app that creates a .txt file in a folder.
What I would like to do is create a Xposed module that can automatically detect when I create said .txt file, I have 2 ideas on how I could achieve that but I'm not sure what might be the best:
Idea #1:
Create some sort of background service that will always be runnning and check if there are any or new files in said folder or maybe use the FileObserver method.
Idea #2:
Hook into the app and run a function inside my Xposed module that checks with regular interval if there are any files in the folder.
I have never really done any Java or Xposed development before so all this is quite new, but I would love to know what would be the best aproach or if anyone has some better suggestions!
Thank you all!
I don't see a xposed requirement here. File change observation is easily done by automation apps like Tasker(event->file->file modified), doesn't need xposed for it. Xposed framework better used for modifications to system or apps.
As per second requirement of performing user actions on a app, you can use Xposed edge(xposed plugin) inject gestures / AutoInput(tasker plugin)

Magisk Module to change Mouse Pointer?

I found this app that creates a Magisk module with your device's framework-res.apk with a replaced mouse pointer
Releases · thesandipv/pointer_replacer
Xposed or Magisk Module to replace touch pointer. - thesandipv/pointer_replacer
github.com
But it causes a bootloop on Android 11 and also can't work with a frameworks-res.apk you provide yourself from a different device.
The app also has a forced Google login on startup.
Since the app is open-source, can anyone perhaps remove the dependency to Google Play Services and the forced Google login on the startup screen so it can also work on AndroidTV and de-Googled phones?
Anyway to provide your own frameworks-res.apk from a different device to create a Magisk module instead?
The app creates a Magisk Module with a full changed frameworks-res.apk which might interfere with other overlay files.
Anyway to use runtime resource overlay instead so only the pointer_arrow.png is changed so there are minimal problems with other overlay files?
Are there any other Magisk module that could perhaps overlay the frameworks/base/core/res/res/*drawable/pointer_arrow.png instead?
dewettie said:
I found this app that creates a Magisk module with your device's framework-res.apk with a replaced mouse pointer
Releases · thesandipv/pointer_replacer
Xposed or Magisk Module to replace touch pointer. - thesandipv/pointer_replacer
github.com
But it causes a bootloop on Android 11 and also can't work with a frameworks-res.apk you provide yourself from a different device.
The app also has a forced Google login on startup.
Since the app is open-source, can anyone perhaps remove the dependency to Google Play Services and the forced Google login on the startup screen so it can also work on AndroidTV and de-Googled phones?
Anyway to provide your own frameworks-res.apk from a different device to create a Magisk module instead?
The app creates a Magisk Module with a full changed frameworks-res.apk which might interfere with other overlay files.
Anyway to use runtime resource overlay instead so only the pointer_arrow.png is changed so there are minimal problems with other overlay files?
Are there any other Magisk module that could perhaps overlay the frameworks/base/core/res/res/*drawable/pointer_arrow.png instead?
Click to expand...
Click to collapse
Have you thought to ask the developer these questions
Thats what i would do....rather than ask random people on a forum
Especially asking them to hack a developers work....
In general what youre asking is such a niche request for a niche function that almost no one uses....
Ive literally never enabled that ever in a decade of Android , let alone thought "id like to custom it"
Ask the dev...

Categories

Resources