[GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2012 stock to Android 7.1

Search This thread

djibe89

Senior Member
May 24, 2014
1,222
638
Samsung Galaxy Tab S2
Google Pixel 4a
[GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2012 stock to Android 7.1
[GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2012 3G/tilapia or wifi-only/grouper to Android 7.1 Nougat / LineageOS 14.1

This detailed step-by-step guide helps you transform your Google Nexus 7 (3G or wifi) with Android 5 to a powerful one with Android 7.1 Nougat.
Don't expect stable Android 8 or 9 on this tab, but 7.1 is already perfect ;-)

### I'll make a few notes using this style: PLEASE READ THEM.

Before going further, make sure you have the correct model.
Go to Settings > About tablet > Model number: Nexus 7

And on tablet's back cover: Nexus is written horizontally (vertically on 2013 model)
### See here if not clear: https://android.stackexchange.com/questions/58273/how-to-distinguish-nexus-7-2012-and-nexus-7-2013
And if you have a SIM card slot on the side, it is a 3G model (codename tilapia), if not, Wifi only alias grouper.

Make sure you have latest official updates.
Connect tab to Wifi network.
Go to Settings > About > Update. Download if update is available.


CHANGELOG

v3. Improve readability + update TWRP + gapps-config.txt (thx to @23deanor)
v2. Minor updates for tutorial + pack
v1. Initial release


1) DOWNLOAD

- djibe Nexus 7 2012 pack: https://bit.ly/djibe-nexus7-2012-packv2
(contains USB drivers r13 + fastboot & adb + TWRP recovery 3.5.2_9-0 + gapps-config.txt by @aaopt + working OpenGapps pico + Magisk root).
### Use Incognito web browser mode if needed to download pack.
Unzip pack on Windows desktop.

For 3G model/tilapia:
ROM LineageOS 14.1: https://xdaforums.com/t/rom-7-1-2-tilapia-unofficial-lineageos-14-1-2021-01-11.3978723/
Download latest build: https://androidfilehost.com/?fid=17248734326145713539

For Wifi model/grouper:
ROM LineageOS 14.1: https://xdaforums.com/t/rom-7-1-2-grouper-unofficial-lineageos-14-1-2021-01-11.4112431/
Download latest build: https://androidfilehost.com/?fid=17248734326145713542

Google Apps are included in my pack (open_gapps-arm-7.1-pico-20190209.zip)
Tablet must be fully charged to 100%.


2) INSTALL WINDOWS DRIVERS AND BACKUP

Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.

Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect tab to PC and retrieve data.


3) UNLOCK BOOTLOADER OF GOOGLE NEXUS 7 2012

In Android, go to Settings > About tablet.
Tap 7 times on "Build number", a notification confirms Developer menu is unlocked.
Go to Settings > Developer options and check USB debugging ON.

Open a Windows command prompt on the /djibe pack folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here

Connect tab to PC.

Enter command
Code:
adb devices
Command starts adb and returns
Code:
015d3b668413fc0d        unauthorized

ADB (Android Debug Bridge) has started but tab is waiting for authorization.
On tablet, authorize adb commands from Allow USB debugging dialog: tap on OK.

Then enter command
Code:
adb reboot bootloader
Tab restarts and prints a dark screen with message: LOCK STATE - LOCKED

Enter command
Code:
fastboot oem unlock
Using Volume+, select Yes - Unlock bootloader, confirm by pressing Power.

Use Volume keys to select Reboot and Power to confirm.
Tablet is unlocked.

Configure Android fast, reactivate Developer options and USB debugging.
Then restart tablet to bootloader using once again
Code:
adb reboot bootloader


4) FLASH TWRP 3.5 RECOVERY

Now enter this command
Code:
fastboot flash recovery twrp-3.5.2_9-0-tilapia.img
### Or for Wifi only model:
Code:
fastboot flash recovery twrp-3.5.2_9-0-grouper.img
Command returns Finished. Total time: 1.828s

Use Volume keys to select Recovery mode, confirm with Power.

Welcome to TWRP recovery.
Check Never show this screen during boot again and Swip to Allow Modifications.

Go to Backup > select System, Data, Boot partitions.
Swipe to Backup and wait during backup.

Back to home screen > Mount.
You can access folders from PC if Data partition is checke and bottom right button show Disable MTP.

From Windows Explorer, navigate to Nexus 7 > Internal Storage.
Copy TWRP folder and paste it somewhere safe on PC.
This is a perfect backup in case of crash.


5) SET FILESYSTEM TO F2FS

F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280%.
No need to format the /System partition because it is Read only and Ext4 is still faster.

Now go Wipe > Advanced Wipe.
Select Dalvik / ART Cache, System, Cache, Data, Internal Storage and Swipe to Wipe.
Tap on Back button (to Advanced Wipe Menu).
Select /cache partition > Repair or Change File System > Change File System > F2FS, Swipe.
Go Back and back to Advanced Wipe Menu.
Select /data partition > Repair or Change File System > Change File System > F2FS, Swipe.
Tap on Home button > Reboot > Recovery > Swipe to Reboot


6) FLASH ANDROID + OPENGAPPS + MAGISK

On restart, check Never show this screen during boot again and Swipe to Allow Modifications.

Back to Mount menu.
Connect tab to computer.
Copy ROM + GAPPS + gapps-config.txt + Magisk
### Do not unzip files. Copy and paste zip files to Internal Storage

### Copy gapps-config.txt or you will get an "insufficient space" crash during flash.

Then go back to Home menu > Install

Select lineage-*.zip, and Add More Zips,
then open_gapps-arm-7.1-pico-20190209.zip and Add More Zips,
then Magisk.zip and Swipe to force install.
Be patient.
### If it fails, install zips 1 by 1.

Android 7.1 is installed !
When done message prompts, tap on Wipe Cache/Dalvik and swype to confirm, wait.
Disconnect tab from PC.
Then Reboot System.
Let the tab start (at least 10 minutes).


7) ROOT WITH MAGISK

Configure Android as you like.
Magisk root starts with Android.
You can manage permissions and extra modules with Magisk Manager app.

Open Magisk app (v23+).
Go to Settings > go to App Rename app to Godmode to hide hide.
Below, switch MagiskHide ON.
Now go to Magisk Modules tab > install liboemcrypto disabler and MagiskHide Props Config.

Connect to your Google account, download from Play Store Netflix and Disney+.

### If you are already connected to Google account.
Clear cache (Settings > Apps > All apps > Google Play Store > Storage > Clear storage) and restart tab.
Relaunch Play Store, Netflix and Disney+ will be available in SD.


10) OTHER APPS

- You can use GPS Status & Toolbox for faster GPS fix.
- Developer options
Settings > About tablet.
Tap 7 times on build number.
Back to Settings > Developer options
Select USB Configuration > set MTP
Set Windows animation scale, Transition animation scale and Animator duration scale to .5x

- In Developer options, you may try Force GPU rendering.
Much faster on my tab, tell me if it does (or not for you)

That's it.

Enjoy ;-)

Thanks: ud4, AndDiSa, aaopt, TWRP team, LineageOS team, OpenGApps team
 
Last edited:

tonybhoy

Senior Member
Jan 27, 2011
983
75
glasgow
hi is there a video tutorial for this bit
Open a Windows command prompt on the /djibe pack folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here

i've never used command prompt or adb,thanks
 
  • Like
Reactions: pandarepair

djibe89

Senior Member
May 24, 2014
1,222
638
Samsung Galaxy Tab S2
Google Pixel 4a

tonybhoy

Senior Member
Jan 27, 2011
983
75
glasgow
this is all i get
 

Attachments

  • Screenshot (22).png
    Screenshot (22).png
    1.1 MB · Views: 214

djibe89

Senior Member
May 24, 2014
1,222
638
Samsung Galaxy Tab S2
Google Pixel 4a
Hi,
it seems you didn't read well the WindowsClub tutorial.

3 choices:

  1. From within the /flash folder, enter "cmd" in the address bar and hit ENTER. It will open the CMD in the /flash context.
  2. Copy path of folder from Windows Explorer address bar and enter following command in CMD:
    cd /d (CTRL + V TO PASTE THE PATH)
  3. Move to the parent directory (/djibe). Select /flash folder, then hold SHIFT and right click Open command here.
    Command will open on the /flash context.
 

23deanor

Member
Feb 3, 2015
9
0
Back to home screen > Mount.
You can access folders from PC if Data partition is checke and bottom right button show Disable MTP.

From Windows Explorer, navigate to Nexus 7 > Internal Storage.
Copy TWRP folder and paste it somewhere safe on PC.
This is a perfect backup in case of crash.


5) SET FILESYSTEM TO F2FS

F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280 %.
No need to format the /System partition because it is Read only and Ext4 is still faster.

Now go Wipe > Advanced Wipe.
Select Dalvik / ART Cache, System, Cache, Data, Internal Storage and Swipe to Wipe.
Tap on Back button (to Advanced Wipe Menu).
Select /cache partition > Repair or Change File System > Change File System > F2FS, Swipe.
Go Back and back to Advanced Wipe Menu.
Select /data partition > Repair or Change File System > Change File System > F2FS, Swipe.
Tap on Home button > Reboot > Recovery > Swipe to Reboot


6) FLASH ANDROID + OPENGAPPS + MAGISK

On restart, check Never show this screen during boot again and Swipe to Allow Modifications.

Back to Mount.
Copy ROM + GAPPS + gapps-config-tilapia.txt + Magisk + Magisk Manager.
Everything is going great until this point - the storage is not mounted (can't see them in Explorer). Any ideas?
 

23deanor

Member
Feb 3, 2015
9
0
The bottom right button Enable/disable MTP didn't do much - the laptop made the noise like a USB device was being disconnected (not connected) and in the system tray, the option to eject Nexus 7 was present. I can't check Device Manager at the moment because the tablet is currently completely unresponsive. I think the battery may be flat because I left it all day and overnight before being able to come back to work on it.

I appreciate your help and would really like to get this 7.1 ROM working.
 

23deanor

Member
Feb 3, 2015
9
0
Nothing appears to be working, the tablet can be seen in adb-devices in recovery mode, but not in Device Manager or Windows Explorer.
The tablet now has no OS on it so as it currently stands is useless - do you have any ideas how to get this going again?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    [GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2012 stock to Android 7.1
    [GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2012 3G/tilapia or wifi-only/grouper to Android 7.1 Nougat / LineageOS 14.1

    This detailed step-by-step guide helps you transform your Google Nexus 7 (3G or wifi) with Android 5 to a powerful one with Android 7.1 Nougat.
    Don't expect stable Android 8 or 9 on this tab, but 7.1 is already perfect ;-)

    ### I'll make a few notes using this style: PLEASE READ THEM.

    Before going further, make sure you have the correct model.
    Go to Settings > About tablet > Model number: Nexus 7

    And on tablet's back cover: Nexus is written horizontally (vertically on 2013 model)
    ### See here if not clear: https://android.stackexchange.com/questions/58273/how-to-distinguish-nexus-7-2012-and-nexus-7-2013
    And if you have a SIM card slot on the side, it is a 3G model (codename tilapia), if not, Wifi only alias grouper.

    Make sure you have latest official updates.
    Connect tab to Wifi network.
    Go to Settings > About > Update. Download if update is available.


    CHANGELOG

    v3. Improve readability + update TWRP + gapps-config.txt (thx to @23deanor)
    v2. Minor updates for tutorial + pack
    v1. Initial release


    1) DOWNLOAD

    - djibe Nexus 7 2012 pack: https://bit.ly/djibe-nexus7-2012-packv2
    (contains USB drivers r13 + fastboot & adb + TWRP recovery 3.5.2_9-0 + gapps-config.txt by @aaopt + working OpenGapps pico + Magisk root).
    ### Use Incognito web browser mode if needed to download pack.
    Unzip pack on Windows desktop.

    For 3G model/tilapia:
    ROM LineageOS 14.1: https://xdaforums.com/t/rom-7-1-2-tilapia-unofficial-lineageos-14-1-2021-01-11.3978723/
    Download latest build: https://androidfilehost.com/?fid=17248734326145713539

    For Wifi model/grouper:
    ROM LineageOS 14.1: https://xdaforums.com/t/rom-7-1-2-grouper-unofficial-lineageos-14-1-2021-01-11.4112431/
    Download latest build: https://androidfilehost.com/?fid=17248734326145713542

    Google Apps are included in my pack (open_gapps-arm-7.1-pico-20190209.zip)
    Tablet must be fully charged to 100%.


    2) INSTALL WINDOWS DRIVERS AND BACKUP

    Go to the folder you unzipped earlier.
    navigate to usb_driver_r13-windows > usb_driver.
    Right click on android_winusb.inf and select Install. Confirm with OK.
    Restart Windows.

    Make sure Google/provider account is synchronized.
    Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
    Connect tab to PC and retrieve data.


    3) UNLOCK BOOTLOADER OF GOOGLE NEXUS 7 2012

    In Android, go to Settings > About tablet.
    Tap 7 times on "Build number", a notification confirms Developer menu is unlocked.
    Go to Settings > Developer options and check USB debugging ON.

    Open a Windows command prompt on the /djibe pack folder you unziped earlier:
    select folder with left click, right click while holding SHIFT on keyboard > Open command windows here

    Connect tab to PC.

    Enter command
    Code:
    adb devices
    Command starts adb and returns
    Code:
    015d3b668413fc0d        unauthorized

    ADB (Android Debug Bridge) has started but tab is waiting for authorization.
    On tablet, authorize adb commands from Allow USB debugging dialog: tap on OK.

    Then enter command
    Code:
    adb reboot bootloader
    Tab restarts and prints a dark screen with message: LOCK STATE - LOCKED

    Enter command
    Code:
    fastboot oem unlock
    Using Volume+, select Yes - Unlock bootloader, confirm by pressing Power.

    Use Volume keys to select Reboot and Power to confirm.
    Tablet is unlocked.

    Configure Android fast, reactivate Developer options and USB debugging.
    Then restart tablet to bootloader using once again
    Code:
    adb reboot bootloader


    4) FLASH TWRP 3.5 RECOVERY

    Now enter this command
    Code:
    fastboot flash recovery twrp-3.5.2_9-0-tilapia.img
    ### Or for Wifi only model:
    Code:
    fastboot flash recovery twrp-3.5.2_9-0-grouper.img
    Command returns Finished. Total time: 1.828s

    Use Volume keys to select Recovery mode, confirm with Power.

    Welcome to TWRP recovery.
    Check Never show this screen during boot again and Swip to Allow Modifications.

    Go to Backup > select System, Data, Boot partitions.
    Swipe to Backup and wait during backup.

    Back to home screen > Mount.
    You can access folders from PC if Data partition is checke and bottom right button show Disable MTP.

    From Windows Explorer, navigate to Nexus 7 > Internal Storage.
    Copy TWRP folder and paste it somewhere safe on PC.
    This is a perfect backup in case of crash.


    5) SET FILESYSTEM TO F2FS

    F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280%.
    No need to format the /System partition because it is Read only and Ext4 is still faster.

    Now go Wipe > Advanced Wipe.
    Select Dalvik / ART Cache, System, Cache, Data, Internal Storage and Swipe to Wipe.
    Tap on Back button (to Advanced Wipe Menu).
    Select /cache partition > Repair or Change File System > Change File System > F2FS, Swipe.
    Go Back and back to Advanced Wipe Menu.
    Select /data partition > Repair or Change File System > Change File System > F2FS, Swipe.
    Tap on Home button > Reboot > Recovery > Swipe to Reboot


    6) FLASH ANDROID + OPENGAPPS + MAGISK

    On restart, check Never show this screen during boot again and Swipe to Allow Modifications.

    Back to Mount menu.
    Connect tab to computer.
    Copy ROM + GAPPS + gapps-config.txt + Magisk
    ### Do not unzip files. Copy and paste zip files to Internal Storage

    ### Copy gapps-config.txt or you will get an "insufficient space" crash during flash.

    Then go back to Home menu > Install

    Select lineage-*.zip, and Add More Zips,
    then open_gapps-arm-7.1-pico-20190209.zip and Add More Zips,
    then Magisk.zip and Swipe to force install.
    Be patient.
    ### If it fails, install zips 1 by 1.

    Android 7.1 is installed !
    When done message prompts, tap on Wipe Cache/Dalvik and swype to confirm, wait.
    Disconnect tab from PC.
    Then Reboot System.
    Let the tab start (at least 10 minutes).


    7) ROOT WITH MAGISK

    Configure Android as you like.
    Magisk root starts with Android.
    You can manage permissions and extra modules with Magisk Manager app.

    Open Magisk app (v23+).
    Go to Settings > go to App Rename app to Godmode to hide hide.
    Below, switch MagiskHide ON.
    Now go to Magisk Modules tab > install liboemcrypto disabler and MagiskHide Props Config.

    Connect to your Google account, download from Play Store Netflix and Disney+.

    ### If you are already connected to Google account.
    Clear cache (Settings > Apps > All apps > Google Play Store > Storage > Clear storage) and restart tab.
    Relaunch Play Store, Netflix and Disney+ will be available in SD.


    10) OTHER APPS

    - You can use GPS Status & Toolbox for faster GPS fix.
    - Developer options
    Settings > About tablet.
    Tap 7 times on build number.
    Back to Settings > Developer options
    Select USB Configuration > set MTP
    Set Windows animation scale, Transition animation scale and Animator duration scale to .5x

    - In Developer options, you may try Force GPU rendering.
    Much faster on my tab, tell me if it does (or not for you)

    That's it.

    Enjoy ;-)

    Thanks: ud4, AndDiSa, aaopt, TWRP team, LineageOS team, OpenGApps team
    2
    I couldn't install liboemcryptodisabler so I give your solution try and it was installed but when I clicked reboot, after reboot when I go back to Magisk, there was no liboemcryptodisabler in modules. I don't know what's going on. I couldn't install MagiskHide Props Config too.
    The second question. After Magisk installation, I got 23.0 version but I did update application in Magisk and now it's 24.3 version but only in app section, in Magisk section it's still 23.0 (ramdisk yes) and when I try to update Magisk to newer version, I got two options:
    - preserve AVB 2.0
    - patch vbmeta in boot image (this option is ticked)
    when i click next, I got two choices:
    - select and patch a file
    - direct install (recommended)
    when I choose direct install and click let's go, I get "Installation failed. unable to detect target image". What am I doing wrong? I've got Nexus 7 2021 3G (tilapia).

    The last question. Why while I wake up my tablet, it asks me for a camera permissions? Which app from LineageOS need it while you wake the tablet?
    At the end I just wanted to say - thank you for a great guide. my tablet has a new life now ;)
    1
    hi is there a video tutorial for this bit
    Open a Windows command prompt on the /djibe pack folder you unziped earlier:
    select folder with left click, right click while holding SHIFT on keyboard > Open command windows here

    i've never used command prompt or adb,thanks
    1
    Yes I push them both across to /data and install from there using TWRP
    I know this is almost three months ago..
    I had similar issue. You need to rename gapps-config-tilapia.txt to gapps-config.txt
    1

    @djibe89

    It worked like a charm for me on my Nexus 7 2012 with Android 5.1.1 installed.
    Steps were very clear and easy to follow.
    Thanks for all the effort to bring this tutorial to our knowledge! Live long djibe89!

    If in trouble at this step:
    Now go to Magisk Modules tab > install liboemcrypto disabler and MagiskHide Props Config.
    Steps to install liboemcrypto disabler:
    download the zip from GitHub https://github.com/Magisk-Modules-Repo/liboemcryptodisabler
    -> Under the green button "Code" there is the option to "Download ZIP", move the files from the zip from folder /liboemcryptodisabler-master/ to the root folder of the zip /, push the zip to Nexus 7, then again in Magisk Modules , Install from storage, locate the zip, long tap the zip, Open button
    Wait for the module to install
    Reboot
    Then you will find the module installed in Magisk Modules.