Help moving user app to system partition... - Nexus 6 Q&A, Help & Troubleshooting

I'm having a problem getting to move any user app to the system partition on my Nexus 6. I'm using the Pure Nexus ROM, now rooted with Magisk, Android 7.1.2. The thing is, I have tried to do so when I was on Stock ROM, also tried it with SuperSU root instead of Magisk with no difference whatsoever. Link2SD doesn't work but neither worked system/app mover by j4velin.
What should I do to get that to work? Thanks in advance...

You're using Magisk... There are modules for that.
Two actually. And they can be installed from the Manager:
https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851
https://forum.xda-developers.com/showthread.php?t=3477512
Take your pick.

Didgeridoohan said:
You're using Magisk... There are modules for that.
Two actually. And they can be installed from the Manager:
https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851
https://forum.xda-developers.com/showthread.php?t=3477512
Take your pick.
Click to expand...
Click to collapse
Well right now for some reason Magisk isn't installing anything on my device, however I was wondering, if there is a method which installs the app as system and that the app continues to be there even if I unroot my device?

Dorlan2001 said:
Well right now for some reason Magisk isn't installing anything on my device, however I was wondering, if there is a method which installs the app as system and that the app continues to be there even if I unroot my device?
Click to expand...
Click to collapse
The whole design concept of Magisk is to protect the system partition from being modified. It does that by sym-linking directories. Using Magisk, as designed, the apps will go into the Magisk.img, not system. When booted, it'll look like the apps are in system but if you unroot they'll be gone.
If you don't care about modifying the system partition, you can move an app manually. User apps are in /sdcard/data/app and system apps are in /system/app. Once moved, you'll have to edit the permissions for the folder to rwxr-xr-x (755) and the apk inside the folder to rw-r--r-- (644).

ktmom said:
The whole design concept of Magisk is to protect the system partition from being modified. It does that by sym-linking directories. Using Magisk, as designed, the apps will go into the Magisk.img, not system. When booted, it'll look like the apps are in system but if you unroot they'll be gone.
If you don't care about modifying the system partition, you can move an app manually. User apps are in /sdcard/data/app and system apps are in /system/app. Once moved, you'll have to edit the permissions for the folder to rwxr-xr-x (755) and the apk inside the folder to rw-r--r-- (644).
Click to expand...
Click to collapse
Thanks for the info mate! It was really helpful to me to get to understand how Magisk works, and to be able to make the changes I wanted to my system using Root Explorer. Is so weird though, that those apps who claim to automate things, don't work on my device...
Thanks again!!!! :good:

Related

[HOW TO] Remove bloatware and at&t apps

Okay. So we all probably hate bloatware. Mainly I hate all the at&t apps that take up space and Facebook, which I don't use.
-=[YOU MUST BE ROOTED]=-
**I am not responsible if your device stops working, blows up, causes thermonuclear war, or simply becomes alive and takes you to unicorn land! Do at your own risk!**
So. You almost must have twrp recovery. I don't think you can do this on cwm, if cwm has a file root file manager, then you could probably figure out how to do it there..
1. Boot into recovery (twrp)
2. Go to 'advanced'
3. Go to 'file manager'
4. Navigate to /data/app
5. Delete all the .apk files you don't need like Facebook home and at&t stuff you might not want.
6. Either
a) mount system as writable using a script inside recovery, and go to /system/app and remove the same .apk files
or
b) use a root explorer, mount /system as writeable, and remove the same .apk files
I recommend using es file explorer while your phone is still on and writing down all the types of apps you want to delete before deleting them. There are like 3 Facebook apps with code names so you might delete the wrong one. So make sure you know what you are deleting.
Yes I have already done this on my phone...no problems...
Sent from my HTC first using xda app-developers app
EDIT
Do the same process as well not just in data/app but also in data/data and system/app if you want a permanent removal (otherwise during a factory reset the apps will just reinstall themselves)
There is this Facebook OOBE system app. Do you know what it does?
I'm using App Quarantine..
Only root, no S-Off or deleting anything needed to get rid of the system apps.
G00fY2 said:
I'm using App Quarantine..
Only root, no S-Off or deleting anything needed to get rid of the system apps.
Click to expand...
Click to collapse
or clean master...it has an option to do so as well

Systemless root -Uninstall system app

I did try the search, but the answers were not clear as to the following questions:
If I am using systemless root, and I uninstall system apps, would that effectively modify "/system" and OTA updates will fail to install?
Also, I read that Titanium Backup is unable to uninstall system apps with systemless root and I need to manually delete the "/system/app/<app name>" folder with something like Root Explorer (mount /system r/w), is that true?
Thanks in advance
poodleDoo said:
.... delete the "/system/app/<app name>" folder with something like Root Explorer (mount /system r/w)...
Click to expand...
Click to collapse
OTA will fail on rooted devices.
System apps can be disabled in Settings. When deleted wit a rootexplorer the system partition is modified.
NLBeev said:
OTA will fail on rooted devices.
System apps can be disabled in Settings. When deleted wit a rootexplorer the system partition is modified.
Click to expand...
Click to collapse
Sorry, I should've been more clear.
I just installed FlashFire, and I am running systemless root.
If I delete a system app, would it prevent FlashFire to apply a OTA update; or is this a moot point?
And, I've read that with systemless, TiB does not actually remove system apps, is that true?
As for why I want to delete instead of just disable; why not?
Thanks
poodleDoo said:
If I delete a system app, would it prevent FlashFire to apply a OTA update....
Click to expand...
Click to collapse
The OTA checks modifications of system partition.
And, I've read that with systemless, TiB does not actually remove system apps, is that true?
As for why I want to delete instead of just disable; why not?
Click to expand...
Click to collapse
There is a lot written about 'systemless'.
The idea is that system files/folders are bind/linked to a 'su' folder. Apps are thinking that system is not modified.
Not all apps can be removed. Recently also Gmail can't be deleted. Disabling is the only option.
If you physically delete or change anything OTA will not work. Systemless SuperSU works by creating a Skylink with the user data partition and a modification withing the boot.img (the kernel). Any modification of any partition causes OTA to fail. So to successfully take an OTA you need to flash back the stock boot.img at the very least. Also the system.img if you made any modifications, and recovery if you are on twrp . . And modem.img and bootloader.img if they are not the ones that match the build you are on.
Sent from my Nexus 6 using Tapatalk

Integrate Updated System Apps

Hi there i have 4.0.2 rooted working right now but i like to integrate the updates of system apps to have some space. I have been doing it with all my phones and all android versions with rooted and r/w system parts file managers by copy&paste and giving right permissions (644) but i understand that something changed in nougat the way system apps are handled. when i push an apk as a system app and reboot, app disappears even if i gave right permissions. Some apps have libs and odex files also. For example Google Play Store app appears as /system/priv-app/Phonesky/Phonesky.apk but updated version is in data/app/com.android.vending-1 which contains lib and oat folders and base.apk. i used to copy just the apk file in exchange of phonesky.apk and chmod 644 reboot and go! that doesn't work anymore. i tried several apps like link2sd and system file mover, they won't work too. thanks for any help.
I figured how, and want to reply my own question
tried open gapps aroma installer and selected the ones that i want to remain and gapps did the rest. now my device has no updated system google apps. instead all gapps are under system.
AFAIK Titanium Backup has an option to intergrate system apps updates to /system

Is deleting only APK file is enough to remove it completely from the system?

On OxygenOS Stock ROM (4.1.6) there are some apps came pre-installed that I don't use. For example Google Gmail, Hangout also OnePlus's own calculator/clock etc. I want to delete those apps and replace Gmail with Inbox. completely remove Hangout, OPCalculator and OPClock with Google's Calculator and Clock. I have deleted those apps before by manually deleting them from inside /System/App and /System/Priv-app
Now, I'm trying to write my 'own' TWRP flash-able updater script to do such action. But I am kind of confused if only deleting an APK's parent folder is enough to remove the apps completely? For example, if I only delete the folder System/App/(Deskclock) - is that enough or there will be related files remaining somewhere else?
* I know Titanium Backup or other debloat apps can perform similar task, but the main purpose of this question is to know how can this be done manually and properly without leaving un-necessary files in the system.
Thanks.
Deleting the folder of an app in /system/app will remove the app from your phone (as in, not showing up in launchers or the Installed Apps list). However, app data and updates may still be saved in the /data partition. To make sure all of it is removed, first clear data and uninstall all updates to the system apps you with to remove from the Installed Apps list (disable it), then delete the APK either through a root explorer, or a recovery script.
Anova's Origin said:
Deleting the folder of an app in /system/app will remove the app from your phone (as in, not showing up in launchers or the Installed Apps list). However, app data and updates may still be saved in the /data partition. To make sure all of it is removed, first clear data and uninstall all updates to the system apps you with to remove from the Installed Apps list (disable it), then delete the APK either through a root explorer, or a recovery script.
Click to expand...
Click to collapse
Thank you very much! Appreciate your replay.
Suggest to use OOS debloater via twrp
Babloo289 said:
Suggest to use OOS debloater via twrp
Click to expand...
Click to collapse
Are you talking about this one? https://forum.xda-developers.com/oneplus-3/themes/aroma-oos-debloater-t3615828
Hi, Just a quick question.. as you mentioned here
Anova's Origin said:
To make sure all of it is removed, first clear data and uninstall all updates to the system apps you with to remove from the Installed Apps list (disable it),
Click to expand...
Click to collapse
1. I wonder if this is even possible inside TWRP, I mean targeting those unwanted apps, uninstalling updates+ clearing app data/disable them.. Or you are suggesting me to remove them manually from the OOS interface/settings one by one?
2. Also while in TWRP, none of those app (that I will remove) are not functional so what's the points of clearing app data/uninstalling updates? why not simply delete /system/app/(app.apk) and /data/app/(related files.)
Thanks again.
tushxda said:
Hi, Just a quick question.. as you mentioned here
1. I wonder if this is even possible inside TWRP, I mean targeting those unwanted apps, uninstalling updates+ clearing app data/disable them.. Or you are suggesting me to remove them manually from the OOS interface/settings one by one?
2. Also while in TWRP, none of those app (that I will remove) are not functional so what's the points of clearing app data/uninstalling updates? why not simply delete /system/app/(app.apk) and /data/app/(related files.)
Thanks again.
Click to expand...
Click to collapse
1) If you know where the extra data/updates are stored in /data, then you could use a recovery script to delete them. It's kind of one-shot deal though, as unless you open the apps again (after re-flashing a ROM), they won't have any data saved to them the next time you want to delete them.
2) If they aren't functional, they likely won't have much app data to begin with. I would clear the app data from apps like Google Play Music or Movies (if you don't want to use them) before deleting them. Random Engineering Test Tools and unessential services won't have much data stored and can be deleted directly.
i think its just fine bt read other comments too for better understanding.

xperia 1 ii apk Overwrite

How can I overwrite the apk in the system?
tobos said:
How can I overwrite the apk in the system?
Click to expand...
Click to collapse
You will need root and unlocked bootloader.
kamalaggi said:
You will need root and unlocked bootloader.
Click to expand...
Click to collapse
Thanks for the reply.
It is already rooted with bootloader unlock and magisk.
Can I do so afterwards?
tobos said:
Thanks for the reply.
It is already rooted with bootloader unlock and magisk.
Can I do so afterwards?
Click to expand...
Click to collapse
Yep. Either Uninstall using titanium backup or remove apk from wherever the system apk is. Then push (or copy) to destination and set permissions to 755
I can't overwrite it.
iArvee said:
Yep. Either Uninstall using titanium backup or remove apk from wherever the system apk is. Then push (or copy) to destination and set permissions to 755
Click to expand...
Click to collapse
Thanks for the reply.
The titanium backup allows me to disable the app, but not to delete it.
It also says Root Explorerde permissions change failed.
Is there any other way to do this?
tobos said:
Thanks for the reply.
The titanium backup allows me to disable the app, but not to delete it.
It also says Root Explorerde permissions change failed.
Is there any other way to do this?
Click to expand...
Click to collapse
FWIW I'm having the same issue. Titanium Backup Pro says it can't find the APKs and Remove System Apps app thinks it does and then really does nothing. I even tried Lucky Patcher, which does the same thing.
Root File Browser shows everything in System/App and System/Priv-App as being 755, but if I try to change it to 777, it says it fails. If I try to delete anything, it looks like it does it, but then nothing changes.
If I try to change permissions through ADB, it tells me that the file system is Read-only, and if I tried to run ADB as root, it tells me it cannot run as root in production builds.
Edit:
Solution: Install any terminal emulator, and the Debloater module from Magisk to remove system apps systemlessly (see Debloater module official thread here)
Edit 2: There are three apps, Call of Duty, Tidal 3 month free trial, and Linked in, which are located in /oem/app and they cannot be removed by this method. I do not know how to remove them...

Categories

Resources