Android 10 cant delete files of /system/reserve and /system/india - OnePlus 6 Questions & Answers

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

Related

[HOWTO] MANUALLY save/backup apps and games and more importantly their PROGRESS

Well I browsed through all the forums and I could not find anything that I am going to explain. There are some tits-bits here and there, but I hope this proves to be useful.
I will also explain if you have a xrecovery backup, then how to extract your games and progress from there.
Many of you might be switching ROMs very frequently or upgrading/downgrading their Android. While doing this, we lose all our apps and games and more importanly the game's PROGRESS, if we do not save them.
There are apps available to save apps/games and progress but there is a way to do all these thing MANUALLY. This for those who want the control in their hands , like me.
PART A:
Here's how you do:
1) Create a backup folder on the sdcard with a name that you like. eg. mybackup
1) from your filemanager or from the shell, browse to the directory /data/app and do ls -l. You will get a list of apps which you have installed.
2) Select the app that you want to save/backup and move it to sdcard folder that you have created. The names here would be long but it will be almost similar to the name you see in the UI.
For eg.
Code:
cp uk.co.aifactory.moveitfree.apk /sdcard/mybackup
. would be the command to backup Move It game.
3) Now go to the the directory /data/data and do a ls -l. browse through the list and find a directory which matches the name of the apk without the .apk extension.
for Eg. for the 'move it' game, you will find a directory uk.co.aifactory.moveitfree
Move this directory to the backup folder
Code:
cp -r uk.co.aifactory.moveitfree /sdcard/mybackup
.
For those working on shell, remember to do cp "-r" as you are copying a directory.
You are done!!. You have backed up your app and all the progress related to that app.
Now you can copy mybackup folder to your PC or keep it in the sdcard if you have enough space. Its your choice...
PART B:
How to get the progress and games back after flashing the ROM or after wipeout.
Its easy. Just reverse the steps mentioned above.
1) copy the .apk file from your backup folder to /data/app through filemanager or shell.
Eg.
Code:
cp /sdcard/mybackup/uk.co.aifactory.moveitfree.apk /data/app
2) copy the data directory to the location /data/data.
Eg.
Code:
cp -r /sdcard/mybackup/uk.co.aifactory.moveitfree /data/data
You are back to business, just browse through your apps and enjoy the games from where you left.
UPDATE :
For Angry Birds, when you are done with the above steps, delete the file
/data/data/com.rovio.angrybirdsrio/files/settings.lua
It app will not open up if you dont do it.
-----------------------------------------------------------------------------------------------------------------
Those who have already backedup their ROMs and not saved their apps as mentioned above, dont worry, I have a solution for that too. I am specifically going to explain the method to get it from xrecovery backup.
When you backup your ROM or system using xRecovery, it stores all the data inside /sdcard/xrecovery/backup/<date>.
Inside that folder, there are 3 img files.
cache.img
system.img
data.img
data.img contains all the data/app/games that you had installed, while system.img contains everything that came bundled with ROM. It might differ a bit per devices, but mostly its data.img
I tried to open this file ".img" with a lot of extraction tools but none could help. Atlast, i got help from our great <zdzihu>, and he said, he saves the archive with yaffs2 compression.
There is an app "unyaffs2" which you can use to extract the contents of the archive. Get it from here http://forum.xda-developers.com/showthread.php?t=910255
This app will extract the contents to the folder where you ask it to. Once you have your data, repeat the above mentioned steps to get your apps and games running!!
Thank you for the how to
it not change owner
this is very big problem
Hi dateno1, can you be more specific?
What app are you trying on
What method u used to copy
What error r u getting exactly
Which device and on which step
Sent from my X10mini using XDA App
ronaksv said:
PART B:
How to get the progress and games back after flashing the ROM or after wipeout.
Its easy. Just reverse the steps mentioned above.
1) copy the .apk file from your backup folder to /data/app through filemanager or shell.
2) copy the data directory to the location /data/data.
You are back to business, just browse through your apps and enjoy the games from where you left.
Click to expand...
Click to collapse
i have question on the process of getting it back.
on step 1 you said copy.
is it also ok if you are going to reinstall it then proceed to step 2.
thanks.

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).

Cannot delete files or folders within /data/data/

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...

[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?

Accidentally uninstalled a pre-installed app? Here's how you get it back.

Some apps (such as Huawei Health) are installed on your device during the initial boot. They can, however, be uninstalled, and there's no obvious way to get them back.
Here's how you do it!
The APKs live in the /cust directory on your device. You can either pull them (using ADB, e.g. 'adb pull /cust/preinstalled/public/app/') or use a file explorer app to browse to the same directory and click the APK you want to install.
Author (paulobrien)
Original post
https://community.hihonor.com/docs/DOC-1244

Categories

Resources