yashsingh1/xdaforums huggingface dataset:
[Nexus 9 General] bshiznit:
Be sure to update the bootloader if getting a system partition size error! For M-preview this went from 3.44.1.0123 (LMY48M) to 3.48.0.0135 (confirmed the factory image is still this for MRA58K)... Otherwise you get system partition size errors (BIG update).

I will be making a rooted/no-force-encrypt ROM and kernel as soon as I see the newer manifests on googlesource... I am assuming selinux to permissive is still required for root. Once you have it unpacked:

fastboot flash bootloader bootloader-flounder-3.48.0.0135.img

fastboot reboot-bootloader

Then flash the system and boot images:

fastboot flash boot boot.img

fastboot flash vendor vendor.img

fastboot flash system system.img

DO NOT DO THIS if your device is using a no-force-encrypt kernel! You WILL have to factory reset! Back up OFF the device to a PC or OTG FIRST... Then you can restore.

While flashing SYSTEM it will send the update in 5 chunks - from my device:

target reported max download size of 518205818 bytes

erasing 'system'...

OKAY [ 0.869s]

sending sparse 'system' (499853 KB)...

OKAY [ 26.326s]

writing 'system'...

(bootloader) Device State : Unlocked

OKAY [ 19.701s]

sending sparse 'system' (495930 KB)...

OKAY [ 25.524s]

writing 'system'...

(bootloader) Device State : Unlocked

OKAY [ 20.212s]

sending sparse 'system' (495450 KB)...

OKAY [ 25.732s]

writing 'system'...

(bootloader) Device State : Unlocked

OKAY [ 19.792s]

sending sparse 'system' (443364 KB)...

OKAY [ 22.984s]

writing 'system'...

(bootloader) Device State : Unlocked

OKAY [ 19.222s]

sending sparse 'system' (310634 KB)...

OKAY [ 16.188s]

writing 'system'...

(bootloader) Device State : Unlocked

OKAY [ 12.593s]

finished. total time: 209.162s
[Nexus 9 General] sejmand:
NOOB Question:

where can I get the Information if my kernel is "no-force-encrypt kernel"?

I'm using the stock kernel 3.10.40 (28.jul) build LMY48M (rooted)

UDPATE:

in Settings -> security -> enrcypt tablet-> encrypted: means "force-encrypt kernel"?
[Nexus 9 General] zerone55:
Deleted
[Nexus 9 General] topjohnwu:
No force encryption stock kernel

For those who want to flash Marshmallow immediately but wanted to keep the device un-encrypted, download this zip, extract the boot image and flash through fastboot.
[Nexus 9 General] roaddaw9:
Scratch that, apparently I am special (forgetful as well) and didn't flash the vendor img. Ugh / Whoops
[Nexus 9 General] mrorange2108:
TWRP does not work (via Wug's Toolkit) on mine... So if you want root when staying enxrypted, you may want to wait for now
[Nexus 9 General] bshiznit:
Flounder no-encrypt + f2fs cache support boot image

WIFI model! Attached is a quickly modified boot.img to allow for f2fs on cache (can use either/or) and no-encrypt forced on DATA partition - enjoy!
[Nexus 9 General] bshiznit:
FlounderLTE no-encrypt + f2fs cache support boot image

LTE model! Attached is a quickly modified boot.img to allow for f2fs on cache (can use either/or) and no-encrypt forced on DATA partition - enjoy!
[Nexus 9 General] maarten08:
Seems good so far, performance is good. Smooth scrolling in Chrome, better than before. Some apps crash on first start.
[Nexus 9 General] bshiznit:
If it says "encrypted" then yes you came from a stock kernel and will be OK with the stock kernel in the factory image. For others see the boot.img files on page 3 I posted for the WiFi and LTE variants...
[Nexus 9 General] band_aid:
how do we root the device on Android M?
[Nexus 9 General] addicted1900:
Is now in tap working for someome of you ?
[Nexus 9 General] bshiznit:
Without it causing a hung boot? Looking into that now :angel:
[Nexus 9 General] mangomonkey00:
trying to flash factory image each files separably but i get reboot after few seconds of boot animation please help

i'm on lte model and also didnt wiped the device
[Nexus 9 General] FrankBullitt:
Flash TWRP, then a kernel like Fire-Ice beta for M Preview (maybe elementalX for M preview, not sure), flash supersu.

I'm on M, rooted without any issue.
[Nexus 9 General] denson9874:
why wouldn't you wipe the device? Especially if you came from a different base. Wipe then retry...
[Nexus 9 General] mangomonkey00:
factory reseting now from the bootloader menu taking longer than i expected will update later also is there any other method to wipe and install
[Nexus 9 General] corkiejp:
Edited!

To switch on/off MTP mode is now found in developer options!

The OTG function of M is preventing the app stickmount from functioning (Stickmount probably needs to be updated!)

"ES File Explorer" Can mount the USB stick, so that resolves been able to transfer files/media to and from USB sticks!

Until stickmount gets fixed!

Regards

John
[Nexus 9 General] gonzoks:
Followed this process, no issues whatsoever. Booted up just now, just fine. Doing setup.
[Nexus 9 General] mjc2251:
Im up and running with twrp and root, but i cant remember how to get rid of the "your device is corrupt" message on boot?
[Nexus 9 General] jaxbierley:
I have tried both of these zips and each time I boot TWRP it asks for a password as if it is encrypted still, which I dont have, and I cannot flash SuperSU. What am I doing wrong?

What did you do to unencrypt the device to be able to flash in TWRP?
[Nexus 9 General] gonzoks:
Not rooted. Running bone stock here. However, since I did this and am reinstalling everything, the play store and installs are incredibly slow. Not my bandwidth, on a 1gig/1gig connection (Google Fiber). Speed tests fine. Browsing is fine. Just slow to install and patch. Anyone else seeing issues?
[Nexus 9 General] mjc2251:
[MENTION=5697263]jaxbierley[/MENTION] I hit the cancel button when it asks for a password then formatted the user data partition by going to wipe menu and pressing the format button. Then you will be able to flash from TWRP.
[Nexus 9 General] xfullmetal17:
Would I be able to use adb backup on my 5.1.1 build, flash 6.0, then use adb restore to get my app data back? Or would that just cause lots of issues and the like? Obviously it won't get everything, but on the first bootloader unlock it was a huge help to be able to use that feature.
[Nexus 9 General] :
At first impression after clean install, everything ran very well then 1hour later, took 1 hour just to update 10 apps, Google apps???, lagging, slow, memory leaks and redraws, chrome is so dam slow, I've got perfect internet speed, i had high hopes for 6.0 to fix everything but now I'm selling my tablet, getting a nexus 7 2013 which was my old tablet which I sold for the n9 or a Samsung tablet s2, because all I know is that the nexus 7 2013 kills the n9 in everything I do,except gaming, n9 is the best for gaming that's all
[Nexus 9 General] horst0815:
set up my device last night, rooted and flashed twrp, all fine. But I don't get ad-away to work, system is r/o and I cannot get it to r/w. Anyone able to get it to work?
[Nexus 9 General] sammy98:
Same problem here.

Fixed: used this kernel: http://xdaforums.com/nexus-9/orig-development/kernel-fire-ice-t2930451
[Nexus 9 General] nilujeperchu:
I tried the short method that failed so I've just followedthe long one. I flashed everything exept image that says "error : cannot load system.img". Any idea?

note : my bootloader was installed correctly, it's 3.48 now but for the other parts, I can't check but I've got an "Okay" message everytime.

Problem solved, sorry for my noob message.

I did everything from a random directory 'D:\Users\me\Desktop\volantis-mra58k-factory-cc430962\volantis-mra58k' and it seems to be ok for everything but the system image. I retried with "Minimal ADB and fastboot" from 'C:\Program Files (x86)\Minimal ADB and Fastboot\image-volantis-mra58k' that is the place where I installed ADB and I succesfully flashed the system image. I tought it was ok with a regular invit but it seems not. I flashed another time every other img from this directory juste to be sure.
[Nexus 9 General] addicted1900:
You need a newer adb / fastboot version.

Gesendet von meinem Nexus 9 mit Tapatalk
[Nexus 9 General] 850RPM:
which root method do you use?
[Nexus 9 General] corkiejp:
Edited!

Edited!
[Nexus 9 General] GiantAxe:
stock unencrypted

seems to be running great. not yet rooted though.

so a question, those who have rooted and re-activated the multi window mode. is it actually worth using now?

(I might re-root just for that, not yet sure. for adaway, ehh got the adblock browser so its not a super big deal atm)

Seeing it still isnt officially added i understand the feature is not yet complete, but is it atleast better then on the dev preview.
[Nexus 9 General] sheenswizner:
Waiting for custom roms b4 flashing stock!
[Nexus 9 General] Gryphie:
Wifi seems to stay on all the time for me, it is set to never stay on in the settings.
[Nexus 9 General] itlnstln:
Here's a flashable hosts file I pulled from AdAway. Trying to see if I really need to be rooted or if just having the hosts file loaded is enough for me.
[Nexus 9 General] denson9874:
You can do the fastboot method which is really the most guaranteed method. Somebody a couple comment above me quoted the method.
[Nexus 9 General] Philaphlous:
Seems slightly quicker on 6.0...but it's just probably from a clean installed device. I'm sure the slowdowns will come later... Not much change at all. Very disappointed the split screen 2 apps at a time went away... I was looking forward to running 2 apps at once.
[Nexus 9 General] chrmica:
Stuck in Boot

Hi , I just flashed marshmallow factory images and kept Data and used the boot.img from this thread for noencrypt and from twrp 2.8.7.0 I tried to flash superuser 2.46 but I am getting "E: Unable to mount storage" and also for wipe cache was getting same error, I rebooted and got "Your device is corrupt. It can't be trusted and may not work properly." and left it to continue and boot animation came up but it seems its stuck in boot its been 30 mins and no verify apps came up as yet, any suggestions would like to keep my data and has anybody used the boot.img in this thread without any issues. Thanks
[Nexus 9 General] madbat99:
You will keep getting that error until you keep it encrypted. Try using elementalx kernel.
[Nexus 9 General] ruffjd:
Stuck at Google Screen. Flashed factory image and it's been sitting for 30mins. Help please
[Nexus 9 General] GedBlake:
Hi, guys...

It's not often I have problems fastboot flashing stuff, but this problem has me stumped...

Flashing the new official release version of Marshmallow, 'system' refuses to flash...

...with this error...

fastboot flash system system.img
load file: could not allocate -19958476323 bytes
error: cannot load 'system.img'

(See attached screenshot).

------

Any ideas?

Rgrds,

Ged.
[Nexus 9 General] ectodroid:
Remember to flash vendor img
[Nexus 9 General] b1g.p0ppa:
Flash the new bootloader and then fastboot reboot-bootloader then try again.
[Nexus 9 General] sejmand:
Did the long version of manual flash:

1 bootlader and every package seperatliy, no problem

2 then flashed twrp and twrp asked for a password, and I don't know how to get rid of this?

3 flashed ElementalX-Kernel and superuser via usb but I can't read the internal storage...

got root, its ok but:

I don't understand this:

#39: "formatted the user data partition by going to wipe menu and pressing the format button."

should i do oem unlock again, wipe all data, reflash the build?

confused, every help is welcome
[Nexus 9 General] jaxbierley:
Thank you, up and rooted now!
[Nexus 9 General] sejmand:
what means "kills user data"? Is this a internal reset?
[Nexus 9 General] GedBlake:
Hi, b1g.p0ppa...

Thanks, yes - I did try that. Sadly, it didn't work :(.

And also the new bootloader is identical (ie, the checksums) to the 3rd Developer Preview bootloader of 'M', and which was already installed on my N9... I still flashed the new version though... optimistically :).

I even tried flashing Marshmallow the way it 'should' be flashed... via the flash-all script... and which nobody bothers with anymore.

But no matter which method I use to attempt to flash it, it **ALWAYS** fails with system.img.

----

It's somewhat ironic (and bloody damned annoying) that I never had any problems flashing the previous Developer Preview builds of 'M'...

...but I find I cannot flash the the official production version...!!! :(.

----

And so... Thanks to my recent TWRP Nandroid backup successfully restored, I'm back on the final Developer Preview version of Marshmallow...

...and which is kind of disappointing. :(.

Rgrds,

Ged.
[Nexus 9 General] b1g.p0ppa:
That certainly is disappointing. I wish I had more to offer but I was merely regurgitating what I had read in http://xdaforums.com/showpost.php?p=63147165&postcount=9.

When I flashed I followed [MENTION=4560774]sejmand[/MENTION]'s instructions in http://xdaforums.com/showpost.php?p=63147284&postcount=14 . The new bootloader (I had never been on any M previews) sent 'sparse' sections of system.img in like 6 or 7 chunks. I don't know for sure, but it 'felt' to me that system.img was bigger maybe than the bootloader's memory or cache and so it was sending and writing parts of the whole partition in sections. So it seemed to me like your bootloader wasn't doing that.

---------- Post added at 09:53 PM ---------- Previous post was at 09:48 PM ----------

In TWRP, under Wipe, Advanced Wipe, select Data the click FS OPTIONS, click CHANGE FS and then whichever filesystem type you want your /data partition to be. EXT4 is default but I *believe* the elementalx kernel also supports F2FS (I personally use Fire-Ice kernel and it do so I use F2FS). This formats your /data partitition, thereby creating a new, UNencrypted filesystem, but also wiping out everything you had in /sdcard as well.
[Nexus 9 General] cescman:
tried flashing the stock image using fastboot command including the original bootloader, boot, recovery, system, vendor, cache, and the device reboots normally into system in about 3 minutes

then tried flashing the modified boot.img, twrp, and supersu, the device fails to boot after waiting for 15 minutes, I assume it failed.

then just now I tried flashing stock images without root using wugfresh toolkit, again the device boots normally in about 2-3 minutes

but after I used the root function in wugfresh toolkit, it fails to boot into system again

any idea? what should be the correct steps? thanks

while booting, it also shows "the device is corrupt" warning whether it can boot normally or not. Could this be the cause?
[Nexus 9 General] _litz:
The only thing I've found that works is flashing the no-encrypt boot, then fastboot booting (or flashing) twrp, and installing this :

http://xdaforums.com/nexus-9/orig-development/kernel-fire-ice-t2930451

It doesn't appear there is (yet) any way to get root via normal chainfire methods on the MM kernel.
[Nexus 9 General] cescman:
Thanks _litz

These are the steps I used for windows 10

boot into bootloader mode

open command prompt

fastboot flash bootloader bootloader-founder-3.48.0.0135.img

fastboot reboot-bootloader

fastboot -w

fastboot flash boot boot.img (modified boot image in this thread)

fastboot flash recovery recovery.img

fastboot flash system system.img

fastboot flash vendor vendor.img

fastboot flash cache cache.img

fastboot reboot

the device should reboot normally unencrypted, then enable developer options and USB debugging

put the AOSPM K9.7.5 .zip from the above post into /sdcard

adb reboot bootloader

fastboot flash recovery twrp-2.8.7.0-flounder.img

boot into twrp recovery from fastboot menu

click install->AOSPM K9.7.5.zip->swipe to flash

reboot system

get prompt from twrp to install supersu, swipe to install

when the device boots up, click the supersu installer and follow instructions

done!
[Nexus 9 General] sejmand:
[MENTION=5528455]cescman[/MENTION]

not shure:

with post ist the boot.img "fastboot flash boot boot.img (modified boot image in this thread)"

and where I can find "AOSPM K9.7.5.zip"

UPDATE:

I got the password "problem" because I use the encrypted boot (stock)

flashing an no-encrypt boot would solve the Password prompt

ist "AOSPM K9.7.5.zip" the Kernel?

UPDTAE2:

AOSPM K9.7.5.zip is the beta version of: [Kernel] [10/6] FIRE-ICE [K9]
[Nexus 9 General] xfullmetal17:
Random question... Why put the stuff on /sdcard? Wouldn't it be easier just to use adb sideload with TWRP?
[Nexus 9 General] sejmand:
@ xfullmetal17:

I did i via usb-mount. no problems to flash kernel and supersu
[Nexus 9 General] cescman:
sure, just put the file into the device whatever way you like

---------- Post added at 14:10 ---------- Previous post was at 14:06 ----------

AOSPM K9.7.5.zip as in post 67

modified boot as in post 23 and 24
[Nexus 9 General] sejmand:
did as you wrote in #72

used BETA-SuperSU-v2.49.zip

booting was very long, still ongoing (the coloured MM....)

update: no booting (had to go to work.... back in 6 hours... )
[Nexus 9 General] GedBlake:
Hi, b1g.p0ppa...

Just a bit of an update... all's well that ends well :).

It seems I was using an old version of fastboot... and that was the reason why 'system.img' was refusing to flash.

Anyhow, I found this version of fastboot/adb...

http://xdaforums.com/htc-one/general/tool-updated-adb-version-1-0-32-fastboot-t2932160

I actually already had this (still zipped) on my Windows desktop staring me in the face all the time I was struggling with my usual version of fastboot! I must have downloaded it at some point, and then promptly forgot all about it...

Anyway, it worked! :good:

'System.img' flashed, albeit via the usual method of it splitting into 5 or 6 'chunks' and sending them as 'sparse system'.

----

So, I'm up and running with the production release of Marshmallow, unencrypted and rooted... and so far, no problems. :cool:

Now I think it's time I got some sleep; been at this for hours.

Rgrds,

Ged.
[Nexus 9 General] xfullmetal17:
Apparently Chainfire's posted a tentative root method, for those that want to keep Enforcing SELinux.

http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344

Seems to be working well so far for everything I've thrown at it.
[Nexus 9 General] SuperDaveMaine:
I was able to get upgraded to Marshmallow with root and adaway like this:

- Factory reset

- Used a Windows 7 machine with the latest Android SDK files.

- Started on LMY47X and upgraded to each image up to Marshmallow using the flash-all.bat script: LMY48I --> LMY48M --> LMY48T --> MRA58K

- Then followed the instructions from http://click.xda-developers.com/api/click?format=go&jsonp=vglnk_14442378512359&key=f0a7f91912ae2b52e0700f73990eb321&libId=ifh1xarl01000n4o000DApwofmzmd&loc=http%3A%2F%2Fxdaforums.com%2Fnexus-9%2Fgeneral%2Fmarshmallow-factory-images-available-t3218290%2Fpage4&v=1&out=http%3A%2F%2Fwww.teamandroid.com%2F2015%2F10%2F06%2Froot-nexus-9-android-60-marshmallow-mra58k-install-twrp-recovery%2F2%2F&ref=http%3A%2F%2Fxdaforums.com%2Fnexus-9%2Fgeneral%2Fmarshmallow-factory-images-available-t3218290%2Fpage5&title=Marshmallow%20factory%20images%20are%20available.%20-%20Pg.%204%20%7C%20Nexus%209%20%7C%20XDA%20Forums&txt=http%3A%2F%2Fwww.teamandroid.com%2F2015%2F10%2F0...rp-recovery%2F2%2F

I found I couldn't see the .zip files (ElementalX kernel and SuperSU) on /sdcard from TWRP. So I copied those 2 .zip files to a flash drive and used an OTG cable to connect the flash drive to the Nexus. In TWRP, I installed the two .zip files from the USB device (AKA the flash drive).

At this point, root checker worked, but adaway would not. So I flashed this kernel (AOSPM K9.7.5 .zip) http://xdaforums.com/nexus-9/orig-development/kernel-fire-ice-t2930451

I found I didn't need to flash the custom TWRP the thread suggested.

After flashing this kernel, root worked and so did adaway.
[Nexus 9 General] Ironhorseman1111:
Load the marshmallow rom then replace the system image with the one from the google 6 download and it works great!
[Nexus 9 General] sejmand:
I tested this and is DOESN'T work. stuck in an "android-colour" bootloop. twrp is still asking for a password...
[Nexus 9 General] bumbum0190:
I flashed MRA58K on my Nexus 9 32GB WiFi by using fastboot flash commands for bootloader, boot, recovery, system and vendor and cache. After flashing I only have 11GB of internal storage. I know this problem from a Nexus 5 and 6 and there a factory reset helped. I also tried this method on the Nexus 9 but here it does not help. Any suggestions?
[Nexus 9 General] madbat99:
In twrp, press cancel and then format data. It DOES work.
[Nexus 9 General] Litoven:
Has anyone been able to enable system ui tuner?
[Nexus 9 General] bjacks12:
Yes. pull down the notification shade, long press the settings icon and release it. It should take you to Settings and display a little message that says "You've enabled UI Tuner"
[Nexus 9 General] Litoven:
That is what I expected but nothing, the gear does nothing (not rotate like in the preview) and gets you nowhere. No idea what's going on.
[Nexus 9 General] jaxbierley:
Since flashing 6.0 my front camera seems to no longer work. Skype won't pick it up and even in the camera there is no option to switch view.

I also rooted and can't get any ad blockers to work.
[Nexus 9 General] corkiejp:
Which root method did you use?

The early method of flashing a kernel, does not root properly, Adblockers such as "AdFree" can not write host file!

Use this method to root instead
[Nexus 9 General] madsquabbles:
i'm trying to get as pissed as you, but every time i do i remind myself that my n9 is now a car front end. so web refresh and memory leaks aren't really affecting me since it's limited to just one thing at a time now. don't know how it'll handle using torque and music at the same time though.
[Nexus 9 General] CatThief:
After many exhausting unsuccessful attempts at rooting Marshmallow, and finally giving up and accepting a non-rooted tablet, while suddenly receiving the infamous "Device is corrupt" message on boot (and all I did was boot TWRP, not flash), and nothing short of a userdata wipe would cure it, and after the tablet started running sluggishly, I decided to go back to Lollipop. I love Lollipop, and now I have my snappy rooted tablet back with all of the adblock and firewall perks that go with it.

Seriously, if it wasn't for the sluggishness in Marshmallow I would still be jumping through hoops to get this thing successfully rooted. I wish you all the best of luck with this.
[Nexus 9 General] sejmand:
Sad! I had a little struggle with MM, but now: great performance, better than loli and mutch faster. hope you will try it sometime again or wait untill there is a more "esay" way to root the n9. something like a script...
[Nexus 9 General] cescman:
I had this problem too. Tried a lot of things and still got 11gb storage. This is what I finally do:

Try fastboot -w, and flash the original images and reboot into system first, confirm you have 26gb storage, before you flash a modified boot or custom recovery or root
[Nexus 9 General] CatThief:
OK, you got me, I tried again. I followed Chainfire's instructions -- flashed his modified kernel and sideloaded the latest beta SuperSU from a booted (not flashed) TWRP. I must admit it threw me when TWRP asked for that password again, but I canceled it, swiped to allow system modifications, selected sideload from the menu and held my breath. It worked!

So far so good, and no annoying error messages when I boot. Performance in general is good so far. Now I'm off to give thanks to Chainfire.......
[Nexus 9 General] lilliput222:
is it safe to use Wug's root toolkit to flash factory image of Android 6.0 Im on rooted unlocked bootloader and custom rom and kernel installed . can i just simply make backup of my apps and data and then flash with Option enabled " No force Encrypt "
[Nexus 9 General] ProfLonghair:
your fastboot is out of date. I got the the same problem and had to update before it would work. Odd, because only system.img failed to flash, the rest was fine.

---------- Post added at 02:33 PM ---------- Previous post was at 02:14 PM ----------

your fastboot is out of date. I got the the same problem and had to update before it would work. Odd, because only system.img failed to flash, the rest was fine.
[Nexus 9 General] TheMuffnMan:
Anyone use CF-Auto-Root after doing the fastboot flash method?