[Nexus 7 (2013) General] djibe89:
[GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2013 Stock to Android 13

[GUIDE/TUTORIAL/HOWTO] Google Nexus 7 2013 LTE/deb or Wi-Fi-only/flo to Android 13 / LineageOS 20 in 2024

This detailed step-by-step guide helps you transform your Google Nexus 7 (4G or wifi) with Android 6 to a fresher one with Android 13.

### 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 vertically (horizontally on 2012 model)

### See here if not clear: https://android.stackexchange.com/questions/58273/how-to-distinguish-nexus-7-2012-and-nexus-7-2013

If you have a SIM card slot on the side, it is a LTE model (codename deb), if not, Wi-Fi only alias flo.

Make sure you have latest official updates.

Connect tab to Wi-Fi network.

Go to Settings > About tablet > System updates. Download if update is available.

### WARNING. I'm not sure banking apps will work. Office Lens and Adobe Scan don't work.

### See all my tutorials at https://github.com/djibe/Android-tutorials

### Buy me a coffee: https://ko-fi.com/djibe

CHANGELOG

v11. Lanchon repit full tutorial, no partition size problem

v10. BitGApps v2, Lanchon repit cited

v9. Android 13, TWRP 3.7 (both by @followmsi)

v8. Back to BitGApps

v7. Hack GApps for Android 12.1/12L (thx to @JamesTanner)

v6. Android 12.1/LOS 19.1

v5. Stick to 12/19 (not 12L/19.1) to wait for compatible BitGApps

v4. Move to Android 12, improve fastboot errors, update Magisk to 24.3 + Netflix access

v3. Move to BitGApps, TWRP 3.6 by @followmsi, repartition script 1380/20 by @k23m

v2. Netflix and Disney+ with Magisk 23 + updated pack, improve readability

v1. Initial release

1) DOWNLOAD

- djibe Nexus 7 2013 pack: https://drive.google.com/file/d/1gPo8YGO-5b6mqugCDyi7T3k94uecwbfZ/view?usp=sharing

(contains USB drivers r13 + fastboot & adb + TWRP recovery 3.7.0_9-1 flo & deb by followmsi + Magisk root + Lanchon repit).

### Use Incognito web browser mode if needed to download pack.

For both LTE model/deb & Wi-Fi model re-partitionned/flox

- ROM LineageOS 20 Unofficial by @followmsi (Android 13): https://forum.xda-developers.com/t/rom-flo-deb-unofficial-lineageos-20-0.3569067/

Download latest build: See top link in thread above

### You may also want LineageOS 18.1 Official (Android 11): https://xdaforums.com/t/official-li...wi-fi-lte-repartition-only-flox-debx.4255325/

+ BitGApps ARM 13 CORE: https://bitgapps.io/

+ Tablet must be fully charged

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 2013

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 switch USB debugging ON.

Go to my /djibe folder you unziped earlier. In Windows address bar (ie E:\root\Google Nexus 7 2013\djibe\flash), type cmd and hit Enter

to open a Windows Command.

Connect tablet to PC.

Enter command

adb devices

Command starts adb and returns

077955f1 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.

### I struggled to make the tablet recognized by Windows recently, having too many conflicting Android USB drivers. If tablet is not recognized, try a computer without any previous Android USB driver install.

Then enter command

adb reboot bootloader

Tab restarts and displays a droid, lowest message is: LOCK STATE - locked

Enter command

fastboot oem unlock

Using Volume+, select Yes - Unlock bootloader, confirm by pressing Power.

Lowest message is now: LOCK STATE - unlocked

### Unable to run fastboot commands: < waiting for device > ? Go to Windows Device Manager

### While in ADB, driver for Android Device should be named Android Composite ADB Interface. In Fastboot: Android Bootloader Interface

### Click on View > Display hidden devices, right click on Nexus 7 > Uninstall. Reinstall drivers. No success ? Try from another computer

Use Volume keys to select Start and Power to confirm.

Tablet is unlocked.

Configure Android quickly, reactivate Developer options and USB debugging.

Then restart tablet to bootloader using once again

adb reboot bootloader

4) FLASH TWRP 3.7 RECOVERY

Tablet displays the droid logo.

From Windows command, enter:

fastboot flash recovery twrp-3.7.0_9-1-flo_followmsi.img

### Or for LTE model:

fastboot flash recovery twrp-3.7.0_9-1-deb_followmsi.img

Command returns Finished. Total time: 0.995s

Back to tablet, use Volume keys to select Recovery mode, confirm with Power.

### You may experience lagginess within the Recovery.

### Top on screen to wake it up

Welcome to TWRP recovery.

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

Go straight to Backup > select Boot, System, Data partitions.

Swipe to Backup and wait during backup.

Back to home screen > Mount (tablet still connected to PC).

You can access tablet's storage folders from Windows Explorer if Data partition is checked and bottom right button show Disable MTP (within TWRP Mount menu).

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) FORMAT PARTITIONS

On tablet, now go to Wipe > Format data.

Type yes and confirm with bottom right check icon.

Now go to Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, Internal Storage, Cache and Swipe to Wipe.

We cannot flash on wiped partitions.

Go to Reboot > Recovery and Swipe to Reboot.

Back to Mount menu.

From Windows Explorer, now copy lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip (or -deb) on Internal Storage.

Disconnect tab.

Go to Reboot > Recovery and Swipe to Reboot.

Back to tablet, Mount menu: tap on Mount then disable Mount.

Make sure in the Mount menu that bottom right button has : Enable MTP state.

Uncheck all partitions in Mount menu.

Go to Install > tap on lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip and Swipe to flash.

Script is copied to /tmp folder.

### Charge tablet if needed, it will take minutes to hours, NEVER INTERRUPT IT.

### If script rapidly ends with red errors, you have to toggle and disable Mount button and try again.

Home > Install > (Up A level) > tmp > tap on lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip and Swipe to flash.

Go to Reboot > Recovery and Swipe to Reboot.

### Repartitioned Wi-Fi model is called flox (instead of flo)

6) FLASH ANDROID + GAPPS (+ MAGISK)

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

Connect tab to PC.

Back to Mount menu.

Copy ROM + GAPPS (+ Magisk.zip and apk + MagiskHidePropsConf-v6.1.2 + safetynet-fix) to Internal storage with Windows Explorer.

Go to TWRP Home > Install. select lineage-*.zip and Swipe.

Go to Reboot > Recovery.

Go to Install > bitgapps*.zip and Swipe to Install

(for root, needed for Netflix : and Add More Zips, then Magisk.zip)

Android 13 is installed !

When done message prompts, tap on Wipe Cache/Dalvik and Swipe to Wipe.

Disconnect tab from PC.

Then Reboot System.

Let the tab start (a few minutes).

7) ROOT WITH MAGISK (OPTIONAL)

### Only if you flashed Magisk via TWRP recovery

During Android setup:

Do not allow the Update Lineage Recovery

You can select the gesture navigation

Do not connect to Android account.

Magisk root starts with Android.

You can manage permissions and extra modules with Magisk Manager app.

Open Files app > Install Magisk.apk.

Launch Magisk, it will ask for extra Additional Setup > OK. Tab reboots.

Launch Magisk again > Affition Setup > Direct Install > OK > Reboot.

Back to Magisk, go to Settings > Hide magisk app and give it a name, switch Zygisk option ON.

Go to Modules Tab > Install from Storage: MagiskHidePropsConfig and safetynet.

Reboot tablet.

Go to Settings > About tablet.

Tap 7 times on Build number to enable Developer options.

Go to Settings > System > Developer options. Disable USB debugging.

Still in Developer options, set Window animation, Transition animation and Animator duration scale to 0.5x.

You can now connect to Play Store to download Netflix, Disney+ ...

10) OTHER APPS

- You can use GPS Status & Toolbox for faster GPS fix.

- Tablet not seen by Windows or Can't access tablet from Windows Explorer ?

Activate Developer options.

Go to Settings > System > Developer options > Default USB configuration > File transfer

That's it.

Enjoy ;-)

Thanks: @followmsi, @k23m, @nbehary, @DevSwift1, @flex1911, @yattodettaman, @emmett.tsai, TopJohnWu, TWRP team, LineageOS team, BitGApps team

------------------------------------------------------------------------------------------

BOOT TO RECOVERY

Hold Power + Volume- until Droid logo appears and release buttons, this is Bootloader.

Press Volume- twice to show Recovery mode and confirm with Power