Cannot delete files or folders within /data/data/ - Asus Transformer TF700

Setup: CROMI 3.4.7 with Data2SD
I am having issues deleting folders and files within the /data/data/ portion of my file structure. I have tried with both th File Manager HD and ES File Explorer but I keep getting messages saying that I am unable to delete those folders and files.
The reason I am trying to delete this is because I was unable to install certain apps, and continually got an error message during installation that said:
Unknown error code during application install: "-24"
From searching forums, I found that the issue is that previous installations (I guess I forgot to do a factory reset before reflashing a ROM) left certain system folders and files for certain applications, which prevented a fresh installation from taking place. Other users have resolved this issue by deleting the relevant files in the /data/data/ section of their tablet.
I have circumvented the issue by renaming those folders (which for some reason works), but still cannot delete those renamed folders. I've tried messing with the permissions, but still no luck.
Any ideas?

Possibly an ownership problem?
Boot into recovery, plug in the USB cable, go into adb shell. Make sure that /data is mounted. Then do something like:
cd /data/data
chown -R media_rw.media_rw *
Might wanna backup first...

danger-rat said:
cd /data/data
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
Don't do that if you want any apps to work afterwards.

Eeeeek, good catch!
I was thinking data/media.
You could do this just for the specific folders you want to delete, but not all...

Related

The proper way to remove a system applications

Dears,
I'm using the last Cyanogen and I would remove some applications that stay in /system/app. I know that I can do this just with:
- rm /system/app/NAME.apk
- rm -r /data/data/NAME
but in this way the application data remains in /data/system/packages.xml: I don't want to manually change this file. Is there a more clean and automatic way to do that?
For the applications in /data/app, I can use 'adb uninstall NAME' but it seems that is not appliable to the ones in /system/app. Even after a 'adb remount'.
Any suggestions?
Just delete them.
anyone knows?
i wanna get rid of the default IM.. and amazon mp3
I repeat myself: Just delete them.
It isn't dangerous or "unclean".
Just be a little aware that some apps might seem superfluous, but actually do things other than the part you see. For example, you can't delete the stock Mms.apk and use ChompSMS as your sole SMS application - the stock app also contains the framework for the device to receive SMSes at all. I would rename files rather than deleting them, i.e.
mv thingyouwanttodelete.apk thingyouwanttodelete.old
rather than
rm thingyouwanttodelete.apk
because you can always then put it back afterwards if you find something doesn't work afterwards.
I think Cyanogen latest rom has the system app's folder as read only. So you would need to remount the drive as Rewriteable to make any changes to the files.
njakobs said:
I think Cyanogen latest rom has the system app's folder as read only. So you would need to remount the drive as Rewriteable to make any changes to the files.
Click to expand...
Click to collapse
what are the steps to remount as rw?
chmod +rw?
farbird said:
what are the steps to remount as rw?
chmod +rw?
Click to expand...
Click to collapse
-bash-3.2$ ./adb remount
remount succeeded
adb remount - remounts the /system partition on the device read-write
adb root - restarts adb with root permissions
You can delete stuff in the update.zip then just resign it. I wouldnt delete any com.**** stuff or htc.**** except widgets(on hero) always copy the update zip before you start editing so you can always add what is needed
Start asking your questions in the right sub-forum (Q&A) (Theme) or even in (General), or i will be forced to ban you for 3 days or till you learn.
Thanks
Thread Trashed!!

Cannot delete or modify 'vrtheme' folder

After playing around and installing different ROMs, I noticed a folder called 'vrtheme' on the sdcard. Not my biggest concern, except for the fact that my galleries are scanning that folder, which in turn lists about 10 folders with pictures.
I've tried everything to remove this folder, but keep getting a permission denied error. I've tried simply adding a .nomedia file, but can't modify the folder whatsoever. I cannot rename any files, can't move them either, can't add files.
Please provide any other suggestions. Thank you!
Copy everything important from your storage then perform a /sdcard wipe in recovery. This is assuming the file is on your internal storage.
Sent from my SCH-I535 using xda app-developers app
gregory_classy said:
After playing around and installing different ROMs, I noticed a folder called 'vrtheme' on the sdcard. Not my biggest concern, except for the fact that my galleries are scanning that folder, which in turn lists about 10 folders with pictures.
I've tried everything to remove this folder, but keep getting a permission denied error. I've tried simply adding a .nomedia file, but can't modify the folder whatsoever. I cannot rename any files, can't move them either, can't add files.
Please provide any other suggestions. Thank you!
Click to expand...
Click to collapse
Connect your phone to PC,run adb shell in CMD,and get root permission(su),and then,delete it(rm -r).

[Q]Deleting preinstalled apps

I am trying to get rid of lots of bloatware that I don't want in my new unlocked Motorola Atrix hd phone. I have rooted the phone and got terminal emulator and su working. When I read around on the internet, there are posts describing to remount the /system/app for read/write, delete the apk and odex files and the remount again for read only.
My understanding is that root should be able to "rm" those files in "su" mode if you can see them. So why do we have to remount them before deleting and after? What does it do? What happens if I simply "rm" the apk and odex files in /system/app without remounting before or after, I mean if I am able to "rm"?
Thank you.
I believe the logic is that for security reasons the system/app partition is mounted in read-only mode by default. With root privileges, you can mount it as read/write and make changes such as removing apk files. When you're done editing, you should remount the /system/app partition as read-only, restoring it to its default state. If you don't, any process could theoretically make changes to the files in that partition which could damage your OS or apps.
So we remount the partition because we cannot delete them otherwise. That means if we are able to delete them without remounting, it is OK to do so. Correct?
I believe so. But just to be sure, I would strongly advice to make a nandroid backup before you delete any files.
skipperx said:
I am trying to get rid of lots of bloatware that I don't want in my new unlocked Motorola Atrix hd phone. I have rooted the phone and got terminal emulator and su working. When I read around on the internet, there are posts describing to remount the /system/app for read/write, delete the apk and odex files and the remount again for read only.
My understanding is that root should be able to "rm" those files in "su" mode if you can see them. So why do we have to remount them before deleting and after? What does it do? What happens if I simply "rm" the apk and odex files in /system/app without remounting before or after, I mean if I am able to "rm"?
Thank you.
Click to expand...
Click to collapse
Just use this app free from the Play Store: https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp
No messing around with Terminal and any commands.
I found out. I could not delete even as su and got a msg that it was read only. That's why we need to remount.
Or you can use Titanium Backup. TB has option to backup system app&data and then remove.
It's safer...
You can also freeze apps with TB. If something goes wrong, you can unfreeze it or do factory reset.

[Help] Changes to /system won't stick, even after mounting as rw

I've posted about this on StackExchange here (http://android.stackexchange.com/q/157846/126804) but it seems no one can/bothers to answer it. More details are available in the link.
I'm currently trying to convert some user apps into system apps. I've successfully moved the apps into /system/app by making a NAND image and mounting it on Linux, but it throws an error when I try to launch those apps (ClassNotFoundException, something about missing dex). I've already set the permissions the same as the other apps inside /system/app.
Another thing that I've noticed is that I can make any change to /system (copying files, editing, renaming, etc.), but everything gets wiped after a reboot. The same happens with another partition named /custpack (this is what the OEM uses to fill the phone with boatware). I've also tried to place the apps there, but same thing.
How can I debug this?

Android 10 cant delete files of /system/reserve and /system/india

Hi, I'm on android 10 stock version.
When I do a new installation I like to do a debloat of everything that does not interest me, I usually do it with adb shell and everything is ok.
The problem I am seeing is that when I am in the recovery, I access the /system/reserve and /system/india folders with the filemanager but I cannot see the files to delete them.
I can delete the entire folders but when I return to the system, the system emojis are deleted (any keyboard that you put does not have emojis, or for example if I have icons in the name of a contact it is not visible, it looks like a kind of rectangle, like if it were a character unrecognizable by the system).
From the rootexplorer pro, I can see the files in those two folders, but when I try to delete the files it tells me that "attempt failed". I have root permissions to delete from magisk. The files in the folders I see as R/O. I cannot switch to R/W.
I can only delete entire folders, but emojis disappear on next reboot.
PLEASE, does anyone know how to access those folders to delete the blotware that is in them? I have looked 5 days for xda and other websites and I can not find anything about it on this subject.
THANKS A LOT!
xisna said:
Hi, I'm on android 10 stock version.
When I do a new installation I like to do a debloat of everything that does not interest me, I usually do it with adb shell and everything is ok.
The problem I am seeing is that when I am in the recovery, I access the /system/reserve and /system/india folders with the filemanager but I cannot see the files to delete them.
I can delete the entire folders but when I return to the system, the system emojis are deleted (any keyboard that you put does not have emojis, or for example if I have icons in the name of a contact it is not visible, it looks like a kind of rectangle, like if it were a character unrecognizable by the system).
From the rootexplorer pro, I can see the files in those two folders, but when I try to delete the files it tells me that "attempt failed". I have root permissions to delete from magisk. The files in the folders I see as R/O. I cannot switch to R/W.
I can only delete entire folders, but emojis disappear on next reboot.
PLEASE, does anyone know how to access those folders to delete the blotware that is in them? I have looked 5 days for xda and other websites and I can not find anything about it on this subject.
THANKS A LOT!
Click to expand...
Click to collapse
Use terminal and this commands
su
mount -o rw,remount /system
Now you can use terminal/adb to delete files.
Or flash this in TWRP:
India_Fake_Partition_Deleter.zip | by Mauronofrio for Utilities
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com

Categories

Resources