yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] D3VI0US:
Google just released the M preview for the Nexus 6 and I see some guys having some issues with flashing the preview, So what I did is just modify on the kernel not to encrypt the device during the first boot

and here is the simplest way to flash the preview

1-Download the preview factory image http://developer.android.com/preview/download.html

2-download this modified version of the stock M boot img https://goo.gl/SFWpMO

3-unpack the M preview .tgz file in your fastboot/adb folder and you will get the radio file and the bootloader file and the image-shamu-MPZ44Q.zip file

4-go to TWRP backup your ROM then wipe cache/dalvic/data/system ( watch out don't wipe the internal storage)

5-boot into bootloader and flash the bootloader : fastboot flash bootloader bootloader-shamu-moto-apq8084-71.11.img

6-fastboot reboot-bootloader

7-flash the radio file : fastboot flash radio radio-shamu-D4.01-9625-05.16+FSG-9625-02.94.img

8-fastboot reboot-bootloader

9-Unpack the image-shamu-MPZ44Q.zip file

10-you need just system.img from this file

11-flash the system : fastboot flash system system.img

12-flash the modified boot img that you downloaded in step 2 : fastboot flash boot boot-noencryption.img/B]

13-fastboot reboot

You also use NRT for flashing the M Preview if you prefer but flash the noencrption boot img instead of the stock img in order to avoid encrypting your device

It won't take time to boot but it's really important to wipe from twrp before flashing and as always try this on your own risk
[Nexus 6 Android Development] xterra91:
Can't wait to flash thanks!!
[Nexus 6 Android Development] kenbrownstone:
Can we use wugs toolkit to flash this stuff?
[Nexus 6 Android Development] D3VI0US:
I don't know you can try
[Nexus 6 Android Development] rsohne:
Thanks, worked great!
[Nexus 6 Android Development] henrybravo:
First impressions of M? Looks and feels just like Lollipop?
[Nexus 6 Android Development] BossJ:
wrong topic :/ Thought this was Wug's Topic.
[Nexus 6 Android Development] rester555:
Anyone who is going to brave flashing the new radio with a Verizon Nexus 6, let me know how it is
[Nexus 6 Android Development] kenpen:
Wug stated how you van use his toolkit to android M
[Nexus 6 Android Development] ANDR01DN00B:
What exactly do we wipe in twrp? Just data and system?

Thanks in advance.
[Nexus 6 Android Development] xqz:
It's in OP..

Everything but internal data
[Nexus 6 Android Development] paztine:
yes..

yes you can..I am just lazy to do it old school so I used NRT easiest way..
[Nexus 6 Android Development] tucstwo:
What is the modified boot.img? Why is it modified?
[Nexus 6 Android Development] antiochasylum:
Did you even read anything at all?

He has modified so it does not force encrypt for those who have unencrypted internal SD cards.
[Nexus 6 Android Development] tucstwo:
I missed it. No need to be nasty.
[Nexus 6 Android Development] fitz420:
To prevent forced encryption
[Nexus 6 Android Development] antiochasylum:
How can you take tone in a text? Was it all caps? Did I call you a name?

It was simply a question. Nothing more, nothing less.

And then I explained it for you.

Not sure where the nasty part was.
[Nexus 6 Android Development] kingskidd268:
Will I lose root?
[Nexus 6 Android Development] bonbon363:
Good guide, Flashed w/o ANY problem. Thanks a bunch
[Nexus 6 Android Development] stevew84:
Why do I keep getting hung up at "writing system"

keeps saying sending sparse system but then cannot complete the flashing of the system.img...not sure why.
[Nexus 6 Android Development] tucstwo:
Not since the 1st grade was I ever asked anything close to the question "did you even read anything at all?"

Of course I read it, if I hadn't, why would I ask about the modified boot image?

I missed the part about encryption. I'm very sorry if that offended you. Thanks for letting me know what the modified boot image does.
[Nexus 6 Android Development] ANDR01DN00B:
Hey so is there a way to disable Selinux? I'm asking because that because I read that SuperSU won't work with it enabled.

Thanks.
[Nexus 6 Android Development] D3VI0US:
the guys that asking about SuperSU .. chainfire has to update the root method I guess because this is one of the times when Android breaks root again but TWRP should works fine on Android M Preview
[Nexus 6 Android Development] sn0warmy:
Not to make you feel like you are being ganged up on, but the OP did answer your question in the very first sentence of the initial post in this thread. Had you taken the time to read the very first sentence after entering the thread, you would have had your answer.

I don't want to sound like an ass but this forum is completely SWAMPED with people who can't seem to be bothered by reading a single OP thoroughly. I'd argue that if everyone on this forum took an additional 10-20 seconds to properly read/comprehend a thread's initial post, over 75% of the posts on this entire forum wouldn't exist.
[Nexus 6 Android Development] beachbum40:
You can use NRT

---------- Post added at 12:36 AM ---------- Previous post was at 12:36 AM ----------

Delete
[Nexus 6 Android Development] D3VI0US:
Wug Fresh confirmed on Google+ that you can use Nexus Root Toolkit to flash Android M but follow the OP in order to avoid encrypting your device or wiping the internal memory
[Nexus 6 Android Development] davanw:
If I am encryped, and don't plan on changing that, do I still need the modified boot img? Or can I skip that step?
[Nexus 6 Android Development] drawde40599:
To keep unencrypted yes
[Nexus 6 Android Development] D3VI0US:
You don't need the modified kernel if you're encrypted already
[Nexus 6 Android Development] iStayHigh:
thank you [MENTION=4346251]D3VI0US[/MENTION] for these simple steps,followed them and everything went great
[Nexus 6 Android Development] iStayHigh:
Yes I can confirm that Wug Fresh NRT works great for flashing M and yes just follow the simple steps in the OP and everything will be fine.

Sent from my Nexus 6
[Nexus 6 Android Development] darren.wlsn1:
im sorry but never flashed other than using twrp but in op it says "unpack the M preview .tgz file in your fastboot/adb folder" i dont have that folder on phone or pc so im little confused. again sorry for nobbness
[Nexus 6 Android Development] iStayHigh:
I just pm'd you

Sent from my Nexus 6
[Nexus 6 Android Development] bill3508:
Great thread and super easy to get this running. Thanks.
[Nexus 6 Android Development] darren.wlsn1:
i answered but guess you bailed
[Nexus 6 Android Development] iStayHigh:
Sorry fam was hitting the bowl and you know how that goes but I answered you backed ?

Sent from my Nexus 6
[Nexus 6 Android Development] Zer0_Cool:
I'm using the new radio and can confirm it works on Verizon.
[Nexus 6 Android Development] darren.wlsn1:
i figured it out i think but "fastboot reboot" didnt work so i just rebooted from bootloader. does first boot take long, mine seems to be taking awhile? looks like im stuck but since im still on "spinning balls" screen
[Nexus 6 Android Development] bill3508:
How is your signal and speeds compared to 98r?
[Nexus 6 Android Development] iStayHigh:
Reboot in BL and flash the boot IMG then the phone should boot up and it did take long to boot after that

Sent from my Nexus 6
[Nexus 6 Android Development] darren.wlsn1:
im encrypted so just the regular boot img?

btw im just doing all steps again now so im sure i did it all correct
[Nexus 6 Android Development] Zer0_Cool:
Can't really say, haven't done too much extensive testing since I've mostly been on wifi, but it seems about the same. 98r was the radio I was running prior to this as well.
[Nexus 6 Android Development] iStayHigh:
Yes

Sent from my Nexus 6
[Nexus 6 Android Development] darren.wlsn1:
still spinning balls but i herd pc pick up phone but still nothing:(

wait i didnt see "boot image" in op? so i did "fastboot flash boot boot.img" and pc is loading drivers and looks like its gonna boot, tyvm for your help, cold you pm me a email address i would like to send a product i test, i have lots of stuff i need to get rid of?
[Nexus 6 Android Development] SilentO:
What version?
[Nexus 6 Android Development] Zer0_Cool:
There's only one radio image that comes with the M preview and it's universal.

MDM9625_104651.11.05.16R
[Nexus 6 Android Development] jayfallen:
one quick way to do it is to replace the boot.img with this non-encrypted one of the flashable zip pack, then TWRP flash it, factory reset and then reboot, done!

I did it with jdx's M rom
[Nexus 6 Android Development] steelmm:
cant install system.img flashing manually did not work

Hey Guys Cant install system.img with fastboot comes up with --- load file could not allocate 1979559444 bytes error cannot load system,img---

any ideas

thanks
[Nexus 6 Android Development] chuckiler:
I fixed this issue by flashing the system.IMG separately after unzipping the zip file. Alternately mflashboot also worked for me.
[Nexus 6 Android Development] steelmm:
Thanks I will Try this out
[Nexus 6 Android Development] steelmm:
solution

unzip image zip -shamu mpz44q from that folder unzipped command line prompt fastboot flash system system.img -------------------------- wow it works dont merge data from that folder to main fastboot directory or a directory you have fastboot drivers installed too

closed

:D
[Nexus 6 Android Development] darren.wlsn1:
how do we get back to twrp to restore backup, i was able to get there but now i get android guy with red box?
[Nexus 6 Android Development] jay661972:
Great guide. Im staying stock for now..
[Nexus 6 Android Development] iStayHigh:
I think I read on one of the other M topics about doing it through fastboot. I'll stay on stock recovery for now, at least until SuperSU is fix

Sent from my Nexus 6
[Nexus 6 Android Development] D3VI0US:
why did you flash the stock recovery ... you can flash back twrp using fastboot flash recovery thenameoftwrp.img in bootloader interface
[Nexus 6 Android Development] darren.wlsn1:
i didnt

not sure how to do what you posted though, i used the command and renamed twrp.img but i get "cannot load twrp.img"
[Nexus 6 Android Development] D3VI0US:
download twrp from here https://dl.twrp.me/shamu/twrp-2.8.6.0-shamu.img.html amd then put the img file you downloaded it in the folder where your adb/fastboot files are

after that boot into bootloader interface and use the command Fastboot flash recovery twrp-2.8.6.0-shamu.img
[Nexus 6 Android Development] darren.wlsn1:
ty, ya i got it i just had twrp img in wrong folder:silly:
[Nexus 6 Android Development] sgloki77:
can anyone post a link for the modified boot image, so I can download directly and not to be forced to download an annoying app from the playstore, maybe can be fixed on the op?
[Nexus 6 Android Development] gee2012:
Flashed the preview manualy and kept the 47Z (71.10) bootloader and no issues here ;)
[Nexus 6 Android Development] motempo:
Anyone else have issues with WiFi keeps flickering, saying "null", then "connected" back and forth?
[Nexus 6 Android Development] benwalburn:
I got an error flashing system.img.

load_file: coudl not allocate (long string of) bytes

error: cannot load '(path to image)'

above solution did not work.
[Nexus 6 Android Development] GuyInDogSuit:
"Device has failed verification and may not work properly."

WTF?!

EDIT: OK, nevermind, I got the Welcome screen, unlike from the other thread's instructions.

Looks like it works! Thanks!

EDIT 2:

All I have to say is... DO NOT ATTEMPT TO ROOT/FLASH SUPERSU.

It won't boot. You'll just get a black screen.

EDIT 3:

If you flash DespairKernel M 2.4, SuperSU will work. But in my experience, I'm getting a lot of screen tears.
[Nexus 6 Android Development] bill3508:
I'm just waiting for Chainfire to do his thing. This runs so well as it is its not a big deal.
[Nexus 6 Android Development] ceo4eva:
Hi can you be a little clearer in what you did?

I ran into this same error.

Thanks
[Nexus 6 Android Development] shogzilla:
I'm getting this on system flash:

shoggot@Luriel:~/n6m$ fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
shoggot@Luriel:~/n6m$ ls
bootloader-shamu-moto-apq8084-71.11.img
boot-noencryption.img
image-shamu-MPZ44Q.zip
radio-shamu-D4.01-9625-05.16+FSG-9625-02.94.img
system.img
shoggot@Luriel:~/n6m$ fastboot flash system ./system.img
sending 'system' (1933163 KB)...
(bootloader) Data size exceeds download buffer
FAILED (remote failure)
finished. total time: 0.016s
shoggot@Luriel:~/n6m$

Any solutions?

Trying this:

shoggot@Luriel:~/n6m$ zip n6mpre.zip system.img
adding: system.img (deflated 52%)
shoggot@Luriel:~/n6m$ fastboot flash system ./n6mpre.zip
sending 'system' (921733 KB)...
(bootloader) Data size exceeds download buffer
FAILED (remote failure)
finished. total time: 0.003s
shoggot@Luriel:~/n6m$

Fail.

shoggot@Luriel:~/n6m$ fastboot -w update ./n6mpre.zip
archive does not contain 'android-info.txt'
archive does not contain 'android-product.txt'
error: update package has no android-info.txt or android-product.txt
shoggot@Luriel:~/n6m$ zip n6mpre.zip android-info.txt
adding: android-info.txt (deflated 20%)
shoggot@Luriel:~/n6m$ fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.004s
shoggot@Luriel:~/n6m$ fastboot -w update ./n6mpre.zip
archive does not contain 'boot.img'
error: update package missing boot.img
shoggot@Luriel:~/n6m$

Well, damn.

edit: i may be using an outdated fastboot; grabbing latest sdk to get latest fastboot.

Yep, that was it:

shoggot@Luriel:~/n6m$ fastboot flash system ./system.img
target reported max download size of 536870912 bytes
sending sparse 'system' (517183 KB)...
OKAY [ 25.162s]
writing 'system'...
OKAY [ 7.927s]
sending sparse 'system' (523718 KB)...
OKAY [ 25.319s]
writing 'system'...
OKAY [ 7.150s]
sending sparse 'system' (522246 KB)...
OKAY [ 24.194s]
writing 'system'...
OKAY [ 8.226s]
sending sparse 'system' (370015 KB)...
OKAY [ 17.800s]
writing 'system'...
OKAY [ 7.017s]
finished. total time: 122.794s
shoggot@Luriel:~/n6m$
[Nexus 6 Android Development] steelmm:
hi there

1 -Download the Fastboot Drivers unzip to- Fastboot Drivers Folder - unzip the preview image for android m within that folder Fastboot Drivers Folder and the image zip unzip the other modded img to fastbootdrivers folder when unzipping the -shamu mpz44 this includes the sytem.img dont move this to the fastboot folder keep it int the folder it unzipped too.

2 --eg.----Unzip the image file to the same folder shamu mpz44 as named dont move the system.img file out of that folder open cmd command prompt to that folder only after manually flashing the other modules as described at the beginning of the thread. --- this will now work
[Nexus 6 Android Development] nextelbuddy:
I did this however i must have had way too many unsupported apps because I seem to get stuck in a what feels like an endless "such and such app has stopped responding". all the way from amazon apps to other root apps. I just performed a factory reset since all my images and video are backed up in google photos already anyways and restored my apps.

everything seems to be working fine for now.
[Nexus 6 Android Development] marleyfan61:
Sorry if this is a dumb question, but I haven't done any flashing for quite some time. I am currently totally stock, not rooted on 5.1.1 Can I flash the Android M without being rooted and with stock recovery? If so, can you please point me to the steps. Sorry just can't remember if you have to be rooted to use adb. Thanks.
[Nexus 6 Android Development] GuyInDogSuit:
Simple. Follow the instructions in the first post. Then, after formatting cache, instead of rebooting into system, extract the recovery.img from the zip you took the system.img from, and flash it using the command "fastboot flash recovery recovery.img" without the quotation marks, of course. Then use the volume down key on the phone and press power when you see "Recovery mode." You should see the Android with the open panel. Press and hold the Power button, then press the Volume Up button once. The menu should appear. Now select the factory reset option, and reboot when finished. This last step eliminates the "Device failed verification" screen others have reported seeing upon boot. Enjoy!
[Nexus 6 Android Development] Nismo6921:
I'm using the M Preview with the new radios on my Verizon Nexus 6 and not having any problems with call quality so far.
[Nexus 6 Android Development] gunigugu:
So I flashed to Android M, thinking hardware encryption support would be enabled... it isn't :'(

Is there a way I can decrypt without erasing all?
[Nexus 6 Android Development] punti_z:
Any reviews on how dirty flash is working on the nexus 5. Im planning to do it but ive read that it can lead to app crashes and general system instability. I dont wanna wipe my phone and setup 170+ apps again. Also on a side note anyone having issues with android wear on M preveiw. Heard its not working properly.

Thanks .
[Nexus 6 Android Development] GuyInDogSuit:
Wrong thread.
[Nexus 6 Android Development] kingskidd268:
Deleted.
[Nexus 6 Android Development] natemup:
I discovered my build.prop edit never took. I also cannot get it to take, in any file managing app (Cabinet, Root Explorer, ES, Amaze, Build.Prop Editor, etc). Either the edit fails or it says it took and it erases it after I exit the file. Is this a known issue?
[Nexus 6 Android Development] ethan.r.besbris:
Did you make the system r/w with the modified boot img?
[Nexus 6 Android Development] Locoman_:
I felt the same thing. I ran the jdx rom and didn't see much improvement over L. It is just a preview so maybe it will shine over time. Either way I love all the development the Nexus 6 gets!

.
[Nexus 6 Android Development] kronikings:
L doesn't have doze mode though! To me it's worth it for that alone
[Nexus 6 Android Development] yeticomes:
I've followed the Tutorial to flash Android M without data wipe, but after the reboot, the Phone asked me to restore all Apps & data from the lates Google Online Backup?!

As I have to do this now I wanted to ask if I then should flash the whole Android M instead of the listed images from this thread or is there nothing important missing?

Thanx for any support!
[Nexus 6 Android Development] natemup:
The whet?
[Nexus 6 Android Development] kronikings:
Doze mode: http://www.androidpolice.com/2015/0...d-low-power-operating-time-by-as-much-as-100/
[Nexus 6 Android Development] kronikings:
Anyone have any idea why I can't change my default launcher from Google Now Launcher to NOVA? It doesn't ask me or let me manually do it in the apps....

Nevermind, I was able to do it within nova settings....
[Nexus 6 Android Development] yellowman82:
How do one activate doze mode?
[Nexus 6 Android Development] kronikings:
You don't activate it, it's coded into Android M....
[Nexus 6 Android Development] yellowman82:
Oh OK thanks
[Nexus 6 Android Development] gunigugu:
If I'm already on android m, is it possible to flash the no encrypt boot image to remove encryption?
[Nexus 6 Android Development] kronikings:
I was in the same boat and I had to format data and start over, i don't think you have any options other than that. The boot image keeps you from encrypting, it doesn't decrypt...
[Nexus 6 Android Development] gunigugu:
:'(

Also what impact will that have on future updates? At google IO google talked about releasing updates on a regular basis for the n6. I wonder if the next update will have hardware encryption support....
[Nexus 6 Android Development] nikhilbundile:
I'm unable to download modified boot image from mega. Can anyone provide a mirror and md5?
[P3300, MDA Compact III  upgrading etc.] baudy2:
Hi all !

I have a CID-unlocked Artemis.

Tried to flash O2 English WM6 ROM today.

Now i'm stucked on boot screen.

Is it possible to perform a reflash via BootLoader ?

SD method did not work. I copied the ARTEIMG.NBH file to SD, but bootloader does not see it.

Anybody can help ?
[P3300, MDA Compact III  upgrading etc.] crushuk:
Try this link this may help you

http://xdaforums.com/showthread.php?t=311447&highlight=MTTy

If you are sure that the phone is CID unlocked, you should be able to download any rom's from any of the network operators and reload it from the bootloader. then you can try to upgrade WM6 again
[P3300, MDA Compact III  upgrading etc.] Pocha:
In order to SD Flashing your SD card must be formated at FAT32
[P3300, MDA Compact III  upgrading etc.] baudy2:
I'm really a stupid one ! Thanx ! I've tried with FAT16....
[Android General] DarkNeptune0:
The android M preview default wallpaper 2489x2048
[Samsung Galaxy Ace 3] TheGuyAtTheBack:
I had CWM, SuperSU and cymogenmod 12.1 .. I charged my phone one night and when i turned on the phone it went directly to recovery mode but it was basic recovery. cymogen recovery with "no command" wrote in the background.. I wiped what i could from the recovery mode and tried to reinstall from my sd card my stock ROM with no luck, so wiped again and tried to install cm 12.1 and the GApps to go with it and no luck again. It can still go into download mode but the usb isn't working and it wont charge either.. Attached is the recovery mode im stuck on.. And help would be great :confused: Sorry about quality of picture.
[Samsung Galaxy Ace 3] TheGuyAtTheBack:
Anyone?

I have Already ordered a new phone but this is still bothering me. Does anyone know a fix?
[Galaxy Note 3 General] don-juan:
Hi folks,

I am thinking of upgrading to Lollipop to profit from the new camera-controls. From what I read, there is an app called "Manual Camera" (not allowed to post external links, hmpf) which makes use of Lollipop's Camera2 API to gain more control over camera settings like shutter-speed, aperture etc. This attracts me a lot, since I am quite a photo-geek.

BUT BUT BUT: everything runs super-smooth with my rooted stock 4.4.2 system on my N9005 right now (see specs below), and it is my one and only phone in everyday use. So, I am really not sure if I should throw the L-word to it?!? :mad: ...I was already about to do it, made all the neccessary backups, but then started to brood.

After all: it seems not so clear if there will be a way to root it again afterwards?! Anyone knows anything about the issue? After a lot of searching I downloaded a 6.48.4 PhilZTouch Recovery, that is said to be compatible with Lollipop. Even if that was true, havn´t found a rooted kernel yet...

Not to talk about the re-configuration-struggle...

So, I would love to hear your opinions, in order to somehow make some progress with this decision...

Thank you so much!

PS: It seems I won´t get any update via Samsung servers because of the rooting... possible?

My Phone:

SM-N9005, hlte, CSC: BTU (orig. & act.)

PDA: N9005XXUGNG1

CSC: N9005OXAGNJ3
[Galaxy Note 3 General] ShadowLea:
I'm quite curious how an app would be able to change a hardware-fixed aperture... ;)

Plenty of camera apps that allow manual settings, as much as the hardware permits. Personally I quite like ProCapture and Camera FV-5. Though I find I generally reach for my DSLR when I intend to take a decent photo, rather than my Note 3.