How to correctly move app into /system/priv-app - Nexus 6P Q&A, Help & Troubleshooting

I'm trying to find a way to move an app from /data/app to /system/priv-app correctly. I'm on Oreo 8.1.0 with January 5, 2018 security patches. I'm rooted with Magisk v16.0.
I've tried using ES File Explorer to move it manually and apply correct permissions. I've tried using Lucky Patcher and Titanium Backup Pro to move it. With the manual move and Lucky Patcher, the app disappears (icon/shortcut is shaded out and doesn't work). With Titanium Backup, it starts the processing and sits with "Processing" forever.
Does anyone know of a way to move the app to system correctly?

What app are you trying to do it for? The most efficient way that I've found is to...
1. Install the app normally.
2. Find the app within /data/app/ and copy the folder to your internal storage
3. Uninstall the app
4. Copy and paste the folder either into /system/app/ or /system/priv-app/
5. Reboot and see if it works
---------- Post added at 05:32 PM ---------- Previous post was at 05:32 PM ----------
What app are you trying to do it for? The most efficient way that I've found is to...
1. Install the app normally.
2. Find the app within /data/app/ and copy the folder to your internal storage
3. Uninstall the app
4. Copy and paste the folder either into /system/app/ or /system/priv-app/
5. Reboot and see if it works
Edit: It would seem that XDA is lagging for me. Excuse the double post, lol.

jvnat said:
I'm trying to find a way to move an app from /data/app to /system/priv-app correctly. I'm on Oreo 8.1.0 with January 5, 2018 security patches. I'm rooted with Magisk v16.0.
I've tried using ES File Explorer to move it manually and apply correct permissions. I've tried using Lucky Patcher and Titanium Backup Pro to move it. With the manual move and Lucky Patcher, the app disappears (icon/shortcut is shaded out and doesn't work). With Titanium Backup, it starts the processing and sits with "Processing" forever.
Does anyone know of a way to move the app to system correctly?
Click to expand...
Click to collapse
If you mount system in TWRP, you can use file explorer in advance setting to move any file anywhere. No need to set any permissions. Just reboot. Been doing that for while now. No problems at all.

I use root explorer,install app normal .got to data/app.copy to system/privapp.then go back to data/app delete the app,then reboot.

Thanks for all the suggestions. I'll give those methods a go.

I am trying to install an app in /system/priv-app and the app is not showing up in Settings -> Apps even with "Show system" selected.
This is on Google HTC Nexus 9 (flounder) Android 7.1.1 Security patch level October 5, 2017. I used TWRP to remount the root filesytem rw and move the app. I am trying to install com.incorporateapp.fakegps_route-1.
I installed the app from the Google Play store and copied it from
/data/app/com.incorporateapp.fakegps_route-1
to
/system/priv-app/com.incorporateapp.fakegps_route-1
The directory and all files and subdirectories are owner and group root.root. The permissions on the directory and files and subdirectories look correct. The com.incorporateapp.fakegps_route-1 directory is 755.
The directory and files are look to be correctly placed on the file system under /system/app-priv. I've checked multiple times. The app does not show up in System -> Apps even if "Show system" is selected. I understand that Android is supposed to find the new app in priv-app on boot and install it. That does not seem to be happening. Any other suggestions? Are there log files on boot I can check for error messages? Any help is appreciated.
TIA.

I have the same issue. When I move the fakegps app from data/app to system/priv-app then I have no icon to select the application from the home screen.
even after a reboot.
anybody knows how to get back the fakegps icon to be able to start the application?

If you guys are using Magisk root, I've found a module called App Systemizer which through a simple command line interface is able to convert apps you pick and choose from a list of installed ones on your phone to convert into system apps. Then when updates occur I use titanium backup's "integrate system dalvik into app" feature (it hangs so you have to force close it but it does the job) reboot and it's done.
The raw copy/paste way which has been described here has messed up my phone once or twice, and gave me a message on boot that "My phone has been corrupted or something along those lines and to contact the manufacturer".

TaZeR369 said:
If you guys are using Magisk root, I've found a module called App Systemizer which through a simple command line interface is able to convert apps you pick and choose from a list of installed ones on your phone to convert into system apps. Then when updates occur I use titanium backup's "integrate system dalvik into app" feature (it hangs so you have to force close it but it does the job) reboot and it's done.
The raw copy/paste way which has been described here has messed up my phone once or twice, and gave me a message on boot that "My phone has been corrupted or something along those lines and to contact the manufacturer".
Click to expand...
Click to collapse
App systemizer just grants the app the status "system app"(likely through linking and granting permissions). It in no way moves it to the system partition.

Ive come to the same realization after running into some questionable free space on my /system Hehe. I copy the APK using TWRP now seems to do the trick.

TaZeR369 said:
Ive come to the same realization after running into some questionable free space on my /system Hehe. I copy the APK using TWRP now seems to do the trick.
Click to expand...
Click to collapse
what version of android can you get, I'm not getting on android 10 can you help me?

Above method didn't worked for me. Below worked perfectly and is safe:
1. Install the app as usual.
2. Copy the app folder from /data/app to internal storage
3. Uninstall the app and reboot to recovery
4. Copy the app folder from internal storage to /system/priv-app folder (If you don't see system folder then you need to mount "system" partition in recovery first)
5. Give permissions to app folder (for all 9 checkboxes), reboot. Enjoy

Anyone else unable to see the folder with the app they moved after a reboot? I want to de-systemize, but I can't now.
I took the folder for the app I want to systemize and moved it from data/app to system/priv-app. Then rebooted. The app is now systemized (can't uninstall it, only disable) But the folder no longer exists under PRIV-APP.
I've done this many times with other apps and I've never seen this problem. Is it because I moved the entire folder and didn't rename it?
After reboot the folder can no longer be found under system/priv-app OR data/app. The app is still installed as a system app. Where is the folder with the app?
Running Android 9. Pixel 3.

I have come across a very strange phenomena on Galaxy M12. When I install an app as user it exists in /data/app forder in a weird way. The folders in /data/app are like ~~h8DR1aXXIZfV_DXfqwYf3g== (see attachment) and in these folders there is another folder with the app package name. On regular devices I hvae seen app package folder in /data/app itself.
When I copy the app package folder from /data/app/~~h8DR1aXXIZfV_DXfqwYf3g== to /system/app it does not work. I can see the app folder after reboot or even reset but app in not installed on the system. I have confirmed by running the activity using 'am' and tried listing with 'pm'. I have also given same permissions as other app folders in /system/app. I have also tried /system/app~~h8DR1aXXIZfV_DXfqwYf3g==.
Edit: As it turns out when I am copying to /system/app the base.apk is not copied properly. I have tried it multiple time, the system is mounted. Whatever I do it is either 0 kb or 100 kb exactl and the file is ~6mb. Still strange behaviour.

Related

Reinstalling a stock app

I've installed Vibrant6 and one of the things that was not included was the memo app. The memo app I noticed in a nandroid backup appears that it would be in the /system/app folder.
I used Root Explorer and copied over the memo.apk, but I doesnt' appear to show up in the app drawer nor in the phone app when you are trying to take a memo while on the phone.
Am I nuts?
kizer said:
I've installed Vibrant6 and one of the things that was not included was the memo app. The memo app I noticed in a nandroid backup appears that it would be in the /system/app folder.
I used Root Explorer and copied over the memo.apk, but I doesnt' appear to show up in the app drawer nor in the phone app when you are trying to take a memo while on the phone.
Am I nuts?
Click to expand...
Click to collapse
No, your not nuts...I noticed Root Explorer has done this to me in the past too. Its usually only when copying over apps that have been in a system folder. Anyway, here's how I do it everytime(i use this a lot)
1. Put memo.apk on internal sdcard
2. Go in terminal(download if you don't have)
3. Type 'cp_/sdcard/memo.apk_/system/app'
Enter(the underscores are spaces)
4. Don't exit terminal
5. Type 'reboot'
Enter
6. When it restarts it should be in the drawer.
I'll give it a try so basically what you are saying is to use terminal opposed to Root Explorer.
I'm pretty good at console, but I was figuring it would just copy right over. Heck I even made sure the permissions are the same. Go figure. LOL
I'll give it a try tomorrow and thanks for the heads up that Root Explorer could be the cause of the problem.
sure thing, have fun
The problem I'm seeing now is when I load up the Memo.apk and the Memo.odex file into the /system/app/ folder my phone boots and then all of the sudden I get a black screen and the soft touch buttons are lit up.
I figured it was a permission thing at first so I loaded up my nandroid copy and then tried again changing the permissions to the same as everything else in the folder.
I had an issue with my fat fingers so I tried the old favorite SU File Manager and everything copied over fine, but I'm not sure if its the SU File Manager causing issues or something else.
Honestly I just forgot the line on how to change the system directory to read/write so I tried to short cut it via an app.

Application not installed error (root explorer)

I am trying to install APK's that I deleted. I moved the copied APK's from the SD card to the system/App file and tried to install through root explorer but I keep getting error (application not installed)? I have reset permissions and tried again but same error, any help?
For future reference?
If u want to change for example the camera app /apk you have to place the new apk where the old one was instead of installing ...if thats your problem ^^
Sent from my HTC HD2 using XDA Premium App
System APK's or APK's in use (loaded at startup) cannot be installed, you would have to copy and paste, or push the file to the location which would overwrite the old one if the file name is the same.

properly moving keyboards to system/apps

Here is how I've been doing it, somehow this seems wrong:
1. install the app
2. in super manager navigate to data/app and cut the apk from that folder
3. navigate to system/app and paste the apk in that folder
4. install from the pasted apk.
Seems it would leave traces from the old install right? like data path?
Also how do I chmod? I'm tried installing sougou from the app store which installed to data/app-private with only read write privledges, so when I tried to move it to the system folder it wouldn't execute/install.
Is there any easier way to do this and how can I get permissions to re-install the app in the system folder?

Help android secure folder

Hello guys i have an issue with one app i couldnt install it says "app not installed" I readed i need to delete smdl2tmp1.asec in android secure folder on the SD but i dont have that folder anywhere, i have i9505 with android 5.0.2... so what can i do ?
Thanks.
JezZu said:
Hello guys i have an issue with one app i couldnt install it says "app not installed" I readed i need to delete smdl2tmp1.asec in android secure folder on the SD but i dont have that folder anywhere, i have i9505 with android 5.0.2... so what can i do ?
Thanks.
Click to expand...
Click to collapse
If you're rooted you can force-install the app by moving the apk into the /sytem/app folder or /system/priv-app folder.
Note: System apps are installed in /system/app folder. User apps are installed in the /system/priv-app folder.
Then set the right permissions for the apk, reboot your device and you're done.
JezZu said:
Hello guys i have an issue with one app i couldnt install it says "app not installed" I readed i need to delete smdl2tmp1.asec in android secure folder on the SD but i dont have that folder anywhere, i have i9505 with android 5.0.2... so what can i do ?
Thanks.
Click to expand...
Click to collapse
You had a similar app already installed and it was moved to sdcard
So now you have to identify which app is this and then uninstall it from your phone
Second option is to insert your sdcard into pc and then you will get /.android_secure folder then just look for the file and delete it
But i will recommend to remove deprecated app first.
GDReaper said:
If you're rooted you can force-install the app by moving the apk into the /sytem/app folder or /system/priv-app folder.
Note: System apps are installed in /system/app folder. User apps are installed in the /system/priv-app folder.
Then set the right permissions for the apk, reboot your device and you're done.
Click to expand...
Click to collapse
Ok i did what u tell me i move the apk to system/app folder, i reboot my device and it appears as icon then when i open it Force close i think is for the permissions but i dont know what permissions i need to set.

Delete folder in system/priv-app

So here is my issue,
I installed the app GPSJoystick, it worked fine, but (stupidly) I decided to update the app. It's not a root app but it has some additional functions when installed as system app. In order to do that, I used a Magisk module called App Systemizer (terminal emulator). It worked, but the app was not performing the way I wanted it to so I decided to uninstall the app and revert to the older version.
Here is my issue, I uninstall the app but there are empty folders remaining in the system/priv-app folder, and no matter what I try, I cannot delete them. I tried to use a root explorer app (several of them) but it didn't work. I tried to use the TWRP file manager, but the folders are not (for some reason) visible to it. I also tried to use adb shell but to no avail.
It's not really breaking anything, it's just annoying. The only app that doesn't work is the GPSJoystick app. I think it's because of the remaining files. Is there a way to manually delete all of the remaining files and folders? I know where they are, but simply cannot delete them.
Can anyone advise and help?
To summarise, I have 2 folders in system/priv-app that I can't delete, and need help with that.
Thank you!
EDIT:
I forgot to mention:
I'm on 9.0.12, stock recovery, rooted with Magisk 18.1
In TWRP, did you ensure to mount system before?
rickysidhu_ said:
In TWRP, did you ensure to mount system before?
Click to expand...
Click to collapse
Yes. I can see all other folders but not the ones I want to delete.
TDoric said:
Yes. I can see all other folders but not the ones I want to delete.
Click to expand...
Click to collapse
Hmm, it may not be in the usual system/system/priv-app folder since a Magisk module systemized it. You might need to play around in some Magisk folders in the root section of your phone. Just a suggestion, I could be wrong.
Now, you see, that's why I love XDA.
I tried everything but to look at the Magisk module. So I tried uninstalling the module, and what do you know, the folders are gone. I couldn't see them in TWRP because the module was not loading then, and I could not delete it while in system because they were in use by the module.
So thank you very much, the "issue" is resolved!
Thanks again!

Resources