How to flash stock Android on Google Nexus 7 (2012) - Nexus 7 General

The following guide will help you flash stock Android on the Google Nexus 7 (2012). There may be many reasons for you to want to do this, whether you've soft-bricked your device, installed a custom ROM and want to return to stock Android or whether you want to upgrade/downgrade Android without waiting for an OTA update.
Step 1: Setup ADB and Fastboot
To flash stock Android, you'll need to download the required tools for your PC to communicate with your Nexus 7. The Android SDK includes these tools, and can be downloaded from the Android developer website.
developer.android.com/sdk/index.html
Step 2: Download the factory image
After downloading and extracting the Android SDK archive for your operating system you'll need to download the appropriate factory image for your Nexus 7 Wi-Fi (grouper) or Nexus 7 3G (tilipia), and your chosen version of Android.
developers.google.com/android/nexus/images
Step 3: Extract the factory image
Extract the factory image for your Nexus 7 and copy the Android SDK files located in platform-tools to the factory image folder where the bootloader and flash-all files are located.
Step 4: Enter bootloader mode
From a powered off state, hold down the Power and Volume Down buttons on your Nexus 7. An Android lying down should appear with Start in green text at the top of the screen. Connect your Nexus 7 to your PC via Micro USB. Verify that your PC can detect your Nexus 7 by opening a cmd/terminal and typing fastboot devices. If your Nexus 7's serial number appears, then you're ready to continue. If not, ensure your Nexus 7 Fastboot drivers are installed.
Step 5: Begin the flashing process
Open the flash-all file on your PC. A cmd/terminal window should open and display text such as erasing, sending and writing. Your Nexus 7 may reboot once or twice during the process. Flashing the factory image should only take 1-2 minutes on average.
Congratulations! If everything went correctly, your Nexus 7 should reboot and display the Android boot animation. If using Android 5.0 Lollipop or later, the Nexus 7 may display the boot animation for about 5-10 minutes.

Related

Galaxy Nexus7 Update Failure Fix

1. Download the toolkit herehttp://forum.xda-developers.com/showthread.php?t=1809195
2. Install the toolkit to the default C:\ folder it tells you to
3. When launching the toolkit it will ask you which version of android you're running. 2.2
4. Install the device drivers (option 1)
5. Download 4.3 from here: https://developers.google.com/android/nexus/images (specifically download ' Factory Images "nakasi" for Nexus 7 (Wi-Fi), version 4.3 (JWR66V))
6. Put the factory image in: C:\Google_Nexus_7_ToolKit\put_google_factory_image_here\
7. Turn off your Nexus 7, turn it back on holding the power button and both volume + and volume -
8. Plug in the USB cable
9. Select "option 3 - unlock / relock bootloader" and follow the steps, it will the come up on the Nexus 7 telling you you're about to unlock it; us the volume buttons and power button to select ok
10. Select "option 9 - Download, Extract and Flash google factory stock rom"
11. Select "option 2 - flash google factory image" on the next screen
12. Follow the instructions typing yes where it needs (Note. the checksum did not match), keep following the instructions..
13. Device will reboot after it transfers across and boot into 4.3 - complete the setup process
14. After the setup process is finished, plug it back in and select 'option 3' and relock the bootloader!!
And BOOYA There you have it :highfive:
So What goes into the folder "put_google_factory_image_here" YOU ASK
You put the unextracted .tgz in the folder. The program will extract it for you​
Other options for Nexus7= reinstall firmware 4.2.2 using the Google Nexus 7 Toolkit (found at:http://forum.xda-developers.com/showthread.php?t=1809195 WARNING: THIS DOES WIPE YOUR DATA! BACKUP FIRST!Then do an update to 4.3 then rooted using CF Auto Root (found at: http://www.redmondpie.com/how-to-root-android-4.3-on-nexus-4-7-10-and-galaxy-nexus/
I'AM NOT RESPONSIBLE FOR BRICKING OR ANY DAMAGE TO YOUR DEVICE
Wrong section mate. Mods will be moving this thread to the correct forum soon.
immortalneo said:
Wrong section mate. Mods will be moving this thread to the correct forum soon.
Click to expand...
Click to collapse
Don't think it's in the wrong section... just wrong title. The content is certainly Nexus 7 related...
@keifus.rahn ... you should edit your thread title. I suspect it should read 'Nexus 7 Update Failure Fix'.
Rgrds,
Ged.
Change Tittle to Nexus 7 Update Failure Fix)
keifus.rahn said:
1. Download the toolkit herehttp://forum.xda-developers.com/showthread.php?t=1809195
2. Install the toolkit to the default C:\ folder it tells you to
3. When launching the toolkit it will ask you which version of android you're running. 2.2
4. Install the device drivers (option 1)
5. Download 4.3 from here: https://developers.google.com/android/nexus/images (specifically download ' Factory Images "nakasi" for Nexus 7 (Wi-Fi), version 4.3 (JWR66V))
6. Put the factory image in: C:\Google_Nexus_7_ToolKit\put_google_factory_image_here\
7. Turn off your Nexus 7, turn it back on holding the power button and both volume + and volume -
8. Plug in the USB cable
9. Select "option 3 - unlock / relock bootloader" and follow the steps, it will the come up on the Nexus 7 telling you you're about to unlock it; us the volume buttons and power button to select ok
10. Select "option 9 - Download, Extract and Flash google factory stock rom"
11. Select "option 2 - flash google factory image" on the next screen
12. Follow the instructions typing yes where it needs (Note. the checksum did not match), keep following the instructions..
13. Device will reboot after it transfers across and boot into 4.3 - complete the setup process
14. After the setup process is finished, plug it back in and select 'option 3' and relock the bootloader!!
And BOOYA There you have it :highfive:
So What goes into the folder "put_google_factory_image_here" YOU ASK
You put the unextracted .tgz in the folder. The program will extract it for you​
Other options for Nexus7= reinstall firmware 4.2.2 using the Google Nexus 7 Toolkit (found at:http://forum.xda-developers.com/showthread.php?t=1809195 WARNING: THIS DOES WIPE YOUR DATA! BACKUP FIRST!Then do an update to 4.3 then rooted using CF Auto Root (found at: http://www.redmondpie.com/how-to-root-android-4.3-on-nexus-4-7-10-and-galaxy-nexus/
I'AM NOT RESPONSIBLE FOR BRICKING OR ANY DAMAGE TO YOUR DEVICE
Click to expand...
Click to collapse
Change Tittle to: (Nexus 7 Update Failure Fix)
immortalneo said:
Wrong section mate. Mods will be moving this thread to the correct forum soon.
Click to expand...
Click to collapse
Ok sorry about that :silly:
zcucurullo said:
Change Tittle to: (Nexus 7 Update Failure Fix)
Click to expand...
Click to collapse
Ok will do sir

Flashing 4.4 KitKat factory image via cmd

This is a step by step tutorial on how to flash KitKat factory image via command prompt. So what you need is the KitKat factory image command prompt and adb setup with fastboot.
Step 1: enable USB debugging on your phone.
Step 2: cd into the folder where you have put the factory image files (use 7zip to unzip it.) (Put it in where the android debugging and fastboot files are)
Step 3: type adb reboot-bootloader and click yes on your phone for authorization
Step 4: type fastboot oem unlock (if you haven't already unlocked your boot loader) this will erase it but navigate to yes and use the power button to click.
Step 5: type adb reboot-bootloader
Step 6: type flash-all.bat
Step 7: this will take a minute and your phone should reboot a couple of times.
Step 8: wait for it to boot (might take a while) and set it up
That's it you should be done if you found this helpful well your welcome
Sent from my Nexus 4 using XDA Premium 4 mobile app
Or..you can just double click on the flash-all.bat while in fastboot mode. No need to type it~
Sent from my Nexus 4
Haven't tried that
Sent from my Nexus 4 using XDA Premium 4 mobile app
I followed the tips mentioned in two video (as detailed below) which I believe is useful and step-by-step to install Kitkat 4.4 onto Nexus 4. I upgraded from 4.3 to 4.4 without encountering any issues on two of my Nexus 4 (stock rom and un-rooted).
Before you watch the video, ensure if your laptop (Windows in this case) is able to detect Nexus 4. If the driver installation fails, you might want to download and use "Naked drivers" as posted on xda.
[ADB/FB/APX Driver] Universal Naked Driver 0.72 (We dont need no stinking HTC Sync) - xda-developers
Secondly you might want to download android-SDK which is being talked about in the first video;
Android SDK | Android Developers
and Kitkat 4.4 ROM which is installed in the second video (assuming you are upgrading from 4.3 to 4.4, use the below link)
http://android.clients.google.com/pa...Y.d1b99704.zip
How to install the Android SDK, ADB and Fastboot on your PC
http://www.youtube.com/watch?feature=player_embedded&v=oaNM-lt_aHw
Manually Update the Nexus 4 to Android 4.4 KitKat
http://www.youtube.com/watch?feature=player_embedded&v=k6SVCOu49Bc
Hope the tutorials created by respective authors help.

Update Nexus 7 to 5.0 from 4.4.4 (root + unlocked bootloader) KEEP DATA

This is a "re-tread" of a post I previously made, taking an account of the steps I took to successfully update my Nexus 7 from 4.4.4 to 5.0. Note: This is for an unlocked bootloader, if you don't have an unlocked bootloader you will lose your data; consider TiBackup.
My Nexus 7 [WiFi] was rooted on 4.4.4, unlocked bootloader, but stock rom, stock system (as far as I remember). I couldn't find a walkthrough so I'll make one with my experience. This worked for me on my Mac, I hope this helps you.
In the end I didn't lose any data, still have unlocked bootloader and rooted with CWM Recovery & SuperSU (you can replace with TWRP recovery or CWM Touch if desired)
Directions ("./" = file path to platform-tools folder, if you 'cd' to that location the "./" will pull that location in the terminal)
1. You must have Android SDK installed. Download it here: http://developer.android.com/sdk/index.html.
2. UNZIP and you will see a bunch of folders. The one we are interested in is the subfolder "platform-tools". You may copy it to an easier location if you want.
3. Download the factory images 4.4 (KRT16S) (4.4 required, see HERE, Google broke its own bootloader) and 5.0 (LRX21P) for your Nexus 7: https://developers.google.com/android/nexus/images#nakasi (WARNING: Download the correct images for YOUR device, Nexus 7 Wi-Fi vs Mobile)
4. Unzip the 4.4 image file you downloaded and copy "bootloader-grouper-4.23.img" (img name depends on your build) to your "platform-tools" folder (where adb and fastboot are). (WARNING: the bootloader image in 5.0 is broken see HERE)
5. Unzip the 5.0 image file you downloaded and copy all content, except for "bootloader-grouper-4.23.img," to your "platform-tools" folder (where adb and fastboot are).
6. Plug your Nexus 7 into your computer with USB debugging (activate it in "About Phone" and touch "Build number" 6 times, it will activate "Developer Options" menu where you will be able to activate "USB debugging")
7. Open terminal and "cd" to the platform-tools folder
8. Verify ADB is working type "./adb devices"
9. Reboot your device into fastboot mode: type in terminal "./adb reboot-bootloader"
10. Type:
"./fastboot flash bootloader ./bootloader-grouper-4.23.img" (img name depends on your build)
11. If you have "WiFi Only" skip to step 12; for Mobile flash radio type:
"./fastboot reboot-bootloader"
"./fastboot flash radio ./radio-XXXXXXXX.img" (img name depends on your build)
12. Type:
"./fastboot reboot-bootloader"
"./fastboot update ./image-nakasi-lrx21p.zip" (zip name depends on your build)
It will then reboot (takes a while, 5-10 minutes on boot animation, then it must update App info, another 5-10 miuntes) and then you will be in Android 5.0 with all your data preserved.
Then if you want a custom recovery:
1. On your computer, download CWM, CWM Touch, or TWRP recovery from here: CWM Dwnld or TWRP Dwnld (WARNING: Download the correct image for YOUR device, Nexus 7 WiFi vs Mobile)
2. Place the image file you downloaded in your "platform-tools" folder (where adb and fastboot are)
3. Connect your Nexus 7 (debug mode) and put it in fastboot mode (step 9 above): type in terminal "./adb reboot-bootloader"
4. In the terminal type:
"./fastboot flash recovery ./FILENAME.img" (replace FILENAME.img by the file name of the CWM/TWRP file you just downloaded)
5. Verify Recovery - Shut down your device and boot it into recovery mode (Once off, push vol- and power together). Choose recovery mode with vol-, then power to select (Note: if you get an Android on his back you still have stock recovery, retry Steps 1-4. I flashed CWM, CWM Touch. and TWRP with no success, plugged my cable into a different USB port and got it first try; try different cables and ports)
Then if you want a root:
Note: If you don't have an unlocked bootloader you will lose data. Already unlocked should be fine, when you boot there should be an open lock at the bottom of the screen below the Google logo. On PC WugFresh Nexus Root Toolkit might be your best option, for me on Mac it is not available so this is what I did.
1. On your computer, download CF-Auto-Root from here: Auto Root Dwnld (WARNING: Download the correct image for YOUR device, Nexus 7 WiFi vs Mobile)
2. Unzip the CF-Auto-Root file you downloaded and copy all its content to your "platform-tools" folder (where adb and fastboot are)
3. Connect your Nexus 7 (debug mode) and put it in fastboot mode (step 9 above): type in terminal "./adb reboot-bootloader"
4. Type: (Note: Step 4 commands need to be run as Admin)
"chmod +x root-mac.sh"
"ls -al"
"./root-mac.sh"
5. Follow on-screen prompt and type your Mac User Account password and ENTER
6. Let the phone go through its thing (Red Android screen), it will reboot when complete.
That is it!
Thanks to Phil Tech: http://youtu.be/IPg_FGbeyq0
Thanks to jipi: http://forum.xda-developers.com/showthread.php?t=2377691
Good luck and happy flashing.
Thanks for the effort.
Thanks ! I did that, more or less adapted. The result was just awefully slow, so I had to do a wipe to start with a clean slate.
Android, the new Windows: reinstall every 6 months....
I've followed the procedure on w8.1 64bit.
All went well but I lost adb after 5.0 finally booted. So I could not install root through NRT (1.9.8).
Adb mode was recognised in windows device manager but adb commands failed with no device found.
Suprisingly fastboot was working.
The solution was to uninstall NRT and adb drivers and reinstall them.
Great guide!!
Followed the steps to the 'T' and I've got Lollipop on my Nexus 7 Wi-Fi.
If the Bootloader is already on 4.23 then Step 10 can be skipped, as I did.
dg170775 said:
Great guide!!
Followed the steps to the 'T' and I've got Lollipop on my Nexus 7 Wi-Fi.
If the Bootloader is already on 4.23 then Step 10 can be skipped, as I did.
Click to expand...
Click to collapse
True, I was already on 4.23, but still flashed it anyways. Thanks for the input.

[GUIDE][Z2 FORCE XT1789-05] Bootloader/TWRP/Custom ROMs/Root/Dirty flashing/Unbrick

First, thanks to @Uzephi and @41rw4lk for helping me to use/recover my phone. Please, read and do not underestimate the guides: our phone is tricky! We have two system partitions (slot a and b) to allow stock updates on-the-fly. This complicates the normal flashing process and if you do not follow the steps, you may bootloop. Use these guides at your own risk!
Reading this page is a good beginning to understanding the A/B partitioning scheme and how Motorola Z2 Force works:
1) Our phone has A/B partitioning, so flashing Magisk/XPosed is different
2) It does not support Project Treble (faster stock updates)
3) It does not a recovery partition, so flashing TWRP is different
Note also that the RSD Lite from Motorola has issues with Windows 10 and you’ll need to manual flash firmware if you bootloop (see Process E below). Other way is directly flashing from Qualcomm EDL mode (Emergency Download Mode) from which users can perform various tasks like unbricking, unlock bootloader, and installation of any custom ROMs.
Right now, this guide has 5 parts (maybe we can dual boot our phone in the future). If you just want to use a rooted stock ROM, please, search for other guides here on xda. These guides were written (and tested) using a Motorola Z2 Force XT1789-05 phone (Brazil), although most of it should work for other variants if you download and use proper firmware files for these other phones. For other models, better if you follow Uzephi’s guide.
A. Opening bootloader
B. Preparing the phone to move into custom ROMs (AOSP) + TWRP recovery
C. Flashing a custom AOSP ROM + rooting
D. Dirty flashing AOSP ROM updates
E. Recovering from bricks or returning to stock
F. Oreo ROM features comparison table
If you want to move your Motorola Z2 Force to Project Treble ROMs, please, check this guide.
Here is a list of the ROMs that are waiting for you.
A. Opening bootloader
With enough battery in your phone (80%), you can follow the Motorola official guide which steps are:
1. Backup everything you need. Your phone will be reseted including the internal sdcard.
2. Into the phone, enable the Developer Options clicking 7 times over the version (About section in the Settings). Go to Developer Options, click the OEM unlock option to enable it. Also enable USB debugging.
3. Install the Motorola drivers in your computer, but (in my personal experience) not the Android SDK suggested in the official guide. Instead, extract these adb/fastboot files in a blank folder of your computer.
3.1) Do not use other adb/fastboot binaries: I cannot guarantee they will work.
3.2) You need to use a USB 2.0 port of your computer. Some users report that USB 3.0 will also work.
4. Open a command line window in the adb/fastboot folder (step 3), reboot the phone into the bootloader (see adb command below or press power + volume down buttons). Plug the phone on computer (see 3.2 above). Test the connection and run the command to get the code for unlocking:
Code:
adb reboot bootloader
fastboot devices
fastboot oem get_unlock_data
You’ll get:
Code:
(bootloader) Unlock data:
(bootloader) <code 1>
(bootloader) <code 2>
(bootloader) <code 3>
(bootloader) <code 4>
(bootloader) <code 5>
5. You’ll need to join 5 codes and, after logging into your own Motorola account, check by clicking the button “Can my device be unlocked” (step 6) by Motorola here. Read the text: your warranty will be void if you go ahead. Consider if you have enough knowledge, time and money to deal with a troublesome (or bricked) device. Although, it’s not that easy to hard brick this phone (see process E below).
Code:
<code 1><code 2><code 3><code 4><code 5>
6. You’ll receive back an email with the code to unlock your bootloader (if it is available for your model). Then you’ll run the following command:
Code:
fastboot oem unlock <code 1><code 2><code 3><code 4><code 5>
7. You’ll receive a warning that all your data would be erased (see step 1 above) and need to re-run the same command to confirm. At this point, your bootloader should be unlocked. As an Android restriction, each time you boot the phone you’ll see a warning. Do nothing, wait for 5 seconds and the phone boots normally. Some users bother with this warning and try to get rid of it.
B. Preparing the phone to move into custom ROMs (AOSP) + TWRP recovery
Requirements: unlocked bootloader (see guide A) and no security lock: disable PIN, gestures and fingerprinting (because TWRP cannot read the locked/cryptographed data of the phone). Enough battery in your phone (80%).
If you do not prepare your phone to custom ROMs and if you do not have both bootloaders of the phone in the same Android version of the ROM you’ll flash, you’ll hard brick the phone and lose also the access to the bootloader! You’ve been warned: follow the guide!
Note: if you hard brick, I suggest you be prepared to follow the Unbrick Qualcomm mobiles with Step-by-step guide or the Unbrick All Qualcomm Snapdragon’s from Qualcomm HS-USB QDLoader 9008 guide, but I never tested them myself. You can also use Qualcomm Flash Image Loader (QFIL) tool.
1. Backup everything you need. Your phone will be reset including the internal sdcard.
2. Into the phone, enable the Developer Options clicking 7 times over the version (About section in the Settings). Go to Developer Options and enable USB debugging.
3. Install the Motorola drivers and the adb/fastboot files.
3.1) do not use other adb/fastboot binaries: we cannot guarantee they will work.
3.2) you need to use a USB 2.0 port of your computer. Some users report that USB 3.0 will also work.
4. Download the firmware of the same Android major version of the future ROM you’ll install (Oreo for Oreo ROMs, for instance). When (and if) we move to Android P, most probably we will need to follow this guide again.
- Retail (XT1789-05) (Europe/Brazil).
- Other models (branded): ATT, Sprint, T-Mobile (TMO), USC, Verizon.
- Note: NPXS26 versions stand for Nougat and OPXS27 for Oreo. You do not need Nougat versions for anything.
5. Extract the zip contents to a blank folder in your computer.
6. Download the FlashAll_XT1789-05.zip file, extract the content and move all files to the same firmware folder (step 5 above). Be sure to overwrite any file (if needed).
7. Run the Preparation.bat file there to generate the flashfile.bat file that will send the commands to the phone. Credits: the original preparation files were from RootJunky (can be downloaded here) and include more options that we do not need for our purpose here. Also, it includes adb/fastboot binaries that could not work with our phone.
8. Reboot the phone into the bootloader (see adb command below or power + volume down buttons). Open a command line window in the firmware folder (step 5 above), test the connection and execute the flashfile.bat file generated on step 7.
Code:
adb devices
adb reboot bootloader
fastboot devices
flashfile.bat
Never ever unplug the device from the USB 2.0 port while flashing the firmware. This could cause a hard brick and your device will be dead.
9. There is a pause at the end. You should review if everything went fine (or even click on the menu of the command line window, select all and copy&paste the contents in a .txt file for further help/revision).
10. Reboot your phone into the system (ROM) and do a quick configuration (remember that everything will be deleted when you install TWRP further…).
11. Into the phone, enable the Developer Options clicking 7 times over the version (About section in the settings). Go to Developer Options and enable USB debugging.
12. Download both the .img and .zip file of the TWRP recovery from the official site. It's the same file for all models/variants of Z2 Force phone. Put the files into our firmware folder (step 5 above). Copy the .zip file to the phone internal card. Note: versions older than 3.2.2-2 does not support PIN/Password/Fingerprint, so disable them before proceed. Most probably, ROMs before July 20th, 2018 cannot be flashed in older TWRP.
13. Now boot (not flash) the TWRP .img file using a command line window in the same firmware folder (step 5 above):
Code:
adb devices
adb reboot bootloader
fastboot devices
fastboot boot <TWRP file name>.img
14. Only now that you’re inside TWRP temporarily flash the TWRP .zip file you’ve saved into the phone (step 12 above).
15. Reboot into TWRP (use the main reboot menu in TWRP).
16. Now, you should reboot again into bootloader: inside TWRP, go to Reboot menu and choose Bootloader.
17. Now you will wipe all user data via bootloader. This is necessary to use an AOSP ROM when you come from stock. Using a command line window in the same firmware folder of your computer (step 5 above), run the following commands:
Code:
fastboot devices
fastboot -w
18. Now you can reboot the phone into System using the buttons volume up/down to navigate and confirming with the Power button. You’ll be with stock ROM and TWRP. If you want to move to a custom AOSP ROM, do a quick configuration: into the phone, enable the Developer Options clicking 7 times over the version (About section in the settings). Go to Developer Options and enable USB debugging and go to the proper guide (Process C).
C. Flashing a custom AOSP ROM + rooting
1. Requirements:
1.1 Motorola drivers.
1.2 Our custom adb/fastboot files (others may not work!).
1.3 USB debugging enabled into the Developer Options.
1.4 If you're using TWRP older than 3.2.2-2, disable disable PIN/gestures/fingerprinting. Also, most probably, ROMs after July 20th, 2018 cannot be flashed in older TWRP.
1.5 An USB 2.0 port of your computer (some users report that USB 3.0 will also work).
1.6 Two Oreo bootloaders (process B above).
1.7 Permanent TWRP
1.8 Enough battery in your phone (80%).
2. Download the AOSP ROM you want and move the .zip files to the phone. Right now, we have:
2.1 Dirty Unicorns: no need for Gapps. Official and Weeklies can be dirty flashed interchangeably. RC has a different signature. Support on Google+ page. More about DU kernel.
2.2 Lineage OS 15.1. MindTheGapps needed. OpenGapps not compatible yet. XDA thread.
2.3 Mokee: Gapps needed. Take care: online guides assume that you already have an AOSP ROM, TWRP and rooted device.
Deprecated (?)
2.4 AOSiP: no need for Gapps. XDA thread.
2.5 Invictrix. Gapps are built in. XDA thread
3. Choose the root method and download the .zip files: Magisk (suggested) or LineageOS SU Addon. Move the .zip files to phone. Note: if you bootloop on Magisk, most probably you’re flashing a wrong/different version of Magisk or you did not reboot between flashing ROM/Gapps and Magisk. Note: SuperSu is deprecated.
4. Reboot into TWRP:
Code:
adb reboot recovery
Then flash the ROM. It will be flashed in two steps only in the “other” slot. We have two slots, A and B. Our phone can be upgraded on-the-fly because the update is always applied to the slot not booted, the “other” slot. Then, immediately, flash the .zip TWRP or you will lose it.
5. Go to Reboot menu of TWRP and reboot into bootloader. Then, in the folder with adb/fastboot binaries (see 1.2 above), you need to wipe data (including sdcard) with the following commands:
Code:
fastboot devices
fastboot -w
6. Now you need to reboot the phone into System using the buttons volume up/down and confirming with the Power button (or typing fastboot reboot into the command line windows). You’ll be with an AOSP ROM and TWRP.
7. Once into the phone, enable the Developer Options clicking 7 times over the version (About section in the settings). Go to Developer Options and enable USB debugging if you intend to dirty flash ROM updates.
8. Reboot into TWRP again, flash Magisk (your settings and modules will be preserved). Note: if you bootloop on Magisk, remember it is mandatory to reboot between ROM flash (step 4 above) and GApps/Addon flash due to verity/slot-swap logic.
9. A good place to read what is not working is in the section known problems of LineageOS.
D. Dirty flashing AOSP ROM updates
1. If you follow all the processes above, you can dirty flash updates because you have:
1.1 Motorola drivers installed.
1.2 Specific adb/fastboot files for our phone and an USB 2.0 port in a Windows computer (some users report that USB 3.0 will also work).
1.3 Unlocked bootloaders (Process A above).
1.4 Permanent TWRP running and TWRP .zip file placed inside your phone and ready to be flashed again.
1.5 An AOSP ROM already running.
1.6 Developer Options and USB debugging enabled.
1.7 If you're using TWRP older than 3.2.2-2, disable disable PIN/gestures/fingerprinting. Also, most probably, ROMs after July 20th, 2018 cannot be flashed in older TWRP.
1.8 Enough battery in your phone (80%)
2. Download your ROM .zip update, copy it into the phone sdcard and reboot your phone into TWRP. See download links here.
3. Within TWRP you should flash (install) things in the following order:
3.1 ROM update .zip file. Remember that, at this time, the update will be flashed int the other slot and inside phone you’ll have both the system before update (in the booted slot) and updated ROM in the other slot.
3.2 TWRP .zip file (step 1.4 above) once again (do not skip this step or you’ll bootloop!).
4. Reboot to System: if you skip this step, you’ll bootloop.
5. Reboot into TWRP again, flash Magisk (your settings and modules will be preserved) or LineageOS SU Addon .zip file. Note: if you bootloop on Magisk, most probably you’re flashing a wrong/different version of Magisk. I suggest v16.0 and, after you got rooted with 16.0, you can update. It is mandatory to reboot between ROM flash (step 4 above) and GApps/Addon flash due to verity/slot-swap logic.
Note: SuperSu is deprecated.
6. Wipe Dalvik/ART cache: go to Wipe menu of TWRP > Advanced Wipe > Dalvik/ART Cache only.
7. Reboot your phone into System (ROM) will use the “other” slot, the one with the updated ROM.
8. You can use XPosed installer app (and reboot).
9. Now you can add your PIN, fingerprint, gestures back until next flashing.
E. Recovering from soft bricks or returning to Stock
If you’re reading this is because you already unlock your bootloader (see guide A) and anything went wrong, but you still can boot your phone into bootloader. Plug your phone and get enough battery (even if you do not see any charging signal).
1. Install the Motorola drivers and the specific adb/fastboot files for our phone. Remember, follow the rules because our device is tricky!
1.1) Do not use other adb/fastboot binaries: we cannot guarantee they will work.
1.2) You need to use a USB 2.0 port of your computer (some users report that USB 3.0 will also work).
2. Download the latest firmware for your model:
- Retail (XT1789-05) (Europe/Brazil).
- Other models (branded): ATT, Sprint, T-Mobile (TMO), USC, Verizon.
- Note: NPXS26 versions stand for Nougat and OPXS27 for Oreo. You do not need Nougat versions for anything.
3. Extract the zip contents to a blank folder in your computer.
4. Download the FlashAll_XT1789-05.zip file (it should work for other Motorola Z2 Force models as well), extract the content and move all files to the same firmware folder (step 2 above). Be sure to overwrite any file (if needed).
5. Run the Preparation.bat file there to generate the flashfile.bat file that will send the commands to the phone. Credits: the original preparation files were from RootJunky (can be downloaded here) and include more options that we do not need for our purpose here. Also, it includes adb/fastboot binaries that could not work with our phone.
6. Reboot the phone into the bootloader (see adb command below or power + volume down). Open a command line window in the firmware folder (step 5 above), test the connection and execute the flashfile.bat file generated on step 5.
Code:
adb reboot bootloader
fastboot devices
flashfile.bat
Never ever unplug the device from the USB 2.0 port while flashing the firmware. This could cause a hard brick and your device will be dead.
7. There is a pause at the end. You should review if everything went fine (or even click on the menu of the command line window, select all and copy&paste the contents in a .txt file for further help/revision).
8. Reboot your phone into system (ROM) and do not forget, later, to enable the Developer Options and USB debugging again.
Note: if you hard brick, I suggest you be prepared to follow the Unbrick Qualcomm mobiles with Step-by-step guide or the Unbrick All Qualcomm Snapdragon’s from Qualcomm HS-USB QDLoader 9008 guide, but I never tested them myself. You can also use Qualcomm Flash Image Loader (QFIL) tool. Maybe these Latest 2017 Qualcomm Diag QD-Loader Windows 10 Drivers signed will help you.
F. Oreo ROM features comparison
This is a table for Oreo ROM features comparison for Motorola Z2 Force - nash.
I would like to receive feedback and updates from the users, as I can't keep changing from one ROM to another and they get new features, updates, improvements, etc.
I consider Lineage OS 15.1 our stock ROM regarding to customization. So, it's not listed there.
Legend:
Code:
X = Feature present
XX = ROM excels in this particular feature (in my opinion).
If you want to move your Motorola Z2 Force to Project Treble ROMs, please, check this guide.
Here is a list of the ROMs that are waiting for you.
I came back to stock ROM. the problem is that it gets stuck in the initial configurations of the android trying to find a wifi network, to continue the configuration, without success, because I see in fastboot that the baseband is unknown, and I also can not install any rom, or recovery image because I have the following message in fastboot: FLASHING_LOCKED. and since I can not get past the initial android settings, I also can not unlock the developer options to enable OEM unlocking. now I'm standing in a rom that does not leave the initial configuration, it does not connect to any network and a fastboot that does not let me install anything. and I also tried the recovery mode and even tried to install an update via sideload, without success. I do not know what else to do if you can give me a light.
renanjones said:
I came back to stock ROM. the problem is that it gets stuck in the initial configurations of the android trying to find a wifi network, to continue the configuration, without success, because I see in fastboot that the baseband is unknown, and I also can not install any rom, or recovery image because I have the following message in fastboot: FLASHING_LOCKED. and since I can not get past the initial android settings, I also can not unlock the developer options to enable OEM unlocking. now I'm standing in a rom that does not leave the initial configuration, it does not connect to any network and a fastboot that does not let me install anything. and I also tried the recovery mode and even tried to install an update via sideload, without success. I do not know what else to do if you can give me a light.
Click to expand...
Click to collapse
I see two possible scenarios:
1. Your bootloader is locked (yet) (see guide A).
2. Your in a "false locked" situation that, maybe, could be solved by resetting data via recovery or in bootloader (with the command: fastboot -w).
Great tutorial, but I did not get 4g in any of the roms, only 3g
Gutto said:
Great tutorial, but I did not get 4g in any of the roms, only 3g
Click to expand...
Click to collapse
I got 4G in any ROM... AOSIP, DU or Invictrix...
Are you using a branded (carrier) phone? If not, maybe you should return to stock (to recover any changes on partitions).
Technical said:
I got 4G in any ROM... AOSIP, DU or Invictrix...
Are you using a branded (carrier) phone? If not, maybe you should return to stock (to recover any changes on partitions).
Click to expand...
Click to collapse
My cell phone and Sprint, I did every process that you indicated, but not 4G
So I followed the instructions as noted, as soon as I got to the root installation part, it started throwing a "cannot mount /system" error. I thought a reboot would solve the issue, but now I think I'm bricked. Can't boot into anything, all I can do is plug my phone in and listen to it keep disconnecting every 10 seconds or so. The phone had booted up fine prior to starting the installation process, and I don't see how just a bad ROM install is preventing me from getting into either bootloader or recovery. Any advice?
For clarity, i'm unable to use QBOOT to do anything since after it hits the "powered on" state I'm assuming it's in, it just resets and does the same thing over and over again
shalpp said:
So I followed the instructions as noted, as soon as I got to the root installation part, it started throwing a "cannot mount /system" error. I thought a reboot would solve the issue, but now I think I'm bricked. Can't boot into anything, all I can do is plug my phone in and listen to it keep disconnecting every 10 seconds or so. The phone had booted up fine prior to starting the installation process, and I don't see how just a bad ROM install is preventing me from getting into either bootloader or recovery. Any advice?
For clarity, i'm unable to use QBOOT to do anything since after it hits the "powered on" state I'm assuming it's in, it just resets and does the same thing over and over again
Click to expand...
Click to collapse
Have you tried holding vol dwn + pwr btn to force it into bootloader mode? If you can get there, then you can use the keys to get to recovery and try a factory reset. If that don't work, go back to bootloader mode and try flashing back to stock. Might double check that the battery has plenty of charge.
41rw4lk said:
Have you tried holding vol dwn + pwr btn to force it into bootloader mode? If you can get there, then you can use the keys to get to recovery and try a factory reset. If that don't work, go back to bootloader mode and try flashing back to stock. Might double check that the battery has plenty of charge.
Click to expand...
Click to collapse
I'm unable to get the phone out of qboot (or whatever it's called). I've tried using a blank-flash but all that happens is device restarts as made evident by the "device disconnect" sound playing every few seconds. The phone had around 80% when I started the process. Should I just let it die and try loading into BL after a few hours of this thing power cycling itself?
shalpp said:
I'm unable to get the phone out of qboot (or whatever it's called). I've tried using a blank-flash but all that happens is device restarts as made evident by the "device disconnect" sound playing every few seconds. The phone had around 80% when I started the process. Should I just let it die and try loading into BL after a few hours of this thing power cycling itself?
Click to expand...
Click to collapse
It's weird that it is power cycling like that. Have you tired unplugging the phone and booting? Whether it's recovery, bootloader, qboot; you need to get to one place or the other if possible because power cycling won't allow you to do anything. If you can get a stable boot in any mode I would suggest moving your cable to another port so any corruptions aren't a factor anymore. I don't think a drain will resolve anything, but I've never heard anyone mention power cycling like that.
41rw4lk said:
It's weird that it is power cycling like that. Have you tired unplugging the phone and booting? Whether it's recovery, bootloader, qboot; you need to get to one place or the other if possible because power cycling won't allow you to do anything. If you can get a stable boot in any mode I would suggest moving your cable to another port so any corruptions aren't a factor anymore. I don't think a drain will resolve anything, but I've never heard anyone mention power cycling like that.
Click to expand...
Click to collapse
Power cycling is just an assumption since regardless of whatever port its in it keeps an endless loop of connect, disconnect". Basically after rebooting the device after attempting to install the ROM is when it went black and started not doing anything other than connect, disconnect
shalpp said:
Power cycling is just an assumption since regardless of whatever port its in it keeps an endless loop of connect, disconnect". Basically after rebooting the device after attempting to install the ROM is when it went black and started not doing anything other than connect, disconnect
Click to expand...
Click to collapse
When it's trying to connect do you have a pop up on your pc showing what it sees the phone as? Does it say nash fastboot, or 9008, Z2? That might give some idea of where it's failing.
41rw4lk said:
When it's trying to connect do you have a pop up on your pc showing what it sees the phone as? Does it say nash fastboot, or 9008, Z2? That might give some idea of where it's failing.
Click to expand...
Click to collapse
It appears as Qualcomm 9008
It only starts the loop after starting a blankflash. That's about the only response I get out of the device, otherwise it does absolutely nothing, no combination of buttons do anything
Edit: Confirmed connect/disconnect on another machine with the same driver configuration

Bricked MemoPad 7 WW_K013 and little knowledge on next steps

I have managed to screw myself by wiping the OS without a backup when I got TWRP up and running and ended up with what essentially is a bricked MemoPad. It said in droidboot mode the version is WW_K013 and the Android it ran before I wiped it was 4.4.2.
I was hoping to install this: https://forum.xda-developers.com/me...-unofficial-lineageos-16-0-asus-memo-t3929600 to get it up to Android 7 but every attempt at installing one of the mentioned archives always ends in failure.
All I have managed to get up and running was TWRP. I did not use an SD card (only one I have keeps saying write protected, and even using diskpart clear readonly attributes doesn't seem to work) so I just dragged the archives into the tablet itself on its internal storage and attempted to install them via TWRP from there. I don't know if this is even possible to do.
Attempting to install the Lineage OS package as is gave me:
E: unkown command [log]
Attempting to Install the ESP 0.3.0.zip simply says
"Error flashing zip '/sdcard/esp-0.3.0.zip' (dunno why it says it's in sdcard when I clearly ain't using one)
And attempting to do a fastboot devices on cmd gives me an empty list even when the tablet is plugged in on my pc (the list was showing up on work laptop earlier, but doesn't show up on pc, so something is missing in this case). I used the Windows Zip for platform tools from here:
https://wiki.lineageos.org/adb_fastboot_guide.html
and added its path to environment variables to recognize fastboot command
What would the next logical step be for me? Every option I've tried has failed thus far. I'm trying to install Android Studio maybe fastboot recognizes the device when the Studio is installed and is up and running, since my work laptop had the full Android studio in place.
UPDATE: Kept messing about, when I exited TWRP and reloaded in fastboot the devices was indeed listed under fastboot when I ran the command (duh). Attempted to run the fastboot flash ESP esp.img but I got a "Can't find OSII index!!" error instead.
Still not sure what to do with that. The tablet itself says FAIL(flash_cmds error!)
Solution to this problem that I just finally did:
I acquired the basic ROM from this resource, quoted below: https://forum.xda-developers.com/memo-pad-7/general/me176c-x-collection-roms-updates-t3012965
WW .182 ROM
http://dlcdnet.asus.com/pub/ASUS/Eee...3_2_23_182.zip
Click to expand...
Click to collapse
It's important to extract this zip file to get another zip file, and then use that zip file to install using TWRP.
To install TWRP (temporarily, have to redo each time you exit recovery) I used the following resource:
https://forum.xda-developers.com/android/development/intel-android-devices-root-temp-cwm-t2975096
And once TWRP launched, I dragged the file using my Windows pc to the internal storage of my K013 (When TWRP is launched it makes the device accessible on PC)
I chose Install and selected the zip file mentioned above to install. Took a short while but executed successfully. I could once again use my Tablet.
Next up I'll need to figure out how to get it to Lollipop from 4.4.2 and possibly move on to install Lineage OS and get it up to Android 7+ But that's for later. :silly:
i need help
hello i have a asus memo pad 7 k013 which come whit kikat 4.4 i decided to install lineage os 14 but searching in xda get that i have to upgrade to android 5 lollipop well first i installed this TWRP from here
https://www.htcmania.com/showpost.ph...69&postcount=7
after that any zip i downloaded failed whit error 7 lineage os 14 an 16 unnoficial also a update.zip whit signal 11 error
ANY IDEA GUYS

Categories

Resources