[OnePlus6] Phone frozen (bricked?) while installing Kali NetHunter. - OnePlus 6 Questions & Answers

Wanted to install NetHunter on my phone to learn. Here is a story of a foolish student decided to make his life difficult:
Device: OnePlus 6
Model: A6000
Android 10
Here are the steps I followed:
Followed these two documentations:
1) https://www.kali.org/docs/nethunter/installing-nethunter/#1-nethunter-support-and-pre-built-images
2) https://www.kali.org/docs/nethunter/
So downloaded the zip image > put android in developer mode with OEM and advanced reboot and debugging enabled > Fastboot menu
Then I followed this guide for step 3-5 from link 1:
https://forum.xda-developers.com/t/...-flash-twrp-root-nandroid-efs-backup.3792643/
(a little bit google reading said TWRP takes care of A/B style devices by itself no special steps needed)
Set up the windows machine with fastboot, adb and device drivers > run the command "fastboot oem unlock" > transferred twrp zip to the device internal storage > then flashed the new recovery mode "fastboot boot twrp.img" > install and selected the twrp zip that I had saved in internal storage before > reboot > system.
So far worked perfectly.
Then I downloaded the Magisk apk from github and installed it by transferring it to internal storage.
Next for step 6 from link 1:
I again download the ForceEncrypt disabler from zip and transfer it to internal storage then flash it using TWRP.
So far no errors.
Now the final step should have been to flash the nethunter zip image and this is where the problems started:
I tried to flash it using TWRP but it gave me an error about there not being enough storage.
Saw a YT video where he extracts the nethunter zip and via the magisk app does a install on the tar file found inside the extracted folder. This also failed.
After a bit google it said it was because I did not have custom ROM and chroot and lineageOS should solve my problem.
I flash the LineageOS zip image using TWPR > successful but says I should switch the slot to complete the zip files installed.
After switching and rebooting, fastboot goes to lineage always and its a bootloop , so no matter what I select its always reaching the same screen and I cant tranfer zip to internal anymore to try a different build.
So now I run the command fastboot boot twrp.img again and go back to slot A.
Now my phone is stuck in bootloader. No matter what option I select out of the 4:
Start
Recovery mode
restart bootloader
power off
(latter two work as expected technically)
I always end up on the same screen.
After connecting the phone it is showing it as connected in "fastboot devices" now but fastbood is not able to flash or boot any image to it: either freezes or unknown error. "adb devices" shows no devices.
Practically begging for help right now.

To fix your phone, you should use this recovery tool.
https://forum.xda-developers.com/t/op6-latest-10-3-8-collection-of-unbrick-tools.3914109/
You can follow a tutorial like this one
Good luck

You haven't chosen the right place to ask for help. delete your post or change it to "Questions and answer". Have a good day.

d
CarlosTime said:
You haven't chosen the right place to ask for help. delete your post or change it to "Questions and answer". Have a good day.
Click to expand...
Click to collapse
Thank you. I am trying the suggested video right now.
Do you also know why I get the storage error while trying to flash nethunter?

take it easy, relax i have a long story with oneplus too
send me msg on telegram so i can help u 98%
uaername : NotReal0
stay safe bro, and dont worry i dont need you money just bc im noob with english so i just know that u damaged ur phone and i know how to fix

saffron_jedi said:
Wanted to install NetHunter on my phone to learn. Here is a story of a foolish student decided to make his life difficult:
Device: OnePlus 6
Model: A6000
Android 10
Here are the steps I followed:
Followed these two documentations:
1) https://www.kali.org/docs/nethunter/installing-nethunter/#1-nethunter-support-and-pre-built-images
2) https://www.kali.org/docs/nethunter/
So downloaded the zip image > put android in developer mode with OEM and advanced reboot and debugging enabled > Fastboot menu
Then I followed this guide for step 3-5 from link 1:
https://forum.xda-developers.com/t/...-flash-twrp-root-nandroid-efs-backup.3792643/
(a little bit google reading said TWRP takes care of A/B style devices by itself no special steps needed)
Set up the windows machine with fastboot, adb and device drivers > run the command "fastboot oem unlock" > transferred twrp zip to the device internal storage > then flashed the new recovery mode "fastboot boot twrp.img" > install and selected the twrp zip that I had saved in internal storage before > reboot > system.
So far worked perfectly.
Then I downloaded the Magisk apk from github and installed it by transferring it to internal storage.
Next for step 6 from link 1:
I again download the ForceEncrypt disabler from zip and transfer it to internal storage then flash it using TWRP.
So far no errors.
Now the final step should have been to flash the nethunter zip image and this is where the problems started:
I tried to flash it using TWRP but it gave me an error about there not being enough storage.
Saw a YT video where he extracts the nethunter zip and via the magisk app does a install on the tar file found inside the extracted folder. This also failed.
After a bit google it said it was because I did not have custom ROM and chroot and lineageOS should solve my problem.
I flash the LineageOS zip image using TWPR > successful but says I should switch the slot to complete the zip files installed.
After switching and rebooting, fastboot goes to lineage always and its a bootloop , so no matter what I select its always reaching the same screen and I cant tranfer zip to internal anymore to try a different build.
So now I run the command fastboot boot twrp.img again and go back to slot A.
Now my phone is stuck in bootloader. No matter what option I select out of the 4:
Start
Recovery mode
restart bootloader
power off
(latter two work as expected technically)
I always end up on the same screen.
After connecting the phone it is showing it as connected in "fastboot devices" now but fastbood is not able to flash or boot any image to it: either freezes or unknown error. "adb devices" shows no devices.
Practically begging for help right now.
Click to expand...
Click to collapse
I had the same issue after trying to install nethunter myself. Unfortunately for me the MSMDownload tool wouldn't work because I couldn't get the phone to stay off, it would just boot back up into bootloader/fastboot mode as soon as I connected to the computer via usb cable.
Here's the solution that will work 100%. Go to this website below and download the stock OOS zip file for your phone, in my case it was the Oneplus 6T fastboot ROM. Unpack the files into your platform-tools folder, click skip all if it asks you if you want to replace any files in that folder, then run the flash-all.bat and it will unbrick your device. Keep in mind that it will unroot your device and remove twrp as well. There's a thread here that explains how to do it manually so that doesn't happen but its a bit of work to get it done that way.
FastbootRoms Activity
sourceforge.net

Related

[SOLVED] Nexus 5 stuck in boot loop animation (Lollipop) , partially working with 4.4

I have a Nexus 5 32GB that's about 14 month old. Was running Lollipop 5.1 which was installed through OTA updates (4.44 >5.0 >5.01>5.1). The device is stock and unrooted.
One day, after powering the device up, it went into the boot screen and never managed to finsih the boot (for hours).
After reading extensively on this and other forums , here are the steps I tired , without success:
1. Go to bootloader and press Start
2.Go to bootloader , erase cache
3.Go to bootloader erase user data (factory reset).
I then tried to flash the factory image back. I tried all Lollipop versions from the google developers page of factory images.
starting with 5.1.0 (LMY47I) and going down. All flashing was completed successfully, but the problem remains.
Then I tried 4.4.4 (KTU84P) and the device finally booted up, but it was crippled: Most times It only sees a storage of 16GB , the phone does not recognize any cellular carriers, google play crashes, camera crashes, gallery crashes. An error states that "no external memory is available". Basically it was useless.
I took the phone to an LG lab. They said I need to replace the motherboard. Costs about 200$ !!
I was about to get a new phone , but decided to try one more google search for a fix.
This guide is for any poor soul in the same state.
This issue can be solved without replacing the motherboard for 200$.
The problem in my case was that the /persist partition was degraded, and could not mount.
I found out by trying to follow this guide: http://android.stackexchange.com/qu...dots-lollipop-screen-after-hard-factory-reset
I got as far as activating ADB Sideload when I got the error "cannot mount /persist".
This is a software problem.
Her's how to fix it (It's a long and detailed guide - but worth the result):
First, you must enable USB debugging mode , if it was not enabled (if it is enabled you can skip the first step of this guide) . The way to do that is to flash a stock image that will load, even if not fully working. In my case I could flash version 4.4x and get the phone to load. I am not aware of any other way to enable USB debugging, other than from within a working OS. If someone knows a way - please post it.
The easiest way I found to flash my phone is using Julian OS' script. You can download the stock image5.0 and 5.01 with the script from here:
https://www.androidfilehost.com/?w=files&flid=22367
You will need to adapt the 4.4x firmware to have the script flash it, but it's very easy, just a couple of files to rename.
When you open Julian's zip file you will see that he uses a script that flashes the firmware's images one by one. What I did was download the stock images from Google https://developers.google.com/android/nexus/images , used winrar to extracrt all the files from the .tgz file to a folder, then unzip the only zip file there (image-hammerhead-xxxxx.zip) which contains 5 img files. I then renamed the radio-hammerhead-xxxxx.img to radio.img and bootloader-hammerhead-xxxx.img to bootloader.img. Now all the file names comply with Julian's script. From Julian's archive copy the files "From Bootloader.bat" and "fastboot.exe" to the folder where all the images you just renamed are.
Put the phone in bootloader mode (turn the phone off, press the Vol- and the power buttons). Once the the phone is in bootloader mode, connect it to the PC and run "From Bootloader.bat" and follow the onscreen instructions. In about 2 minutes, your phone will be flashed.
Turn the phone on, it should load the OS. Disregard all the error messages, and don't bother setting the phone up. If you skip wifi, and don't have a sim in the phone you can finish the basic setup quickly.
Next you need to get developer tools activated: Settings>about phone>Build number. Tap 7 times on the build number and this will unlock Developer tools. Go back to settings and the new Developer Tools and enable usb debugging. Approve any popups.
*** I am not aware of how to enable usb debugging if you cannot go into the settings. If non of the stock images loads for you, search for a way to get usb debugging working , or else you cannot continue. You need this for ADB to connect to the phone.****
Next, you need to have ADB on your PC, and it should be able to reach your phone. If you already have - then skip to the next step. If you don't - then here is how to get the latest version:
Go here and download the installer https://developer.android.com/sdk/index.html#Other
Install the file and when it's done run SDK manager. Choose only the first 2 tools (Android sdk tools and Platform tools), this will install the latest adb and fastboot tools. To make sure all is installed open a command prompt (Click Start, type cmd in the search and run cmd.exe) and type adb. You should see all the adb possible commands typed. Now you can test if your phone can be reached by adb: connect your phone (remember usb debugging must be on!) and type: adb devices. After a few seconds you should see something like this:
List of devices attached
024703f599cc8feb device
If you get this, it means you have usb debugging enabled and a proper usb driver installed and you can go to the next step . If there is no device in the list you need to install/update the USB driver:
You have to make sure that when you connect your phone with USB debugging on, you have 2 entries in Winodws Device manager:
Under Portable devices >Nexus 5 , and under Android device> Android composite ADB Interface.
If the second one is missing, ADB will not work and you can't continue. There are 2 ways to fix that :
1. You can install an Android driver called Universal Naked Driver 0.73 from here: http://forum.xda-developers.com/showthread.php?t=2386956. Unzip the file to a folder.
The author of that guide states you need to uninstall any driver that already exists. This proved tricky because Windows would not uninstall the Nexus 5 driver. I decided to install it on a PC that has no android driver.
When you connect the phone to a windows 7 pc for the first time it will search for a driver. I disconnected the internet and windows installed a generic driver. In device manager I saw Nexus 5 with a yellow triangle. I Right clicked on it > update driver software > Browse my computer for driver software and point to the folder you unzipped the driver. You will get a warning - allow the installation.
2. If that does not work or if you don't have another "virgin" PC try this:
Run SDK Manager, under Extras mark Google USB driver. You don't need anything else marked. Install the driver.
Now connect your phone to the PC in normal mode (not bootloader!) . Open device manager. You should have two entries: Portable devices >Nexus 5 and Android device > Android Composite ADB Interface
If the second one is missing, but the Nexus 5 is properly installed, Right click on the Nexus 5 device >Update driver software > Browse my computer for driver software >Let me pick from a list. Now make sure that "Show compatible Hardware" is ticked . You should now have an entry called "USB composite device". Choose that and let it install. When it's done, if you still have an an Unknown device >Nexus 5 and no Android Composite ADB Interface in device manager, then unplug the phone and reconnect it again . You should now have both devices installed.
If by chance this does not work, and you have a Nexus 5 with a yellow error , right click it>update software driver> Browse my computer.> and point it to the Universal Naked Driver folder or the SDK>Extras>Google USB driver folder and it should update so both devices appear (Nexus 5 and ADB).
Once adb can see your pohne go here, to read bitdomo's guide to fix the broken persist partition.
http://forum.xda-developers.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576
There are some prerequisites to getting this to work:
The first one is that the phone can be reached by ADB, this is why you needed the usb debugging mode to be turned on, and the proper usb driver installed.
Second, you need to install a custom recovery image. Don't worry, you will overwrite it later. The one I used is TWRP. Get the latest version from here:
http://techerrata.com/browse/twrp2/hammerhead
To install I recommend you copy Fastboot.exe and the TWRP file to an empty folder on your PC . Rename the TWRP file to "recovery.img". Open a command prompt in the folder (see here if you don't know how http://www.techsupportalert.com/content/how-open-windows-command-prompt-any-folder.htm) , in the black window type: fastboot flash recovery recovery.img and hit Enter. Wait a few seconds and it will finish.
Last, you need to root your device. There are many ways to do this. I did this very simply by downloading CF-Auto-Root from https://autoroot.chainfire.eu/ The file you need is this: https://download.chainfire.eu/363/CF-Root/CF-Auto-Root/CF-Auto-Root-hammerhead-hammerhead-nexus5.zip . Unzip it, put your phone in bootloader, run root-windows.bat.
Now you are prepaired... Follow the guide by bitdomo . Open a command prompt , and run the 2 commands bitdomo wrote. You will get a series of questions , type y followed by Enter until it's all done.
SInce you are still in bootloader mode, and a big START is at the top of the screen, click the power button to reboot. Now your oS 4.4x should load properly. Make sure everything is working.
I did not follow the steps for the wifi and BT fix , because they worked fine (and still do 4 months later) , but you can go ahead and do that too.
Now you can flash to the latest firmware 5.10 - download the file from the developer site I gave before, use Jason Os's script to flash the image, and lock the device. Done! Boot up the device and make sure it recognizes the right amount of RAM on your phone (16 or 32GB). If it does, then all is well .
When I first booted the device , I saw that it only recognized 16GB instead of 32GB. To solve this install TWRP again, go to Wipe>Format data . Then reboot the device and make sure you have 32GB.
If you like the stock recovery instead of TWRP you can use Fastboot to flash the original recovery.img.
Now you have a working Nexus 5 , v5.10.
Thanks to LyricWulf and bitdomo for their life saving guides. I hope this helps others in the same spot, and saves them 200$ .
stuck at unlock step
how u unlock nexus 5 when stuck booplop n cnt go to android screen?alrdy using ths step "fastboot oem unlock" when i reboot for unlock,stuck at bootloop n alrdy w8ing 24hr still bootloop cnt see android home screen...n i go to restart nexus5,n locked again... i just stuck on this place,cnt go to next step..pls help me
sry my englsh so bad
Thanks! Helped me to save my N5!
Do not need to exactly as it is posted but the directions is good!
Thanks again.
killian.1140 said:
how u unlock nexus 5 when stuck booplop n cnt go to android screen?alrdy using ths step "fastboot oem unlock" when i reboot for unlock,stuck at bootloop n alrdy w8ing 24hr still bootloop cnt see android home screen...n i go to restart nexus5,n locked again... i just stuck on this place,cnt go to next step..pls help me
sry my englsh so bad
Click to expand...
Click to collapse
Not sure what your problem is, but if you are stuck at the boot screen (with the colored dots spinning) you might have the smae problem I describe. You can try to go to bootloader and wipe the cache, if that does not help and you don't mind a wiping all your data do a factory reset. , Go to recovery mode (third option in bootloader), then press the powr and vol up buttons together several times until you get into recovery. Then choose what you want to wipe.
If that does not restore your phone you need to follow my guide. Probably your persist partion is degraded and needs to be fixed. If you follow my guide you will find out what your problem is.
Good luck
Or just read the stickies.
I had the same problem, and for me, simple NAND restore from TWRP recovery solved this issue. I recently made this NAND backup for no reason and it happens to be a very good move. Cheers
Thank you so much for this! You saved my phone!
volvoxxda said:
I had the same problem, and for me, simple NAND restore from TWRP recovery solved this issue. I recently made this NAND backup for no reason and it happens to be a very good move. Cheers
Click to expand...
Click to collapse
But for that you have had to install TWRP in the first place...
Mine was stock.
Where is the backup saved?
Mine was rooted + TWRP recovery and I saved my backup on flash drive with TWRP's backup option. I was able to boot into boot menu (pwr + vol-) and it would let me to enter into TWRP only. For me it was enough to initiate a restore process..
volvoxxda said:
Mine was rooted + TWRP recovery and I saved my backup on flash drive with TWRP's backup option. I was able to boot into boot menu (pwr + vol-) and it would let me to enter into TWRP only. For me it was enough to initiate a restore process..
Click to expand...
Click to collapse
Flash drive? Do you mean the Nexus internal memory?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
External, like on this picture.
Final solution: power button micro tactile switch was faulty, causing boot loop from time to time. Replacing that little bastard solved this heartbreaking issue
volvoxxda said:
Final solution: power button micro tactile switch was faulty, causing boot loop from time to time. Replacing that little bastard solved this heartbreaking issue
Click to expand...
Click to collapse
Did you just replace the button or did you have to replace something more?
Thanks
Just the button. You can DIY, it's easy.
worked
worked great. confusing in the start but got it working. Thanks for a life saving guide for nexus 5
incredible
Hi eross,
I registered and logged in just to say thank you for this amazing tutorial. I've been trying to repair my N5 for about 12 hours, and I was about to give up when I saw this post. You saved my Nexus!!
Thanks again. :victory::highfive::good:
eross said:
Not sure what your problem is, but if you are stuck at the boot screen (with the colored dots spinning) you might have the smae problem I describe. You can try to go to bootloader and wipe the cache, if that does not help and you don't mind a wiping all your data do a factory reset. , Go to recovery mode (third option in bootloader), then press the powr and vol up buttons together several times until you get into recovery. Then choose what you want to wipe.
If that does not restore your phone you need to follow my guide. Probably your persist partion is degraded and needs to be fixed. If you follow my guide you will find out what your problem is.
Good luck
Click to expand...
Click to collapse
What if you cannot even get into recovery because it is missing?
Sent from my SM-G920T
ambervals6 said:
What if you cannot even get into recovery because it is missing?
Sent from my SM-G920T
Click to expand...
Click to collapse
You can try to download the stock firmware that's installed on your phone and flash the recovery img, or flash twrp recovery.
help
eross said:
This is a Nexus 5 32GB that's about 14 month old. Was running Lollipop 5.1 which was installed through OTA updates (4.44 >5.0 >5.01>5.1). The device is stock and unrooted.
Yesterday after powering the device up, it went into the boot screen and never managed to finsih the boot (for hours).
After reading extensively on this and other forums , here are the steps I tired , without success:
1. Go to bootloader and press Start
2.Go to bootloader , erase cache
3.Go to bootloader erase user data (factory reset).
I then tried to flash the factory image back. I tried all Lollipop versions from the google developers page of factory images. (can't post links yet...)
starting with 5.1.0 (LMY47I) and going down. All flashing was completed successfully, but the problem remains.
Then I tried 4.4.4 (KTU84P) and the device finally booted up, but it is crippled: Most times It only sees a storage of 16GB , the phone does not recognize any cellular carriers, google play crashes, camera crashes, gallery crashes. An error states that "no external memory is available". Basically it is useless.
I am wondering if it is a software or hardware problem. It appears as though part of the phone's memory is not functioning . Is there a way to check this? Is there a way to fix this?
Thanks
Edit: Just came back from an LG lab. Bad news. Need to replace the motherboard. Costs about 200$ !! Can't find anything cheaper on ebay. Guess it's time for a new phone
Edit #2 - SOLVED !!:laugh:
OK, this for any poor soul in the same state. This issue can be solved without replacing the motherboard for 200$.
The problem in my case was that the /persist partition was degraded, and could not mount. Here is how I found it out, and how I fixed it:
First, try to flash a stock image that will load, even if not fully working. You will need this later. In my case I could flash version 4.4x and get the phone to load.
The easiest way I found to flash my phone is using Julian OS' script. You can download the stock image5.0 and 5.01 with the script from here:
https://www.androidfilehost.com/?w=files&flid=22367
You will need to adapt the 4.4x firmware to have the script flash it, but it's very easy, just a couple of files to rename.
When you open Julian's zip file you will see that he uses a script that flashes the firmware's images one by one. What I did was download the stock images from Google https://developers.google.com/android/nexus/images , used winrar to extracrt all the files from the .tgz file to a folder, then unzip the only zip file there (image-hammerhead-xxxxx.zip) which contains 5 img files. I then renamed the radio-hammerhead-xxxxx.img to radio.img and bootloader-hammerhead-xxxx.img to bootloader.img. Now all the file names comply with Julian's script. From Julian's archive copy the files "From Bootloader.bat" and "fastboot.exe" to the folder where all the images you just renamed are.
Put the phone in bootloader mode (turn the phone off, press the Vol- and the power buttons). Once the the phone is in bootloader mode, connect it to the PC and run "From Bootloader.bat" and follow the onscreen instructions. In about 2 minutes, your phone will be flashed.
Turn the phone on, if you are lucky it will load the OS. Disregard all the error messages, and don't bother setting the phone up. If you skip wifi, and don't have a sim in the phone you can finish the basic setup quickly.
Next you need to get developer tools activated: Settings>about phone>Build number. Tap 7 times on the build number and this will unlock Developer tools. Go back to settings and the new developer tools and enable usb debugging. Approve any popups.
I am not aware of how to enable usb debugging if you cannot go into the settings. If non of the stock images loads for you, search for a way to get usb debugging working , or else you cannot continue. You need this for ADB to connect to the phone.
Once this is done , boot the phone into debugging mode.
Read the guide here http://android.stackexchange.com/qu...dots-lollipop-screen-after-hard-factory-reset
I got as far as activating ADB Sideload when I got the error "cannot mount /persist". I then understood what the problem was. If you get the same error - you are in luck!
Then go here, to learn how to fix the broken persist partition.
http://forum.xda-developers.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576
There are some prerequisites to getting this to work.
The first one is that the phone can be reached by ADB, this is why you needed the usb debugging mode.
Second, you need to install a custom recover image. Don't worry, you will overwrite it later. The one I used is TWRP. Get the latest version from here:
http://techerrata.com/browse/twrp2/hammerhead
To install I recommend you copy Fastboot.exe and the TWRP file to an empty folder on your PC . Rename the TWRP file to "recovery.img". Open a command prompt in the folder (see here if you don't know how http://www.techsupportalert.com/content/how-open-windows-command-prompt-any-folder.htm) , in the black window type: fastboot flash recovery recovery.img and hit Enter. Wait a few seconds and it will finish.
Third, you need to install an Android driver called Universal Naked Driver 0.73 from here: http://forum.xda-developers.com/showthread.php?t=2386956. Unzip the file to a folder.
Since the author of that guide states you need to uninstall any driver that already exists, I decided to install it on a PC that has no android driver. When you connect the phone to a windows 7 pc for the first time it will search for a driver. I disconnected the internet and windows installed a generic driver. In device manager I saw Nexus 5 with a yellow triangle. I Right clicked on it > update driver software > Browse my computer for driver software and point to the folder you unzipped the driver. You will get a warning - allow the installation.
Last, you need to root your device. (I think this can also be done from within TWRP , but I am not sure how...) I did this very simply by downloading CF-Auto-Root from https://autoroot.chainfire.eu/ The file you need is this: https://download.chainfire.eu/363/CF-Root/CF-Auto-Root/CF-Auto-Root-hammerhead-hammerhead-nexus5.zip . Unzip it, put your phone in bootloader, run root-windows.bat.
Now you are prepaired... Follow the guide by bitdomo . Open a command prompt where adb.exe is located , and run the 2 commands bitdomo wrote. You will get a series of questions , type y followed by Enter until it's all done.
SInce you are still in bootloader mode, and a big START is at the top of the screen, click the power button to reboot. Now your oS 4.4x should load properly. Make sure everything is working.
Now you can flash to the latest firmware 5.10 - download the file from the developer site I gave before, use Jason Os's script to flash the image, and lock the device.
When I first booted the device , I saw that it only recognized 16GB instead of 32GB. To solve this install TWRP again, go to Wipe>Format data . Then reboot the device and make sure you have 32GB.
If you like the stock recovery instead of TWRP you can use Fastboot to flash the original recovery.img.
Now you have a working Nexus 5 , v5.10.
Thanks to LyricWulf and bitdomo for their life saving guides. I hope this helps others in the same spot, and saves them 200$ .
Addendum: According to bitdomo, installing a custom recovery like TWRP enables USB debugging by default even if the phone does not boot. I have not tried this myself, but this means you can foergo installing os 4.4x , and go straight to ADB and run the command that fixes the persist partition.
Go ahead and try it. It will save you a lot of time!
Click to expand...
Click to collapse
My N5 has exact problem as yours even same errors of camera and playstorw crashing when i loaded older android version.. now im positive your instructions will help me but im having some trouble with your steps i do not know how to type comnands with ADB .. im truly novice and dont want to damage the phone more could you simplify the steps or make a video please? Thank you
Sorry, I can't make it any simpler than that. I can't make a video now because my phone is fixed. Adb is very simple, it's like an old DOS window where you type the text. I would follow Bitdomo's advice and start by installing TWRP. This will get you USB debugging, and you can run ADB and follow his instructions to fix the persist partition.

Problem flashing Android 7

Hi,
I want to upgrade my Nexus 5 (Android 6.0.1, not rooted) to Android 7 unofficially, so I downloaded Santhosh's Android 7 Build for Nexus 5.
After downloading it, I booted my Nexus 5 (connected to my MBP) to fastboot then using Terminal I had unlocked the bootloader, and I flashed the latest TWRP image for Nexus 5 to my Nexus 5. After I rebooted my Nexus 5 to recovery where it showed a screen (postimg(dot)org/image/rw3zdlmyt/), after which my phone kept rebooting in a boot loop.
I booted to fastboot after using the key combination, and used fastboot to erase the recovery and the system.
Now I'm all ears to get my Nexus 5 to Android 7.
Please help me out. I appreciate all your help.
Thanks,
Agneev
I recommend flashing back to stock, make sure everything works on stock, flash twrp, boot into recovery frlom fastboot right after flashing TWRP.
audit13 said:
I recommend flashing back to stock, make sure everything works on stock, flash twrp, boot into recovery frlom fastboot right after flashing TWRP.
Click to expand...
Click to collapse
How should I flash back to stock since I've used the fastboot command fastboot erase system and fastboot erase recovery. Does my erasing of these 2 internal partitions change anything?? Since I've erased recovery, how do I get stock recovery back??
P.S. Thank you for replying.
agneev55 said:
How should I flash back to stock since I've used the fastboot command fastboot erase system and fastboot erase recovery. Does my erasing of these 2 internal partitions change anything?? Since I've erased recovery, how do I get stock recovery back??
P.S. Thank you for replying.
Click to expand...
Click to collapse
http://forum.xda-developers.com/goo...l-06-03-14-one-click-factory-restore-t2513937
you can also instal twrp with this tool http://forum.xda-developers.com/goo...olkit-wugs-nexus-root-toolkit-v1-8-3-t2517778
agneev55 said:
How should I flash back to stock since I've used the fastboot command fastboot erase system and fastboot erase recovery. Does my erasing of these 2 internal partitions change anything?? Since I've erased recovery, how do I get stock recovery back??
P.S. Thank you for replying.
Click to expand...
Click to collapse
Steps to recover back to stock Android 6.0.1 MOB31E
1) Visit.... https://developers.google.com/android/nexus/images
to download latest official from for nexus 5.
2)download NEXUS TOOLKIT application for flashing and everything from here...http://www.wugfresh.com/nrt/
3)install driver for nexus in order to detect your phone from here...http://www.android.gs/download-and-install-google-nexus-5-usb-drivers-adb-fastboot/
4)unzip the stock file two times to get all the .IMG files (boot.img,recovery.img,userdata.img,system.img,etc)..
5) install and open nexus toolkit (but remember before opening turn on laptop internet) ,select your model and build to latest Android 6.0 version.
And click on LUNCH under Advanced utilities.
Then under fastboot flash select system ,click ok then browse option. Now select your folder containing system.img inside your unzipped firmware.
6) first turn your nexus 5 in bootloader mode and now connect it to pc.
7)and flash system.img file..but atleast battery should be 30℅
Or you can directly use option Flash stock + unroot and click other browse and I downloaded a factory image option and hit ok.Then search your zip firmware in folder that you have downloaded and go...but make sure to turn your phone in bootloader mode before flashing..
Now after successful stock flashing...
FOR FLASHING ANDROIND 7.0 AOSP
1) go to setting >about phone,tap build number 3-4 to activate developer option and enable debugging mode...and connect to pc
2)open nexus root toolkit and first unlock bootloader(take full backup of internal storage before unlocking)..to take backup when your phone is bricked just enter in bootloader mode,launch nexus root toolkit,go to Advanced utilities and click custom recovery under fastboot boot option..
After booting in two recovery connect your phone to pc..and you will be able to see your internal storage in pc..
3) after bootloader unlock..use Root option in toolkit and download necessary file it it says to download....allow debugging if pop-up come in your phone after connecting..
4)after rooting go to fastboot boot under Advanced utilities and click custom twrp and hit...
5)but make sure you have transfered Android 7.0 zip files and Gapps in your internal storage
6) and flash one by one..
OR IF YOU JUST DIRECTLY WANT TO FLASH ANDEOID 7.0....TRY THIS SHORTCUT STEPS..
1) TURN YOUR NEXUS 5 IN BOOTLOADER MODE..
2) CONNECT IT TO PC...BUT BE SURE THAT NEXUS 5 DRIVERS ARE INSTALLED IF NOT DO THAT FIRST
3)LAUNCH NEXUS ROOT TOOLKIT AND CLICK ADVANCED UTILITIES >Fastboot Boot >custom recoveryand wait till it boots into twrp..
4) now swipe for factory reset and select install option and find your Android 7.0 zip file in internal storage and go..if you have not transferred Android 7.0 zip files and Gapps you can still transfer that time in TWRP mode as in twrp mode ours internal storage in accessible..so transfer and flash Android 7.0 first and then after successful flashing you may get red error at last but ignore it..and boot your phone..now again after your phone boot to Android 7.0 ..select custom recovery option in root toolkit and enter twrp mode and now flash Gapps better download micro Gapps around 130mb..
If u still face any difficulty let me know..
zameer hassan said:
Steps to recover back to stock Android 6.0.1 MOB31E
OR IF YOU JUST DIRECTLY WANT TO FLASH ANDEOID 7.0....TRY THIS SHORTCUT STEPS..
1) TURN YOUR NEXUS 5 IN BOOTLOADER MODE..
2) CONNECT IT TO PC...BUT BE SURE THAT NEXUS 5 DRIVERS ARE INSTALLED IF NOT DO THAT FIRST
3)LAUNCH NEXUS ROOT TOOLKIT AND CLICK ADVANCED UTILITIES >Fastboot Boot >custom recoveryand wait till it boots into twrp..
4) now swipe for factory reset and select install option and find your Android 7.0 zip file in internal storage and go..if you have not transferred Android 7.0 zip files and Gapps you can still transfer that time in TWRP mode as in twrp mode ours internal storage in accessible..so transfer and flash Android 7.0 first and then after successful flashing you may get red error at last but ignore it..and boot your phone..now again after your phone boot to Android 7.0 ..select custom recovery option in root toolkit and enter twrp mode and now flash Gapps better download micro Gapps around 130mb..
If u still face any difficulty let me know..
Click to expand...
Click to collapse
Thank you for the reply, as I currently don't have recovery mode installed so does that change anything?
Also I'm flashing Android 7 directly, so if there is any other thing I need to know, please tell me as I would appreciate that.
To flash directly to 7, put the phone into fastboot mode and flash TWRP, boot into TWRP, mount data, copy the 7.0 ROM to the phone, and flash it.
audit13 said:
To flash directly to 7, put the phone into fastboot mode and flash TWRP, boot into TWRP, mount data, copy the 7.0 ROM to the phone, and flash it.
Click to expand...
Click to collapse
apparently, TWRP says "Failed to mount '/data' (Invalid argument)"
In this case, I would start over by flashing the latest stock ROM, including the userdata.img, and then perform a factory wipe using stock recovery, flash twrp, flash 7.
audit13 said:
In this case, I would start over by flashing the latest stock ROM, including the userdata.img, and then perform a factory wipe using stock recovery, flash twrp, flash 7.
Click to expand...
Click to collapse
So should I download the 6.0.1 image for Nexus 5 and then use Nexus Root Toolkit and flash all the .img files individually or should I just launch the batch file inside the 6.0.1 image and let it install automatically?
I would go with the latest stock MM ROM.
I always flash manually but the NRT accomplishes the same thing. Not sure if NRT flashes userdata.img. If the phone hangs at the boot animation and NRT did not flash userdata.img, you should manually flash of userdata.img and factory reset using stock recovery.
agneev55 said:
So should I download the 6.0.1 image for Nexus 5 and then use Nexus Root Toolkit and flash all the .img files individually or should I just launch the batch file inside the 6.0.1 image and let it install automatically?
Click to expand...
Click to collapse
Try this first...
First install nexus 5 Driver in you PC
1) put your phone into bootloader mode and connect it to pc.
2) open Nexus Root ToolKit ,select your device as nexus 5 and android build version as android 6.0.1 (MOB31E) and click ''Lunch" under ''Advanced Utilities'''.Now under ''Fastboot Boot'' select ''Custom Recovery'' and then OK.you nexus will automatically booot into TWRP recovery(you don't need to flash twrp recovery before",since it will boot your phone into twrp for temporary when you click ''custom recovery'' option)
3) if your phone boot into Twrp then its ok otherwise you may have not properly installed or missing nexus 5 drivers in your pc.
GUIDE FOR PROPER INSTALLATION OF NEXUS 5 DRIVER(see attached image).
4) Now transfer your (android 7.0+gapps) zip files in your nexus 5.since you can access you internal storage in PC in TWRP mode.
5) Before doing this step..please backup your current ROM because this step will erase everything from your phone except your internal storage.
Now select WIPE> Advance wipe and select Dalvik cache,system,data,cache and leave unchecked ''INTERNAL STORAGE''..Otherwise you will end up wiping you internal storage.
6) After wiping finised,go back to main menu option and select ''INSTALL'' and navigate to your Android 7.0 zip file folder and swipe to install..
7) after successfull installation you may get red error at last but ignore it and select system to boot..
8) if everything goes well then again boot into TWRP as described above and flash gapps and reboot.
9) after your phone starts you may get some apps errors like forced close or stop working or not responding..In this case just go to setting >Apps >just click 3 dots at top right corners and select show system and find that apps if it is a system app or user app and Grant all permission to that app.
10) now root your android 7.0 if you want to use rooted applications. like Adaway
(to block ads),Greenify(to increase battery life and performance),SCR Pro(to record screen),MiXplorer(advance file manager),LMT Launcher(to increase your display size),
CF.lumen(for eye comfort),Link2SD,Tubemate etc
11) But remember Since android 7.0 has been released recently..there are more chances of bugs in ROM,many apps may not compatible with android 7.0...as myself rolled back to android 6.0.1 after using android 7.0 for few days due to some issues with my favourite apps.
IF YOU STILL UNABLE TO FLASH ANDROID 7.0 DUE TO SOME ERRORS...
THEN TRY THIS METHOD...
first download nexus 5 factory image 6.0.1
1) connect your phone to pc in bootloader mode and open nexus root toolkit.
2) now look up for option ''Flash Stock+Unroot'' then hit and press OK.
3) now do as i shown in attached images (load factory image 1 and 2) and wait if it ask to download hatch like thing then allow,it may require internet connection and watch it..
4) process will begin automatically in cmd and reboot into system after completion.
5) now after system boots up to stock rom,just enable ''developer option'' by tapping 3,4 times in ''build number'' under setting >about phone and turn on ''developer option'' and enable ''usb debugging'' option.
6) now keep your phone connected to pc and click ''ROOT'' option in Nexus Root Toolkit.
It may require internet connection to download root files if its already not downloaded and wait till root.
7) after rooting your nexus 5.Again boot your phone into twrp mode (temporarly or else you can flash twrp permanently) using nexus root toolkit and backup your whole system file if you need it to restore at future.
GUIDE FOR FLASHING TWRP PERMANENTLY IN NEXUS 5...
a) download twrp recovery from here... https://twrp.me/devices/lgnexus5.html
and rename it to recovery.img (to replace your stock recovery)
b) now select ''advanced utilities'' in nexus root toolkit and slect ''Browse/other'' under ''Fastboot Boot'' option and click ok and browse your recovery.img(i.e renamed twrp recovery.img)
c) now it will automatically flashes twrp and will replace your stock recovery.
8) now in twrp recovery select wipe >advance wipe> Dalvik cache,system,data,cache and leave unchecked ''INTERNAL STORAGE''..Otherwise you will end up wiping you internal storage.
9) after this follw the same steps mentioned in previous first method...
for sake of more information you can also change your boot animation logo on nexus 5 startup..just by going to system >media>replace (bootanimation.zip) to your desired boot animation but before replacing change your new boot animation to (bootanimation.zip) and set permission as RWRR in properties.
zameer hassan said:
Steps to recover back to stock Android 6.0.1 MOB31E
1) Visit.... https://developers.google.com/android/nexus/images
to download latest official from for nexus 5.
2)download NEXUS TOOLKIT application for flashing and everything from here...http://www.wugfresh.com/nrt/
3)install driver for nexus in order to detect your phone from here...http://www.android.gs/download-and-install-google-nexus-5-usb-drivers-adb-fastboot/
4)unzip the stock file two times to get all the .IMG files (boot.img,recovery.img,userdata.img,system.img,etc)..
5) install and open nexus toolkit (but remember before opening turn on laptop internet) ,select your model and build to latest Android 6.0 version.
And click on LUNCH under Advanced utilities.
Then under fastboot flash select system ,click ok then browse option. Now select your folder containing system.img inside your unzipped firmware.
6) first turn your nexus 5 in bootloader mode and now connect it to pc.
7)and flash system.img file..but atleast battery should be 30℅
Or you can directly use option Flash stock + unroot and click other browse and I downloaded a factory image option and hit ok.Then search your zip firmware in folder that you have downloaded and go...but make sure to turn your phone in bootloader mode before flashing..
Now after successful stock flashing...
FOR FLASHING ANDROIND 7.0 AOSP
1) go to setting >about phone,tap build number 3-4 to activate developer option and enable debugging mode...and connect to pc
2)open nexus root toolkit and first unlock bootloader(take full backup of internal storage before unlocking)..to take backup when your phone is bricked just enter in bootloader mode,launch nexus root toolkit,go to Advanced utilities and click custom recovery under fastboot boot option..
After booting in two recovery connect your phone to pc..and you will be able to see your internal storage in pc..
3) after bootloader unlock..use Root option in toolkit and download necessary file it it says to download....allow debugging if pop-up come in your phone after connecting..
4)after rooting go to fastboot boot under Advanced utilities and click custom twrp and hit...
5)but make sure you have transfered Android 7.0 zip files and Gapps in your internal storage
6) and flash one by one..
OR IF YOU JUST DIRECTLY WANT TO FLASH ANDEOID 7.0....TRY THIS SHORTCUT STEPS..
1) TURN YOUR NEXUS 5 IN BOOTLOADER MODE..
2) CONNECT IT TO PC...BUT BE SURE THAT NEXUS 5 DRIVERS ARE INSTALLED IF NOT DO THAT FIRST
3)LAUNCH NEXUS ROOT TOOLKIT AND CLICK ADVANCED UTILITIES >Fastboot Boot >custom recoveryand wait till it boots into twrp..
4) now swipe for factory reset and select install option and find your Android 7.0 zip file in internal storage and go..if you have not transferred Android 7.0 zip files and Gapps you can still transfer that time in TWRP mode as in twrp mode ours internal storage in accessible..so transfer and flash Android 7.0 first and then after successful flashing you may get red error at last but ignore it..and boot your phone..now again after your phone boot to Android 7.0 ..select custom recovery option in root toolkit and enter twrp mode and now flash Gapps better download micro Gapps around 130mb..
If u still face any difficulty let me know..
Click to expand...
Click to collapse
OK, I have flashed stock Android 6.0.1, now please tell me how to go to unofficial nougat.
zameer hassan said:
Steps to recover back to stock Android 6.0.1 MOB31E
1) Visit.... https://developers.google.com/android/nexus/images
to download latest official from for nexus 5.
2)download NEXUS TOOLKIT application for flashing and everything from here...http://www.wugfresh.com/nrt/
3)install driver for nexus in order to detect your phone from here...http://www.android.gs/download-and-install-google-nexus-5-usb-drivers-adb-fastboot/
4)unzip the stock file two times to get all the .IMG files (boot.img,recovery.img,userdata.img,system.img,etc)..
5) install and open nexus toolkit (but remember before opening turn on laptop internet) ,select your model and build to latest Android 6.0 version.
And click on LUNCH under Advanced utilities.
Then under fastboot flash select system ,click ok then browse option. Now select your folder containing system.img inside your unzipped firmware.
6) first turn your nexus 5 in bootloader mode and now connect it to pc.
7)and flash system.img file..but atleast battery should be 30℅
Or you can directly use option Flash stock + unroot and click other browse and I downloaded a factory image option and hit ok.Then search your zip firmware in folder that you have downloaded and go...but make sure to turn your phone in bootloader mode before flashing..
Now after successful stock flashing...
FOR FLASHING ANDROIND 7.0 AOSP
1) go to setting >about phone,tap build number 3-4 to activate developer option and enable debugging mode...and connect to pc
2)open nexus root toolkit and first unlock bootloader(take full backup of internal storage before unlocking)..to take backup when your phone is bricked just enter in bootloader mode,launch nexus root toolkit,go to Advanced utilities and click custom recovery under fastboot boot option..
After booting in two recovery connect your phone to pc..and you will be able to see your internal storage in pc..
3) after bootloader unlock..use Root option in toolkit and download necessary file it it says to download....allow debugging if pop-up come in your phone after connecting..
4)after rooting go to fastboot boot under Advanced utilities and click custom twrp and hit...
5)but make sure you have transfered Android 7.0 zip files and Gapps in your internal storage
6) and flash one by one..
OR IF YOU JUST DIRECTLY WANT TO FLASH ANDEOID 7.0....TRY THIS SHORTCUT STEPS..
1) TURN YOUR NEXUS 5 IN BOOTLOADER MODE..
2) CONNECT IT TO PC...BUT BE SURE THAT NEXUS 5 DRIVERS ARE INSTALLED IF NOT DO THAT FIRST
3)LAUNCH NEXUS ROOT TOOLKIT AND CLICK ADVANCED UTILITIES >Fastboot Boot >custom recoveryand wait till it boots into twrp..
4) now swipe for factory reset and select install option and find your Android 7.0 zip file in internal storage and go..if you have not transferred Android 7.0 zip files and Gapps you can still transfer that time in TWRP mode as in twrp mode ours internal storage in accessible..so transfer and flash Android 7.0 first and then after successful flashing you may get red error at last but ignore it..and boot your phone..now again after your phone boot to Android 7.0 ..select custom recovery option in root toolkit and enter twrp mode and now flash Gapps better download micro Gapps around 130mb..
If u still face any difficulty let me know..
Click to expand...
Click to collapse
Ok, I've flashed 7.0 nougat, how can I get Play Store and Google Apps and there is no option to sign-in to my Google account.
agneev55 said:
Ok, I've flashed 7.0 nougat, how can I get Play Store and Google Apps and there is no option to sign-in to my Google account.
Click to expand...
Click to collapse
1) download gapps first from here...http://opengapps.org/
then select Platform: ARM,
Android:7.0 or 7.1 as per your installed nougat version,
Variant: micro or nano.
2) flash gapps after entering into twrp recovery mode and reboot.
3) if any application crashes or forced closed then go to setting ,apps and enable all permission for that particular application.
4) root your Nougat using Nexus Root Toolkit
5) to maximize your screen use lmt launcher (see attached image)
setting for lmt launcher
> activation area position : bottom
>activation area thickness: 18
>activation area length : 580
> show status info: disabled
> PIE setting(pie item 1: recent apps
pie item 2:home
pie item 3:Back)
and important things is to remove soft bottom navigation keys on the screen using these steps
> visit root folder using any root explorer like mixplorer apk or es file explorer apk
> go to system folder and open ''build.prop'' file and add ''qemu.hw.mainkeys=1'' at last.
excluding ('') and save and reboot.

[GUIDE][BOOTLOADER,TWRP, ROOT]Lenovo TAB3 8/TB3-850F

This guide, for the Lenovo Tab 3 8" (TB3-850F), has 3 purposes:
1. Unlocking your bootloader;
2. Installing TWRP custom recovery;
3. Attaining superuser privileges (root) of the stock OS.
NOTE:
I can attest & confirm that this method has worked 100% on at least 7 devices of my own. Please read and re-read the instructions carefully before proceeding. If you follow this tutorial exactly as delineated, you should have no adverse issues in unlocking your bootloader, flashing custom recovery, or achieving systemless root of the stock Android OS.
MENTIONS & THANKS:
Based on XDA Senior Member @Hemphiz's groundbreaking root and custom recovery for this device, I am now revising this thread wth improved step-by-step instructions based on members' feedback and experiences. Thanks @Hemphiz for your research, assimilation of necessary files, and for breaking ground on this tablet. Thanks also for your granting me ownership of the thread. Your contributions are greatly appreciated by many. Thanks to the great @Chainfire for his flashable systemless rooting script. Thanks to @jemmini for compiling TWRP for this tablet. Finally, thanks to the many members who have tested this guide and provided much needed input & user experience.
DISCLAIMER: As always, please be reminded of the risk involved with flashing a custom recovery and/or attempting to attain superuser privileges of your Android OS. I will not be held responsible for devices bricked or otherwise rendered inoperable as a result of this thread. You assume full responsibility for any good or bad which may result from proceeding any further. However, with that having been said, I will provide any and all support possible. Read and follow the foregoing steps thoroughly and carefully prior to proceeding. NOTE: THIS GUIDE IS INTENDED ONLY FOR THE LENOVO TAB 3 8"/TB3-850F.
REQUIREMENTS:
1. Minimal ADB & Fastboot v1.4 (or newer) Windows Installer;
2. Windows PC or laptop (Mac may be used; however this guide is intended for Windows 7 and newer operating systems);
3. Official Lenovo USB Device Driver v1.1.21;
4. TWRP v3.0.1 for the TB3-850F;
5. ADB Driver Installer for Windows;
6. SuperSU v2.82-SR5 flashable zip.
(All files, drivers & utilities for this process are available in the below download link)
DOWNLOAD LINK: https://drive.google.com/folderview?id=1l-YN5aXmjDF3O1bHxFHVIxLKuvd847Q9
INSTRUCTIONS:
1. First and foremost, unlocking the bootloader is necessary. Also, this step is a good place to make some requisite preparations. Power on your Tab 3 and select SETTINGS once booted up. Go to ABOUT DEVICE, find BUILD NUMBER, and tap it 7 or 8 times until DEVELOPER OPTIONS is enabled. In DEVELOPER OPTIONS, tick OEM UNLOCKING and USB DEBUGGING. On your PC, install the Minimal ADB & Fastboot utilities, the ADB Driver Installer, and the Lenovo USB Driver Installer. Connect your Tab 3 to your PC with the supplied (or quality equivalent) OEM charging/syncing cable. Open a command window in your ADB/Fastboot directory, by holding SHIFT and right clicking in the desired path. In the command window, type: adb devices & press RETURN. If your device is connected properly, the command window will display a string of numbers/letters, which represent your device's serial number. If your serial number does not appear in the window, try changing USB ports, change syncing cables, or try reinstalling the ADB Drivers. Once properly connected, type adb reboot bootloader & press RETURN. Your tablet should boot into Fastboot Mode, which will be displayed in white bold letters on your device's display once complete. Once in Fastboot Mode, type fastboot oem unlock & press RETURN. Your device will prompt you to press Volume Up to proceed with unlocking the bootloader, or Volume Down to cancel the process. WARNING: UNLOCKING THE BOOTLOADER AUTOMATICALLY INITIATES A FACTORY DATA RESET. YOU WILL LOSE ANY UNSAVED VIDEOS, MUSIC, PERSONAL FILES, ETC.
2. Now that your bootloader is unlocked, you are ready to flash TWRP. Download the twrp.img file from my link and save it to your PC in the ADB/Fastboot path/directory. Also, save a copy of the file on your device's internal storage or external micro SD card. Since your device underwent a factory data reset, you will again need to enable DEVELOPER OPTIONS & tick OEM UNLOCKING & USB DEBUGGING as you did in Step 1. When you have done this, again open a command window, ensure a proper connecion, & type adb reboot bootloader & press RETURN. Once in Fastboot Mode, type fastboot boot twrp.img & RETURN. EXTREMELY IMPORTANT NOTE: this device's boot image is secured with dm-verity. Leave the /system partition as read-only when prompted by TWRP. Mounting /system as read/write at this point will result in a boot loop. Flashing SuperSU, as outlined in Step 3, will patch dm-verity and fix this.
From the TWRP main menu, select INSTALL, select the image file option in the bottom right of the screen, navigate to the location where you saved twrp.img in device storage or external storage, and commence the installation. Be certain and correctly choose "recovery" when prompted by TWRP. Now select REBOOT, then RECOVERY. Your TWRP custom recovery should now be successfully installed on your device's /recovery partition.
3. Now, it is time to root this tablet. Download & save a copy of the SuperSU v2.82-SR5 zip file to the tablet's internal or external storage. In TWRP main menu, select INSTALL & navigate to the saved SuperSU zip. Commence with installation. Systemless root mode will unpack, modify, repack and flash the patched boot image. Once done, reboot system. Your Android OS should now have full systemless root, and the /system partition may now safely mount as read/write.
TROUBLESHOOTING:
In the event your device becomes stuck in a bootloop, or is otherwise failing to boot into the OS, the following is a link to my stock firmware images thread for this device. NOTE: the following link will be beneficial only if your device successfully boots into Recovery/Fastboot mode. This link provides stock partition images of /boot, /recovery, /logo & /system. Typically, flashing the stock boot & system images will get you up & running again, and will restore the Android OS to stock condition.
https://forum.xda-developers.com/an...o-tab-3-8-tb3-850f-android-6-0-t3593043/page5
In the unfortunate event that you encounter a brick (your device fails to boot into the OS or Recovery Mode), please visit @r&xp's thread on unbricking your device & restoring it to factory stock condition. Members using his thread be sure to thank @r&xp. His collection of necessary files & comprehensive instructions has saved many, many bricked tablets. https://forum.xda-developers.com/android/help/lenovo-tab-3-8-tb3-850f-unbrick-root-t3598727
What is your software version?
Mine is TB3-850F_160412
i have a pending 51MB update ,do i complete all updates or ignore them and root?
Also whats the procedure to unroot if i want to get the updates later?
viv_jen said:
What is your software version?
Mine is TB3-850F_160412
i have a pending 51MB update ,do i complete all updates or ignore them and root?
Also whats the procedure to unroot if i want to get the updates later?
Click to expand...
Click to collapse
Look for build number. It's usally best to determine things. I'm on TB3-850F_S100030_161209_ROW
I took the latest OTA before flashing twrp else ota will fail due to the recovery being modified. For unroot there's an option in Superssu to unroot. I would personally create a full backup via twrp before rooting, so you can revert to it if you wish
this bricked my tablet
nox13666 said:
this bricked my tablet
Click to expand...
Click to collapse
Well you must've done something wrong. It's pretty much fool proof
Hemphiz said:
Well you must've done something wrong. It's pretty much fool proof
Click to expand...
Click to collapse
Great thread. OP's instructions & downloads work flawlessly. Thank you @Hemphiz
Thanks for the guide
Thanks for the guide!
Everything works but when I reboot into recovery I just get the dead android with no command under him..
I tried two times with same result Fastboot reports twrp flashes ok
Any ideas?
Thanks
Xecsc said:
Thanks for the guide!
Everything works but when I reboot into recovery I just get the dead android with no command under him..
I tried two times with same result Fastboot reports twrp flashes ok
Any ideas?
Thanks
Click to expand...
Click to collapse
Not to hijack the OP's thread but here are my thoughts. The dead Android indicates that TWRP did not successfully flash to your /recovery partition. Sounds like stock recovery is still installed. First, place a copy of twrp.img on your device's internal storage or on an external micro SD. Try this: instead of typing the command "fastboot flash recovery twrp.img", type " fastboot boot twrp.img" (assuming your twrp file is named twrp.img. If it isn't, rename it twrp.img for simplicity purposes). This command will temporarily boot your device into TWRP recovery. From the main menu on TWRP, select INSTALL. In the bottom right of the screen, select the option for "img" files. Navigate to where you stored "twrp.img" and select it. Install it to "RECOVERY" when prompted. Once it flashes, select REBOOT then select RECOVERY. Your device should now successfully boot into TWRP recovery.
MotoJunkie01 said:
Not to hijack the OP's thread but here are my thoughts. The dead Android indicates that TWRP did not successfully flash to your /recovery partition. Sounds like stock recovery is still installed. First, place a copy of twrp.img on your device's internal storage or on an external micro SD. Try this: instead of typing the command "fastboot flash recovery twrp.img", type " fastboot boot twrp.img" (assuming your twrp file is named twrp.img. If it isn't, rename it twrp.img for simplicity purposes). This command will temporarily boot your device into TWRP recovery. From the main menu on TWRP, select INSTALL. In the bottom right of the screen, select the option for "img" files. Navigate to where you stored "twrp.img" and select it. Install it to "RECOVERY" when prompted. Once it flashes, select REBOOT then select RECOVERY. Your device should now successfully boot into TWRP recovery.
Click to expand...
Click to collapse
I was running into the same issue after flashing twrp.img via fastboot, it kept coming up with no command when booting into recovery. Followed MotoJunkies advice and booted into twrp.img instead of flashing and installed it that way, now my device is rooted. Thank you Hemphiz and MotoJunkie.
MotoJunkie01 said:
Not to hijack the OP's thread but here are my thoughts. The dead Android indicates that TWRP did not successfully flash to your /recovery partition. Sounds like stock recovery is still installed. First, place a copy of twrp.img on your device's internal storage or on an external micro SD. Try this: instead of typing the command "fastboot flash recovery twrp.img", type " fastboot boot twrp.img" (assuming your twrp file is named twrp.img. If it isn't, rename it twrp.img for simplicity purposes). This command will temporarily boot your device into TWRP recovery. From the main menu on TWRP, select INSTALL. In the bottom right of the screen, select the option for "img" files. Navigate to where you stored "twrp.img" and select it. Install it to "RECOVERY" when prompted. Once it flashes, select REBOOT then select RECOVERY. Your device should now successfully boot into TWRP recovery.
Click to expand...
Click to collapse
Thanks worked perfect!
this did not work for me. now my tablet is in boot loop. keeps going to team win. trying to trying to mount storage and then back to the regular boot. over and over.
figgenhoffer said:
this did not work for me. now my tablet is in boot loop. keeps going to team win. trying to trying to mount storage and then back to the regular boot. over and over.
Click to expand...
Click to collapse
Hmmm. Did you execute "fastboot oem unlock" first to unlock your bootloader? It sounds as though you are saying TWRP installed correct? When you try to boot into the OS, you are getting reverted back to TWRP?
i did that. i had teamwin recovery. then installed the superuser.zip and it keeps looping
figgenhoffer said:
i did that. i had teamwin recovery. then installed the superuser.zip and it keeps looping
Click to expand...
Click to collapse
I see. The superuser zip is likely the culprit. Which one did you use? Did you use the one in the link? Here is a link for the stock boot.img for this device. Install it in fastboot mode by typing "fastboot flash boot boot.img". Try booting after flashing the stock boot image and also try reinstalling the boot script.https://drive.google.com/file/d/0B7-zQU1VihD3ZGZBRzU1Nm1PYjA/view?usp=drivesdk
Note: you will need to rename the downloaded file to " boot.img"
Thanks for the guide. Tried to do this on the Lenovo TAB3 10 Business, but no success
I can connect using the tools and enter into fast boot
When I flash, it seems successful, but after shutdown, start with power, volume buttons, I don't see the TWRP, but instead a kind of test app
When i use the other method to boot into the twrp, the Lenovo, boots normal, not into TWRP
Any ideas?
smouge said:
Thanks for the guide. Tried to do this on the Lenovo TAB3 10 Business, but no success
I can connect using the tools and enter into fast boot
When I flash, it seems successful, but after shutdown, start with power, volume buttons, I don't see the TWRP, but instead a kind of test app
When i use the other method to boot into the twrp, the Lenovo, boots normal, not into TWRP
Any ideas?
Click to expand...
Click to collapse
When you initially connect your Tab3 to PC and open a command window, did you execute both recognition tests? "adb devices" and "fastboot devices"? I am just curious as to whether your device is being recognized by both the fastboot and the adb platforms. Please try this and let me know.
This i what I with Lenovo Tab3 10 business
>adb devices
List of devices attached
8HSKCMT4PJIZ9HDZ device
>adb reboot bootloader
>fastboot devices
8HSKCMT4PJIZ9HDZ fastboot
At this moment, on the Lenovo Android you only see a smaal line at the bottom: =>FASTBOOT mode...
The fastboot does nt deisplay errors, but after the following command, the tablet just boots in the normal Android. On the Android device I also saw quickly the message "USB transferring OK" before booting
>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 1.192s]
booting...
OKAY [ 0.073s]
finished. total time: 1.269s
---------- Post added at 09:20 AM ---------- Previous post was at 09:03 AM ----------
On the Lenovo TAB3 10 Business I can also do the following:
Holding Vol up + Power when off and then releasing power when you see the Lenovo logo will bring up the following menu:
Select Boot Mode:
[VOLUME_UP to select. VOLUME_DOWN is OK.]
[Recovery Mode]
[Fastboot Mode]
[Normal Boot] <<==
With the recovery mode I see the following:
Android Recovery
Lenovo/LenovoTB3-X70L/TB3-X70L
6.0/MRA58K/TB3-X70L_S000020_170209_ROW
user/release-keys
Use volume up/down and power.
Reboot system now
Reboot to bootloader
Apply update from ADB
Apply update from SD card
Wipe data/factory reset
Wipe cache partition
Backup user data
Restore user data
Root integrity check
Mount /system
View recovery logs
Power off
smouge said:
This i what I with Lenovo Tab3 10 business
>adb devices
List of devices attached
8HSKCMT4PJIZ9HDZ device
>adb reboot bootloader
>fastboot devices
8HSKCMT4PJIZ9HDZ fastboot
At this moment, on the Lenovo Android you only see a smaal line at the bottom: =>FASTBOOT mode...
The fastboot does nt deisplay errors, but after the following command, the tablet just boots in the normal Android. On the Android device I also saw quickly the message "USB transferring OK" before booting
>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 1.192s]
booting...
OKAY [ 0.073s]
finished. total time: 1.269s
---------- Post added at 09:20 AM ---------- Previous post was at 09:03 AM ----------
On the Lenovo TAB3 10 Business I can also do the following:
Holding Vol up + Power when off and then releasing power when you see the Lenovo logo will bring up the following menu:
Select Boot Mode:
[VOLUME_UP to select. VOLUME_DOWN is OK.]
[Recovery Mode]
[Fastboot Mode]
[Normal Boot] <<==
With the recovery mode I see the following:
Android Recovery
Lenovo/LenovoTB3-X70L/TB3-X70L
6.0/MRA58K/TB3-X70L_S000020_170209_ROW
user/release-keys
Use volume up/down and power.
Reboot system now
Reboot to bootloader
Apply update from ADB
Apply update from SD card
Wipe data/factory reset
Wipe cache partition
Backup user data
Restore user data
Root integrity check
Mount /system
View recovery logs
Power off
Click to expand...
Click to collapse
Chances are the twrp isn't compatible with your device. Although the hardware all looks the same. Problem is my knowledge with Android development isn't that great. I simply read in my spare time. The twrp I found for this device on a previous xda thread, but it was more of a Q&A so I made this guide to simplify things for people. I do know that the original twrp was made here http://4pda.ru/forum/index.php?showforum=583
Worked great for me thanks. Had a few problems off at first but managed to get it done. First boot did take a little while but after that all is great

TWRP for Gionee M5 Mini MT6580

I've done deep search about this concern for 2 hours but I've only seen twrp for M5 mini but with different Mediatek. I have MT6580 so some forums doesnt give me any answers so I need help to you guys if you have twrp for this type of Mediatek. Need to flash a rom to my phone~ Thanks in advance
Upload your stock recovery, we'll see if something can be done
I'm new so i don't know how to extract my stock recovery
CSAPawn said:
I'm new so i don't know how to extract my stock recovery
Click to expand...
Click to collapse
Then you download your stock firmware just extract it with any unzipper app like winrar or 7zip, then zip it and upload it here or it´s not able upload it to some cloud host like Google Drive
This is my stock firmware Lollipop
http://www.mediafire.com/file/wd5a4xqftiao7t6/Gionee_M5_Mini_MT6580_5.1.zip
I have Marshmallow update right now so here's the update file https://mega.nz/#!jQdWkYiB
CSAPawn said:
I have Marshmallow update right now so here's the update file https://mega.nz/#!jQdWkYiB
Click to expand...
Click to collapse
Download it, you might need it in the future, and inside the zip you will see a file called recovery, extract it and upload me here, I need this file to try to made a custom recovery for your device
Okay! Le me just download it~
https://drive.google.com/file/d/1i57tu6g-qLWFHL8JknfrHJqh1SsYDk_X/view here's the recovery of Marshmallow update
CSAPawn said:
https://drive.google.com/file/d/1i57tu6g-qLWFHL8JknfrHJqh1SsYDk_X/view here's the recovery of Marshmallow update
Click to expand...
Click to collapse
This is not your recovery, there must to have other recovery with image extension, guide you for the size, atleast a 10 MB
That is the only one with the name "recovery" in the zip file, i think i should find it in Lollipop stock rom. Gonna download it first~
CSAPawn said:
That is the only one with the name "recovery" in the zip file, i think i should find it in Lollipop stock rom. Gonna download it first~
Click to expand...
Click to collapse
Show me a screen of your zip open please to see the files.
What is the size of your recovery cause the uploaded is just some kbs
And what is the size of the boot image
SubwayChamp said:
Show me a screen of your zip open please to see the files.
What is the size of your recovery cause the uploaded is just some kbs
And what is the size of the boot image
Click to expand...
Click to collapse
https://ibb.co/cYWrsy here's the main directory of the zip
https://ibb.co/nMLqkJ and recovery file found on "sig" folder on main directory
Boot Image file size is 7.48 MB
I'm now downloading the Lollipop Stock Rom because that Marshmallow Rom is just an update which might be incomplete in some files~
https://drive.google.com/open?id=1wX5N5_NzKhbg4gWG2RIQ6Ta5MzHYK0W1
Here's the link of 2 files with recovery file name in .img file format
https://ibb.co/gGCvKd
Here's the full content of the Lollipop Stock Rom
CSAPawn said:
https://drive.google.com/open?id=1wX5N5_NzKhbg4gWG2RIQ6Ta5MzHYK0W1
Here's the link of 2 files with recovery file name in .img file format
https://ibb.co/gGCvKd
Here's the full content of the Lollipop Stock Rom
Click to expand...
Click to collapse
Ok, now you need to unlock bootloader. Follow the next steps:
Download to your pc the latest version of adb installer from here https://androidmtk.com/download-15-seconds-adb-installer , in the process just type "y" to all questions. After it finishes unpack this adb folder and put it in your main drive, by i.e. c: drive
View attachment adb.zip
Install all the drivers for your device.
1- In your device go to settings/about device/build number and tap 7 times, then go back to settings and you will see developer options into settings, enable USB debugging and enable OEM unlock if it´s present,
2- Extract from the zip twrp.img and put it inside adb folder
View attachment twrp-wl2.zip
3- Connect your device power on to pc and run the file "run-adb" as administrator with right mouse button
4- Type adb reboot bootloader and you will be prompted in display of your device, tap on the small box "always allow" and tap on "ok"
5- Now device will reboot to fastboot mode, type fastboot devices you have to see a serial of your device in the window, then if it´s detected type now fastboot oem unlock you have to confirm wiith the button of your device, pay attention.
6- Then you will go to flash twrp onto your device, for this type fastboot flash recovery twrp.img and then to reboot to recovery type fastboot boot twrp.img is important that here device reboots to recovery before to reboot to system.
7- In twrp you will be prompted to allow modifications, just swipe to confirm.
If you also want to root your device download the latest version of Magisk in zip format to flash it through twrp.
When al finishes if sucessful you have to format data (all your data will gone) in order to can reboot to system again due to encryption, anyway unlocking bootloader most probably you will lose it before.
Read carefully and do steps one by one, don´t jump nor ignore nothing of the indicated to avoid any damage. If you are not sure in some steps just stops process and ask before.
I´m not sure you that this twrp matches for your device cause I can´t try before and but will see that.
Don´t forget to provide screenies of the process if something goes wrong to can clear.
OMG Thank you very much for this guide, I'll follow the steps later and post a pic after~
SubwayChamp said:
Ok, now you need to unlock bootloader. Follow the next steps:
Download to your pc the latest version of adb installer from here https://androidmtk.com/download-15-seconds-adb-installer , in the process just type "y" to all questions. After it finishes unpack this adb folder and put it in your main drive, by i.e. c: drive
View attachment 4530163
Install all the drivers for your device.
1- In your device go to settings/about device/build number and tap 7 times, then go back to settings and you will see developer options into settings, enable USB debugging and enable OEM unlock if it´s present,
2- Extract from the zip twrp.img and put it inside adb folder
View attachment 4530170
3- Connect your device power on to pc and run the file "run-adb" as administrator with right mouse button
4- Type adb reboot bootloader and you will be prompted in display of your device, tap on the small box "always allow" and tap on "ok"
5- Now device will reboot to fastboot mode, type fastboot devices you have to see a serial of your device in the window, then if it´s detected type now fastboot oem unlock you have to confirm wiith the button of your device, pay attention.
6- Then you will go to flash twrp onto your device, for this type fastboot flash recovery twrp.img and then to reboot to recovery type fastboot boot twrp.img is important that here device reboots to recovery before to reboot to system.
7- In twrp you will be prompted to allow modifications, just swipe to confirm.
If you also want to root your device download the latest version of Magisk in zip format to flash it through twrp.
When al finishes if sucessful you have to format data (all your data will gone) in order to can reboot to system again due to encryption, anyway unlocking bootloader most probably you will lose it before.
Read carefully and do steps one by one, don´t jump nor ignore nothing of the indicated to avoid any damage. If you are not sure in some steps just stops process and ask before.
I´m not sure you that this twrp matches for your device cause I can´t try before and but will see that.
Don´t forget to provide screenies of the process if something goes wrong to can clear.
Click to expand...
Click to collapse
When I type fastboot devices nothing happens, adb says <waiting for device> and my phone is now in FASTBOOT mode...
https://ibb.co/gf9RUd
Already Installed ADB installer, extract adb.zip into my C. then run administrator.
USB Debugging and OEM Unlock has been enabled in my phone but still my PC doesn't show any serial number
I think my PC doesn't recognize my phone
CSAPawn said:
Already Installed ADB installer, extract adb.zip into my C. then run administrator.
USB Debugging and OEM Unlock has been enabled in my phone but still my PC doesn't show any serial number
I think my PC doesn't recognize my phone
Click to expand...
Click to collapse
Just copy paste all the commands that I gave you. It´s fastboot devices not fastboot device in fastboot you ever have to write exactly or the command won´t work.

Can someone help me to understand this custom ROM installation?

Hello, I'm new here, I've been dealing with certain ROM mods for a little while. My test device is an old Samsung Galaxy S4 mini (GTI9195). Now I've been sitting for a few days trying to figure out how to bring my device up to date as best as possible. Lineage OS seemed the best to me. Unfortunately there is no officially confirmed software for my device directly from Lineage, which is why I looked elsewhere. I came across this thread on XDA: https://forum.xda-developers.com/t/...520-r890-unofficial-11-0-0-lineageos-18-1-for -s4-mini.4189967/ . The user arco68 is, so to speak, the boss among S4 mini modifications. Unfortunately, I can't find exact instructions anywhere (especially for the recovery) on how to install all the packages correctly. That's why I researched. I was able to record various steps, but cannot determine if they are correct. Can someone on this forum please help me? My steps:
1. Turn on developer options
2. Turn off OEM encryption (if available)
3. USB debugging on.
4. Download and install Android platform tools in Path
5. Download and zip Magisc
7. Put the phone in bootloader/fastboot/download mode (volume down + home)
8. Flash Team Win Recovery Project (or other custom recovery).
9. Restart phone and boot into recovery mode (volume up + home + power)
10. Erase all data
11. Copy Google Apps to Phone (Optional)
12. Copy Lineage OS (or other custom rom) to phone
13. Install packages one by one (OS first)
14. Reboot device
15. Wait and set up
Okay, First of all requirement-
A portable sd card- Because after flashing twrp, you might face issue where you can't access internal storage from twrp. That's because the phone might be encrypted. You have to decrypt it by flashing a "disable dm verity- forceencrypt.zip". In this case, you might not be able to transfer files from pc when booted into twrp. So, It's a smart move to insert a sd card containing all required files before to avoid these problems.
Another requirement is samsung drivers installed in pc. I will attach that file.
Follow these steps -
1/Unlock bootloader -Go to developer options. Turn on oem unlocking. It will tell you that you're going to loss all data. Proceed. If it doesn’t tell you anything, then there is definitely some extra process to unlock bootloader of your device.(search on internet)
2/Download your phone's official firmware in pc- it will help you if anything goes wrong. Search " Sm fw" on google. Go to first site. Create an account. Search the model number, Download a firmware that matches with all your device's information in "About phone".
3/ Download the lineageos rom and twrp recovery for your model. Then install device info hw from play store to check bits(32/64). Search open gapps. Go to the website. "arm" is for 32 bit & "arm64" is for 64 bit. Select which matches to your device’s bit. Then select the android version of the custom rom. Then select "Pico". Download the file. Next, download latest magisk 25.2 from github page. Rename the apk file to "magisk.zip" Move rom,gapps, magisk.zip to SD CARD. Keep twrp in pc.
4/In pc, download latest odin software. It's an special software for samsung download mode. (There is no fastboot mode in samsung)
5/Boot your device into download mode. And connect with pc.
6/In pc, extract the twrp file(If It's in zip format). Open odin software, Go to options, turn off auto reboot. Now select "AP" & select that extracted twrp file. Click open. Then hit start button.
(Note that most of the samsung devices can't boot stock rom after flashing twrp. So you have to flash custom rom to boot your device. Follow the next step)
7/Boot into twrp wipe>format data>type "yes". Press home button. Install>Select storage>SD card>select the rom.zip. Then add more zips> select the gapps.zip. Again, add more zips> select magisk.zip. After all, swipe to flash.
After installation, reboot device.
What if anything goes wrong?
Extract the stock firmware that you downloaded from sm fw. Connect device in download mode. Open odin, select AP,BL,CP,CSC file one by one. Start flashing. You device will be alive again.

Categories

Resources