So I installed auto wipe then backed up and tested the app. It sure works... But then I realized that since I made the backup AFTER installing. Every time I restore it wipes. So I tried putting it into recovery and loaded up ADB but whenever I try to access /data/app to uninstall the APK I get this.
Code:
/sbin/sh: cd: can't cd to app
Any help is appreciated.
Oh and yes I am root and I'm running CWM 4.0.0.2
The problem:
I rooted my Samsung Galaxy Ace and went exploring the root directory with Root Explorer. I renamed the folder "apk" found in /data to "apk_old", thinking that if everything worked, I could just delete it as it contained a handful of stock apks as well as several apps installed from the market. At the time, I though apks were needed just for installation and that by deleting the folder I would save ~30MB of internal memory. Well, I turns out I was horribly wrong. Several stock apps, such as Youtube or Maps and all market apps that were installed in internal memory have stopped working. In the app drawer, their icons have turned into those default apk icons and their names into com.something.blabla. I was getting crashes every 1-2 minutes from those apps. The widgets on my home screen, such as Google search or Homework 4x2 have also stopped working.
What I've tried:
*renaming the folder back to "apk", obviously. That didn't work, it said something like "execution failed"
*making a copy of the folder - failed
*zipping the folder - failed
*thinking there was a problem with Root Explorer, I installed Total Commander and Solid Explorer hoping I could rename the folder back. Total Commander cannot open the /data folder, while Solid Explorer says the /data folder is empty
*"pulling" all of "/data" with ADB - 0 files pulled.
However, as I was trying to clean up my own mess, things changed a bit. At some point the crashes stopped and all of the "corrupt" apps have simply gone away from the app drawer. While I was unable to do anything with the "apk_old" folder in /data, something changed so that right now I can't even access /data anymore.
So yea, I have a bad feeling that somehow everything inside the /data folder has been wiped, though I sure hope I'm wrong. Anyone have anything to advise?
Oh, and I also noticed that Superuser is gone. I tried re-rooting my phone from this link, it worked the first time I rooted, but not now...
http://forum.xda-developers.com/showthread.php?t=1552792
I don't know exactly what you have in /data/apk I guess is the same I have in /data/app all the installed package.apk
Since your system is compromised I would avoid to use programs from it like Root Explorer to change anything, and for the other programs looks like they don't have root access.
I would try with plain adb: http://forum.xda-developers.com/showthread.php?t=2141817
Once you have your phone connected with adb shell you can go root:
Code:
$ su
to list files and directories in /data
Code:
# ls /data
and then to rename the folder
Code:
# mv /data/apk_old /data/apk
then reboot the phone
good luck
I'm assuming those # signs were suppose to be $'s?, Anyways, what I typed into adb:
1. adb shell
2. $ ls data
What I get:
opendir failed, Permission denied
Another atempt:
1. adb shell
2. $ su
What I get:
su, and after a long pause - Permission denied
eh? So, apparently I can't get root access, what now?
the dficua
Ha, made progress. I installed Superuser through adb and it gave me permission to access data and to rename apk_old back to apk. However, the folder has been wiped of all the apps. Luckily, I have a friend who also has a Galaxy Ace, I'll just copy the folder and paste it into /data, hopefully i'll bring back the default apps.
$ is the normal shell
# is root shell
I forgot to tell you to try that on recovery mode to prevent the calling of SuperUser to grant privilegs, su binary itself should be in /system/xbin
When you restore apps remember also to fix permissions, user and group, it should be something like this:
# chmod 0664 /data/apk/*.apk
# chown system:system /data/apk/*.apk
check the right values in your friend's phone.
Rooted an Alcatel ONE TOUCH Evolve 2 and downloaded root explorer. i ran out of space so deleted /system/bin and /system/xbin thinking they were filled with stuff like busybox that i had downloaded. i try to open a shell with adb and it doesn't work. So i restarted my phone and now it only went to the white start up screen and nothing els. i used a adb to reboot into recovery wich is still t-mobile stock and reset to factory it didn't work and now i can't use adb except for sideload and i can't find the right version of kitcat . please tell me how to remotely turn on usb debugging or how to flash it please.
I have edited my build.prop in my hyundai at7, i have backed up the original one but now i cannot restore it tru adb (because it's bootloop on logo and when i do adb shell it says that is closed althrou it's root)
I have try to root it again in adb but uncessecefull, i have try to push build.prop but it says closed, my only option it's to reinstall the rom.
Does anyone have a rom that suits this model?
Tks
I am working on an Android project (for Rooted Phones). When I push a command "adb uninstall com.package" the data/data is deleted for that project.
But when I renamed it using mv /data/data/com.package /data/data/com.package1 then also adb uninstall command deletes this folder.
I don't want the renamed folder (data/data/com.package1) to be deleted when I trigger uninstall command.
I don't want to copy the folder to a new location because that is quite costly.
I also tried using "adb uninstall -k com.package" but the problem with that is that I am unable to install the new package with a different signature ( I need this further) as Android shows Signature conflicts of that of previous original app
Can anyone tell me how to achieve rename folder delete prevention?