Delete folder in system/priv-app - OnePlus 6T Questions & Answers

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!

Related

Re-installing the Gallery and Odex for it

Ok, made a slight error on my end. I was having gallery issues and clearing the cache did nothing. I moved some files via Root Explorer instead of thru the gallery so the thumbnails are messed or whatever. Tried clearing the cache no dice. Tried to force it to rescan files, no dice. Said, ok i have solved this before by removing the gallery, and re installing it. So i copied the MediaGallery.apk file to my SD card and used Titanium Backup to uninstall the gallery.
Now i can't re install it. It keeps failing the reinstall. I have tried doing it from the SD card with Root Explorer, i have tried copying it to the /system/app/ folder and still no dice. Still fails install. Have it set to RW, nothing.
How do i go about re installing this app and the odex for it? I was stupid and didn't copy the odex. Yes i know, stupid. I have re-installed it before. I don't think i did anything different. I even changed all it's permissions to everything can be done(checked everything off), just in case it was that. Still nothing
Any help would be greatly appreciated. Yes i know i did somehting very dumb, feel free to remind me, but only if you can offer some sound advice first.
Why don't you just try the 3d gallery?
my only issue there is what happens when an OS or software update comes up? I would brick my phone because i lost a critical file that is needed for the update. Not a good thing.
I think i might just use Titanium backup to backup all my apps and such, make sure all my normal app settings are backed up too, then just do a factory reset. I read elsewhere that the reset would put the gallery back, in some other thread, i just am worried about how long it would take to put everything back the way it was. I will keep dicking around today trying to get it to install and if i can't figure it out by the time i wake up tonight (work third shift) then i will just wipe and reload.
Flash this, kind sir.
http://www.mediafire.com/?4ncc844g9pngsdz
One...You are awesome. Thank you very much.
two...how do i "flash" it? Just install the APK or do i need to move the META-INF files too? Or do i just execute the zip file in something like Root Explorer?
Sorry, never done OS flashes either.
Legato Bluesummers said:
One...You are awesome. Thank you very much.
two...how do i "flash" it? Just install the APK or do i need to move the META-INF files too? Or do i just execute the zip file in something like Root Explorer?
Sorry, never done OS flashes either.
Click to expand...
Click to collapse
You have to use the "Install zip from SD card" option in ClockworkMod Recovery.
Sent from my DROIDX using XDA App
In case that wasn't clear enough...
You can either download "Droid X Bootstrap" from the market (It's like $2, I think)
Or you can download "Rom Manager" (the free version works).
If you downloaded Droid X Bootstrap...
Open it up and click "Bootstrap Recovery"
When an "ok" dialog pops up...click "Reboot Recovery."
You'll now be in Clockwork.
_____________________
If you download "Rom Manager" there will be an option to install bootstrap.
Simply do that...
Power your phone off...
And hold the VolumeDown+Power buttons until you boot into clockwork.
______________________
From clockwork:
Choose install zip.
Choose zip from sdcard.
Find the .zip
Click yes.
Click Reboot.
Awesome, thank you all very much. I already had the bootstrapper program and ROM manager, i wanted to get into flashing ROMs but never got around to it. LOL
Just flashed it and it doesn't show in the app drawer, but i can find it in /system/apps/ with the proper app permissions. But still no dice on the app drawer. I Rebooted twice more and reinstalled it each time, with no success. It has no Odex file with it in the /system/app/ directory. Should it?
Thank you all again very much for your help
http://www.chadhaney.com/droidXDefault/
Thank you SOOOO Much.
Got the gallery to show up, occasionally. LOL Every other reset it dissappears, but if i reboot again, it reappears. Neither the original or 3d work, still won't see any files on the SD Card. Whatever, i got it to show, can worry about using stock gallery later. Everything else can read it fine. Still need to figure out how to get it to stick permanently so i don't lose every other reboot. Never had this happen. I can even check titanium backup and it wont be listed in the apps installed on times it isn't in the app drawer. But the times it is in the app drawer i can find it in active apps in titanium backup...

Need help uninstalling swype

Recently flashed Malice v5. Now get message that I have to update swype which requires uninstalling except that under app management there is no option under swype to uninstall. I unistalled the installer and deleted the apk. What else can I do?
scooter421 said:
Recently flashed Malice v5. Now get message that I have to update swype which requires uninstalling except that under app management there is no option under swype to uninstall. I unistalled the installer and deleted the apk. What else can I do?
Click to expand...
Click to collapse
Got to system/lib/
Delete libSwypeCore.so
Rerun Swype installer.
you can use titanium backup to uninstall it.
then when you install it through the installer, it will show up in manage apps in settings.
Thanks jneal9 but I can not delete the file. I have Astro and File Expert. Neither worked.
Thanks funeralthirst. Was able to uninstall but I still need to delete the .so file
after much searching I found an alternative to root explorer- super manager. was able to delete the .so file
Thanks for the help. I learn something new everyday.
scooter421 said:
Thanks jneal9 but I can not delete the file. I have Astro and File Expert. Neither worked.
Thanks funeralthirst. Was able to uninstall but I still need to delete the .so file
after much searching I found an alternative to root explorer- super manager. was able to delete the .so file
Thanks for the help. I learn something new everyday.
Click to expand...
Click to collapse
Try root explorer, astro can't access the file.
I was trying to install the lastest swype beta apk following almost all the steps above (I didn't erased the files, only renamed them) but wasn't successful, is there any other way? I'm using ES Explorer (with Root Explorer option checked)
The above mentioned steps worked for me:
-uninstall with Titanium
-delete the libswypecore.so file
I used Super Manager for the root explorer. Search marketplace for this. It's free and Root Explorer is not. In either of them you need to change the permissions of the file from r/o to r/w (read only to read write).
The thing with Titanium is that once before i've tried to install a new email app, so I used this Titanium to uninstall it first and when i've run the installer it showed "Application Not Installed" no matter how many times I excuted it, and this totally messed my phone up, I had to odin back to stock!
So, in this case is safe to unistall Swype and the installer apk won't give that error?
I make no guarantees but what is mentioned in this thread works. And, as I've learned the hard way, you should make a backup of your phone before flashing anything.
Follow the above steps. Not only remove the AOL but also the file"kinetoscope.so". Use root explorer or super manager to do this.
It seems like it's alot of work but once you have everything you need it goes fast. Searching for the answer is the hardest part.
Sent from my SGS-t959 using XDA App
ok 2 things
1. ES File Manager (Root explorer for free on market
2. when you uninstall Swype using Titanium Reboot phone before reinstalling Swype. Same with most applications. Rebooting clears out the temp files that can corrupt a reinstallation.
Hi,
I've only had an android phone for a month or two (Samsung Galaxy S2, 2.3.3 Gingerbread, not rooted)
I have the same problem removing swype with no 'uninstall' option (trying to update to new version). All of these solutions seem to require a rooted droid, is that the case or have I misunderstood?
Can anyone offer a solution that does not involve rooting?
Thanks!
djbeezo said:
Hi,
I've only had an android phone for a month or two (Samsung Galaxy S2, 2.3.3 Gingerbread, not rooted)
I have the same problem removing swype with no 'uninstall' option (trying to update to new version). All of these solutions seem to require a rooted droid, is that the case or have I misunderstood?
Can anyone offer a solution that does not involve rooting?
Thanks!
Click to expand...
Click to collapse
If Swype came preinstalled you won't be able to remove it without root.
Thanks for your reply jneal9. Swype did not come pre-installed on my phone, I had to download the beta to be able to use it.
However, after I updated the Swype Installer (so that I could then update Swype itself) it gives the message "Sorry, the Swype Beta is currently unavailable for devices that have Swype preinstalled" (which it definitely did not).
Is this something that anyone has come across before? I'm a bit surprised that it seems like this application (although I do realize that it is a Beta) cannot be uninstalled without rooting the phone!
Thanks!
This also happened to me when i was on malice v5. i tried everything to get swype back but to no avail. i switched from that to miui because malice will soft boot while ur on the phone when u have 30% or less battery.
I had the same problems and hopefully this will help others: first I had tried to restore Swype from Titanium and got Force Closes. Then, I downloaded a new version of Swype and after deleting the old installed: "Application Did Not Install" then I went to /system/lib and saw that libswypecore.so was NOT there. So after many combinations of the above recommendations, I finally did this: deleted all traces of Swype, rebooted phone, used Root Explorer to change /system/apps to R/W, copied the latest Swype in, ran the install (success), then EXTRACTED the libswypecore.so from the Swype.apk and manually copied to /system/lib and changed the permissions to the recommended settings above. Worked! No Swype alerts me to a new version, I download within Swype, it asks to replace, I say yes, and the installation fails! At least the version I loaded still works.

[Q] Problem With Package Installer

I am having a problem with the package installer on my Nexus 7. (Wi-Fi, 32 GB) I think I may have done something to it accidentally while browsing through the system files. I did click to install the installer itself out of curiosity, though, but I don't know if that could have any adverse effects on anything. I cannot install any apps, whether they're from the Play Store or an APK through a file explorer. I get error 406 when I try to download anything from the Play Store. (Except when I tried to update ES File Explorer. That worked fine... Every other app that I've tried will not update/ download.) When I try to install an APK, I get a message like, "There is no program to open this file." I had just rooted my Nexus after having it for nearly a year with the Motochopper root exploit, so the bootloader is still locked. I could still install apps, though, until after my first reboot. Could anybody identify the problem? Any help would be greatly appreciated!
you might have removed packageinstaller.apk thats in the system. you can fix it by getting the correct packageinstaller.apk from the interent and move it to the correct /system/app path and apply CORRECT permissions for it
Billchen0014 said:
you might have removed packageinstaller.apk thats in the system. you can fix it by getting the correct packageinstaller.apk from the interent and move it to the correct /system/app path and apply CORRECT permissions for it
Click to expand...
Click to collapse
It's still there. I think installing it with itself out of curiosity is what messed it up. It now shows up in the installed apps menu in Settings.
TheZeldaLova said:
It's still there. I think installing it with itself out of curiosity is what messed it up. It now shows up in the installed apps menu in Settings.
Click to expand...
Click to collapse
Change its permissions to the same as the other apps in the same folder should fix it
Billchen0014 said:
Change its permissions to the same as the other apps in the same folder should fix it
Click to expand...
Click to collapse
It doesn't seem that I am able to change permissions. I'm just going to back everything up and either flash a stock rom or another good rom. Thank you very much for your help anyways.
Same problem..
What do you mean about "changing permissions"? If you mean to change the file properties to -rw-r-r- then that didn't worked for me .. pls help!

How can I turn action launcher into a system app?

Apparently the action launcher dev managed to implement Google now into it, making it work just like on the original Google now launcher. But the app needs to work as a system app. I tried downloading the apk from apkmirror and copied it into system/app and set all the right permissions, it didn't work. I also tried it via lucky patcher and titanium backup, still didn't work. After I reboot the app is just gone, like it was never installed.
Did you just throw it into /system/app? Because I tried that before as well with another app and the same happened. The solution was that you need to create a folder for the app, like /system/app/actionlauncher.
Edit: Wait, I'm wrong. It worked for me when I put the apk into /system/priv-app/yourfoldername. So try it with that location.
AaronAverage said:
Did you just throw it into /system/app? Because I tried that before as well with another app and the same happened. The solution was that you need to create a folder for the app, like /system/app/actionlauncher.
Edit: Wait, I'm wrong. It worked for me when I put the apk into /system/priv-app/yourfoldername. So try it with that location.
Click to expand...
Click to collapse
I installed the app normally from the play store, then I went into data/app and moved the entire app folder to system/priv-app like you recommend and I set the right permissions. I rebooted and the app is gone, it's like it wasn't ever installed.
Then try to put the apk into system/priv-app/ without any subfolder.
If you it's possible to create backups in this launcher, make a backup and uninstall first.
AaronAverage said:
Then try to put the apk into system/priv-app/ without any subfolder.
If you it's possible to create backups in this launcher, make a backup and uninstall first.
Click to expand...
Click to collapse
Tried. Not working.
Then I have no idea tbh. One of these two options worked for me a while ago.
Maybe there's some updated app that can do this?
I don't know. I think Titanium and Lucky Patcher are always held up to date and you said they wouldn't work.
Here's a screenshot of my system app's location and permission. I put it there, restarted, and it said "Optimizing app 1 of 1" like when flashing a fresh ROM and was successfully installed.

How to correctly move app into /system/priv-app

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.

Categories

Resources