[Q] How to delete files permanently in ADB? - General Questions and Answers

My P1000 shut down randomly, so I tried to put everything new on it. After flash and all the other stuff it won't run properly anymore. Everytime I get 'System UIDs Inconsistent'. used Odin and Heimdall, I did wipe the data and the cache, I can see with ADB it is gone, but after reboot all the corrupt apps and system failures are back again. I installed several different firmwares, nothing worked.
I have changed permissions with chmod and deleted by hand several files, amongst them the everytime restarting but crashing apps like skype and whatsapp.
When I perform wipe, delete, rename or move actions in ADB the results are what I wanted. But when I restart everything is back again. I even deleted almost anything, did not work.
This happened in all the roms I installed, so it must be a problem in the filesystem or so. Any idea how to permanently delete stuff while in adb shell? I already gave myself all the rights on the tablet, synced it after the deletes, nothing works.
Or does anybody know how to start from scratch?
I cannot start the tab anymore in normal mode, but I do have recovery mode and overcome cwm.

best of luck
nbreed said:
My P1000 shut down randomly, so I tried to put everything new on it. After flash and all the other stuff it won't run properly anymore. Everytime I get 'System UIDs Inconsistent'. used Odin and Heimdall, I did wipe the data and the cache, I can see with ADB it is gone, but after reboot all the corrupt apps and system failures are back again. I installed several different firmwares, nothing worked.
I have changed permissions with chmod and deleted by hand several files, amongst them the everytime restarting but crashing apps like skype and whatsapp.
When I perform wipe, delete, rename or move actions in ADB the results are what I wanted. But when I restart everything is back again. I even deleted almost anything, did not work.
This happened in all the roms I installed, so it must be a problem in the filesystem or so. Any idea how to permanently delete stuff while in adb shell? I already gave myself all the rights on the tablet, synced it after the deletes, nothing works.
Or does anybody know how to start from scratch?
I cannot start the tab anymore in normal mode, but I do have recovery mode and overcome cwm.
Click to expand...
Click to collapse
try plugging it up while its in cwm and access the adb shell while its displaying. the prompt should be ~# if its universal. maybe you can completely wipe everything and flash a recovery at the same time? that may keep it deleted. i dont know. just a suggestion. i hope you succeed... tell me how it goes.

thanks for answering.
i tried all that, even did a complete format of the internal sd card, in adb with parted and also in windows with a mounted card. it says it is deleted, but after reboot it is all back again...

Do you have a backup of a working ROM you can restore?

Crap.... Hmm... Have you tried any formatting software? Try to find a programmer who can wipe it completely, re partition, and reinstall the stock rom. Then try to restore to something before the problems
Sent from my R800at using XDA

Use flashtool. I've heard it can unbrick, maybe it'll help???
Sent from my R800at using XDA

nbreed said:
My P1000 shut down randomly, so I tried to put everything new on it. After flash and all the other stuff it won't run properly anymore. Everytime I get 'System UIDs Inconsistent'. used Odin and Heimdall, I did wipe the data and the cache, I can see with ADB it is gone, but after reboot all the corrupt apps and system failures are back again. I installed several different firmwares, nothing worked.
I have changed permissions with chmod and deleted by hand several files, amongst them the everytime restarting but crashing apps like skype and whatsapp.
When I perform wipe, delete, rename or move actions in ADB the results are what I wanted. But when I restart everything is back again. I even deleted almost anything, did not work.
This happened in all the roms I installed, so it must be a problem in the filesystem or so. Any idea how to permanently delete stuff while in adb shell? I already gave myself all the rights on the tablet, synced it after the deletes, nothing works.
Or does anybody know how to start from scratch?
I cannot start the tab anymore in normal mode, but I do have recovery mode and overcome cwm.
Click to expand...
Click to collapse
this Q
With Q???

Recovery rom can be installed, but is gone after reboot. Formatting in windows or linux (adb) performs without errors, but after reboot, yes you guessed right, it is back. So this internal sd card has a life of its own, the only thing I can do is install a working system with flashing, but then no app will work, every activation of whatever app will give inconsistent uids errors. And I cannot install new apps, because vending.apk (market) will crash. I installed vending by hand (adb), then it work for a moment, but after reboot to use it the normal way, again crashed.
AS LONG AS I CANNOT REPLACE THE SDCARD IT IS HOPELESS?!?

This morning I left the unwilling android tab in the power adapter to be fully charged for a new go. But: it is now a real brick. It won't power up any more, the button lights do not flash anymore, the only thing it does, is showing the battery. Never again will I buy such an expensive underdeveloped piece of plastic crap again!

Calm down... You need to boot into recovery mode and try using formatting the sd. If comp can recognize, format the sd with the computer. It's not the android. It's what you did. Sorry
ROOTED Xperia Play 4G 2.3.3

can you read? i did format the sdcard in adb with parted, i did format it on the pc. but when i reboot EVERYTHING is back again. before rebooting it is totally empty. after reboot the old non-working stuff is back.
end of android, no end of samsung for me

Help
How do I install the radio over abd

News on this issue?
nbreed said:
can you read? i did format the sdcard in adb with parted, i did format it on the pc. but when i reboot EVERYTHING is back again. before rebooting it is totally empty. after reboot the old non-working stuff is back.
end of android, no end of samsung for me
Click to expand...
Click to collapse
I have the very same problem, did you managed to fix it ??

Related

Things not to do!

1.) DO NOT try and make a symlink for /data/app onto your sdcard.
Why?
1. Your phone will go crazy!
2. It just doesn't work, even if you do make the symlink. Phone won't boot up.
3. Even if you get your apps back on your phone, many of them are corrupted and you must re download them...
Reasons
1. must be a communication area somewhere...another folder would need to be symlinked....maybe the data folder....
I will probably keep updating this as I go on....
Could it be that the sdcard is mounted later in the boot process than when the command is called to access the apps/data? In other words your symlink is telling the OS to load data from a partition that isn't mounted at that point.
It is possible...don't know how to work it out....I did it again trying something else and it screwed up my phone to the point that I had to do a factory reset...home key wouldn't work, apps failed, background changed....lol bad scene...lol
Fun though....lol
uh
Also you think that maybe some apps were open at the time you moved the directories ?
I thought of that but I also did it while the phone wasn't turned on.
something else you shouldn't do
did this by accident
you should not clear settings under: manage apps>settings it clears call logs messes up your background and some other things

android.process.media (delete this thread)

So all the sudden i have "android.process.media" force closing it happened like four times so i tried rebooting. Still happened after the reboot and i noticed i lost my ringtones. Finally my phone just rebooted now im stuck on the endless android screen! Any ideas what could have gone wrong.
Oh and by the way this just started today but i've been having android.process.core force closing alot ever since i got the phone.
UPDATE: So i have apps to sd maybe this could be part of the problem. I have booted into recovery and typed
su
cd /system/sd
it returns cant access
Maybe i can move all apps back to phone via recovery terminal I just dont know what the commands to do this would be. Also i am at work so i cant use adb.
OK first off i want to start off with always backup everything before anything
i finally got it working i had to reverse all the scripts to move my apps, data, etc. work but kept rebooting finnally i did a wipe worked... somewhat.... but wouldnt log into google so i created a new password that worked. thanks to everyone for their help (cough)
Solved
Hi,
i solved this problem on my Hero making a complete wipe of my SD card.

Bootloop

Hello,
I've been trying to undo the mcs_heartbeat changes I've applied while my Nexus 5 was on KitKat, but the app Push Notification Fixer is not compatible with Lollipop, so I tried to directly uninstall Google Play services via Titanium Backup, to then have a clean reinstall and convert to system app again. In this last process however, TB seemed to become non responsive while it was converting it to system app, so I decided to force a reboot after 5~ mins.
Now every time it reboots after I see around 2 secs of the lock screen.
Tried to restart into safe mode, same thing. At this point, scared, I decided that I'd be willing to lose all the data if it meant have the phone working again, so I tried a format, but that seems to just not work, after a while it simply reboots normally to the same bootloop. It won't get past "Formatting /data..."
Another problem is that I usually keep USB debugging off because it makes winamp music transfer not work, so I don't have it. I'm really a beginner, so the solution might be simpler than I can imagine, but could anyone please help?
edit: formatting went through, but it clearly didn't solve the problem, as it now keeps rebooting as soon as a glimpse of status and navigation bar are seen (for 0.5s max, on a full black background).
halp, what do why doesn't formatting restore everything to how it should be?
1.Download factory image from google ,
2. download and install fastboot/adb drivers (there's a pack on this forum that only requires 3 clicks)
3. Unzip the factory image archive
4. connect phone to pc , reboot to bootloader ( press and hold volume down and power ) ,
4.a type in a command window , from the folder where u have fastboot.exe "fastboot devices" -quotes . If you get a long string of numbers everything is fine
4.b if your bootloader isn't unlocked , type in a command window
fastboot oem unlock
5. run the flash-all.bat from the folder where you unzipped the archive
6. wait
7. wait some more
8. phone should reboot full stock.
Factory reset doesn't touch your modification , nor does it restore corrupted files. All it does is delete your app storage , settings and cache.
Um, sorry if this sounds annoyingly silly, but if I do factory reset on my Nexus 5, will that delete all of my pictures, PDF document, videos, music, etc2?
I am aware that the app will be wiped clean like how the phone is first received, but I'm not sure if factory reset will also delete all of my stuffs I mentioned above.
I got stuck in boot because I think I have too much app on my phone.
dvdlesher said:
Um, sorry if this sounds annoyingly silly, but if I do factory reset on my Nexus 5, will that delete all of my pictures, PDF document, videos, music, etc2?
I am aware that the app will be wiped clean like how the phone is first received, but I'm not sure if factory reset will also delete all of my stuffs I mentioned above.
I got stuck in boot because I think I have too much app on my phone.
Click to expand...
Click to collapse
Yes it will
Sent from my Nexus 9 using XDA Free mobile app

[XT1032] CM 12 - Flashing TWRP v2.8.6.0 has caused bootloop

Hello,
XT1032 CM 12 latest nightly (I think)
I flashed TWRP v2.8.6.0 using their manager app. I entered recovery mode and everything seemed to work fine. I made a NANDroid backup then rebooted. Unfortunately the device was then stuck at the bootlogo and kept looping. I can still access recovery and fastboot but for some reason adb doesn't see the device, nor can my device's data be access under Windows 7. I don't recall if I had USB debugging on or not. I would like to try to backup a few files to my computer (the backup for instance) but I am unable to since I can't use adb as the device is not recognized. MTP through TWRP doesn't seem to work either. I do have the Universal drive pack installed already on Windows.
Any help would be greatly appreciated. Thanks for your time.
To start with, let's make sure the files you want still exist.
1. Boot into TWRP recovery
2. Go to "Mount" and check that your "Data" partition is selected
3. Go back and then go to "Advanced" and then to "File Manager"
4. Navigate around (maybe /sdcard/ ? Depends what you're looking for) and find the files you need
If you can't find your file, you'll need some more help. Let's say you do see your file. Do you have a USB-OTG cable? You could plug a USB drive into your phone and mount that. Then you could copy your file to that drive. If you don't have the cable you do have some other options, but let us know how far you get.
EDIT: I know I haven't addressed the problem of the bootloop at all. Many of those solutions involve wiping so we need to make sure you've backed up all the files you need first.
First of all thanks for the help. :good:
I've been trying to find a solution and in fact flashing CWM worked. I was able to adb pull all the files and make a backup.
I backed up the content of the sdcard. I tried restoring the CWM nandroid with data only so it did reinstall the apps but unfortunately all their data and settings are gone. Making a full restore just goes back to bricking. So I have the nandroid and the data manually backed up to a computer but no idea how to restore it.
I've tried pushing the nandroid back to /mnt/shell/emulated/clockworkmod/backup after an unsuccessful restore but now it doesn't even work. (protocol failure, the push command fails)
honestly at this point I think the best solution is just to make a clean install. In fact it would be a good idea to just reset the whole phone and start with a clean slate with CM13 including wiping system files and maybe manually restore some key files and configuration (I've got all the .com files of relevant apps)
Do you know how to do that? :laugh:
frustratedwhiteman said:
First of all thanks for the help. :good:
I've been trying to find a solution and in fact flashing CWM worked. I was able to adb pull all the files and make a backup.
I backed up the content of the sdcard. I tried restoring the CWM nandroid with data only so it did reinstall the apps but unfortunately all their data and settings are gone. Making a full restore just goes back to bricking. So I have the nandroid and the data manually backed up to a computer but no idea how to restore it.
I've tried pushing the nandroid back to /mnt/shell/emulated/clockworkmod/backup after an unsuccessful restore but now it doesn't even work. (protocol failure, the push command fails)
honestly at this point I think the best solution is just to make a clean install. In fact it would be a good idea to just reset the whole phone and start with a clean slate with CM13 including wiping system files and maybe manually restore some key files and configuration (I've got all the .com files of relevant apps)
Do you know how to do that? :laugh:
Click to expand...
Click to collapse
I'm not really a Nandroid expert, but I can take a few shots in the dark. When you did your backup you got a TAR file for System and one for Data, etc., right? Then you convert those to IMGs? If you upgraded and then restored the system backup I can see why that would result in a boot loop. Restoring the data image shouldn't cause such problems though. Is this what you've tried so far? You're right, though. The safest method is to manually restore the data of just the apps where you need that data, and do it one at a time. This would allow you to pinpoint what is causing the issue. Of course, I may have no idea what I'm talking about. I've never actually needed to restore a Nandroid backup! Hopefully someone with more experience there will chime in.
I thought to hell with it I went and solved the issue by installing CM13
Thanks for taking the time to help and see you next time

LG Sunset (LG33L) deleted wrong app question

I know this is probably a shot in the dark, but the phone was rooted with kingroot and working great, I decided to be an idiot and factory reset. I must've deleted a system app that made the phone function properly. The lock screen doesn't work. The recent apps button does nothing either. Also, when I restart the phone it starts the whole factory reset process over. Does anyone have any idea what LG app may govern these things? The phone works besides this, but that is pretty major stuff. I know it's a cheap phone but I thought it was worth asking.
CaptainPatterson said:
I know this is probably a shot in the dark, but the phone was rooted with kingroot and working great, I decided to be an idiot and factory reset. I must've deleted a system app that made the phone function properly. The lock screen doesn't work. The recent apps button does nothing either. Also, when I restart the phone it starts the whole factory reset process over. Does anyone have any idea what LG app may govern these things? The phone works besides this, but that is pretty major stuff. I know it's a cheap phone but I thought it was worth asking.
Click to expand...
Click to collapse
If you can find a copy of your stock firmware, you can:
1) extract the system apps from the firmware(they'll be in the /system/app and /system/priv-app folder, extract the ones that you don't currently have on the device), then push those apps to the corresponding folder on the device using adb push or by using an app that has a root browser.
2) extract the /system/app folder and the /system/priv-app folder, then use adb push to push them back to /system on the device.
3) extract the entire system.img from the firmware then use adb shell and a dd command to dd the system.img on the device to replace the corrupted system with a complete system.
Or you can get copies of what you don't have from another member here with the same device and firmware then use those to replace the deleted apps
After getting them back to where they go, boot to recovery and wipe cache but don't factory reset.
It's always best to disable or hibernate system apps first to determine whether they are needed, if disabling/hibernating them cause issues then you know they can't be deleted, in this case, re-enable/unhibernate the app. If disabling/hibernating an app doesn't cause an issue, then it's safe to remove/uninstall that app. Do this process one app at a time and you'll figure out what you have to keep and what can be gotten rid of. And remember, after removing or adding system apps, you have to boot to recovery and wipe cache partition (and/or dalvik/ART cache if you have custom recovery). Failing to do the wipe will definitely cause issues.
@CaptainPatterson, I added more info.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Categories

Resources