How to reinstall /data/app - General Questions and Answers

I have read that /data/app is where all apps are stored. So, I copied /data/app but when i try to copy the folder over, after a restart, it is gone, even if I try the same inside TWRP. I can see the directory in the TWRP file manager but after a reboot it is gone as well. Can I somehow install those /data/app directories I have saved on my PC?

This should help
https://forum.xda-developers.com/t/how-to-get-install-back-uninstalled-apps-apks-with-adb.3894235/

hmm, no, sadly doesn't work. The folder still gets deleted and the app not installed

You better mention your phone manufacture and model.
And then go to the specific forum to ask for help.
Different phones have different encrypting methods to restore, and not always success.

PalanixYT said:
I have read that /data/app is where all apps are stored. So, I copied /data/app but when i try to copy the folder over, after a restart, it is gone, even if I try the same inside TWRP. I can see the directory in the TWRP file manager but after a reboot it is gone as well. Can I somehow install those /data/app directories I have saved on my PC?
Click to expand...
Click to collapse
Unless you have your device's Android rooted, you cannot see the contents of this directory and it will appear to be empty. This is because Android does not allow access to this location within the file system. Android uses the /data/app directory for managing app data, and any tampering with files in this location could cause problems.
Therefore: To access directory /data/app you must mount it as RW what requires Android is got rooted.

Yes, I do have root, it's just that I can't put any apps there, because they will get deleted after reboot. That's all there is. I just ended up installing the apps manually

PalanixYT said:
Yes, I do have root, it's just that I can't put any apps there, because they will get deleted after reboot. That's all there is. I just ended up installing the apps manually
Click to expand...
Click to collapse
Try migrate app.
https://forum.xda-developers.com/t/3862763/
It will generate a zip file to restore.
You can try manually alter the zip file with your data you backup and hope it restores.

Related

[Q] Super Manager help

Need help with super manager, at one time there was a detailed instruction using super manager to remove apps from system and put them in a separate folder on your sd card. I have searched and no luck. Went to super managers website and no instructions on how to create the new folder on your sd card. thanks.
I don't use super manager, but you can create a new folder using the files app and then copy whatever folder you want to the folder you created. Long press the folder in super manager and that should give you a bunch of options
Sent from my SGH-T959V using XDA Premium App
the article had using super manager to remove bloat and then creating another folder on the sd card so if you needed to put it back into the system you could just cut and paste back.
Create a folder in your SD card for these .apk backups. Example: I have a folder in my SD card called "Backups".
What you do now is go to /system/app. You should see all your .apk files there. For anything you want to remove, just check it off and delete it. If you want to back it up, copy it and paste it to your backup folder. When you want that app again, just copy and paste it back into /system/app. Reboot if necessary.
Be sure that you have root function enabled. You do that by hitting Menu > Setup > Enable ROOT function. Obviously, this whole process (except for creating a folder in your SD card) requires root.
Also, going into /system should ask you if you want to go into R/W mode (read/write mode). You need to enable that if you want to delete anything. If it doesn't ask you, you can always hit Menu > Switch System R/W. That should do the trick.
If you actually read through my long post, then here's another solution. Use Titanium Backup and select your apps to backup, remove, and/or restore.
if you flashed a rom with cwm, then your apks are backed up anyway. this backup is in the form to the zip file. open it up, go to system/app and all of it will be there. i usually experiment with adding and removing things and when i find out what works, i make sure the changes are reflected in the zip file. this way, when i flash the rom, everything i did is already there. i do this with tweaks, apps, cwm, etc.
i always encounter problems when i backup things with tb, so if you also experience problems, cwm is an easy alternative, as well as bkoons method above. just wanted to point out you can edit the rom before you even flash it.
Thanks jager555, that worked and when I went back to super manager the new file I created for bloat appeared.
my dear friends, I started the removal process with the system apks just to remove some internal memory and install my favourite apks, live kingsoftoffice, instead of quickoffice. everything went fine, apks disappeared from the phone and from ./system/app... BUT the internal memory hasn't in any way been affected... WHY?

[Q] Accidentally unzipped CM10 then placed on root, how do i remove these files?

Since i'm still on stock and I was supposed to place the rar file on the root, not the extracted files.. How do I remove all the extracted files??? backing up from my restore wont work because I did the backup after I placed all the files on. DOH!
rybednarski said:
Since i'm still on stock and I was supposed to place the rar file on the root, not the extracted files.. How do I remove all the extracted files??? backing up from my restore wont work because I did the backup after I placed all the files on. DOH!
Click to expand...
Click to collapse
With root explorer app of your choice. Or Odin back to stock.
in the CM10 rar is has 2 folders: system and meta-inf
When i copied it to the phone the system folder merged with system folder on my phone, along with all the other deeper folders.
So so i have to go through an manually select ALL the files that merged and arent supposed to be there since im still running my stock rom.
That's essentially my question.
Think you need to Odin stock firmware .tar image to format and restore system partition unless those folders are still intact and show as system/system and system/meta which is possible. They need to run the binary to split the files inside the folders. You only copied the folders to the root. Should not have split them up. I could be wrong. Not sure how you copied them to system root. Should have went to SD root. Can't access system root from PC via USB. Would have to put there with file explorer.
Download the original zip, explore all its contents and remove each one individually.
annoyingduck said:
Download the original zip, explore all its contents and remove each one individually.
Click to expand...
Click to collapse
They should just be sitting on the sd card. There are no original system, meta ect folders on sd card to merge with. Has me confused. Can't access system root from PC without using ADB. Also if on SD root would not affect anything and would not be in backup. Just delete the main folders that were extracted from the zip from the SD card.
Agreed
i have no sd card. I installed abd then moved then extracted zip to the root of my internal memory. ATM i have installed CM10 and have no issues except for a huge chunk of my memory is gone.. if i delete the system folder from the root is it going to mess up a bunch of other things??
rybednarski said:
i have no sd card. I installed abd then moved then extracted zip to the root of my internal memory. ATM i have installed CM10 and have no issues except for a huge chunk of my memory is gone.. if i delete the system folder from the root is it going to mess up a bunch of other things??
Click to expand...
Click to collapse
As long as it is on internal memory (SD) and not in the system partition should be no problem. If you mounted system in adb it is on or in the partition and not sure what to do except odin to reformat the partition. Some AOSP roms report the memory available wrong.
But he should have no issue finding it regardless of aosp storage issues. Op has no external, so he's either mnt/sdcard, internal, or usb storage. Emmc is out of play. Files should be clear as day. If you can put them on your root, you can take them off.
Agree with prdog, just Odin back if your unsure. But completely fixable.....
If I were you I'd give it more of a try without Odin just for the educational value.

[Q] How did my sdcard get "wiped" when I installed the newest AOKP ROM?

OK, so I'm using wiped in quotes because according to my available free space, it appears my data is still there somewhere. It's just that it's really not and I don't understand why (or where it may be hiding). I've done this many times and never had this problem, so I don't think I did anything wrong, but here are the steps I took: I made a TWRP backup. I wiped my cache, then my Dalvik cache, and then did a factory reset. I installed the new AOKP ROM (aokp_d2vzw_jb-mr1_build-3), installed Gapps, and installed the flashable zip for Titanium Backup. I then booted into Android with no problem, went through the setup process, and rebooted into TWRP. At that point, I was going to install the flashable update.zip I created from Titanium Backup, but I couldn't find it or any of my normal files or folders. I booted back into Android and checked again with a file explorer and sure enough – it's only showing the basic folders you start with and none of my content is there. Like I said, it appears my data is still there somewhere according to my available free space, but I haven't been able to find it anywhere. When I was in TWRP, I hit the button to restore and it showed me my two Nandroid backups, so I feel like the files have to be hiding somewhere.
I'm not really sure what caused it, but I know the files were still there after the wiping and the factory reset, or else I wouldn't have had the zip files to then flash. Therefore, I feel like it had to be during the AOKP or the Gapps install where my sdcard got erased (I forgot to mention my Titanium Backup somehow never got installed). Oh, and just to be clear, I'm talking about the internal (emulated) sdcard, so I can't simply pull it out and put it in my PC to search the contents.
Does anyone have any idea how this happened or where my files are? I'm tempted to do a restore to see if get everything back so I can then make more backups and store them somewhere else.
On your internal SD, do you have a /0 folder? methinks all your stuff's in there....
It's an artifact of flashing 4.2.1 and it's "multiple user accounts" feature
letinsh said:
On your internal SD, do you have a /0 folder? methinks all your stuff's in there....
It's an artifact of flashing 4.2.1 and it's "multiple user accounts" feature
Click to expand...
Click to collapse
No, I don't have a /0 folder on my sdcard. I did find a /0 folder somewhere in my root, but it only mirrored what's currently on the sdcard.
I found it! It's not on my card, but in the root, under data/media. There is a /0 folder in there as well and it links to the sdcard folder. To be safe, I'm going to first copy everything to my real external sdcard before trying to put it back.
/data/media is the real path for your internal sd card. All the other paths (/mnt/sdcard0, /sdcard, /storage/sdcard0, etc) are just pointers that look at the /data/media location. If you were looking in any of those other locations, the 0 folder should have been seen...
Either way, I'm glad you found your data!
letinsh said:
/data/media is the real path for your internal sd card. All the other paths (/mnt/sdcard0, /sdcard, /storage/sdcard0, etc) are just pointers that look at the /data/media location. If you were looking in any of those other locations, the 0 folder should have been seen...
Either way, I'm glad you found your data!
Click to expand...
Click to collapse
Well, that makes sense, but I assure you it isn't showing. The only thing that's showing is the contents of the /0 folder which is inside the data/media folder.
In other words, it appears the system created a /0 folder in my internal sdcard and decided that new folder would now be my internal sdcard. So if I'm trying to browse the internal sdcard, I have no way of going up a level and getting to my old content; the system considers that part of the root. Luckily, I can use FX File Explorer to get in there and access the files.
JerseyMike4 said:
Well, that makes sense, but I assure you it isn't showing. The only thing that's showing is the contents of the /0 folder which is inside the data/media folder.
In other words, it appears the system created a /0 folder in my internal sdcard and decided that new folder would now be my internal sdcard. So if I'm trying to browse the internal sdcard, I have no way of going up a level and getting to my old content; the system considers that part of the root. Luckily, I can use FX File Explorer to get in there and access the files.
Click to expand...
Click to collapse
It's like that because of Android profiles you can create now on 4.2, so basically I'd you were to make another profile it'd be /1 and so on.
Sent from my SCH-I535 using xda app-developers app
GoonAssJuan said:
It's like that because of Android profiles you can create now on 4.2, so basically I'd you were to make another profile it'd be /1 and so on.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
That makes sense. But it would have been nice if the system "moved" my data automatically when I upgraded.

[Q] File recovery in root folders? (/data/)

I just lost one off my app's data (settings, etc, ...) and I'd like to try undeleting them. I know they were in the /data/data folder.
I found some file recovery apps on the store but it seems like they only scan the /sdcard/ folder.
I looked into mounting the sdcard on my PC and running a recovery software there, but mounting the root folder doesn't seem possible.
Any idea that might make this possible?

[Q] Can't delete folder in internal storage

hi, im having problems deleting a folder in my internal storage.
my phone is Lenovo A328, stock rom, rooted, and running on kitkat.
i didn't do any tweaking on my phone besides rooting.
i noticed while browsing my internal folders, in Android/data there is a folder named "com.com2us.soulcollector.normal...." 16.74mb in size.
it's from the game soul seeker, and i've already uninstalled the game, i tried to delete it but cant be deleted.
here's what ive done so far:
-i used other browsing apps like root explorer and root browser
-renamed the folder and delete, but can't
-moved the folder to other location in internal (cant move to external), still cant delete
-downloaded the game again and made sure the folder name and location is the same. then uninstalled the game, still the folder is there.
-edit the permission but cant.
-reboot device
-clean junk files using clean master
i dont want to restore or reformat my device. its a pain trying to download and reinstall again all my apps.
please help!
jemzbenz said:
hi, im having problems deleting a folder in my internal storage.
my phone is Lenovo A328, stock rom, rooted, and running on kitkat.
i didn't do any tweaking on my phone besides rooting.
i noticed while browsing my internal folders, in Android/data there is a folder named "com.com2us.soulcollector.normal...." 16.74mb in size.
it's from the game soul seeker, and i've already uninstalled the game, i tried to delete it but cant be deleted.
here's what ive done so far:
-i used other browsing apps like root explorer and root browser
-renamed the folder and delete, but can't
-moved the folder to other location in internal (cant move to external), still cant delete
-downloaded the game again and made sure the folder name and location is the same. then uninstalled the game, still the folder is there.
-edit the permission but cant.
-reboot device
-clean junk files using clean master
i dont want to restore or reformat my device. its a pain trying to download and reinstall again all my apps.
please help!
Click to expand...
Click to collapse
Try remounting /data as RW.
So, if you're using ES Explorer, open menu, inside Tools, click on Root Explorer.
Then click Mount R/W. And mount all partitions as RW.
This may help
GokulNC said:
Try remounting /data as RW.
So, if you're using ES Explorer, open menu, inside Tools, click on Root Explorer.
Then click Mount R/W. And mount all partitions as RW.
This may help
Click to expand...
Click to collapse
tried it but still no good. im really not liking this kitkat.

Categories

Resources