Question Root file manager impossible delete system file on Android 11 - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Hello all I want to delete Facebook services and Facebook installer app folder in root>system>priv-app directory... I installed some file manager app with root access but none can delete that folders... Anyone know how fix this problem ? This is a big problem for me...
Thanks to everyone.

Is the application running in the background. You can't modify files if they are currently in use
However otherwise it might be an issue with the way magisk works and so there might not be a solution (i.e magisk is systemless so it doesn't actually modify system files it just mounts modified file in such a way that Android sees the file changes whilst the actual system remains unmodified)

Angyone1 said:
Hello all I want to delete Facebook services and Facebook installer app folder in root>system>priv-app directory... I installed some file manager app with root access but none can delete that folders... Anyone know how fix this problem ? This is a big problem for me...
Thanks to everyone.
Click to expand...
Click to collapse
This is very complicated now. Systemless root has a lot of benefits but it also has lost some of its power. This is 1 area that is hard because technically no you can't touch the system otherwise it'll bootloop on all of my devices. If your rooted with magisk you have busybox magisk installed than you want to get system debloater module on magisk manager and use termux or terminal emulator but termux is the best than you can use the system debloater module to find system apps and uninstall them. It works on some of my android 11 devices not all it's getting outdated. I use it to uninstall Facebook and actually YouTube on Samsung that way I can use vanced YouTube properly. I don't understand why you can't just delete the app but the system isn't writable I believe. You would have to use adb or twrp recovery and there's no real information on this topic. Magisk isn't as good as people think though for instance the build prop module if it was really able to hide your device when I signed into my Google account it would say I was on a new device not the device I'm using trying to hide

Have you tried to remove them using TWRP? That shall do it.

Techguy777 said:
This is very complicated now. Systemless root has a lot of benefits but it also has lost some of its power. This is 1 area that is hard because technically no you can't touch the system otherwise it'll bootloop on all of my devices. If your rooted with magisk you have busybox magisk installed than you want to get system debloater module on magisk manager and use termux or terminal emulator but termux is the best than you can use the system debloater module to find system apps and uninstall them. It works on some of my android 11 devices not all it's getting outdated. I use it to uninstall Facebook and actually YouTube on Samsung that way I can use vanced YouTube properly. I don't understand why you can't just delete the app but the system isn't writable I believe. You would have to use adb or twrp recovery and there's no real information on this topic. Magisk isn't as good as people think though for instance the build prop module if it was really able to hide your device when I signed into my Google account it would say I was on a new device not the device I'm using trying to hide
Click to expand...
Click to collapse
thanks for the reply, I have tried with my old phone, mi note 3 with crdroid 7.8 rom and android 11 and I have rooted with magisk and installed the file manager, so I can delete and modified all the files ! why with mi note 3 yes and with poco f3 no? very strange...

laid1995 said:
Have you tried to remove them using TWRP? That shall do it.
Click to expand...
Click to collapse
yes thanks I think that in this way works... tomorrow I try... thx

Was it done in TWRP recovery mode? If yes please guide me with the steps... I actually tried the TWRP method unsuccessfully...

With swift backup, you can uninstall system apps using root.

Animesh Singh said:
With swift backup, you can uninstall system apps using root.
Click to expand...
Click to collapse
I installed Swift Backup (paid latest version) and tried uninstalling system app. But there is only option to disable system apps.
Also I need a way by which I can even paste files in system/app folder so that apps behave like system apps.
By the way I did use magisk module Systemizer. It was a bit complicated for me and did not give full access to the root folders.

[GUIDE] How to make your System RW / Super R/W read/write-able
Welcome to the one and only, the original, universal SystemRW / SuperRW feat. MakeRW / ro2rw by lebigmac This script removes the read-only lock of all partitions embedded in the super partition of your stock firmware. This allows you to mount...
forum.xda-developers.com

pl1992aw said:
[GUIDE] How to make your System RW / Super R/W read/write-able
Welcome to the one and only, the original, universal SystemRW / SuperRW feat. MakeRW / ro2rw by lebigmac This script removes the read-only lock of all partitions embedded in the super partition of your stock firmware. This allows you to mount...
forum.xda-developers.com
Click to expand...
Click to collapse
If anyone tries it successfully and it will work on F3, please let me know here. Thanks.

I can verify that the above procedure worked flawlessly in first attempt. My installed rom was Xiaomi.eu 12.5.4.0 on Poco F3/ Mi 11x btw. Thanks a lot...

Related

Titanium Backup unable to delete system apps?

EDIT: SEE POST #8 FOR THE WORK-AROUND TO UNINSTALL SYSTEM APPS
Rooted last night and one of the first things I did was install TB so I could remove some of the system apps.
But while TB says they're removed (like Chrome & easter egg), I reboot and they're still there.
I did have latest BusyBox installed.
So I tried using TB's built-in BusyBox and had the same issue.
I also made sure to get /system_root Read/Write and still couldn't uninstall using TB.
Are we gonna have to wait for either SuperSU or TB to get an update with fixes.
Any suggestions on a way to get TB working? Other than manually removing apps via Root Explorer which I already know how to do and is not the point of this thread.
try system remove app
Sent from my Nexus 6P using Tapatalk
Isn't current root system-less.?
Root is actually in system_root and system is not being mounted rw?
If its true you cant change anything in system until it can be switched to rw..
I've already set it to R/W using this command: mount -o rw,remount /system_root.
Didn't help. The apps are still there after rebooting.
An odd thing I noticed. Titanium is showing "Android System Webview" and "Device setup 7.1" as frozen. And I didn't do it. Anyone else noticing this?
DinarQ8 said:
try system remove app
Click to expand...
Click to collapse
Just tried it. Doesn't work either.
Thanks for helping me rule out Titanium Backup specifically though.
Definitely something to do with Google's partition setup (or with root) then.
No big deal, I'll just use Root Explorer to remove the ~35 system apk's I'm trying to get rid of.
I just feel safer seeing app names rather than guessing at apk names when I'm removing stuff.
Plus, TB is just faster & more convenient. And I'm probably going to have to do this a few times over the next few weeks as I make & break my phone.
Btw, I'm a little disappointed there are a bunch of Verizon apps on my Google purchased phone.
DM-Verity, I think it is, is still active with this root. Think that's what your running into.
By the way, I found a work-around.
If you want to uninstall SYSTEM apps via Titanium Backup (or any other method), it helps to do the following first.
Open up a terminal session on your phone.
I use the free app Termux to do this:
https://play.google.com/store/apps/details?id=com.termux
Then type the following two commands:
Code:
su
setenforce 0
This sets SElinux to "permissive". Then you can uninstall all your system apps. Then after you reboot, the phone automatically goes back to "enforcing" for SElinux.
Works great. Doesn't screw up any of my user apps after removing the system apps I don't want (like Chrome, Messaging, etc).
If you want permissive on a permanent basis then check out this thread.
I haven't tried it yet, don't need to:
http://forum.xda-developers.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245
CZ Eddie said:
By the way, I found a work-around.
If you want to uninstall SYSTEM apps via Titanium Backup (or any other method), it helps to do the following first.
Open up a terminal session on your phone.
I use the free app Termux to do this:
https://play.google.com/store/apps/details?id=com.termux
Then type the following two commands:
Code:
su
setenforce 0
This sets SElinux to "permissive". Then you can uninstall all your system apps. Then after you reboot, the phone automatically goes back to "enforcing" for SElinux.
Works great. Doesn't screw up any of my user apps after removing the system apps I don't want (like Chrome, Messaging, etc).
If you want permissive on a permanent basis then check out this thread.
I haven't tried it yet, don't need to:
http://forum.xda-developers.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245
Click to expand...
Click to collapse
I really only wanted to backup, switch chrome from a system app to a user app, and restore data but couldn't do this using TiB until I ran these commands. Thanks!!!
CZ Eddie said:
By the way, I found a work-around.
If you want to uninstall SYSTEM apps via Titanium Backup (or any other method), it helps to do the following first.
Open up a terminal session on your phone.
I use the free app Termux to do this:
https://play.google.com/store/apps/details?id=com.termux
Then type the following two commands:
Code:
su
setenforce 0
This sets SElinux to "permissive". Then you can uninstall all your system apps. Then after you reboot, the phone automatically goes back to "enforcing" for SElinux.
Works great. Doesn't screw up any of my user apps after removing the system apps I don't want (like Chrome, Messaging, etc).
If you want permissive on a permanent basis then check out this thread.
I haven't tried it yet, don't need to:
http://forum.xda-developers.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245
Click to expand...
Click to collapse
this.. worked..
i friggin love you guys here on xda... combined knowledge ftw
The workaround doesn't work for me. After reboot, selinux is back to 'enforcing' but the app still isn't Uninstalled.
However, thanks for letting me know about the apk delete method from system/app. It's the only method that works with some MIUI apps.
Yeah, setenforce 0 doesn't work for my N9100ZC (6.0.1)
What's working is, reboot into TWRP, choose Mount -> System -> Internal memory. TWRP main menu -> Advanced -> File Manager.
Make sure to delete the folder and subfolder of your bloatware (\system\app and \system\priv-app).
Hope this help
CZ Eddie said:
By the way, I found a work-around.
If you want to uninstall SYSTEM apps via Titanium Backup (or any other method), it helps to do the following first.
Open up a terminal session on your phone.
I use the free app Termux to do this:
https://play.google.com/store/apps/details?id=com.termux
Then type the following two commands:
Code:
su
setenforce 0
This sets SElinux to "permissive". Then you can uninstall all your system apps. Then after you reboot, the phone automatically goes back to "enforcing" for SElinux.
Works great. Doesn't screw up any of my user apps after removing the system apps I don't want (like Chrome, Messaging, etc).
If you want permissive on a permanent basis then check out this thread.
I haven't tried it yet, don't need to:
http://forum.xda-developers.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245
Click to expand...
Click to collapse
It seems that the workaround doesn't work anymore.
Have you find another one ?
chimmot307 said:
Yeah, setenforce 0 doesn't work for my N9100ZC (6.0.1)
What's working is, reboot into TWRP, choose Mount -> System -> Internal memory. TWRP main menu -> Advanced -> File Manager.
Make sure to delete the folder and subfolder of your bloatware (\system\app and \system\priv-app).
Hope this help
Click to expand...
Click to collapse
Thanks that worked for me.
chimmot307 said:
Yeah, setenforce 0 doesn't work for my N9100ZC (6.0.1)
What's working is, reboot into TWRP, choose Mount -> System -> Internal memory. TWRP main menu -> Advanced -> File Manager.
Make sure to delete the folder and subfolder of your bloatware (\system\app and \system\priv-app).
Hope this help
Click to expand...
Click to collapse
this work for me on my redmi note 8 stock rom miui 11.0.40
Yeah setenforce did not work for me too
DinarQ8 said:
try system remove app
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Atleast name the app properly
Atharkhan101 said:
Atleast name the app properly
Click to expand...
Click to collapse
You ask me a question after been 5 years anyway just search in Play Store System App Remove and choose what work with you

Problem moving app to /system/apps

Hello!
Well, basically my problem is when I try to move an app to /system/app.
I am user of GPS spoofers and today I've unlocked my bootloader, flashed latest twrp by @Alberto97 and followed this thread to use Magisk:
https://forum.xda-developers.com/moto-z-play/how-to/how-to-safetynet-7-1-1-update-stock-rom-t3669086
I'm using Nougat 7.1.1 security patch December 1.
As I use GPS spoofers, I wanted to move GPS Location app to /system/app to do not use mock locations, and then hide Magisk to play Pokemon go, but every time I tried to move it to system with Link2sd, after trying, it was just showing the following error when I tried to to move the app to system:
"mount '/dev/block/dm-0'- '/system' device or resource busy"
I really don't want to downgrade to MM to try to move it, and maybe if I downgrade, the problem will not be fixed too... So, can anyone help me with it? I really want to move it to system, and I don't know what to do, I'm really new with this error.
Thanks, hope you help me!
/system write is disabled when the device is turned on, security
Use twrp. First mount /system in the mount menu, then advanced and file manager to move it from /data/app to system
And maybe it also needs to go to /system/priv-app, but I am not sure about that
user822 said:
/system write is disabled when the device is turned on, security
Use twrp. First mount /system in the mount menu, then advanced and file manager to move it from /data/app to system
And maybe it also needs to go to /system/priv-app, but I am not sure about that
Click to expand...
Click to collapse
So, I need to go to mount menu of twrp, mount /system, go to advanced, file manager and search all the app folder or just .app(?) And move it to /system/app(or just /system?) And also copy(or move?) It to priv-app?
xdaVTU said:
So, I need to go to mount menu of twrp, mount /system, go to advanced, file manager and search all the app folderAnd move it to /system/app
Click to expand...
Click to collapse
Yes, there should be a folder in /data/app/ that has the right name
xdaVTU said:
And also copy(or move?) It to priv-app?
Click to expand...
Click to collapse
Yes, move the folder to /system/app
Only if then the app does not work, try to move it to /system/priv-app instead
user822 said:
Yes, there should be a folder in /data/app/ that has the right name
Yes, move the folder to /system/app
Only if then the app does not work, try to move it to /system/priv-app instead
Click to expand...
Click to collapse
So after doing that, will I need to use Link2sd to something or your tutorial is enough?
xdaVTU said:
So, I need to go to mount menu of twrp, mount /system, go to advanced, file manager and search all the app folder or just .app(?) And move it to /system/app(or just /system?) And also copy(or move?) It to priv-app?
Click to expand...
Click to collapse
xdaVTU said:
So after doing that, will I need to use Link2sd or lucky Patcher to something or your tutorial is enough?
Click to expand...
Click to collapse
No that makes an app into a system app, that is all
user822 said:
No that makes an app into a system app, that is all
Click to expand...
Click to collapse
thank you for the help, but... Everything was okay until I test the app, i don't know if you use this kind of app, but when I moved it to system/app it should allow me to access the system functions. As the attached image shows, I cannot access it yet, but it's already in /system/app.
Please dude, help me, i really want to use this functions
Edit. And when i try to convert the app to a user app, link2sd show me the error showed by the error image.
First: never EVER even mention LP anywhere. It is strictly forbidden to even mention it, it's warez since you can crack Apps with it to not have to pay while still using paid functions, please all edit your posts!
Second: you are using Magisk @xdaVTU. So learn to use its full potential! Magisk was made to make changes especially to /sytem without actually changing that partition in order to allow OTA updates since they would scan partitions like the system partition which are cryptographically secured. If they where even mounted r/w the update will abort.
So if you want to make changes to /system, just make a module or use existing ones, it's actually very easy. In your case there should be a module in manager called app systemizer (or something like that, haven't used Magisk in about a month), that should do the job.
But in general, you can simply "write" your own module, you don't need much for that. Just get the module template from github, it should be linked in the Magisk release thread. Unzip it. open the module.prop in a text editor and edit it how you want (only the text behind the = signs, very self explainatory). Save it. Then open the folder "system" and create the sub-folder app (or priv-app) and inside create some folder for the app. Put the apk file of the app you want to install in /sytem/app/foldername inside. At the end, put everything back into a zip file (the folders common, META-INF and system together with the files. Make sure it's a simple zip file thats not encrypted and that inside the files and folders aren't inside another folder (which is the case when you download the zip from github) otherwise it will fail to install. Then just install your new zip through the Magisk Manager or TWRP and done. Everyting should work now.
@Artim_96
I'm sorry for that, I'll edit the posts.
About the Magisk, I don't know how does it work fully, and would like just to use that GPS as a system app, so I would need a little help for that. I didn't understand anything about the modules, and the only reason I'm using Magisk than SuperSU is because I've seen some users saying SuperSU wasn't stable in Nougat and they've got into bootloop...
Is this security of just Nougat or marshmallow also have it?
Should I use SuperSU instead of Magisk for that?
Please help me with it.
Ah, one more question, should I downgrade to Marshmallow to get it to work?
xdaVTU said:
@Artim_96
I'm sorry for that, I'll edit the posts.
About the Magisk, I don't know how does it work fully, and would like just to use that GPS as a system app, so I would need a little help for that. I didn't understand anything about the modules, and the only reason I'm using Magisk than SuperSU is because I've seen some users saying SuperSU wasn't stable in Nougat and they've got into bootloop...
Is this security of just Nougat or marshmallow also have it?
Should I use SuperSU instead of Magisk for that?
Please help me with it.
Ah, one more question, should I downgrade to Marshmallow to get it to work?
Click to expand...
Click to collapse
I already told you what to do. Just do one of the two things
Artim_96 said:
I already told you what to do. Just do one of the two things
Click to expand...
Click to collapse
As I said, I didn't understand
xdaVTU said:
As I said, I didn't understand
Click to expand...
Click to collapse
Just read. I told you just use app systemize, it will do the job
Artim_96 said:
I already told you what to do. Just do one of the two things
Click to expand...
Click to collapse
Artim_96 said:
Just read. I told you just use app systemize, it will do the job
Click to expand...
Click to collapse
I forgot to Tell you, i tried to use systemizer but i dont know what happened, It failed when I tried to install It with magisk
xdaVTU said:
I forgot to Tell you, i tried to use systemizer but i dont know what happened, It failed when I tried to install It with magisk
Click to expand...
Click to collapse
That's something for the Magisk forum. Otherwise try terminal app systemizer too.
Artim_96 said:
That's something for the Magisk forum. Otherwise try terminal app systemizer too.
Click to expand...
Click to collapse
As i just want to move an app to /system/priv-app(yes, priv-app), can I just use TWRP terminal and move it? Without rooting my phone neither with magisk nor supersu? Or it isn't gonna work?
xdaVTU said:
As i just want to move an app to /system/priv-app(yes, priv-app), can I just use TWRP terminal and move it? Without rooting my phone neither with magisk nor supersu? Or it isn't gonna work?
Click to expand...
Click to collapse
It will work, but keep in mind you won't be able to make OTA updates. So if you want to update your firmware you'll probably have to use either Motorola device manager or manually flush it through RSD lite. Using Magisk should give you root, it's huge possibilities and still keep OTA updates working. But with Motorola devices it's a bit of work to get it to work because there is a bug in the kernel for years now
I don't have sure if its gonna help because is a little complicated to do, i don't have sure if its gonna work with newer versions of magisk or the way that you installed because some module won't work in the way that you install but you can try this. I used some time ago in aosp rom maybe works on stock too
https://forum.xda-developers.com/apps/magisk/module-smali-patcher-0-7-t3680053
This gonna allow fake location without selection on settings or put app in systen
@Artim_96 @jst98 @user822
Thank you all for helping me, mainly Artim and user, because with user's help I learned that tarp also can make some system modifications with file manager, but it seems to need root as well(I'm not sure about that actually), and Artim, you really helped me with those things about magisk modules. I've just flashed nougat 7.0, then I flashed twrp 3.0.2-0 and flashed magisk, it works very well!
And I found a kernel download link that really worked for me, with magisk modules(systemizer and appsystemizer) I could do what I wanted to.
Everything is working now, but I'd like to know if that f2fs fix kernel really works.. When I was using 6.0.1, I downloaded the kernel fixed for that Android version, but I just caused me a bootloop, so now I'm afraid about trying the 7.1.1 version...
xdaVTU said:
@[email protected]@user822
Thank you all for helping me, mainly Artim and user, because with user's help I learned that tarp also can make some system modifications with file manager, but it seems to need root as well(I'm not sure about that actually), and Artim, you really helped me with those things about magisk modules. I've just flashed nougat 7.0, then I flashed twrp 3.0.2-0 and flashed magisk, it works very well!
And I found a kernel download link that really worked for me, with magisk modules(systemizer and appsystemizer) I could do what I wanted to.
Everything is working now, but I'd like to know if that f2fs fix kernel really works.. When I was using 6.0.1, I downloaded the kernel fixed for that Android version, but I just caused me a bootloop, so now I'm afraid about trying the 7.1.1 version...
Click to expand...
Click to collapse
Of course you need the Kernel matching your Android version.
There also is a Magisk module that's supposed to fix it, but I don't know if it even works

After uninstalling stock apps some user apps force close on A520F

When I uninstall stock installed apps (it doenst matter which app I uninstall) and then reboot some of my user apps are instantly crashing when I try to open them (Steam, Feedly, and a few others).
When I restore a TWRP backup everything works fine. Even if I uninstall a single system app the error occours.
Has anyone experienced this before?
simon151102 said:
When I uninstall stock installed apps (it doenst matter which app I uninstall) and then reboot some of my user apps are instantly crashing when I try to open them (Steam, Feedly, and a few others).
When I restore a TWRP backup everything works fine. Even if I uninstall a single system app the error occours.
Has anyone experienced this before?
Click to expand...
Click to collapse
The best way to uninstall stock apps is to use debloat. If you use anything else, I guess that may interfere with user apps, and that may be the cause. Just try to use debloat which is a magisk module that creates a terminal command that lets you uninstall systemlessly. If you have any questions, just reply!
TechGuyOnTechIT said:
The best way to uninstall stock apps is to use debloat. If you use anything else, I guess that may interfere with user apps, and that may be the cause. Just try to use debloat which is a magisk module that creates a terminal command that lets you uninstall systemlessly. If you have any questions, just reply!
Click to expand...
Click to collapse
How is that module called? Can you send me the name or so?
simon151102 said:
How is that module called? Can you send me the name or so?
Click to expand...
Click to collapse
The module is called debloater. It's in the download section of magisk manager. You can sort it alphabetically to find it quickly. When you find it, install it, do a reboot and voila.
The module only works if you have a terminal app. If you use a lineageos based rom like I do, you can enable the app via developer options. If not, then no problem. Try to find any terminal emulator via google play. Thus, you can use it! :victory:

hey xda - resize system partition?

Hey XDA, hope all is going as well as possible.
I'm hoping if you could provide some information.
So, I tried to move an app to the system partition, but, the system partition is full and , well, the attempt to move the app obviously was unsuccessful.
Is it possible to resize partitions without corrupting any data or something?
I didn't do any search just yet. I felt this was the first step being that this is the device I own and it's the question and answer sub.
Hope you're willing to help, thanks.
Which version of Android are you running? If it is 11 then you can't resize it. If you want to move a app to the system then you need to install systemizer module for magisk and install it with terminal. Though I haven't had much luck with that either.
What has worked for me 100% reliably is to make a module for magisk that will inject the app into system
Androids new Scoped storage format will not allow edit the system partition.
tha_mechanic said:
Which version of Android are you running? If it is 11 then you can't resize it. If you want to move a app to the system then you need to install systemizer module for magisk and install it with terminal. Though I haven't had much luck with that either.
What has worked for me 100% reliably is to make a module for magisk that will inject the app into system
Androids new Scoped storage format will not allow edit the system partition.
Click to expand...
Click to collapse
Thanks for the reply. I'm on 10.
I believe 10 is formatted the same way
As mentioned, it is not a space issue, the issue is that you cannot write to the system. If you want an app to act like a system app you would have to compile it that way or use a magisk module to mount it to system. You cannot directly put it in system otherwise.

Change r/w permissions to delete AKP?

I have Magisk rooted global 10.0.15 rom on my OnePlus 7T.
While looking around I found the following apk - please reference attached screenshot.
I can't delete these apks and mount r/w does nothing; nor changing permissions either.
So, is thier any way to delete these apks?
Will deleting these apks have any side effects?
Haven't determined if a Magisk module could exist to deal with this (r/w permissions)?
Will I have to figure out abd commands on Windows 10 or live Linux CD/USB drive? It's it any easier using Linux?
Thanks
Use ADB or magisk debloat module, otherwise no way.
Just freeze them.. I'm guessing it's not a storage issue but a personal bloat-ware issue that you don't want those apks running at all... So the easiest way for that to happen is to just put them on ice.
Sorry to revive a most likely dead issue....
But...
I've only used TWRP on my OnePlus once... Lost TWRP with OTA update - so I really didn't get much of a chance to familiarize myself with TWRP on any OnePlus - like I've previously done with all my prior Samsung's.
Having said all that: I think I remember TWRP has a storage/file manager?
If that's correct... Then can I drill down into the OOS and delete whatever I like as opposed to the previously provided solutions (and yeah I've used both solutions with thanks
For freezing apps I'm loving SD Maid and enjoy the additional features of that app and worth much more than I paid for it and it's wonderful that it's still seems to be maintained over the years....

Categories

Resources