I've installed magisk.
I need to modify /system/emui/base/xml/hw_clone_app_list.xml.
How to edit this file systemless with RootExplorer?
Just edit it, and it will be systemless ?
Or I should to modify the file in /sbin/.core/mirror/system/... ?
To modify it systemlessly you need to create a Magisk module that mounts your edited file over the original.
Instructions here:
https://github.com/topjohnwu/Magisk/blob/master/docs/modules.md
And in the module template:
https://github.com/topjohnwu/magisk-module-template
Didgeridoohan said:
To modify it systemlessly you need to create a Magisk module that mounts your edited file over the original.
Instructions here:
https://github.com/topjohnwu/Magisk/blob/master/docs/modules.md
And in the module template:
https://github.com/topjohnwu/magisk-module-template
Click to expand...
Click to collapse
OK, thanks.
So modify the file in /sbin/.core/mirror/system/ is not systemless?
dawnc said:
OK, thanks.
So modify the file in /sbin/.core/mirror/system/ is not systemless?
Click to expand...
Click to collapse
No worries, and no it's not.
dawnc said:
OK, thanks.
So modify the file in /sbin/.core/mirror/system/ is not systemless?
Click to expand...
Click to collapse
Hello,
You can create a magisk module that copy the specifiq file into your mod path, edit it using sed (for exemple), all theses steps could be done into post-fs-data stage, so at each phone boots.
Take the module template from the link of Didgeridoohan, and put necessary cmd lines into post-fs-data.sh file:good:
Why is it so hard to do such a system modification with Magisk... smh.
Related
I am looking for a way to run a *.sh file during installation of a module or a way to delete a certain folder during installation. How can this be done? I am sure it is much easier then I am making it out to be... Any help is appreciated...
dustintinsley said:
I am looking for a way to run a *.sh file during installation of a module or a way to delete a certain folder during installation. How can this be done? I am sure it is much easier then I am making it out to be... Any help is appreciated...
Click to expand...
Click to collapse
from set_permissions function in config.sh or from update-binary (in the right place, if you don't know where then use config.sh function)
If you want a script in the module, then if you added it in common folder add this to the function:
Code:
sh $INSTALLER/common/file.sh
dustintinsley said:
I am looking for a way to run a *.sh file during installation of a module or a way to delete a certain folder during installation. How can this be done? I am sure it is much easier then I am making it out to be... Any help is appreciated...
Click to expand...
Click to collapse
Add your content directly to update-binary, update-binary is the script responsible for installing a module.
any way to edit the features.xml file in system/csc/ foldser on a samsung g925i (india) nougat 7.0.0 , to enable a few features systemless ly ofcouurse using magisk to pass safetynet test
tried root explorer but failed ( need to edit a copy of it in some way to allow magisk to use it )
any help or knowledge on how magisk works with system/csc would be helpful
Make a Magisk module with the edited xml (copy the original to /system/csc in the module and edit it there). When you're done, make a zip and install through the Manager or in recovery.
Module creation details and instructions can be found in the module template and in the Magisk documentation.
ok it didnt workk
the phone didnt boot at all..
tkpro_sanjeet said:
ok it didnt workk
the phone didnt boot at all..
Click to expand...
Click to collapse
That could be caused by a number of things.
First ones that come to mind are that you might have done something you the xml that shouldn't be there or that you might not have set the proper permissions for the file.
It might be something completely different, of course...
permissions were set to 777
if i flash the g925f rom on g925i
i get the features such as stock call recording
if i revert to original firmware then no features at all and all bloated up
idk how the volte enabler module works for samsung devices which is in the repo
playstore has an app called csc feature enabler by wanaam.. but that wont pass safetynet as its not systemless
i made the plugin as stated..
its flashing alright
but not booting
Others.xml and the like need permissions 0644 just as anything there. Wrong permissions caused your brick..
Leave them original
tkpro_sanjeet said:
any way to edit the features.xml file in system/csc/ foldser on a samsung g925i (india) nougat 7.0.0 , to enable a few features systemless ly ofcouurse using magisk to pass safetynet test
tried root explorer but failed ( need to edit a copy of it in some way to allow magisk to use it )
any help or knowledge on how magisk works with system/csc would be helpful
Click to expand...
Click to collapse
Can u pls share the orignal csc folder to me pls.
Hi devs,
Now I want to create a magisk module which replaces the functionalities of a system app. Consider for example, I'm running a custom ROM which I built and I have the complete source of the ROM. After the ROM is built and flashed, I want to change the functionality of an app using Magisk. Now after making the changes which I need, I build that and get the new APK file along with its odex and vdex files.
Now without replacing the files in the system partition, can I use magisk to use the updated apk instead of the old apk. If that is possible, can anyone give me some quick steps how to do it.
@Rajeev @sooti - I think you can help me coz you've been making some magisk modules for Mi A1.
Or anyone else who knows this, kindly help me.
Uvneshkumar said:
Hi devs,
Now I want to create a magisk module which replaces the functionalities of a system app. Consider for example, I'm running a custom ROM which I built and I have the complete source of the ROM. After the ROM is built and flashed, I want to change the functionality of an app using Magisk. Now after making the changes which I need, I build that and get the new APK file along with its odex and vdex files.
Now without replacing the files in the system partition, can I use magisk to use the updated apk instead of the old apk. If that is possible, can anyone give me some quick steps how to do it.
@Rajeev - I think you can help me coz you've been making some magisk modules for Mi A1.
Or anyone else who knows this, kindly help me.
Click to expand...
Click to collapse
If you use Magisk v15.3 and want only change APK file put to system/app if you want change on this partition if you have in system/priv You must do it that same but you must mount this and then after flash in Magisk you have new APK. Meybe some one write that same. I create mod but only mount APK file in system/app because I don't have there this file. Try flash, check it work and then you can share with all
chudy_85 said:
If you use Magisk v15.3 and want only change APK file put to system/app if you want change on this partition if you have in system/priv You must do it that same but you must mount this and then after flash in Magisk you have new APK. Meybe some one write that same. I create mod but only mount APK file in system/app because I don't have there this file. Try flash, check it work and then you can share with all
Click to expand...
Click to collapse
OK. Will try that.
Uvneshkumar said:
Hi devs,
Now I want to create a magisk module which replaces the functionalities of a system app. Consider for example, I'm running a custom ROM which I built and I have the complete source of the ROM. After the ROM is built and flashed, I want to change the functionality of an app using Magisk. Now after making the changes which I need, I build that and get the new APK file along with its odex and vdex files.
Now without replacing the files in the system partition, can I use magisk to use the updated apk instead of the old apk. If that is possible, can anyone give me some quick steps how to do it.
@Rajeev @sooti - I think you can help me coz you've been making some magisk modules for Mi A1.
Or anyone else who knows this, kindly help me.
Click to expand...
Click to collapse
You should refer to the official documentation of Magisk to understand the structure of a Magisk module, once you understood it well, you can make highly customizable Magisk mods without needing to use topjohnwu's template.
For the case you asked about, you can simply create a flashable shell zip, which will create a structure something similar to this,
Code:
MOUNTPOINT=/sbin/.core/img
MODID=your_mod_id_here
--> MOUNTPOINT
--> MODID
--> auto_mount
--> module.prop
--> system
--> {priv-,}app
--> app_name.apk
--> app_name.{o,v,}dex
--> etc/permissions/package_name-permissions.xml
--> service.sh
--> post-fs-data.sh
Using topjohnwu's template will be much simpler, boot scripts are optional, the perms XML is also needed only if (priv-app && API >= 26)
EDIT: Almost forgot it, thanks for providing our Le Max 2 an Oreo ROM!
Uvneshkumar said:
Hi devs,
Now I want to create a magisk module which replaces the functionalities of a system app. Consider for example, I'm running a custom ROM which I built and I have the complete source of the ROM. After the ROM is built and flashed, I want to change the functionality of an app using Magisk. Now after making the changes which I need, I build that and get the new APK file along with its odex and vdex files.
Now without replacing the files in the system partition, can I use magisk to use the updated apk instead of the old apk. If that is possible, can anyone give me some quick steps how to do it.
@Rajeev @sooti - I think you can help me coz you've been making some magisk modules for Mi A1.
Or anyone else who knows this, kindly help me.
Click to expand...
Click to collapse
how to create fps unlocker of pubg game in magisk module.
Hello!
I am trying to write a simple module to replace /cust/OPEN_COM/cust_OPEN_EU.prop file. LG stores its regional settings there. I cannot just edit the file because /cust folder is mounted in the read-only mode.
I've looked through some examples but all of them were made to replace files in /system folder.
Where should I put my file? Should I just create "/cust/OPEN_COM" folder structure in the module root folder?
Some additional information. I believe, that /cust mounting point refers to the /dev/block/sda15 partition.
Thank you very much for any advice!
Magisk modules can only replace files in /system or /vendor. If you want to replace/edit files somewhere else you'll need to use a custom installation or boot script to do what you want.
Didgeridoohan said:
Magisk modules can only replace files in /system or /vendor. If you want to replace/edit files somewhere else you'll need to use a custom installation or boot script to do what you want.
Click to expand...
Click to collapse
Thank you!
Is it possible to replace the file with init.d script and init.d enabler module? Should I remount /cust foler with rw option in this case?
CbIP said:
Thank you!
Is it possible to replace the file with init.d script and init.d enabler module? Should I remount /cust foler with rw option in this case?
Click to expand...
Click to collapse
You don't need init.d with Magisk. You've got post-fs-data.d and service.d where you can run boot scripts (depending on when you want them to run).
You'll have to remount rw to edit, and then you can mount back to ro when the script is done.
How do I tell a Magisk Module to set the permissions for files? I have three .QMG files that I want people to install VIA Magisk, but in order to do that, I need to tell the module to set the permissions for the files. The permissions are listed below. Any and all help is appreciated!
Thank you in advanced!
Red Prez
There is extensive documentation available on how to make modules (https://topjohnwu.github.io/Magisk/guides.html). You want to use customize.sh and either use the included set_perm function (see the linked docs) or put your own chmod command in there.
Didgeridoohan said:
There is extensive documentation available on how to make modules (https://topjohnwu.github.io/Magisk/guides.html). You want to use customize.sh and either use the included set_perm function (see the linked docs) or put your own chmod command in there.
Click to expand...
Click to collapse
Yeah, but the problem is I do not know what CHMOD command to use.
Actually, you don't need to do anything (I couldn't see your attachment before)... The default permission is 644, so you're set.
Didgeridoohan said:
Actually, you don't need to do anything (I couldn't see your attachment before)... The default permission is 644, so you're set.
Click to expand...
Click to collapse
Okay, so how do I put that into the Customize file?
You don't have to do anything, the installation script will do it for you...
You really should read through the instructions I linked you earlier. Most stuff is explained there.