Softbrick galaxy s2 - Galaxy S II Q&A, Help & Troubleshooting

A friend of mine soft-bricked his old galaxy s2.
The phone is running a custom android 5.1 or 6.0 (I don't remember) that i flashed for him a few months ago.
He said he just disabled the google app (not sure why he did that) and the phone crashed and is now stuck in a bootloop.
Anyway I'm trying to enable the app back and hopefully fix the phone without having to wipe everything and flash back the system.
Does anyone know how/if it's possible from an adb shell in recovery mode ?
I tried the pm command but it just crash in recovery, probably because android is not running.
Maybe i could make it work with a chroot or something. No idea how to do that on android though.
Thanks for the help.

Hi,
In this situation, it would be best to wipe your phone. Avoiding wipes is not what you want to do as this could cause more problems instead.
You could try wiping system partition and cache partition. Reflash the ROM and gapps and see if that helps. You should still keep all of your apps this way and no personal data is affected.
Otherwise full wipe is the only option left.
gsstudios

Thanks for your help, i tried to wipe only system partition and cache but unfortunately the phone was still stuck in a bootloop. Tried then to manually remove all google apps and their data before reinstalling them but it didn't work either. I gave up and formated the data partition which fixed it as expected.

Related

[Q] Clockworkmod cannot format cache partition

I have tried several different Rom Managers without a problem on my G Tablet. Have been using TNT lite. Recently I switched to Vegan Gingerbread edition, but when I went to backup my old Rom (TNT Lite) the backup hangs on backing up the cache. I tried wiping the cache and formatting the cache, but it always hangs indefinitely.
I installed Vegan Gingerbread anyway and it appears to work perfectly, yet I still cannot backup the rom with Clockworkmod (always hangs on the cache). If I try to look at the cache partition in filemanager, it shows empty, though I am not sure it is actually recognized. I can't seem to do anything with the cache at all.
I am, by no means an expert, but have had no problems with this before. Backup did work before the recent problem.
Since everything is working with my G Tablet now, I am not sure there is an actual problem with the cache, except that I can't backup the Rom without it hanging on the cache. This may limit my ability to load other Roms in the future.
Please help.
I have the exact same problem. I've had no issues backing up and restoring ROMs myself, but now I'm having issues with my tablet not being able to format or restore cache. I can install a ROM, but it takes a long time to actually load up - it can sit on the first splash screen for easily 5 minutes before it boots into the ROM, wher as before it took around 1 minute or less. Are you having this slow boot problem as well, or are your problems strictly with the cache? I'm going to continue to look into it (currently looking into using nvflash to do a restore and see if that irons things out), so I'll let you know if I come across any solutions. And please, let me know if you do as well.
hey guys i had the exact same problem before but nvflash fix what ever the problem was and the newly installed cwm work as it should. are you getting "ANDROID" screen right before it goes into cwm?
I am not getting the Android screen before ClockworkMod, but I generally boot with the power/vol + combo. I also have not changed Rom's recently, so I am not sure if this would be a problem or not. I do not have any boot problems that I am aware of, nor can I see and performance problems resulting from my inability to format the cache. The only problem is I can't wipe the cache, backup the rom, or format the cache as it stops on formatting cache partition and therefore can't continue the backup process. Other than incomplete backups I am not sure what problems this actually causes. Do you know.
I haven't used NVFlash yet, but I guess I will have to give it a try. Am I simply restoring the ROM to factory state and starting over or is there some other process I am looking for? Unfortunately, I did not get a proper backup of my original factory rom, so I will have to rely on downloads. Any tips on NVFlash would be greatly appreciated.
It's Fixed! Thanks for the tips.
Here is how I did it:
Ran NVFLASH - it was much easier that expected. It fully restored the original stock Rom, but I still had trouble with clockworkmod. Mostly it would not boot into recover mode. I then re-rooted the tablet using the Update.zip method, Then everything worked fine including backup and cache format.
I continued to restore my tablet and tried the backup each step of they way.
I installed Vegan Gingerbread - Worked flawlessly
I reinstalled MyBackupsPro and all my apps and Data - Also, worked flawlessly
I reinstalled Rom Manager - also worked flawlessly.
I used Rom Manager to upgrade ClockworkMod to 2.5.1.8 - then the backup/ format cache problem reappeared.
I then ran Rom Manager again and selected flash alternate ClockworkMod. It restored version 2.5.1.1. Then the backup and format cache worked again.
It appears that my Gtab does not work properly with Clockworkmod ver 2.5.1.8 and that was the entire problem.
Since Version 2.5.1.1 works great, I see no reason to upgrade this again and consider my problem fixed. I hope this info helps others

[SOLVED] Possible brick - stuck on samsung logo

Ok so heres the info burb:-
My phone is UK SGS3 i9300 Vodafone, I rooted it a little while ago, tried a sammy variant custom rom (JB), then changed to paranoid android (cm10). I then tried injecting the sammy firmware files to try and get s memo work - it didnt work anyway, and i lost some data (had backups), so I updated the ROM (without data wipe) but things weren't right, so I was going to do a factory reset, but decided to change to a sammy rom again. aaaaand now it goes really wrong :/
I tried Psycho ROM (http://forum.xda-developers.com/showthread.php?t=1947072) I did a factory reset, and then installed it. the boot logo changed but it just began to bootloop. no adb logcat... o and i had the touch CM recovery with extsd support. I tried again, but also wiped dalvik, cache factory reset, this time i noticed that when i did the factory reset, it rebooted recovery. flashed it again to no avail. so i found UltimaROM (http://forum.xda-developers.com/showthread.php?t=1911572) it had the aroma installer which i liked. I used a laptop to transfer the files onto my extsdcard. factory wipe (rebooted), wiped dalvik n cache, and went thu the installer fine, but still hung on the bootanimation. and to my surprise it was still the one from psycho rom. I wiped again and tried to install again but same problem. EDIT: I just remembered that it came up with a modem choice... I wasnt sure which to pick...
so I did some research tried to find out what was wrong... Following a few suggestions, I downloaded the I9300BUBLG3 (search on sammobile says thats uk vod - 4.04) from sammobile.com and flashed it via odin. I did skip triangle away, because I was just going to put a custom rom back on it. I'm more concerned about data wipe causing a reboot recovery... I also flashed cf-root again over the top to get recovery again. It STILL hangs on the samsung logo! I have even used the recovery after cf root flash, it still reboots when you select factory reset -_- I can get into recovery, and download mode - so that something right? why is it rebooting when i wipe data? did i flash the wrong stock firmware? Whats the next step? what haven't i tried? PLEASE tell me its not fully bricked?
Thanks in advance
/data GONE?!?!
UPDATE: I've just tried wiping again, and viewed the recovery log, it said it couldnt find /data/... it looked on the sdext as well i think same with other wipes... it cannot find source :'( HELP! I've got to go out for now (without my phone :'( ) - so i hope to return to some advice...
When you go to advanced mode you can mount all parts? Try to set permission only to test.
You can format each part at advanced?
ok so the mount / unmount feature appears to work (or so it says), but when i go to fix permissions, and check log - sh:fix_permissions: not found
when I format system n cache n preload it works as far as i can tell via logs, when i did /sdcard/ it said it couldn't remove "." and ".." I guess that just mean it was already blank (which i had done b4 messing all these roms)
it also just occurred to me to try adb shell in recovery! ha and it works! I can see the sdcard0 and sdcard1 can even access /data!
ok heres what I've got in /data/...
/data/app/*.apk - - - - LOTS OF APKS (i guess wipe didnt work)
/data/data/ -- - - the data for my apps
/data/dalvik - - empty
/sbin/fix_permissions - - is there!
there are obv all the other folders like app-private, media, user,system, gps etc etc
SO why cant my recovery perform a data wipe without rebooting(and failing)?? Ooooorrr what do I have to remove via adb to flash a rom?
--------UPDATE-------
right heres how ive SORT OF fixed it.
I used adb shell with su to wipe data (didnt work without su) then formatted system, cache dalvik etc etc all with adb. I rebooted recovery and flashed UltimaROM. It works and it HAS booted - this is how my phone was left today.
I do have several strange problems tho. I know my cable is a little odd - it doesnt always connect right (maybe thats how i caused the problem - mtp style fyi)- but i cannot seem to get it to copy to the the extsd or sd via the cable. I can use solid explorer to transfer files etc, I can use wifi explorer to transfer files... so the sdcard appears to work. My internal sdcard shows a could of ROM zips that are 0 bytes, and I cannot delete them. I cannot "convert to user app" with titianium backup pro (aka TT) to uninstall the stock email app. TT also shows my internal as 12.1gb total?!?!?! I've not restored any of my apps bar a couple which ive done via the market.
Soooo is my internal partitioned wrong? or does it need an error fixed, or partition alignment... and WHHHHYYYY does my recovery STILL reboot when i try to wipe data (i tried just after installing the current ROM)?? what have I done wrong?!?!
internal screwed i think
BUMP! XD please see above for the update...
So much words! •_• anyway, since you are stuck on Sammy logo, then i guess you are on a bootloop? Just go to download mode and flash a stock firmware from sammobile.com
Sent from my GT-I9300 using xda premium
saywhatt said:
So much words! •_• anyway, since you are stuck on Sammy logo, then i guess you are on a bootloop? Just go to download mode and flash a stock firmware from sammobile.com
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
you might wanna read all those words
I downloaded the I9300BUBLG3 (search on sammobile says thats uk vod - 4.04) from sammobile.com and flashed it via odin. I did skip triangle away, because I was just going to put a custom rom back on it.
Click to expand...
Click to collapse
Ive done it already, ive got it to boot... look at my update post above. I mean 12.1gb internal is kinda worrying me.
Cannot make head nor tail of the problem .
Standard reply to a non boot is .
Boot to recovery format cache data sd card and system .
Flash stock rom via Odin .
No recovery flash CF root recovery first .
That should give you a clean wiped phone .
jje
OK well I'm going to make another thread now because it is booting. I have a different problem ATM really even tho its kinda a continuation of this... I'll change topic head to solved if I can...
Sent from my GT-I9300 using xda premium

Stuck on boot animation (cyanogenmod)

I was using my phone and all had been working fine for ages. It was in my pocket for a while and when i took it out to use it I saw that it was on the boot animation of CM11. My phone was already on when I last used it so I had assumed it had crashed. I took the battery out and turned the phone on again but it got stuck on the CM boot animation. The last time I turned on my phone before that was when I flashed a supersu zip file to make my root work as I was having some problems. After flashing the supersu zip and told my CWM recovery to restart the system, it prompted me to "fix root" or something like that, and I clicked yes and it booted normally. That was the last time it booted normally before being stuck as it is now. First thing I did after it got stuck was go into recovery and reflash my current rom ( a CM11 snapshot) I then got faced with a status 7 error and so couldnt flash the rom. So then I flashed multiple other CM11 roms, none of which worked, so I flashed a CM10.2 stable rom which worked. I then got faced with the fix root before reboot thing and so I clicked yes. Still had the stuck booting thingy. I tried many things, flashing kernals roms gapps etc and nothing made a difference. I wiped cache, dalvik cache and no difference. I even wiped the system and tried to flash roms but only the 10.2 one would work, still got a status 7 with the CM11 ones. When I wiped my data however and flashed CM 10.2, it booted. I still couldn't flash the CM11 roms though even after a factory reset. So I have the reason to believe something in the data is wrong, not cache system or anything like that. What could it be? I don't want to have to lose all my data in order to be able to use my phone again, even then, something is still wrong as my phone won't flash CM11 roms anymore. So my questions are;
What things could have caused this?
Can this be a problem from flashing the supersu zip (a root issue)
Is it possible to somehow view or copy the internal data on a computer (since I cant get into the operating system), and this would allow me to get all my pictures contacts music etc anything so I can use my phone by wiping data?
Thanks, sorry this is quite long and probably hard to understand whats going on, but help is appriciated thanks
Don't fix root if you wish to use SuperSU instead builded-in cm superuser. Also try to flash via Odin latest recovery. TWRP should be fine. You can mount partitions from recovery level to download data to your computer. Of course if it still exists. If not, if they are corrupted you need to flash stock ROM and repeat whole cm11 adventure again. If Odin successfully flash the stock then it's a chance your partition layout and user data are untouched.
____________________________________________
P3110 / I9300 / I9100 / NEXUS 5 / iPAD2

Zenofne 5 frezzing and rebooting

I'm working on it for about 2 days and do not know what to do anymore.
My phone worked perfectly, except it's rooted the rest is original.
On saturday I tried to convert an user app to system app and brick the operation system. So... sideloaded a stock room downloaded from ASUS suport page and "vuala", the phone was back to normal, them i think, if i install TWRP next time i brick my phone ll be easier ro restore if i had a backup.
Then i perform the procedures in this topic: http://forum.xda-developers.com/zenfone-5/general/recovery-twrp-2-8-6-0-asus-zenfone-5-t3136263
In TWRP i did a backup of my system and it ask me to install root on the device, what i did . After that the system start to freeze and rebbot randomly even without user interaction.
-My first step was factory reset, not work.
-Removed root, and factory reset again. not work
Wipe system and data partition, re-flash by ADB sideload the stock room, steel freezing and rebooting
I've downloaded the original stock rom V3.23.40.60, replaced the fastboot and recovery to original V3.23.40.60, re-flash dnx_fwr_ctp_a500cg.bin and ifwi_ctp_a500cg.bin from original image V3.23.40.60.
-Removed SD card, microSD and reflashed everithig again. still not work.
After all the probelm persists. Someone have any idea what's going on? My knowledge about mobiles is't enough to deal with this probelma alone.
I start thinking about hardware inssue but it's rly weird.
Some questions:
-There are another partitions on the device that can be restored to factory or reseted?
-Change bootloader or recovery can directly influence the operation system?
-Is there a program I can test internal storage of my device and RAM?

Soft brick - stuck at boot logo; need suggestions

Hey all,
I've got a N7105 (Galaxy Note II LTE) running CM12.1 and TWRP which I was planning to change shortly as it's old and the USB port has issues (charges but doesn't pass data; luckily it has a microsd slot). As it happens, the other day I left it discharge fully and turning it back on left it stuck at Samsung logo (not boot animation, the splash screen before it) forever.
I am: not a noob, I've rooted and flashed plenty of devices before.
I tried: removing battery for a while, charging fully, removing microsd and sim, clearing Cache and Dalvik. Nothing works.
I can: get into ODIN mode (but it's useless as USB data is not working); get into TWRP recovery; explore the Data partition in TWRP
I cannot: mount the System partition in TWRP, not even manually. It just does not let me select it, and gives an error whenever it needs to access it (e.g. if I try to backup it is says Error: unable to mount System)
I want: if possible to solve the issue without formatting Data. I had a TB backup but kinda old, so I got a Nandroid of Data and Boot out from TWRP and I suppose I could then recover stuff extracting from Nandroid through TB, but I've never done it and would rather be able to get a fresh TB backup and move on from there.
A few questions I have: any idea on why I am not able to mount System in TWRP? Could it help to reflash Boot or System, and if so how do I go to do that considering what I have is the whole CM rom package? (I remember being able to fastboot flash single partitions on Nexus devices but that's because the stock rom comes packaged in separate images).
Any input would be greatly appreciated!
Lazer Bear said:
Hey all,
I've got a N7105 (Galaxy Note II LTE) running CM12.1 and TWRP which I was planning to change shortly as it's old and the USB port has issues (charges but doesn't pass data; luckily it has a microsd slot). As it happens, the other day I left it discharge fully and turning it back on left it stuck at Samsung logo (not boot animation, the splash screen before it) forever.
I am: not a noob, I've rooted and flashed plenty of devices before.
I tried: removing battery for a while, charging fully, removing microsd and sim, clearing Cache and Dalvik. Nothing works.
I can: get into ODIN mode (but it's useless as USB data is not working); get into TWRP recovery; explore the Data partition in TWRP
I cannot: mount the System partition in TWRP, not even manually. It just does not let me select it, and gives an error whenever it needs to access it (e.g. if I try to backup it is says Error: unable to mount System)
I want: if possible to solve the issue without formatting Data. I had a TB backup but kinda old, so I got a Nandroid of Data and Boot out from TWRP and I suppose I could then recover stuff extracting from Nandroid through TB, but I've never done it and would rather be able to get a fresh TB backup and move on from there.
A few questions I have: any idea on why I am not able to mount System in TWRP? Could it help to reflash Boot or System, and if so how do I go to do that considering what I have is the whole CM rom package? (I remember being able to fastboot flash single partitions on Nexus devices but that's because the stock rom comes packaged in separate images).
Any input would be greatly appreciated!
Click to expand...
Click to collapse
The note 2 has this issue that makes it unable to be recognized by PC, so this isn't your phone problem, the only way to solve it is replacing the usb socket in your phone, anyway i can recommend dirty flashing your rom first, just flash the rom in recovery and wipe cache and Dalvik cache only then reboot.
If that didn't work, I'm afraid you might have to...... clear data ?
MigoMujahid said:
The note 2 has this issue that makes it unable to be recognized by PC, so this isn't your phone problem, the only way to solve it is replacing the usb socket in your phone, anyway i can recommend dirty flashing your rom first, just flash the rom in recovery and wipe cache and Dalvik cache only then reboot.
If that didn't work, I'm afraid you might have to...... clear data
Click to expand...
Click to collapse
Thanks for the input, I was thinking something along those lines but I wasn't totally sure, I always avoided dirty flashing as I heard of people having issues. Happily, it worked! Weirdest think I saw in a while, it gave me a bunch of errors with System partition (unable to mount, unmount, find), then it gave a "proceeding to patch system partition unconditionally", then it completed. The whole thing took less than 20secs so I do not think it even actually flashed the ROM. Now I am just getting some Play Services error, likely need to reinstall gapps, but phone boots just fine!

Categories

Resources