Related
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
so after upgrading to android 10 on the 3xl there is no room left on the system partition. both titanium backup and root explorer show there is only 2.75mb free. the problem is that Adaway cannot write a new hosts file with no free space on that partition and errors out.
question is, can anything be safely removed from this partition without messing anything up? are there any arbitrary files that can be safely deleted to free up space?
DsturbD said:
so after upgrading to android 10 on the 3xl there is no room left on the system partition. both titanium backup and root explorer show there is only 2.75mb free. the problem is that Adaway cannot write a new hosts file with no free space on that partition and errors out.
question is, can anything be safely removed from this partition without messing anything up? are there any arbitrary files that can be safely deleted to free up space?
Click to expand...
Click to collapse
You can't write to system on 10, it's locked down. You'll need a magisk module for systemless host file.
DsturbD said:
so after upgrading to android 10 on the 3xl there is no room left on the system partition. both titanium backup and root explorer show there is only 2.75mb free. the problem is that Adaway cannot write a new hosts file with no free space on that partition and errors out.
question is, can anything be safely removed from this partition without messing anything up? are there any arbitrary files that can be safely deleted to free up space?
Click to expand...
Click to collapse
As mentioned, you need systemless hosts enabled in Magisk. You also need to make sure you have the current version of AdAway that supports it. You are not really out of space as the AdAway installer claims. The partition is locked out. The installer does what it needs to if you have made the change in Magisk and rebooted before installing AdAway.
DsturbD said:
so after upgrading to android 10 on the 3xl there is no room left on the system partition. both titanium backup and root explorer show there is only 2.75mb free. the problem is that Adaway cannot write a new hosts file with no free space on that partition and errors out.
question is, can anything be safely removed from this partition without messing anything up? are there any arbitrary files that can be safely deleted to free up space?
Click to expand...
Click to collapse
Hi,
Go in Magisk > settings and tap once on: "Systemless hosts" and the module will be automatically enabled upon next reboot.
Also, be sure the option: "Enable ystemless mode" is ticked in Adaway options.
Once you rebot after Magisk systemless host module is enabled, you can go in Adaway and update your host file!
Just one thing: I have to update the host twice in Adaway. Thus reboot twice. Weird, I know. But I have no clue why... Oh well, at least it works..! :good:
Cheers...
Sébastien.
wow thank you all, this was spot on and is now working. i was using dns66 but it wasnt starting back up after a reboot like its supposed to. thanks again gang. much appreciated!
Heya all,
this is one of my first threads here. I recently got an Mi 10T Pro, and after rooting it, I tried to somehow de-bloat it. There's a lot of stuff that I either don't need, or downright don't want in my phone (I'm looking at you Facebook).
Some of the apps I was able to uninstall with a root-level uninstaller, however, as I found out, sometime since... Android 10? The whole /system partition is mounted RO, and apparently can no longer be remounted as RW, so some of the deeper system apps can no longer be so easily removed.
Yes, I know that removing system apps is a risk, don't bring it up, I wouldn't be rooting my phone if I wasn't also willing to tinker with it.
Is there still a way to remove the deeply seeded applications? (For example the "Mi Video" app that resides in /system/app/MiuiVideoPlayer/MiuiVideoPlayer.apk)
You could disable them with some of the debloating methods. You won't gain space on system partition, and it's not really recommended because system partitions today really don't like to be mounted rw because of dynamic partition scheme...
They can be uninstalled with this tool
https://forum.xda-developers.com/t/tool-xiaomi-adb-fastboot-tools.3887359/
calinorg said:
You could disable them with some of the debloating methods. You won't gain space on system partition, and it's not really recommended because system partitions today really don't like to be mounted rw because of dynamic partition scheme...
Click to expand...
Click to collapse
Huh, never heard of that. Is there someplace I could read up on the dynamic partitioning? I am familiar with the way Linux deals with disk partitions, and as that was the same way Android worked before, I am confused now.
nesoler said:
They can be uninstalled with this tool
https://forum.xda-developers.com/t/tool-xiaomi-adb-fastboot-tools.3887359/
Click to expand...
Click to collapse
Thanks! I'll check it out.
Aldenar said:
Huh, never heard of that. Is there someplace I could read up on the dynamic partitioning? I am familiar with the way Linux deals with disk partitions, and as that was the same way Android worked before, I am confused now.
Thanks! I'll check it out.
Click to expand...
Click to collapse
Dynamic Partitions | Android Open Source Project
source.android.com
Basically, dynamic partitioning allows oem to resize partitions as needed without messing up the system, but the downside is that twrp and non-dynamic apps see only one super partition, which contains other partitions inside. Newer twrp builds (3.5.0+ ) have support for dynamic partitions but it's still under development and there's much stuff to consider. Basically, if you make system partition rw and put a file inside, you change it's properties (and size), but in super partition system partition stays the same size and format, so basically you overwrite something, and things get out of hand
That's why only recommended way to change anything in system and other partitions is to make magisk script to do it, because magisk knows how to approach system and other partitions in a way that it won't kill everything...
calinorg said:
Dynamic Partitions | Android Open Source Project
source.android.com
Basically, dynamic partitioning allows oem to resize partitions as needed without messing up the system, but the downside is that twrp and non-dynamic apps see only one super partition, which contains other partitions inside. Newer twrp builds (3.5.0+ ) have support for dynamic partitions but it's still under development and there's much stuff to consider. Basically, if you make system partition rw and put a file inside, you change it's properties (and size), but in super partition system partition stays the same size and format, so basically you overwrite something, and things get out of hand
That's why only recommended way to change anything in system and other partitions is to make magisk script to do it, because magisk knows how to approach system and other partitions in a way that it won't kill everything...
Click to expand...
Click to collapse
Aaah. Yes, thank you for the explanation. It sounds kinda like LVM in Linux - One "Super" partition like a Volume Group with individual partitions like Logical Volumes, able to be dynamically resized, while leaving any of the free space to use for the other partitions.
Ah well, at least I managed to disable some of the apps. Turns out the Xiaomi ADB Tools only really called "pm uninstall --user 0 *package.name*", so nothing special.
Aldenar said:
Aaah. Yes, thank you for the explanation. It sounds kinda like LVM in Linux - One "Super" partition like a Volume Group with individual partitions like Logical Volumes, able to be dynamically resized, while leaving any of the free space to use for the other partitions.
Ah well, at least I managed to disable some of the apps. Turns out the Xiaomi ADB Tools only really called "pm uninstall --user 0 *package.name*", so nothing special.
Click to expand...
Click to collapse
Yes, something like LVM, but it keeps partitions in read-only state, to prevent users from modification. If you change even 1 byte, partition is flagged dirty and not even e2fsck couldn't fix it... basically, until we get proper tools with proper support, messing the partition layout in android is a big no-no...
Yes, XAT is just a frontend for pm uninstall, but it's easier than typing commands, and also it keeps a nice list of uninstalled apps, so you can re-enable them with one click...
cant disable using titanium backup either
paul999 said:
cant disable using titanium backup either
Click to expand...
Click to collapse
As far as I can see, disabling a system app is still possible. Just not uninstalling as that would require a writeable /system partition which currently, as pointed out above, isn't really possible. I even tried the Titanium Backup's exploit method, but didn't work either. App's still installed, albeit disabled.
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...
I have never created a thread before because I normally can find my answers by browsing. However, in this situation, I come up snake eyes each and every time. If this is the wrong place to post, I apologize. I am trying to move a GPS app to a system app. However, when I try to move it, I get an error that there is not enough space in the system ROM (/system) for this. (There is only 2.73 MB free.) I do not need much as I am only looking to move this one gps spoofing app. I have tried everything I could find to do from uninstalling system apps, etc., but no matter what I do, it stays free space 2.73 MB. Any help is most definitely appreciated as I am at a loss, and this was the only thing I rooted to do. Please help!
Edit: I forgot to say it earlier, but I am not a pro at all this so speak to me as if I were 10 yrs old. Thanks alot!
You can use lucky patcher to rebuild/install fake gps apps as system apps. Copying by hand is not gonna do the trick.
There should be plenty of tutorials out there, just search for something along the lines:
Spoof GPS Pokemon Go Luckypatcher
Beware though, that those tutorials will not have been written with Android 12 in mind; I have not yet meddled with GPS spoofing with my P6 and do not know whether Google has implemented certain mechanisms to prevent spoofing system apps. You might get into a bootloop or even softbrick your device (I'd say rather unlikely, but there's always a certain chance).
Magisk is your friend. Not very complicated. Create a module with a /system/app or priv-app directory.
foobar66 said:
Magisk is your friend. Not very complicated. Create a module with a /system/app or priv-app directory.
Click to expand...
Click to collapse
He said that he is not a pro and needs everything explained like a 10 year old, you're sure that creating a magisk module isn't a tad too much to ask?
There are solutions that only require a couple clicks in a premade app interface, intuitive and easy. Going in and coding a couple lines is not my definition of 10 year old not pro stuff. I mean it's not a big deal breaker, there are plenty of tutorials to go around (topjohnwu even offers templates), but it still requires some knowhow and poses more risk.
I appreciate your help but I have already done all the recommendations. As I said, when I uninstall apps from the system ROM I gain no space. I have been using lucky patcher to move files to system apps but it says there is not enough room. This is why I asked, according to what I read, it should have worked. I don't know if I am doing it wrong , but when I try to move app to a system app, I click on it and choose tools and move to system/app in lucky. Any help to help me with this issue is really appreciated.
Install the attached version of the App Systemizer Magisk module and reboot. Open a terminal (install Termux app from Play Store if you need a terminal app), su [enter], systemize [enter] and follow the instructions.
If you are willing to share the APK, I can make a magisk module to install it as a system app.
foobar66 said:
If you are willing to share the APK, I can make a magisk module to install it as a system app.
Click to expand...
Click to collapse
are you asking me for the apk?
Roll3r said:
Install the attached version of the App Systemizer Magisk module and reboot. Open a terminal (install Termux app from Play Store if you need a terminal app), su [enter], systemize [enter] and follow the instructions.
Click to expand...
Click to collapse
I am unsure what I am supposed to do as the menu is not to clear?
michaelrager said:
are you asking me for the apk?
Click to expand...
Click to collapse
Yes but only if you're willing to share it, send me a PM if you want ...
michaelrager said:
I am unsure what I am supposed to do as the menu is not to clear?
Click to expand...
Click to collapse
At the menu, type 1 and hit enter. It'll bring up a list of all installed apps, with a number next to each one. Type in the number of the app and hit enter. It'll probably throw an error, but the app should still be systemized - I've seen seen errors since Android 11 but it's always worked
Roll3r said:
At the menu, type 1 and hit enter. It'll bring up a list of all installed apps, with a number next to each one. Type in the number of the app and hit enter. It'll probably throw an error, but the app should still be systemized - I've seen seen errors since Android 11 but it's always worked
Click to expand...
Click to collapse
Thank you! I got it as a system app but for some reason when I click on the app it doesn't load and freezes. Any ideas are much obliged!