Can't delete files using root - General Questions and Answers

I'm using a realme phone Android 11 and I wanted to delete the original Apks which I found out that it's stored in file called /my_heytap and /my_region so I don't want them to be installed when I create a new user, I tried to delete them using Root Explorer and it told me: Delete failed, when I try delete it using adb, with su permission and rm -f /my_heytap/app/YouTube what It told me: that it's read only files, anyone have fix for that?

Make the mentioned directories / files read-write-able. Then removing them should work.

Related

Delete system ringtones/notifications/alarms?

I have a bunch of different notifications and ringtones I'd like to use, but I cant insert them into the default directory along with the other ringtones. Is there anyway to do this?
Are you rooted? If so, you can use root explorer or es file explorer to mount /system as writable (I assume you are rooted if you know where to put the files) then copy your files.
Sent from my LG-P999 using xda premium
Волк said:
Are you rooted? If so, you can use root explorer or es file explorer to mount /system as writable (I assume you are rooted if you know where to put the files) then copy your files.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
So through Clockwork, I know how to mount /system, but then what? Do i start the phone as normal to get to the OS, and do my file swapping from there?
Or do I need to do something else?
**** i didnt see the part about Root Explorer. I'm download ES right now.
Why do you want to put it in your system folder and not on your SD card? Every time you flash a new nightly or release you'll have to put them there again.
No one ever uses ADB anymore for some reason, but if you're running windows you can create a batch file to delete the stuff you don't want and the push your files to the media folder. I have a batch file I run after every nightly to remove a lot of junk, here is the commands I use for the sounds. I don't push any sounds to the media folder b/c they are all on my sd card.
Code:
adb shell rm -f /system/media/audio/ui/camera_click.ogg
adb shell rm -f /system/media/audio/ringtones/*.ogg
adb shell rm -f /system/media/audio/notifications/*.ogg
stevew84 said:
I have a bunch of different notifications and ringtones I'd like to use, but I cant insert them into the default directory along with the other ringtones. Is there anyway to do this?
Click to expand...
Click to collapse
You can put them on your External SD in Folders named ringtones and notifications. The rom should read it from there, or mine does. I am using Xborders GB 1.0.
Cant delete an audio file !!
I installed an audio app from the market. It gave options to "Set as ringtone" for its sounds. I set a tone. But now i cant remove it from my system/media/audio/ringtones !!. Its so irritating. I have a rooted xperia mini ( ROM - Jelly Vanilla Ex 2.1) ... I even flashed the stock firmware, wiped data and everything, but every time i set a new ringtone, it is present in the SOUND PICKER !. Can anyone please help me in this ??? Is this a virus or anythin >???? :crying:

[Q] can i delete /system/xbin folder?

hi,
anyone who has galaxy nexus and haven't modified anything, can you please check and see if you have /system/xbin folder?
i installed some program called busybox by accident and i think it created /system/xbin folder.
so i uninstalled the app but the folder is still there..
so i'm wondering if it was there in the first place..
can i delete the whole folder?
right now i have 3 files in that folder : busybox, dexdump, su.
anyone?
dlxowhd said:
hi,
can i delete the whole folder?
right now i have 3 files in that folder : busybox, dexdump, su.
Click to expand...
Click to collapse
I would not delete the xbin directory, it is a system directory included with the operating system.
"dexdump" is Dalvik disassembler (usefule for developers).
"su" is superuser, so if you delete that you will no longer have root.
"busybox" is a set of useful Linux utilities that are essential when you have root privileges.
So, like I said I would leave it, busybox was not the one who installed that directory.

i have deleted xbin folder in system/xbin path

Please Help I have deleted xbin folder in system/xbin in my samsung gts5303 and now i want to again root my samsung gts5303 but it is not rooting now.Firstly i have rooted it with Root Master android app but now when i m trying to reroot it with Root Master app it shows Sucessfully Rooted and also installs supersu app but not installs binary becouse binary is installed in system/xbin folder and i have deleted it.
and an unknown folder sbin is added in /sbin. and it is empty i have no root acess but when i m deleting it it is sucessfully deleted but when i comeback to / path it is added again
Now i m requesting you to please solve this problem and give me any app by which i can add xbin folder again in system/ with out root.and with out pc because i have not any pc...
thanks in advnce...
I hope you have a nandroid back up, otherwise it is going to be really hard to do with out a PC handy.
You will not be able to add File or folder in system even 3rd party app will not be able to write on system folder without root permission so try to full unroot the phone then again try to root so there is a chance of reinstalling binary again anyway don't you have nandroid backup?
how can i do nandroid backup
justmpm said:
I hope you have a nandroid back up, otherwise it is going to be really hard to do with out a PC handy.
Click to expand...
Click to collapse
what is nandroid backup how can i do this.
CWM for gts5303
please give me any CWM for my samsung gts5303 by which i can flash a .zip file to install binary again. thanks
i have also deleted all files in /sbin folder
And i have deleted all files in/sbin folder can it be a cause for not rooting .or deleting system/xbin folder.
I Have find out the solution of this Problem
Good News for all who are suffering from this problem.If you want to get rid from this problem by simply installing an .apk file then contact me on My Whatsapp
919622506468
EMail: [email protected]
Or If You want a simple .apk file to root your device (for all phones) then contact me now. hurry!
you need reup rom for your device
I Have Findout The Solution Of This Problem (MySELF)
I Have Foundout It's Solution By My Self. I Haven't got any Best solution for this problrm in Xda Or Google. But I Myself Had Fixed this problem. So I Only want the Users who Have This problem in their phone would Get rid from this problem they have to done nothing. They Only have to install a simple android app of about 2mb (No Need of Pc Or Anything etc) So, Contact Me To Get its Simple (OIS) OneInstallSollution By HackerRM
Whatsapp/Phone : +919622506468
EMail : [email protected]
Thanks...
[Any Problem On Any Device]
Get Simple (OneClick) Solution.
[ONLY WITH HackerRM]

Chinese Phone running Android 4.2 - Malware built in, cant delete despite root

It took me a while to figure out that the bast**ds had built in the malware in the firmware, with the launcher. Phone is rooted, and I have changed the launcher. But I can't delete the malware apks inside system/app.
They are named as com.google.hardware.ext0.apk, and another similarly named (android air, and measure too)..
Problem is, I can't delete them, I tried using ES File Explorer (yes, root is enabled. I can delete, change other files in system/app but for this) I am denied permission!!
Then I tried the terminal emulator.. after getting SU.. tried deleting them using RM and then 'busybox rm..' both failed. What to do? How to delete the f****ng malware files??
(If I switch on the WiFi, malware automatically downloads more crap, then I can't even switch off Wifi and Data! Hence I formatted the phone and have not entered any sim or wifi settings... but I can't delete the damn files!! Any suggestions please?? Going crazy here)
regards
If you could install a custom recovery to flash a zip that delete this app...
Try a Root System App Deleter or, boot in recovery mode and remove it via ADB

I'm rooted, trying to install Xposed Framework, how do I delete a file from /system/?

I tried installing it with both Flashify and Magisk, but both methods failed.
When I tried installing it via the included Xposed Installer, it also failed, but gave me the message:
> Error: Xposed_Framework.jar already exists in /system/framework
I'm guessing a previous installation failed, but left the file there.
My next idea is to delete that file from /system/framework and try again, but since it's in an RO directory I don't have permission.
I tried using a terminal emulator to mount the drive in rw mode, and also tried using a root file explorer, but either both methods don't work, or I just couldn't figure it out.
Anyone have an idea of how to remove or rename that file so I can try to install the .zip ?
-Thanks
Highfiverobot said:
I tried installing it with both Flashify and Magisk, but both methods failed.
When I tried installing it via the included Xposed Installer, it also failed, but gave me the message:
> Error: Xposed_Framework.jar already exists in /system/framework
I'm guessing a previous installation failed, but left the file there.
My next idea is to delete that file from /system/framework and try again, but since it's in an RO directory I don't have permission.
I tried using a terminal emulator to mount the drive in rw mode, and also tried using a root file explorer, but either both methods don't work, or I just couldn't figure it out.
Anyone have an idea of how to remove or rename that file so I can try to install the .zip ?
-Thanks
Click to expand...
Click to collapse
In the Xposed app you should be able to just run the uninstaller script. If that doesn't work, boot TRWP and delete it from there.
D3RP_ said:
In the Xposed app you should be able to just run the uninstaller script. If that doesn't work, boot TRWP and delete it from there.
Click to expand...
Click to collapse
Unfortunately, the uninstaller also fails.
It says it can't remove that file from a read only directory..
Highfiverobot said:
Unfortunately, the uninstaller also fails.
It says it can't remove that file from a read only directory..
Click to expand...
Click to collapse
flash installer or uninstaller through TWRP
wmcdrugs said:
flash installer or uninstaller through TWRP
Click to expand...
Click to collapse
Root Explorer....
This app does wonders, it allows you to modify directories in /system and other root folders. You can even change permissions of specific folders/files from read/write/read-only....etc. I've had this app since the earliest of android days and it has been my go to file explorer. Root Explorer of course requires root....but it completely unlocks your phone and allows you to modify any system file that is set to any permission. Of course there are other file explorers that allow you to modify system files, but this is the one that i have the most experience with. You should be able to access the system folder where the Xposed file remains and modify it so it can fix your problem.
djer34 said:
Root Explorer....
This app does wonders, it allows you to modify directories in /system and other root folders. You can even change permissions of specific folders/files from read/write/read-only....etc. I've had this app since the earliest of android days and it has been my go to file explorer. Root Explorer of course requires root....but it completely unlocks your phone and allows you to modify and system file that is set to any permission. Of course there are other file explorers that allow you to modify system files, but this is the one that i have the most experience with. You should be able to access the system folder where the Xposed file remains and modify it so it can fix your problem.
Click to expand...
Click to collapse
This!. I've used it for years. Not muss no fuss. It's not bloated like a certain couple others I know of. It just does what it does and does it well. Manages files. No extra garbage.Give it a try. I'd be surprised if you can't delete it with Root Explorer. If you do try it, go to the folder you want to delete the file from. Once in there, look at the top right of the screen. Somewhere up there It will say MOUNT R/W. Touch that and you should be able to do whatever you want to within that folder.
Do you have the magisk DNSCrypt module installed? If so, thats why you cant modify anything in /system. Not sure why or how it breaks it, but it does. Took me for ever to figure out what was causing it. Now that i removed the module, i can modify anything i want again.
Sent from my [device_name] using XDA-Developers Legacy app

Categories

Resources