How to mount system to rw - Redmi Note 9 Questions & Answers

I am trying to change bootanimation.zip but i am not able to write to /system/media.
Any help? i tried changing magiskhide props settings , build.type user to userdebug, but that softbricked my phone, and had to flash stock rom.

Are you rooted your phone?
Try with Xarchiver (enable ROOT in settings)

Code015 said:
Are you rooted your phone?
Try with Xarchiver (enable ROOT in settings)
Click to expand...
Click to collapse
yes i am rooted, i'll try and tell you if it worked

George528 said:
yes i am rooted, i'll try and tell you if it worked
Click to expand...
Click to collapse
there is no such thing as xarchiver for android

George528 said:
there is no such thing as xarchiver for android
Click to expand...
Click to collapse
ZArchiver - Apps on Google Play
The easy 7zip app!
play.google.com
This.

Code015 said:
ZArchiver - Apps on Google Play
The easy 7zip app!
play.google.com
This.
Click to expand...
Click to collapse
it says /system/media remounted to RW succesefully but when i copy a file to it, it says operation requires remount FS as RW

George528 said:
it says /system/media remounted to RW succesefully but when i copy a file to it, it says operation requires remount FS as RW
Click to expand...
Click to collapse
Install Android Tools (ADB) and run this command:
"adb shell su -c chmod 777 /system/media/"

Code015 said:
Install Android Tools (ADB) and run this command:
"adb shell su -c chmod 777 /system/media/"
Click to expand...
Click to collapse
"chmod '/system/media/' to 40777: Read-only file system"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

George528 said:
"chmod '/system/media/' to 40777: Read-only file system"
View attachment 5300195
Click to expand...
Click to collapse
Strange. Also try it from TWRP's file manager. I have no other idea, unfortunately.

Code015 said:
Strange. Also try it from TWRP's file manager. I have no other idea, unfortunately.
Click to expand...
Click to collapse
i dont want to flash twrp recovery because there is no official version for my phone and i dont want to mess it up again. I learned it from my past mistakes

[Closed] Universal SystemRW / SuperRW feat. MakeRW / ro2rw (read-only-2-read/write super partition converter)
Welcome to the one and only, the original, universal, System-RW / Super-RW feat. Make-RW / ro2rw (read-only-2-read/write super partition converter) by lebigmac Also known as: THE-REAL-RW, FULL-RW, EXT4-RW, EROFS-RW, EROFS-2-RW, F2FS-RW...
forum.xda-developers.com

VD171 said:
[Closed] Universal SystemRW / SuperRW feat. MakeRW / ro2rw (read-only-2-read/write super partition converter)
Welcome to the one and only, the original, universal, System-RW / Super-RW feat. Make-RW / ro2rw (read-only-2-read/write super partition converter) by lebigmac Also known as: THE-REAL-RW, FULL-RW, EXT4-RW, EROFS-RW, EROFS-2-RW, F2FS-RW...
forum.xda-developers.com
Click to expand...
Click to collapse
thanks

George528 said:
I am trying to change bootanimation.zip but i am not able to write to /system/media.
Any help? i tried changing magiskhide props settings , build.type user to userdebug, but that softbricked my phone, and had to flash stock rom.
Click to expand...
Click to collapse
Bro ..did you get the solution for this? ....I am also having the same problem .... I badly want to change my bootanimation ... M using rooted OnePlus 7t android 11

vamp12 said:
Bro ..did you get the solution for this? ....I am also having the same problem .... I badly want to change my bootanimation ... M using rooted OnePlus 7t android 11
Click to expand...
Click to collapse
[Closed] Universal SystemRW / SuperRW feat. MakeRW / ro2rw (read-only-2-read/write super partition converter)
Welcome to the one and only, the original, universal, System-RW / Super-RW feat. Make-RW / ro2rw (read-only-2-read/write super partition converter) by lebigmac Also known as: THE-REAL-RW, FULL-RW, EXT4-RW, EROFS-RW, EROFS-2-RW, F2FS-RW...
forum.xda-developers.com

Another option is to use FX Manager to mount it as RW.
Open the FX Manager
Select the Root in home screen.
Go to the System folder.
Tap 3Dots Menu and select "Mount Read-Write"
When done, go 3Dots Menu and select "Mount Read-Only".

Related

[MOD]Multi-touch hack

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More than 5 points is not perfect,but it can be identified.
use cwm recovery update .zip file
you can also modify the code in the file by youself
File: /system/etc/touchpad/21 and 22 directorys touchpad.cfg file
Code: line 28 change NUMTOUCH=2 to NUMTOUCH=10
Look forward to someone to make it more perfect
nice will test it out
thanks
Very cool!
Cheers!
I used this instead:
Code:
#!/system/bin/sh
busybox mount -o rw,remount /system
cd /system/etc/touchpad/21/
sed 's/\(NUMTOUCH\)[ ]*=[ ]*[0-9]*/\1=10/' touchpad.cfg >temp
mv temp touchpad.cfg
chmod 644 touchpad.cfg
cd /system/etc/touchpad/22/
sed 's/\(NUMTOUCH\)[ ]*=[ ]*[0-9]*/\1=10/' touchpad.cfg >temp
mv temp touchpad.cfg
chmod 644 touchpad.cfg
busybox mount -o ro,remount /system
In this case you need to reboot for the changes to take effect. Tried multitouch tester and multitouch visualiser and I got more than 5 touches showing, only so many fingers can fit on the screen.
michael0619 said:
Click to expand...
Click to collapse
C'mon, that's cheating!
Very cool though, thanks for sharing!
Seems like 8 is the limit, even though I set it to 10
Awesome! Will try now.
NFHimself said:
Very cool!
Cheers!
I used this instead:
Code:
#!/system/bin/sh
busybox mount -o rw,remount /system
cd /system/etc/touchpad/21/
sed 's/\(NUMTOUCH\)[ ]*=[ ]*[0-9]*/\1=10/' touchpad.cfg >temp
mv temp touchpad.cfg
chmod 644 touchpad.cfg
cd /system/etc/touchpad/22/
sed 's/\(NUMTOUCH\)[ ]*=[ ]*[0-9]*/\1=10/' touchpad.cfg >temp
mv temp touchpad.cfg
chmod 644 touchpad.cfg
busybox mount -o ro,remount /system
In this case you need to reboot for the changes to take effect. Tried multitouch tester and multitouch visualiser and I got more than 5 touches showing, only so many fingers can fit on the screen.
Click to expand...
Click to collapse
How would I edit the file to how you did? Thanks. Or can you post the file?
awesome, thank you
Thank you, thank you, thank you for the .zip!
I edited these files myself and made a mistake, not sure what exactly I did wrong but after reboot I had NO TOUCH at all.
Thanks to the attached .zip I was able to just copy that to my sd via usb then flash in CWM. I now have 10 touch points.
WiredPirate said:
Thank you, thank you, thank you for the .zip!
I edited these files myself and made a mistake, not sure what exactly I did wrong but after reboot I had NO TOUCH at all.
Thanks to the attached .zip I was able to just copy that to my sd via usb then flash in CWM. I now have 10 touch points.
Click to expand...
Click to collapse
I've done the same thing. Edited files that I found that had the properties rebooted with no touch at all. Been trying to figure this out for a while. Thanks.
Sent from my MB860 using XDA Premium App
I assume the long-hold multitouch spaz issue is unaffected by this? What happens with all that now?
Sent from my MB860 using XDA App
Are there any side effects from enabling multiple touch points?
Tikerz said:
Are there any side effects from enabling multiple touch points?
Click to expand...
Click to collapse
Yes, the most important side effect from enabling multi-touch is that you can use more fingers at same time
just joking, but yes almost you get what you pay.
Thanks to motorola, the Atrix (most powerful smartphone in the world bla bla bla bla bla) will die without devs and users, I think moto only care about money and average users.
INSM Sin said:
How would I edit the file to how you did? Thanks. Or can you post the file?
Click to expand...
Click to collapse
That was the file, nothing more to it. Create in /data/local/tmp, call it yourmomsunderpants.sh (this is important) make it executable and run it. Simple.
Cheers!
Awesome thx, rebooting now
while it does see 10 fingers, i find it to be glitchy with anything over 4 fingers.
the multitouch tester app goes crazy if i put 5 or more on the screen at once.
This is perfect.
Set mine to 4 as I can't see the use for more than that at the moment.
ehvio said:
I assume the long-hold multitouch spaz issue is unaffected by this? What happens with all that now?
Click to expand...
Click to collapse
long hold is still the same screen will freeze after 12-14 sec
hosmsdos said:
long hold is still the same screen will freeze after 12-14 sec
Click to expand...
Click to collapse
Thanks for the mod! My God, I was hoping for this for a long time, man. All that's left is that annoying screen freeze nonsense and the phone will be usable in almost all scenarios.
Sent from my MB860 using Tapatalk

Anybody has this issue with root browser?

i like root browser. and i decided to buy this app for support developer.
but after that i surprised.
- it cant show /data folder on cm9, cm10. when i enter this folder, it shows an emtpty folder.
- it can show /data folder on cm7 but file sizes 0kb and when i want to edit stg it says file not found.
- it works well on stock or stock based roms
i tooke some screenshots from cm7.
i want to know this issue for only me?
because i am talking with developer and this issue is very strange.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
P
agritux said:
i like root browser. and i decided to buy this app for support developer.
but after that i surprised.
- it cant show /data folder on cm9, cm10. when i enter this folder, it shows an emtpty folder.
- it can show /data folder on cm7 but file sizes 0kb and when i want to edit stg it says file not found.
- it works well on stock or stock based roms
i tooke some screenshots from cm7.
i want to know this issue for only me?
because i am talking with developer and this issue is very strange.
Click to expand...
Click to collapse
Report the bug to developer of Root Browser.
EDIT: saw you are already talking. I use ES File Explorer and it works.
EDIT2: Does Root Browser Lite work?
EDIT3: In terminal emulator with root I can look into data folder and see file sizes with ls -l data. There's something wrong with how the develeper reads the file info or how he handles root.
EDIT4: In terminal Emulator can you type su then ls -l data. If that gives filesizes then it's problem with the app else it's problem with your phone.
Sent from my LG-P970
es file exploerer and other root permission needed browsers are working well
i have this issues with only root browser.
lite version too. and rom toolbox too..
agritux said:
es file exploerer and other root permission needed browsers are working well
i have this issues with only root browser.
lite version too. and rom toolbox too..
Click to expand...
Click to collapse
If you say lite version too. Is it working or not working?
Sent from my LG-P970
i mean not working.
i think his method is wrong?
agritux said:
i mean not working.
i think his method is wrong?
Click to expand...
Click to collapse
Jip. He made a mistake somewhere or used a API function that changed with the newer API.
Sent from my LG-P970
agritux said:
i like root browser. and i decided to buy this app for support developer.
but after that i surprised.
- it cant show /data folder on cm9, cm10. when i enter this folder, it shows an emtpty folder.
- it can show /data folder on cm7 but file sizes 0kb and when i want to edit stg it says file not found.
- it works well on stock or stock based roms
i tooke some screenshots from cm7.
i want to know this issue for only me?
because i am talking with developer and this issue is very strange.
Click to expand...
Click to collapse
Hey agritux this is what i'm telling you the last time we talked. This is the reason why i can't solve my problem in wifi on CM9 and CM10. I already checked the show hidden files in the settings but still i can't see the MISC folder.

[Q] I can't find /data/logs on CM10.1

I'm looking for /data/logs for dumpstate/logs purpose. I'm currently on cm10.1.6 modded by mardon. But there is no such file in the directory. i tried google search and they say to get rid off "Storage Space Running Out" notification is by dial this code *#9900# but nothings happen. Is there a way to delete dumpstate using Terminal Emulator? And lastly, is it safe to delete dumpstate files/logs? Will there be a bug/error on data connection or radio stuff?
P.S. Sorry for a lot of questions i have. I'll appreciate your help.
daehyunjae said:
I'm looking for /data/logs for dumpstate/logs purpose. I'm currently on cm10.1.6 modded by mardon. But there is no such file in the directory. i tried google search and they say to get rid off "Storage Space Running Out" notification is by dial this code *#9900# but nothings happen. Is there a way to delete dumpstate using Terminal Emulator? And lastly, is it safe to delete dumpstate files/logs? Will there be a bug/error on data connection or radio stuff?
P.S. Sorry for a lot of questions i have. I'll appreciate your help.
Click to expand...
Click to collapse
Its actually in /data/log. Yes, it is safe to delete dumpstate logs. You can delete the dumpstate log from Terminal Emulator using the following commands,
Code:
su
cd /data/log
rm dumpstate*
exit
Do post the result. Hope I Helped
mahithm said:
Its actually in /data/log. Yes, it is safe to delete dumpstate logs. You can delete the dumpstate log from Terminal Emulator using the following commands,
Code:
su
cd /data/log
rm dumpstate*
exit
Do post the result. Hope I Helped
Click to expand...
Click to collapse
See this first command.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
daehyunjae said:
See this first command.
Click to expand...
Click to collapse
Can you show me the contents of /data? Use the following command,
Code:
su
cd /data
ls
Do post the result.
mahithm said:
Can you show me the contents of /data? Use the following command,
Code:
su
cd /data
ls
Do post the result.
Click to expand...
Click to collapse
Here's the result. maybe link2sd related?
daehyunjae said:
Here's the result. maybe link2sd related?
Click to expand...
Click to collapse
Its not a link2sd problem that I can guarantee. What's odd is CM 10.1 doesn't have a log folder in /data. What this means is no dumpstate logs on your device.
mahithm said:
Its not a link2sd problem that I can guarantee. What's odd is CM 10.1 doesn't have a log folder in /data. What this means is no dumpstate logs on your device.
Click to expand...
Click to collapse
weird and I'm curious where the error logs file goes? (fc's,wait,report,call logs) anyway thanks for helping.
daehyunjae said:
weird and I'm curious where the error logs file goes? (fc's,wait,report,call logs) anyway thanks for helping.
Click to expand...
Click to collapse
No problem. You should better ask about this in the Developer's thread
thanks! i will.
daehyunjae said:
thanks! i will.
Click to expand...
Click to collapse
@Mardon please help @daehyunjae. Thanks

[Q]SuperSU flashing via TWRP

Good evening guys!
I have a question: I rooted my L10 via rootgenius, and this method installed Kinguser. I have no problem with this SU app, but tonight I want to remove immutables list, and I installed busybox and terminsl emulator. Everything ok, but if I want to do this command: chattr the system not found. I searched the whole forum and I found a solution: delete kinguser app, and flash SuperSU from TWRP. My question is: how can I download flashable zip? Or simple download from playstore and choose this installing option?
Thanks for answers!
BR, Szabolcs toth
http://download.chainfire.eu/641/SuperSU/UPDATE-SuperSU-v2.40.zip
gregysk said:
http://download.chainfire.eu/641/SuperSU/UPDATE-SuperSU-v2.40.zip
Click to expand...
Click to collapse
Thanks!
I flashed via TWRP, but if I want to update the SU binary the system don't allow it. Try from TWRP?
Chattr command is inside SuperSU.zip.Try now remove immutable.list and after that reboot phone and install busybox.
Sent from my HUAWEI P7-L10 using Tapatalk
Chattr is now in supersu?? I think its only in busybox.
87insane said:
Chattr is now in supersu?? I think its only in busybox.
Click to expand...
Click to collapse
Yes it is.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my HUAWEI P7-L10 using Tapatalk
THX...very nice info!
gregysk said:
Chattr command is inside SuperSU.zip.Try now remove immutable.list and after that reboot phone and install busybox.
Sent from my HUAWEI P7-L10 using Tapatalk
Click to expand...
Click to collapse
Thanks! I have a big problem: I unlocked and rooted my P7 with Rootgenius, but it has been uses Kinguser application. I saw in the forum to remove immutables.list with busybox chattr. I installed busybox and terminal emulator successfully, but if I want to use chattr the system said: unknown command. I search the forum and I find the solution: delete kinguser app and flash supersu with twrp. I do it with rootexplorer, and flashed the SU, but I don't have root rights because I delete kinguser. Now I rerooted my phone and I have the root access. My question: can I remove immutables.list from rootexplorer or only terminal with busybox?
Thanks
Sekypapa said:
Thanks! I have a big problem: I unlocked and rooted my P7 with Rootgenius, but it has been uses Kinguser application. I saw in the forum to remove immutables.list with busybox chattr. I installed busybox and terminal emulator successfully, but if I want to use chattr the system said: unknown command. I search the forum and I find the solution: delete kinguser app and flash supersu with twrp. I do it with rootexplorer, and flashed the SU, but I don't have root rights because I delete kinguser. Now I rerooted my phone and I have the root access. My question: can I remove immutables.list from rootexplorer or only terminal with busybox?
Thanks
Click to expand...
Click to collapse
Just flash seven custom rom 3.8 and ull be set
Sekypapa said:
My question: can I remove immutables.list from rootexplorer or only terminal with busybox?
Thanks
Click to expand...
Click to collapse
Only with terminal on phone or with adb shell on PC.
Sent from my HUAWEI P7-L10 using Tapatalk

Module in post-fs mode?

Hi there.
I'm trying to write a "cache module" (which runs in post-fs stage, after the system has been mounted but before data).
Why do I need it?
Because I want to execute an "iptables -P OUTPUT DROP" to block every outgoing connection until afwall+ kicks in (in post-fs-data) and establishes the proper rules for the apps.
I can't find a proper "module template" on github.
moreover...Is there a way to "print to magisk_debug.log" from the script?
I would like to "iptables -L" pre-script execution and post-script execution so I can check that everything has gone ok.
Is there a function to do that or should I "iptables -L > /tmp/iptables.log"
Any hint?
Thank you.
In post-fs, Magisk only does a simple mount of any files found in /cache/magisk_mount/system. No scripts are run... That's not until post-fs-data.
See here for more details (if you haven't already):
https://github.com/topjohnwu/Magisk/blob/master/docs/details.md
Didgeridoohan said:
In post-fs, Magisk only does a simple mount of any files found in /cache/magisk_mount/system. No scripts are run... That's not until post-fs-data.
See here for more details (if you haven't already):
https://github.com/topjohnwu/Magisk/blob/master/docs/details.md
Click to expand...
Click to collapse
Thanks Didgeridoohan, I already read that but if you read carefully
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
He says he can run script in different stages. That "simple mount thing" sounds to me like "hey, look...don't ask me to do mounts different than simple mounts."
Moreover I found this on another script...
so it must be possible...(or it was possible with previous versions of magisk)
LinoX said:
Thanks Didgeridoohan, I already read that but if you read carefully
He says he can run script in different stages. That "simple mount thing" sounds to me like "hey, look...don't ask me to do mounts different than simple mounts."
Moreover I found this on another script...
so it must be possible...(or it was possible with previous versions of magisk)
Click to expand...
Click to collapse
"Simple mounts" means that it doesn't add anything new, only replaces already existing files/folders. But you've read the docs, you know that...
Here's some reading on cache modules:
https://forum.xda-developers.com/showpost.php?p=69621730&postcount=7
It might be possible to run scripts in post-fs in the future (that's up to @topjohnwu). Right now it isn't...
Didgeridoohan said:
Here's some reading on cache modules:
https://forum.xda-developers.com/showpost.php?p=69621730&postcount=7
Click to expand...
Click to collapse
Thank you very much for that.
Yeah I didn't read that specific post (even if I searched for it a lot) and it replies my question: Cache modules aren't supported anymore.
I guess I'll have to deal with post-fs-data mode then...
Even if I don't need the data partition and even if, once data is mounted, it could be too late to block the network (some services might have already accessed it..yet not the apps themselves)
Thank you again, man.
LinoX said:
Thank you very much for that.
Yeah I didn't read that specific post (even if I searched for it a lot) and it replies my question: Cache modules aren't supported anymore.
I guess I'll have to deal with post-fs-data mode then...
Even if I don't need the data partition and even if, once data is mounted, it could be too late to block the network (some services might have already accessed it..yet not the apps themselves)
Thank you again, man.
Click to expand...
Click to collapse
No worries...
Just in case you haven't thought about it: if you want to run the script as early as possible, place it in /magisk/.core/post-fs-data.d rather than in the post-fs-data.sh file of a module.
I am using Magisk 16.7 on Android 8.1
On my phone there is no /magisk folder
For using a boot script should i just create the folder structure or where do i have to place my files?
m45k said:
I am using Magisk 16.7 on Android 8.1
On my phone there is no /magisk folder
For using a boot script should i just create the folder structure or where do i have to place my files?
Click to expand...
Click to collapse
Boot scripts should be placed on /sbin/.core/img/.core/post-fs-data.d
Sent from my LGE w5 using XDA Labs

Categories

Resources