(Samsung) Fixing invalid kernel length guide! - Android General

While installing TWRP on my Samsung tab, my tablet shut off and I got this error. So after tons of research, I want to help the people that come into this problem!
Case 1:
Can't boot into the device but can boot into download mode or recovery
Solution:
Simple, go into download and use Odin/ADB to flash stock ROM.
Case 2:
Can't boot into device, download mode, or recovery
Solution:
Download ADB, and run "ADB devices"
If it shows a device, you're in luck, use "ADB reboot bootloader" and use Odin/ADB to flash stock ROM.
If it does not show up, try these tricks: https://technastic.com/samsung-download-recovery-mode/

Related

[HELP] U8150, No Fastboot mode and Recovery Mode Fails, adb working

i was updating my U8150 with a custom ROM (Ideos HD) and somehow i did something wrong, i did the wipe and install the custom ROM and the Kernel update at the same time. The phone was taking long time to install and when splash logo stops for a few seconds it restart and the phone continues on that more, restarting one and one more time.. then i try to see if i can enter to the Recovery mode and looks like i missed the clockworkmod mode, i cannot enter to that, then y try to see if I can enter to fastboot to reinstall the recovery image (clockworkmod) mode and i see an error message saying " Firmware Update Step 1/2 Unpacking" then after the progress bar it says "Update Failed"
i check the cmd and fastboot mode is not allowed, even the device manager is not on that mode, then doing the recovery i can enter for a few seconds to adb but because the phone is restarting i need to do a few commands on this mode....
My question is: if somehow i can flash the recovery mode with adb?? i have see that some guys do with a terminal emulator but with the phone working and the normal way I hace seeing is on fastboot mode but i cannot enter to that mode...
i just wanted to see if somehow i can install with adb the recovery or maybe entering to the adb with shell and install it from there…
any crazy idea I will try it…
Regards
i just download the original firmware and when entering fastbootmode it automatically detects the .APP File, lets see what happens...
i take the file from this >>> http://forum.xda-developers.com/show....php?t=1011527
i hope at least i can get from stock, i will see if need to do root again...

[Q] Help Revive my Xoom

Hey All,
My Dad's Xoom died over the weekend - 13months after purchase so is not covered by the warranty. He was browsing a site, it came up with a "Internet is not responding - do you want to continue to wait" message and he clicked Wait - after a second the tablet knocked off. It will not come on by pressing Power and only turns on by pressing Power and Vol +
It gets past the Motorolo logo screen and the device starts the boot animation, about 20 seconds into this it freezes and reboots - this continues in a loop. It's been GEDified and was running the last OTA update 4.1.2 - no root etc.
I can get into the stock recovery and performed a factory reset - but the same thing happens. I've also tried Update From USB with an OTG cable but the screen just shows Choose a package to install and under it has /sdcard but nothing else. I have a dummy zip on both the Flash disk and SD card so it's not reading either.
I've also tried to perform update via ADB - when I select it and connect to a PC (Win 7 32bit) it tries to install drivers but I see In Computer Management that it shows under Unknown. ADB Devices returns List of devices message but nothing under it.
I've also selected the fastboot command at boot, tried fastboot devices and the command does see the Xoom.
So my questions
1) Anyone seen anything like this issue before and know how to fix it?
2) Is it best to try to reinstall the ROM? If so, how do you suggest I can see it with ADB?
3) As I have Fastboot command, could I try to install CWM and see if that sees a ZIP on the sdcard - so I can install a new ROM.
Any help much appreciated :good:
so...I've just done a fastboot oem unlock
and then tried to flash the CWM recovery using the fastboot commands - no errors, press reboot and go into Recovery but still getting Android system recovery 3e :crying:
claned said:
so...I've just done a fastboot oem unlock
and then tried to flash the CWM recovery using the fastboot commands - no errors, press reboot and go into Recovery but still getting Android system recovery 3e :crying:
Click to expand...
Click to collapse
So just to add to this, I found the stock recovery.img, boot.img, userdata.img and system.img and used the fastboot commands to send all to the motorola - all succeeded without error....still the same problem though.
I installed RSD lite and tried a few SBF files but I'm getting an INI error - off to google possible solutions to that now

Moto G CWM Recovery Not Working

Hello everyone!!
After doing a lot of extensive research I finally decided to flash Cyanogenmod 11 on my device (btw it's Moto G XT1033). I followed all the instructions of an xda member. Unfortunately my phone fails after flashing the recovery image. It shows on the cmd prompt that the flashing was successful but everytime I go to recovery mode I am no longer able to access the recovery.img
All I get is a blank screen with occasional blanks, freezes and various types of patterns on the screen. I followed each and every instruction to the letter still I do not know why this is happening. cannot even access the default bootloader now!
Here are the steps I used:
1. Unlock the bootloader
2. Installed adb and fastboot and copied the img file to the adb directory
3. Restarted my phone to the boot menu
4. used the command "fastboot flash recovery recovery.img"
5. got a message that the operation was successful.
However after these steps, I am unable to access the cwm bootmenu. Even the default one is no longer accessible.
Please help!!!:crying::crying:
After flashing recovery, do not reboot the phone. Use the phone's volume buttons to enter fastboot from the phone's fastboot menu.
I would install trwp instead.
I agree on Kannz2's suggestion for TWRP.
AFAIK, the recovery you're trying to flash is closed sourced and is no longer being updated.
Here's a link to TWRP:
http://techerrata.com/browse/twrp2/xt1032
Link to ADB and Fastboot that I use:
http://forum.xda-developers.com/showthread.php?t=2588979

I somehow broke TWRP

I haven't really touched this tablet in a while, but i wanted to start using it again. I was running BlissPop. It was slow, and kept giving me an error when it was trying to update, so I decided to try a different ROM. So I downloaded the lineageOS ROM and tried to flash it.
However, TWRP kept giving me an error when I tried to flash the ROM. I don't remember exactly what the error was.
So, I thought that I needed to update TWRP. I tried through the "Official TWRP" app, but after doing so I was unable to boot into recovery mode at all. I could still get to the bootloader, but when I tried to select recovery mode it would give me an error and dump me back out to the bootloader menu.
I tried installing twrp through "TWRP Manager" app, but it just says "something went wrong"
I tried doing this using ADB. I connected the tablet, enabled USB debugging. If i do the ">adb devices" command, I can see the tablet. Then I did >adb reboot bootloader - which works, it reboots the device into the bootloader. But then I try and flash recovery and nothing happens, it just says <waiting for device>. And if I do > fastboot devices it doesn't list any devices.
If I reboot to the bootloader and select "Recovery Mode' i just get the nvidia boot logo and it stays there forever.
I don't know what else to try at this point.
I think I could get this to work if I could just get fastboot to recognize my device, but I'm not sure what's preventing that from happening.
mattlokk said:
I haven't really touched this tablet in a while, but i wanted to start using it again. I was running BlissPop. It was slow, and kept giving me an error when it was trying to update, so I decided to try a different ROM. So I downloaded the lineageOS ROM and tried to flash it.
However, TWRP kept giving me an error when I tried to flash the ROM. I don't remember exactly what the error was.
So, I thought that I needed to update TWRP. I tried through the "Official TWRP" app, but after doing so I was unable to boot into recovery mode at all. I could still get to the bootloader, but when I tried to select recovery mode it would give me an error and dump me back out to the bootloader menu.
I tried installing twrp through "TWRP Manager" app, but it just says "something went wrong"
I tried doing this using ADB. I connected the tablet, enabled USB debugging. If i do the ">adb devices" command, I can see the tablet. Then I did >adb reboot bootloader - which works, it reboots the device into the bootloader. But then I try and flash recovery and nothing happens, it just says <waiting for device>. And if I do > fastboot devices it doesn't list any devices.
If I reboot to the bootloader and select "Recovery Mode' i just get the nvidia boot logo and it stays there forever.
I don't know what else to try at this point.
I think I could get this to work if I could just get fastboot to recognize my device, but I'm not sure what's preventing that from happening.
Click to expand...
Click to collapse
Did you set:
Allow oem unlock in dev opt.
Fastboot protocol into BL?
Twrp app & manager need root to work.
Just flash the latest stock ROM first, lineageos requires having latest firmware.
I wrote a little guide not long ago about that (obviously, you can skip the F2FS steps if you don't need F2FS and just flash ROM after flashing latest TWRP)
Link
thanks for the help, i'll try and work through this soon.
fpozar said:
Just flash the latest stock ROM first, lineageos requires having latest firmware.
I wrote a little guide not long ago about that (obviously, you can skip the F2FS steps if you don't need F2FS and just flash ROM after flashing latest TWRP)
Link
Click to expand...
Click to collapse
I had seen your thread, and was intending on following it. nice post. 2 quick questions though
1) this is a shield tablet that was supposed to be remotely bricked by nvidia after the warranty claim. Will that happen if I flash the official recovery ROM?
2) how would I even flash that rom if I can't get recovery mode to work in trwp?
I think the root problem that I'm having is that I can't seem to connect to the device via fastboot (i'm sure i used the wrong terminology somehow)
edit: well I downloaded the USB driver for the shield tablet from nvidia, and i was able to install that (rather than the google usb driver). Fastboot finally recognized my device after that. I'm trying to flash the recovery now, but it doesn't seem to be doing anything, just been stuck on this screen for a while now: https://i.imgur.com/BUwj3Hx.png guess I'll continue to wait a while.
edit 2: well, finally got TWRP to flash over fastboot (https://i.imgur.com/tV1DqDv.png) however I still can't enter recovery mode. I just get the nvidia boot logo and then nothing happens. TWRP manager still says i don't have it installed either.
i'm about ready to give up on this... i've spent like 6 hours on this crap already and I feel like I keep getting further away from it.
mattlokk said:
I had seen your thread, and was intending on following it. nice post. 2 quick questions though
1) this is a shield tablet that was supposed to be remotely bricked by nvidia after the warranty claim. Will that happen if I flash the official recovery ROM?
2) how would I even flash that rom if I can't get recovery mode to work in trwp?
I think the root problem that I'm having is that I can't seem to connect to the device via fastboot (i'm sure i used the wrong terminology somehow)
edit: well I downloaded the USB driver for the shield tablet from nvidia, and i was able to install that (rather than the google usb driver). Fastboot finally recognized my device after that. I'm trying to flash the recovery now, but it doesn't seem to be doing anything, just been stuck on this screen for a while now: https://i.imgur.com/BUwj3Hx.png guess I'll continue to wait a while.
edit 2: well, finally got TWRP to flash over fastboot (https://i.imgur.com/tV1DqDv.png) however I still can't enter recovery mode. I just get the nvidia boot logo and then nothing happens. TWRP manager still says i don't have it installed either.
i'm about ready to give up on this... i've spent like 6 hours on this crap already and I feel like I keep getting further away from it.
Click to expand...
Click to collapse
Okay so I'm guessing you have stock ROM.
To flash TWRP you have to enter fastboot mode (vol down + power I believe) and flash the twrp image with fastboot flash recovery twrp.img (rename the shield tablet twrp to just twrp.img and place it into your easy adb and fastboot folder)
And DON'T reboot into OS, rather use your volume buttons to navigate to "restart to recovery" or just use hardware keys again directly from TWRP (vol up + power).
Good luck
fpozar said:
And DON'T reboot into OS, rather use your volume buttons to navigate to "restart to recovery" or just use hardware keys again directly from TWRP (vol up + power).
Good luck
Click to expand...
Click to collapse
Agreed. This is probably what is happening (as described on the TWRP webpage here:
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
Alternately, immediately rooting (flash SuperSU or Magisk) right after flashing TWRP, will prevent TWRP from being replaced with stock recovery.
Although the inconsistent fastboot connection, and how much trouble you had flashing TWRP initially, is a bit worrisome. Try using a different cable (maybe the one you are using is not connecting well?) try another USB port on the computer, and don't use a USB hub (connect direct to the PC).
Well, like they say: persistence is key. I kept pushing and trying new things until eventually.... I bricked the device. No, not really, it's working great now on LineageOS.
Thanks again to everyone who helped me out :good:. I'm still not sure exactly what caused TWRP to stop working on my device, however following this guide helped me fix it: https://forum.xda-developers.com/shield-tablet/help/help-stuck-nvidia-boot-screen-t3076462
The "flash-all.bat" restored everything to stock (including the recovery mode) and after that I was able to flash the latest TWRP and install Lineage.

Question I can't get into recovery mode by any means

My device is a Samsung A12 model SM-a127m, I unlocked the bootloader and installed root through Odin following several tutorials on this forum. My initial and current goal is to install LineageOS on the phone and the moment I'm stuck with is installing TWRP or any custom recovery.
I went from forum to forum looking for files to install through Odin, I tried as AP all the ones I could find one by one and what happens is that the phone works, I can enter the download mode and I can start Android but I cannot start the mode recovery, neither the TWRP nor the original stock, when I try to enter the screen simply goes black.
The output of the "adb devices" command says that my device is in recovery mode but TWRP is not showing up and I don't know any other way to install Lineage.

Categories

Resources