1. Backup necessary files.
2. Download slim7 and open Gapps from official webpage, Keep them zipped files and do not unzip them.
The version I used is
Slim-flounder-7.1.2.build.1.0-STABLE-20170629-0835.zip
open_gapps-arm64-7.1-stock-20170713.zip
Make sure you choose arm64 for Nexus9 in open Gapps webpage.
3. Install ADB and Fastboot tools and google driver
3.1 I consulted this post
https://forum.xda-developers.com/showthread.php?p=67779874#post67779874
but only find the google driver is working, for the adb, fastboot tools I cannot find them, nor run them from cmd.
3.2 Then I consulted this post
https://forum.xda-developers.com/google-nexus-5/general/guide-nexus-5-how-to-unlock-bootloader-t2507905
actually, you don't really need to download the whole sdk, in the download webpage whick is :
https://developer.android.com/studio/index.html#download
scroll down to "Get just the command line tools", download windows version and place it in a proper fold.
3.3 Unzip the file,( rename it to sdk-tools) and enter sdk-tools/tools/bin. In this fold, open a cmd window, type
>.\sdkmanager.bat --listyou shall see all available packages you can install. You can read how to use this command line tool from here
https://developer.android.com/studio/command-line/sdkmanager.html
or just follow my steps.
>.\sdkmanager.bat "platform-tools"
>.\sdkmanager.bat "extra;android;m2repository"
>.\sdkmanager.bat "extra;google;usb_driver" //I didn't install it since I have it installed from step 3.1. If you have any problem please refer to the post I mentioned in step 3.2.
After this, you shall see adb.exe, fastboot.exe tools in /sdk-tools/platform-tools fold.
4. Unlock bootloader
4.1 Power off device, then hold vol+ and power button together to turn on the device into bootloader/fastboot mode.
4.2 connect device to PC via USB, then under /sdk-tools/platform-tools fold, open a cmd window, type
>.\fastboot.exe devicesthen you shall see it lists your device there, otherwise please check the post above to detect questions.
Then type
>.\fastboot.exe oem unlockOn the device screen, you shall use vol+ to choose yes and confirm. It shall show "erasing" on the screen then. After this process, you shall type this command
>.\fastboot.exe rebootIt will take some time, you just wait until it finishes booting to android.
5. Root and install custom recovery image TWRP
For this step I consulted the post here
https://forum.xda-developers.com/nexus-9/general/how-to-install-custom-recovery-root-t3200361
and the one in step 3.2.
A custom recovery image is used to replace system recovery tool. It has more powerful functions than default one, in my understanding.
5.1 Download TWRP and SuperSU.zip from these links:
https://dl.twrp.me/flounder/
https://download.chainfire.eu/696/SuperSU
put them into the fold where fastboot.exe is. Rename TWRP file as recovery.img
5.2 Power off device and enter bootloader/fastboot mode by holding vol+ and power button at start. Open a cmd window, type
>.\fastboot.exe boot recovery.imgWait until you enter TWRP, then you will see internal storage pops up in your PC and you can access the storage now. Move SuperSU.zip into device storage from PC.
Then in TWRP, press install option, select SuperSU.zip to install.
5.3 Reboot back into bootloader/fastboot mode, then in the PC cmd window, type
>.\fastboot flash recovery recovery.imgYou are now rooted and have TWRP installed.
6. We need to also flash matched vendor image and bootloader image. (I did not know this step at first, but had to do it after flashing the ROM, so I decide to put it this step)
Reference post here:
https://forum.xda-developers.com/nexus-9/development/rom-t3451480
http://nougatroms.blogspot.se/2017/06/nexus-9-anroid-7-nougat-rom.html
6.1 Download the vendor image and bootloader image from the second link above or just google the name
vendor-volantis-n9f27c.img
bootloader-flounder-3.50.0.0143.img
Put them into fastboot.exe located fold.
6.2 In cmd window, we first flash bootloader, type
>.\fastboot.exe flash bootloader bootloader-flounder-3.50.0.0143.img
>.\sdkmanager.bat "extra;google;usb_driver" //I didn't install it since I have it installed from step 3.1. If you have any problem please refer to the post I mentioned in step 3.2.
After this, you shall see adb.exe, fastboot.exe tools in /sdk-tools/platform-tools fold.
4. Unlock bootloader
4.1 Power off device, then hold vol+ and power button together to turn on the device into bootloader/fastboot mode.
4.2 connect device to PC via USB, then under /sdk-tools/platform-tools fold, open a cmd window, type
>.\fastboot.exe devicesthen you shall see it lists your device there, otherwise please check the post above to detect questions.
Then type
>.\fastboot.exe oem unlockOn the device screen, you shall use vol+ to choose yes and confirm. It shall show "erasing" on the screen then. After this process, you shall type this command
>.\fastboot.exe rebootIt will take some time, you just wait until it finishes booting to android.
5. Root and install custom recovery image TWRP
For this step I consulted the post here
https://forum.xda-developers.com/nexus-9/general/how-to-install-custom-recovery-root-t3200361
and the one in step 3.2.
A custom recovery image is used to replace system recovery tool. It has more powerful functions than default one, in my understanding.
5.1 Download TWRP and SuperSU.zip from these links:
https://dl.twrp.me/flounder/
https://download.chainfire.eu/696/SuperSU
put them into the fold where fastboot.exe is. Rename TWRP file as recovery.img
5.2 Power off device and enter bootloader/fastboot mode by holding vol+ and power button at start. Open a cmd window, type
>.\fastboot.exe boot recovery.imgWait until you enter TWRP, then you will see internal storage pops up in your PC and you can access the storage now. Move SuperSU.zip into device storage from PC.
Then in TWRP, press install option, select SuperSU.zip to install.
5.3 Reboot back into bootloader/fastboot mode, then in the PC cmd window, type
>.\fastboot flash recovery recovery.imgYou are now rooted and have TWRP installed.
6. We need to also flash matched vendor image and bootloader image. (I did not know this step at first, but had to do it after flashing the ROM, so I decide to put it this step)
Reference post here:
https://forum.xda-developers.com/nexus-9/development/rom-t3451480
http://nougatroms.blogspot.se/2017/06/nexus-9-anroid-7-nougat-rom.html
6.1 Download the vendor image and bootloader image from the second link above or just google the name
vendor-volantis-n9f27c.img
bootloader-flounder-3.50.0.0143.img
Put them into fastboot.exe located fold.
6.2 In cmd window, we first flash bootloader, type
>.\fastboot.exe flash bootloader bootloader-flounder-3.50.0.0143.img
>.\fastboot.exe reboot-bootloaderThen we flash vendor image, type
>.\fastboot.exe flash vendor vendor-volantis-n9f27c.img
7. Now we back up the system and flash ROM.
Again, reference post is
http://www.android.gs/install-slim6-alpha-marshmallow-rom-for-google-nexus-9/
7.1 Boot device into recovery mode.
Hold vol+ and power button to power it on and enter fastboot mode, on the screen you can choose HBOOT using vol button, then press power button to confirm, now you enter recovery mode and you can see TWRP interface.
7.2 Set backup
In TWRP, use "backup" option to do this.
7.3 Factory Reset
In TWRP, use "wipe" option to do this. Use the default set, only wipe the cache, data and Divky.
7.4 Install ROM and Gapps
Like before, you will see internal storage window pops up in PC. Please copy previously downloaded Slim and open Gapps zip files into device storage. Then in TWRP, use "install" option to choose the ROM file and then install until it finishes.
Then continue to install Gapps zip file until it finishes.
7.5 Reboot to normal mode. The first time Slim starts up shall take some time, just wait.
Now everything is done, just enjoy.
>.\fastboot.exe flash vendor vendor-volantis-n9f27c.img
7. Now we back up the system and flash ROM.
Again, reference post is
http://www.android.gs/install-slim6-alpha-marshmallow-rom-for-google-nexus-9/
7.1 Boot device into recovery mode.
Hold vol+ and power button to power it on and enter fastboot mode, on the screen you can choose HBOOT using vol button, then press power button to confirm, now you enter recovery mode and you can see TWRP interface.
7.2 Set backup
In TWRP, use "backup" option to do this.
7.3 Factory Reset
In TWRP, use "wipe" option to do this. Use the default set, only wipe the cache, data and Divky.
7.4 Install ROM and Gapps
Like before, you will see internal storage window pops up in PC. Please copy previously downloaded Slim and open Gapps zip files into device storage. Then in TWRP, use "install" option to choose the ROM file and then install until it finishes.
Then continue to install Gapps zip file until it finishes.
7.5 Reboot to normal mode. The first time Slim starts up shall take some time, just wait.
Now everything is done, just enjoy.