firmware 23.5.A.1.291 - Xperia Z3 Compact Q&A, Help & Troubleshooting

I deleted the system app Radio3 in the firmware for D5803 23.5.A.1.291.
When I tried to put it back by recreating /system/app/Radio3 and I put in it:
Radio3.apk
and also created
/system/app/Radio3/oat/arm/
with a symlink to
/system/odex.app/arm/Radio3.odex
All files owned and group of "root" and with permissions 644, yet when I try to open Radio3 I get:
Code:
11-21 18:39:25.233 1384 1384 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sonyericsson.fmradio.ui.FmRadioActivity" on path: DexPathList[[zip file "/system/app/Radio3/Radio3.apk"],nativeLibraryDirectories=[/system/app/Radio3/lib/arm, /vendor/lib, /system/lib]]
11-21 18:39:25.233 1384 1384 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
This makes me think that I'm supposed to also have /system/app/Radio3/lib/arm, but in my download of 23.5.A.1.291, I can't seem to find any lib directory in /system/app/Radio3. Can anyone here running 23.5.A.1.291 confirm that there is supposed to be some libs in /system/app/Radio3/lib/arm, and what those files are and where I might find them?
Cheers!
------------
EDIT: over 100 people have viewed this thread and no replies. Comeon folks. This is an easy one. Surely one of the 100 people is running 23.5.A.1.291. All you have to do is open up your file explorer app and look in /system/app/Radio3/ and tell me if there's a lib/ directory in there. Pretty please!

apexofservice said:
I deleted the system app Radio3 in the firmware for D5803 23.5.A.1.291.
When I tried to put it back by recreating /system/app/Radio3 and I put in it:
Radio3.apk
and also created
/system/app/Radio3/oat/arm/
with a symlink to
/system/odex.app/arm/Radio3.odex
All files owned and group of "root" and with permissions 644, yet when I try to open Radio3 I get:
Code:
11-21 18:39:25.233 1384 1384 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sonyericsson.fmradio.ui.FmRadioActivity" on path: DexPathList[[zip file "/system/app/Radio3/Radio3.apk"],nativeLibraryDirectories=[/system/app/Radio3/lib/arm, /vendor/lib, /system/lib]]
11-21 18:39:25.233 1384 1384 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
This makes me think that I'm supposed to also have /system/app/Radio3/lib/arm, but in my download of 23.5.A.1.291, I can't seem to find any lib directory in /system/app/Radio3. Can anyone here running 23.5.A.1.291 confirm that there is supposed to be some libs in /system/app/Radio3/lib/arm, and what those files are and where I might find them?
Cheers!
------------
EDIT: over 100 people have viewed this thread and no replies. Comeon folks. This is an easy one. Surely one of the 100 people is running 23.5.A.1.291. All you have to do is open up your file explorer app and look in /system/app/Radio3/ and tell me if there's a lib/ directory in there. Pretty please!
Click to expand...
Click to collapse
So this is what happened,since your system is odexed it will have its lib folder with the odex file inside it,probably the reason it isn't working is because you have only copied the apk and not the lib folder,causing the app not to launch since its odex file is missing.
The way you can make it work is:
1. Reflash the firmware of your device
2. The complicated route,extract the system files of a firmware file from 23.5.A.1.291,find folder Radio3 and copy it to your device.
Hope that will clear some things up!

Dinkec27 said:
So this is what happened,since your system is odexed it will have its lib folder with the odex file inside it,probably the reason it isn't working is because you have only copied the apk and not the lib folder,causing the app not to launch since its odex file is missing.
The way you can make it work is:
1. Reflash the firmware of your device
2. The complicated route,extract the system files of a firmware file from 23.5.A.1.291,find folder Radio3 and copy it to your device.
Hope that will clear some things up!
Click to expand...
Click to collapse
Thanks for the reply, but what you're saying doesn't match with what I'm observing.
1st, I don't find any odex files inside the lib folders, what I *do* see is symlinks inside oat/arm/ (for each system app) which point to ../../../odex.app/APPNAME.odex.
2nd, I have already done what you're calling the "complicated route", I extracted the system.ext4 from 23.A.1.5.291 and I mounted it and looked inside app/Radio3, but I don't see any lib/ directory there.
So, if you look at the error message I posted, you'll see that something is providing paths for libraries /vendor/lib, /system/lib, and /system/app/Radio3/lib. Well, I do see libradio...so in /system/lib, but I suppose this is a shared object for the cellular radio for the phone, not the FM Radio. Since /system/app/Radio3/lib doesn't exist, I wonder if it *should* exist. Like I said, I don't see any such folder in the firmware system partition that I extracted, but I supposed that it was also possible that something else was part of the install process that I'm missing. I'm basically looking for a sanity check here. Can someone who's running this firmware please tell me what you see inside /system/lib/Radio3. Pretty please?
In terms of your solution 1, it's not feasible for me since I spent a lot of time removing bloatware from my system partition (a lot of google apps, a lot of sony apps and other stuff that I don't want and don't use), so I don't want to reflash the whole partition and have to go back through and remove all that stuff again.
Surely someone on this forum is running 23.5.A.1.291 and can just tell me what you see in /system/app/Radio3. Puh-leez.
------------
EDIT: maybe when you say "it will have it's lib folder with its odex file inside it" you mean that instead of Radio3/oat/arm/Radio3.odex that I should have Radio3/lib/oat/arm/Radio3.odex? If so, that would be curious since it's not the same structure I see in the other apps in the /system dir and it's not what I see in the system partition I extracted, but I can try it. However, what would be really helpful is if someone running this firmware can confirm the file structure on their device.

apexofservice said:
Thanks for the reply, but what you're saying doesn't match with what I'm observing.
1st, I don't find any odex files inside the lib folders, what I *do* see is symlinks inside oat/arm/ (for each system app) which point to ../../../odex.app/APPNAME.odex.
2nd, I have already done what you're calling the "complicated route", I extracted the system.ext4 from 23.A.1.5.291 and I mounted it and looked inside app/Radio3, but I don't see any lib/ directory there.
So, if you look at the error message I posted, you'll see that something is providing paths for libraries /vendor/lib, /system/lib, and /system/app/Radio3/lib. Well, I do see libradio...so in /system/lib, but I suppose this is a shared object for the cellular radio for the phone, not the FM Radio. Since /system/app/Radio3/lib doesn't exist, I wonder if it *should* exist. Like I said, I don't see any such folder in the firmware system partition that I extracted, but I supposed that it was also possible that something else was part of the install process that I'm missing. I'm basically looking for a sanity check here. Can someone who's running this firmware please tell me what you see inside /system/lib/Radio3. Pretty please?
In terms of your solution 1, it's not feasible for me since I spent a lot of time removing bloatware from my system partition (a lot of google apps, a lot of sony apps and other stuff that I don't want and don't use), so I don't want to reflash the whole partition and have to go back through and remove all that stuff again.
Surely someone on this forum is running 23.5.A.1.291 and can just tell me what you see in /system/app/Radio3. Puh-leez.
------------
EDIT: maybe when you say "it will have it's lib folder with its odex file inside it" you mean that instead of Radio3/oat/arm/Radio3.odex that I should have Radio3/lib/oat/arm/Radio3.odex? If so, that would be curious since it's not the same structure I see in the other apps in the /system dir and it's not what I see in the system partition I extracted, but I can try it. However, what would be really helpful is if someone running this firmware can confirm the file structure on their device.
Click to expand...
Click to collapse
I don't have the lib folder there,only the apk,but not sure if there is a difference between SLiMM ROM and the stock firmware.
If you want I can send you my Radio3.apk and you can try that

Dinkec27 said:
I don't have the lib folder there,only the apk,but not sure if there is a difference between SLiMM ROM and the stock firmware.
If you want I can send you my Radio3.apk and you can try that
Click to expand...
Click to collapse
Thanks so much for checking. To me, this suggests that perhaps I have the permissions wrong (or something along those lines). I'm wondering if that's supposed to be a regular link to the odex file instead of a symlink. I'd be happy to check out your Radio3.apk to see if its any different than the one I've got. I'll just diff it first.

apexofservice said:
Thanks so much for checking. To me, this suggests that perhaps I have the permissions wrong (or something along those lines). I'm wondering if that's supposed to be a regular link to the odex file instead of a symlink. I'd be happy to check out your Radio3.apk to see if its any different than the one I've got. I'll just diff it first.
Click to expand...
Click to collapse
And it's solved! I double-checked the permissions on the oat/arm dirs I had made and they were at 744 instead of 755, changed that and now I'm working.
Cheers

Related

I Need Helping Making A Custom update.zip

So I guess my question is, "Can anyone help me?"
I used custom ringtones, and I don't like using them from the SD card, it creates lag, takes longer to load the ringtone, etc, so I keep them on my /system/media folder. Normally to accomplish this, when I install a new ROM update, I edit it and resign it, with my media folder, rather than the ROM's.
My predicament however, is that I don't know how to change the file structure for the update, I know there are files in the update that say, this and this folder exist, where this goes, etc. This is what I don't know how to do.
All I need the update to do is contain the media (/system/media) folder, so I can just add all my ringtones and notifications to this update, and flash it after I flash whatever update/rom, etc, instead of always having to be at my computer to create a custom version of every rom I use.
Could anyone please care to help? I'd be ever grateful.
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
ID# said:
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
Click to expand...
Click to collapse
is this just to be used for signing? i already know how to sign files. i need someone to edit w/e files are inside the rom that tell its structure (this folder exists, and gets flashed here, this folder goes here, etc). i cant just take a cm rom and delete everything i dont need then flash it. it will get errors in recovery.
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
cloverdale said:
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
Click to expand...
Click to collapse
Thanks man, but my buddy actually just helped me out with this, but yeah thats exactly what I needed to know. Thanks a ton mate

[Q] in-depth explanation of files in rom.zip

hey guys.. i been looking around everywhere to try and get a good explanation of the files inside the rom.zip... like what the files are in the META-INF? and what are all the files inside the system folder? how do i know what to change and what not to change.. lol sorry but if anyone could possibly give me a more in depth explanation i would appreciate it greatly!!!
i dont have answer but i would also like to know this... since im just trying to learn how be a dev...
lol seems no one can help us... but this did help a little... http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
Hi
The files in META-INF are just that, meta files they contain information about the files that are part of the rom.. specifically CERT.* and MANIFEST.MF contain the SHA1 hash of each file in the rom when you flash the rom your recovery environment hashes each file and checks it against the manifest. These files are created during the signing process.
META-INF/com/google/android/updater-script tells the recovery environment what to actually do. such as format /system then extract system to /system on the phone, set permissions for each file and the correct kernel to your boot.img then reflash it
the files in /system are the actual operating system and are in a UNIX-ish layout
executable's in bin & xbin, system apks in app, configuration files in etc, libraries in lib, ringtones and bootanim in media
rattking said:
Hi
The files in META-INF are just that, meta files they contain information about the files that are part of the rom.. specifically CERT.* and MANIFEST.MF contain the SHA1 hash of each file in the rom when you flash the rom your recovery environment hashes each file and checks it against the manifest. These files are created during the signing process.
META-INF/com/google/android/updater-script tells the recovery environment what to actually do. such as format /system then extract system to /system on the phone, set permissions for each file and the correct kernel to your boot.img then reflash it
the files in /system are the actual operating system and are in a UNIX-ish layout
executable's in bin & xbin, system apks in app, configuration files in etc, libraries in lib, ringtones and bootanim in media
Click to expand...
Click to collapse
wow rattking thank you very much!! that was the best description anyone has ever given me!!! lol that was very helpful!! is there a place where you learn this from? or did you just figure it out as you went..?

problem with replacing gps.conf

Hi,
I hope this is the write location for my post.
I have a HTC ONE rooted, android 4.3
I have a problem with my GPS: it doesn't lock any satellite. Reading on forum, I found that the problem may be the setting of gps.conf file in /system/etc.
In fact, checking it, I found that the NTP_SERVER set was for north.america, while I'm in Europe.
I would like to modify or replace it, but I'm experiencing some problem. Using Root Browser it seems to be able to modify it, but after rebooting the device it is exactly the same before the editing. I tried using other editors as ES File Explorer, but when I try to modify the file, it says "read only file system".
It makes me thing that also the other editor is not able to modify the file, since after reboot it is actually un-edited.
What do you think? how can I actually write in file system and actually modify gps.conf?
Thank you in advance
Let me add another detail: I tried to create a new empty file in the same folder with Root Browser. It seems to be able to create it, but after rebooting the device it desappears..so I guess I actually can't modify/write in the file system..
aerosmike said:
Hi,
I hope this is the write location for my post.
I have a HTC ONE rooted, android 4.3
I have a problem with my GPS: it doesn't lock any satellite. Reading on forum, I found that the problem may be the setting of gps.conf file in /system/etc.
In fact, checking it, I found that the NTP_SERVER set was for north.america, while I'm in Europe.
I would like to modify or replace it, but I'm experiencing some problem. Using Root Browser it seems to be able to modify it, but after rebooting the device it is exactly the same before the editing. I tried using other editors as ES File Explorer, but when I try to modify the file, it says "read only file system".
It makes me thing that also the other editor is not able to modify the file, since after reboot it is actually un-edited.
What do you think? how can I actually write in file system and actually modify gps.conf?
Thank you in advance
Let me add another detail: I tried to create a new empty file in the same folder with Root Browser. It seems to be able to create it, but after rebooting the device it desappears..so I guess I actually can't modify/write in the file system..
Click to expand...
Click to collapse
You need an unsecured kernel (/system writable) to write to /system partition of the htc one, not only root.. Otherwise, all changes will be reverted at reboot like you are experiencing.
Kernels for htc one here
And note that modifying/deleting files in /system will probably prevent you to install future ota unless you revert the change you have made. There is a md5 checksum of many files in /system before the ota installs. If the md5 cheksum doesn't match then the ota will not install. This might not apply to the .conf file you want to edit but just in case, make a backup of that file before. So if the next ota fail, you'll know why.
alray said:
You need an unsecured kernel (/system writable) to write to /system partition of the htc one, not only root.. Otherwise, all changes will be reverted at reboot like you are experiencing.
Kernels for htc one here
And note that modifying/deleting files in /system will probably prevent you to install future ota unless you revert the change you have made. There is a md5 checksum of many files in /system before the ota installs. If the md5 cheksum doesn't match then the ota will not install. This might not apply to the .conf file you want to edit but just in case, make a backup of that file before. So if the next ota fail, you'll know why.
Click to expand...
Click to collapse
Thank you very much

[MOD][TEMPLATE] Magisk Module Template with EvilTheme Patcher

Hello everyone.
This is a little mod to the Magisk Module Template that allows you to patch APK files on-the-fly and have them created as a Magisk Module.
For example, you could have a modified camera module for your ROM, where this patcher would replace the classes.dex file with mods, then pack that as a Magisk Module, using the original file found in the /system (ROM)
For some of the devs that have been around for a while, you would be aware of the old VRTheme modding system, which would allow you to patch files on-the-fly. EvilTheme is basically a newer version of that, so combined with Magisk can be very useful
Here's what this module CAN do:
Replace resources.arsc, classes.dex, AndroidManifest.xml, and META-INF folder
Replace compiled res folders / files
Here's what this module CAN'T do:
Replace files in res/values or smali folders
How to use EVilTheme
(Example using /system/priv-app/SecSettings2.apk)
In the eviltheme folder, go to system and make a folder called priv-app. Inside it, make another folder called SecSettings2.apk
Now make folders as necessary, according to the location of the files you want to theme. For example, battery_icon_50.png is located in res/drawable-hdpi, so make a folder named res inside SecSettings2.apk.
Inside it, create a folder named drawable-hdpi, then paste your new battery_icon_50.png inside.
Repeat step 2 until you've placed your theme files in their appropriate locations.
When you're done, go back to the root folder of the theme (the one that contains eviltheme, engine, etc.) and put all the objects in a ZIP file.
You should use Deflate compression with compression level on Normal, but if your theme is huge, you can safely try compressing using Deflate and the level set to Ultra or whatever high level is available.
Test your mod.
For information regarding the Magisk Module subbmision etc, please read the information HERE
Link to Github Repository: HERE
Enjoy
Nice! Sounds interesting!
I've been using vrtheme for years and even contacted spanna aabout adapting the script to achieve modding of live system files this eliminating the need for recovery zips and even Aroma!
So I have a question about the use and locations of the asset files.
Would it be possible to change, at least the location from which the files get pulled from and placed into the execute folders?
So basically could it be set to pull the image/resource, whatever file from either a data folder or my preference, sd storage?
I've used an asset folder built into my system for similar commands, but with enough options and large files the system partition can get extremely crowded.
Does my question make sense?
Basically i would like to eliminate a big section of my packed 2gb Aroma zip. About 700mb is all vrtheme injected compiled files.
Either way I will definitely be looking into this!
Thanks
stangdriver44 said:
Nice! Sounds interesting!
I've been using vrtheme for years and even contacted spanna aabout adapting the script to achieve modding of live system files this eliminating the need for recovery zips and even Aroma!
So I have a question about the use and locations of the asset files.
Would it be possible to change, at least the location from which the files get pulled from and placed into the execute folders?
So basically could it be set to pull the image/resource, whatever file from either a data folder or my preference, sd storage?
I've used an asset folder built into my system for similar commands, but with enough options and large files the system partition can get extremely crowded.
Does my question make sense?
Basically i would like to eliminate a big section of my packed 2gb Aroma zip. About 700mb is all vrtheme injected compiled files.
Either way I will definitely be looking into this!
Thanks
Click to expand...
Click to collapse
You could, but you would have to look at update-binary and installtheme.sh, then modify it for your needs. So instead of copying the modded files from the flashable zip, you would just have to remove the unzip function and change the path of where they are unzipped to to the location of where the files are on your data partition.
Give it a try
so with this I can technically change the rotation of an app without ever messing with the apk? I've tried editing the AndroidManifest.xml, but after editing I've never been successful putting it back into the apk
dimm0k said:
so with this I can technically change the rotation of an app without ever messing with the apk? I've tried editing the AndroidManifest.xml, but after editing I've never been successful putting it back into the apk
Click to expand...
Click to collapse
If you plan to change androidmanifest.xml you will have to include the newly created META-INF folder for it too.
Could this be used to convert substratum themes to work systemlessly with magisk?
Sent from my Pixel using XDA Labs
qwer777 said:
Could this be used to convert substratum themes to work systemlessly with magisk?
Sent from my Pixel using XDA Labs
Click to expand...
Click to collapse
If you're talking about pre-packaged APK theme files, no it probably won't work, as they still need to be installed.
This is more for files that are already installed that require patching.
Nice work
Got one question - is it possible to modify classes.dex if .apk file is not in system folder? I mean for example, if system app gets updated, it creates new folder in data/app/ with the name of the package and with either -1, -2 or whetever number at the end (ex. data/app/com.google.android.youtube-2).
Do I need to just integrate update into system and then modify it? Or just create new folder in eviltheme one with data/... instead of system/...?
Thanks
I tried to modify system/framework/framework-res.apk/res/drawable-xxhdpi-v4/default_wallpaper.jpg, but unfortunately it did not work. Neither on InFocus M808/mod stock 6.0(mt6753) nor on SamsungS5Neo/mod stock 6.0.1(exynos7580)
Both tried with official Magisk 12.0 and newest beta.
nevermind i didn't read all the way
drei.liter.milch said:
I tried to modify system/framework/framework-res.apk/res/drawable-xxhdpi-v4/default_wallpaper.jpg, but unfortunately it did not work. Neither on InFocus M808/mod stock 6.0(mt6753) nor on SamsungS5Neo/mod stock 6.0.1(exynos7580)
Both tried with official Magisk 12.0 and newest beta.
Click to expand...
Click to collapse
Started another try to replace some icons. did not work. am I missing something or is this template just faulty?
anybody who got this working?
drei.liter.milch said:
Started another try to replace some icons. did not work. am I missing something or is this template just crap?
anybody who got this working?
Click to expand...
Click to collapse
That was a bit rude.
Edit: better to give some details on what you've actually done, maybe even upload your files. Easier to find any faults on your side or possible bugs that way.
I want to add the clock onto my lockscreen statusbar. Would this help me achieve that?
Didgeridoohan said:
That was a bit rude.
Edit: better to give some details on what you've actually done, maybe even upload your files. Easier to find any faults on your side or possible bugs that way.
Click to expand...
Click to collapse
yes ok, the word "crap" maybe was a little bit over the top. i'm sorry for that. I just would like to know, if anybody can report this module/template as working. If so, I would go on looking for the error on my side.
I've actually followed exactly the guide given in OP. (It seems not that tricky to me)
-placed folder tree system/framework/framework-res.apk/res/drawable-xxhdpi-v4/ in the eviltheme-folder and put my default_wallpaper.jpg file in drawable-xxhdpi-v4 folder
-edited module.prop und config.sh
-zipped the whole template folder
-installed via magisk manager
-rebooted
tried with to different phones, beta and official magisk (see my first post)
I'll reproduce my logs and attach them later.
anyway thanks for the hint
drei.liter.milch said:
yes ok, the word "crap" maybe was a little bit over the top. i'm sorry for that. I just would like to know, if anybody can report this module/template as working. If so, I would go on looking for the error on my side.
I've actually followed exactly the guide given in OP. (It seems not that tricky to me)
-placed folder tree system/framework/framework-res.apk/res/drawable-xxhdpi-v4/ in the eviltheme-folder and put my default_wallpaper.jpg file in drawable-xxhdpi-v4 folder
-edited module.prop und config.sh
-zipped the whole template folder
-installed via magisk manager
-rebooted
tried with to different phones, beta and official magisk (see my first post)
I'll reproduce my logs and attach them later.
anyway thanks for the hint
Click to expand...
Click to collapse
Flash Via Recovery, it may work. didnt work for me when i installed from magisk manager.
btw i have a question, is there any way to remove a file from the apk?
shekhawat2 said:
Flash Via Recovery, it may work. didnt work for me when i installed from magisk manager.
btw i have a question, is there any way to remove a file from the apk?
Click to expand...
Click to collapse
thx, i'll try that. which magisk-version do you use? and i guess maybe you can remove a file by placing a dummy.
drei.liter.milch said:
thx, i'll try that. which magisk-version do you use? and i guess maybe you can remove a file by placing a dummy.
Click to expand...
Click to collapse
No brother, I want to delete the file, not to replace it with dummy file. Replacing with dummy file will give system ui FCs.
I saw something delete.list in the installtheme.sh, but I don't know how to use it. If anyone can help, pls help me.
BTW I am using Magisk v12.
shekhawat2 said:
No brother, I want to delete the file, not to replace it with dummy file. Replacing with dummy file will give system ui FCs.
I saw something delete.list in the installtheme.sh, but I don't know how to use it. If anyone can help, pls help me.
BTW I am using Magisk v12.
Click to expand...
Click to collapse
Ok, I see. Perhaps you find sth about it in the vrtheme-topic. Btw. flashing in recovery doesn't work either. I'm not messing around with this anymore and continue using flipster :good:
Where can we download? I want to change Viber's background to pure black so I will change the AndroidManifest. Will this theoretically work?
I was wondering what, if anything, I would need to change for this to work on a pixel. On Pixel's, the install path is system/system. I couldn't tell whether or not this could detect the correct path on its own.
Edit: Never mind. I got it to work.

How to make a Magisk module replace files

Hi!
i don't know how to make a module so i want replace file in system/etc (file i want replace fonts.xml)
so can anyone help?!?
All the instructions you need are right here:
https://topjohnwu.github.io/Magisk/guides.html
Hi Sorry i try to read it (and look half internet) to understand how to simply replace a file with magisk. Maybe it has changed with version 24? Please link some source where it's easly explained how this task could be achieved.
Isn't this what you are looking for? https://topjohnwu.github.io/Magisk/guides.html#the-system-folder
The system folder
All files you want to replace/inject should be placed in this folder. This folder will be recursively merged into the real /system; that is: existing files in the real /system will be replaced by the one in the module’s system, and new files in the module’s system will be added to the real /system.
Click to expand...
Click to collapse

Categories

Resources