yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Shouldn't get "unlock before flashing" message with a format.
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
Doing that makes TWRP go in a boot loop and the rom not bootable. I had to erase cache and userdata to get TWRP to boot. Still no successful boot.

---------- Post added at 06:29 PM ---------- Previous post was at 06:29 PM ----------

I honestly don't know how to work off of that. Do you have any ideas?
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Not really, right now.
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
If you think of anything please let me know. Thank you very much
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Try flashing this zip in TWRP, reboot directly to bootloader, then fastboot oem unlock. Then you should be able to format, flash factory images, etc. I'd suggest fastboot formatting system, cache and data, then flashing system.img and boot.img from the most recent factory image for your N6 carrier.

Seems like the case-in-point I was suggesting before, I think. Fingers crossed.

[ Attachment removed ]
[Nexus 6 Q&A, Help & Troubleshooting] :
Also fingers crossed! :)
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
YOU ARE MY SAVIOR SIR. Bootloader unlocked. I can't express how thankful I am. I was actually arranging an RMA right before this.

Let me just ask you one thing (this is most likely going to be embarrassing)... with the file posted in the OP... was that meant to unlock the bootloader or just meant to 'tick' Enable OEM Unlock? If so, It was already ticked and the output from your .zip showed me that...
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
Will this .zip work on a Nexus 9 in the same state?
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
It does the same as my zip but in a less safe (device specific hashes on the N6!), "whole hog" way. [MENTION=3029555]playahate[/MENTION] had the idea that it could be done more surgically and obtained the dumps for me to compare and determine exactly what to write, and where, to make it work. I did and here we are. So glad it works! :cowboy:

Yes it should, please test it out. I'd love to get direct confirmation on both before posting it in my Odds and Ends thread. :)
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
[MENTION=4544860]osm0sis[/MENTION] uhhh one other thing...

D:\adb>fastboot format system
Formatting is not supported for filesystem with type 'raw'.

any idea how to format?
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
There's a guy on the Nexus 9 forum I'm trying to help. I'll point him here.

I don't need to test it on my N9 (thank God!) ;)
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
That must be why it doesn't boot.. I imagine encryption might be seen as raw? Try fastboot erase system or just directly flash the system.img and see if fastboot can handle it that way.
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
Tried fastboot erase system, erases it fine. Tried flashing system.img exclusively, and got this:

D:\adb>fastboot flash image system.img
target reported max download size of 536870912 bytes
sending sparse 'image' (523955 KB)...
OKAY [ 17.108s]
writing 'image'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 17.123s
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Interesting. Encryption or hashing getting in the way are still my best guess... Boot back to TWRP and try to format system f2fs then back to ext4.
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
Not trying to be a complete noob here. But uh, how would I format system f2fs in TWRP?

Edit: In my version of TWRP, f2fs formatting does not exist. But I did get system, cache, and data to mount by formatting them to exFAT and back to ext4. After that, I tried flashing the system.img in fastboot, still recognizes /system as raw. Don't know what to do from here.
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Since TWRP has successfully formatted it try flashing a stock ROM zip. After that I am unfortunately also out of ideas. :(
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
That is actually alright. Zips flash in TWRP perfectly now! Got the latest T-Mobile build stock rooted from from Nocturnal, flashed it, runs perfectly :D Thank you for helping me out today. I most likely would've sent this phone back and paid 175 dollars if it weren't for you.
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Sounded like it initially but it was a twrp fix in the end. but nearly :)
[Nexus 6 Q&A, Help & Troubleshooting] Verttex:
I'll go ahead the post the link to the other thread here instead of explaining my situation again:http://xdaforums.com/nexus-9/help/device-locked-flash-bootloader-t3121006/post61040775

Basically, screen isn't working after running 3rd command. I didn't flash the zip since it either wasn't available when I was here last or I just didn't see it. I might have run the command with the n6 one instead of the n9 one since it was hard to distinguish between them.

Screen doesnt work, bootloader locked, TWRP recovery.
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
[MENTION=4544860]osm0sis[/MENTION],

Can you help this fellow? He has a Nexus 9, TWRP installed, same state as the N6 we discussed yesterday.
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
Maaaan. Its all my fault. The information in the end of the post, i thought ppl will read it. And i didn't mention in the beginning, that the files are for nexus 6.

The key line is the last in first post.

I'll add the information instantly.

So keep calm, we will fix it.

If you made everithing as in first post, so you flashed the wrong partition.

mmcblkp18 on Nexus 9 is Manufacturing Data.

All we need is Working Nexus 9 to perform

When we get the file you will push and flash it with

adb push c:\android\mmcblkp18.img /sdcard/mmcblkp18.img
adb shell dd if=/sdcard/mmcblkp18.img of=/dev/block/mmcblk0p18
[Nexus 6 Q&A, Help & Troubleshooting] Verttex:
Na, 100% my fault. I thought that the 4 files that were attached to the post where both n6 and n9 instead of just n6.

I don't have my N9 with me right now but I'll try this right when I get home. But I'll need to get into TWRP to be able to use adb right? So I need to get into the bootloader, use the volume key to 'scroll' down to recovery and then into twrp, all while the screen is off?
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
yap.

i'll try to get the files in russian forum...
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
Do you need someone with a working Nexus 9 to test something first? If so, I can do it, but I'll need very specific directions.
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
That would be great.

Actually theres 2 things that we need.

1. Get back to work the screen of [MENTION=4895568]Verttex[/MENTION] device.

Go to TWRP, plug the cable and perform:

adb shell dd if=/dev/block/mmcblk0p18 of=/sdcard/mmcblk0p18.img

2. Get the file of PST partition to go further.

To do so, go to developer settings, enable the allow oem unlock, reboot to TWRP and perform:

adb shell dd if=/dev/block/mmcblk0p27 of=/sdcard/unlockN9.img

Both actions can be done at once. I mean enable oem unlock, then go to TWRP and run both lines.
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Ah.. but he couldn't flash things in TWRP until data and cache were formatted, so it was a my zip and fastboot fix. ;) :p

[MENTION=3029555]playahate[/MENTION] you should really take down the images for the N6 and just direct people to my zip, since the N6 hashes in that file differ from device to device and probably shouldn't be cross-flashed.
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
That's not what the conversation in this thread points to. Everything was formatted via TWRP and was possible without unlocking the bootloader. I had someone else in a similar position today and recommended the same formats and similarly fixed it.

I've still not seen an issue where twrp was not enough to fix it yet. not saying it won't happen. Just that it hasn't happened yet.
[Nexus 6 Q&A, Help & Troubleshooting] Verttex:
Wait but I can't enable OEM unlock in the OS since I don't have an OS on the device, so I have to flash a ROM?

Edit: Alright I no longer have any notifications that it is actually turning on. I have it plugged into my computer but the screen isn't turning on. It might be dead but usually doesn't the notification light blink when you try to turn it on when it's dead? I'm charging it now but the battery icon isn't popping up showing that it's charging.

Should I just leave it plugged in for a bit and then try holding the power button and then power button+voldown to get to the bootloader and then voldown power button to get into TWRP?

Edit2: I think it's bricked. No response to charging or the buttons at all
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
I am sorry. :(
[Nexus 6 Q&A, Help & Troubleshooting] Verttex:
Just talked to HTC repair, I'll send it to their repair center and see if they'll fix it.

Thanks for trying though!
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
Good luck
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Ah sorry I must have misunderstood! :)
[Nexus 6 Q&A, Help & Troubleshooting] RealROGWaffle:
Still running strong after almost two days. In the end, it was TWRP that was able to format the partitions. I was so worried about unlocking the bootloader because I thought I was going to need fastboot to format data and cache. Thanks for all your help, everybody.
[Nexus 6 Q&A, Help & Troubleshooting] LM_INFINITY:
and if I have stock recovery and does not load the system only have access to the bootloader, what should I do? :(:(:(
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
Is your bootloader unlocked?
[Nexus 6 Q&A, Help & Troubleshooting] LM_INFINITY:
locked
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
Return it for repair/replacement.
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
The command is different:

fastboot flashing get_unlock_ability

Its for the latest fastboot, the commit was made 16 days ago and i didn't find it (the new fastboot.exe). The SDK has old version of it. Dunno how he (Jonathan Levin) managed to get the info back in dec 2014.

Maby its device-specific though and dont work on Nexus 5...
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Definitely won't on the N5 since it predates frp.
[Nexus 6 Q&A, Help & Troubleshooting] LM_INFINITY:
it work on nexus 6?
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
Tried the N6...

[IMG="get unlock ability"]http://i.imgur.com/72CRla4.jpg[/IMG]

Maby the new commands will be in the next fastboot.exe release...
flashing lock - locks the device. Prevents flashing partitions
flashing unlock - unlocks the device. Allows user to flash any partition except the ones that are related to bootloader
flashing lock_critical - Prevents flashing bootloader related partitions
flashing unlock_critical - Enables flashing bootloader related partitions
flashing get_unlock_ability - Queries bootloader to see if the device is unlocked
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
Do you have a version of fastboot complied after May 16? If so, can you share?

EDIT: Or can anyone else compile it for Windows for us?
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
Aaaaand some new information...

fastboot oem help on Nexus 6 gives this:

[IMG="fastboot oem help"]http://i.imgur.com/fhvjgpT.jpg[/IMG]

googling the commands...

Lot of information about Nexus 6 fastboot oem commands here and here
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
What date were the SDK-Tools 24.2.0 compiled? On the Google site, it only says "May 2015"
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
who knows. i tried the fastboot.exe from SDK /platform-tools, but the fastboot help gives the regular list of commands...
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
Something else that's interesting: the "Allow OEM unlock" stays enabled after reboot when running Android 5.1.1.

[MENTION=5302753]Evolution_Tech[/MENTION] pointed it out here, and I can confirm that it is indeed the case.
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Nice. That makes the zip more useful again. I'll re-edit the text.

;)
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
I've released the new BootUnlocker Script zip with support for toggling "Allow oem unlock" (thanks to [MENTION=3029555]playahate[/MENTION]) over in my Odds and Ends thread:

http://xdaforums.com/showthread.php?p=61258590

Again, I recommend against using the N6 images served in the OP here since they contain a security token, different on every device. Cross-flashing that could be dangerous. My zip is safe since it only toggles the specific offset necessary. :cool: :)

Per usual, I'll stick around here for a few days to see if there are any questions then unsubscribe. @ mention me or reply in my Odds and Ends thread if you need me after that. :good:
[Nexus 6 Q&A, Help & Troubleshooting] cam30era:
One question that's sure to be asked endlessly: "will this work with stock recovery?".

And thanks a lot for this, from the community.
[Nexus 6 Q&A, Help & Troubleshooting] osm0sis:
Tragically no, because Google doesn't allow sideloading any zips with Nexus stock recovery which haven't been signed with their own private corporate keys. We know this reduces the usefulness of this to a great extent, but there might be some usage case where it comes in handy, so I decided to add/release support for it anyway. :) :good:

Edit: [MENTION=3029555]playahate[/MENTION] please remove the test version from the OP here and instead link to my Odds and Ends thread. :good:

Edit 2: Thanks! :D
[Nexus 6 Q&A, Help & Troubleshooting] mrkrabs:
is there an unlockN9.IMG file for Nexus 9 like there is in the OP for Nexus 6?
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
[MENTION=2798548]mrkrabs[/MENTION] no, nobody followed my request. but you can use the script, it does the same
[Nexus 6 Q&A, Help & Troubleshooting] BLONDMAN:
plz help me heeelp mee

hi everybody-

my phone have not CWM OR TWRP!!!

HOW CAN I FLASH unlockN6.img on my phone ?

PLZ HELPE MEEEE:crying::crying::crying::crying:
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Please give more details about your problem.
[Nexus 6 Q&A, Help & Troubleshooting] BLONDMAN:
hi.my nexus 6 is bricked .

bootloader is locked .

and have note any rom and twrp or cwm.

i cant use :fastboot oem unlock in cmd.

so,how can i use unlockN6.img for unlock my nexus 6 when my phone have not twrp or cwm?

my phone only have stock recovery.

thank you so much.
[Nexus 6 Q&A, Help & Troubleshooting] :
You can't. If you don't have TWRP recovery and you can't access the OS, you're stuck. RMA is the only option.
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
i just thought about something..

before, when stock, you could always update manually by grabbing the right update.zip and update it via the stock recovery. i wonder if its possible to create an update.zip, or get the factory.img into an update.zip then flash it that way, via the stock recovery?
[Nexus 6 Q&A, Help & Troubleshooting] :
It would definitely be worth a shot. :)
[Nexus 6 Q&A, Help & Troubleshooting] BLONDMAN:
so have solution for fix my problem?!:crying:

and what is RMA?

THANK YOU SO MUCH.
[Nexus 6 Q&A, Help & Troubleshooting] :
Try this:

Grab an official OTA update zip from here:

http://xdaforums.com/nexus-6/general/ref-nexus-6-stock-ota-urls-t2906493

Then try to install it with ADB sideload.

Follow the instructions for sideload from here:

http://xdaforums.com/showpost.php?p=59378165&postcount=3

There's no guarantee here as the OTA looks for specific requirements before it will flash. I'm just curious.
[Nexus 6 Q&A, Help & Troubleshooting] BLONDMAN:
i do apply update from adb and in update i have this error:

system partition has unexpected cotents

e:error in /sideload/package.zip

(status7)

:(
[Nexus 6 Q&A, Help & Troubleshooting] :
So you were rooted, or had kernel modifications?
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
have the same problem as you. Thx to i-dont-read-that-red-text-first

Well, at least it works in recovery mode, so there is a chance to get back our devices via if=... of=...
[Nexus 6 Q&A, Help & Troubleshooting] :
[MENTION=1811927]simms22[/MENTION] what would be entailed in getting such an update zip put together?

---------- Post added at 12:38 PM ---------- Previous post was at 12:33 PM ----------

As mentioned previously, if you didn't have any mods to system or kernel before this happened, you could try to sideload an official OTA. No guarantee though.
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
Unfortunately im at the same boat. Locked bootloader, im at twrp. Can I do sideload anyways?

Enviado desde mi iPhone utilizando Tapatalk
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
if you got twrp you can flash any full ROM in zip.
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
Remember, i cant see screen. Screen is totally black so I cant operate it via graphical mode. Only way is via adb or fastboot, but im locked.

Unfortunately i was playing with sone utility by 0smosis, and I think I screwed up boot. It says ability is 92 (for unlocking purposes). Ability should say 01, at least it gets freezed at fastboot oem unlock. There is a small light of hope!!

People, dont get frustrated. Now im looking for some way to flash img via adb

Enviado desde mi iPhone utilizando Tapatalk
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
cant flash factory.img via adb, no matter how hard you try.
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
Not possible. The stock recovery can only flash zips signed with Google's platform keys. It is impossible for us to create any zip that is flashable witg the stock recovery, unless of course, someone leaks Google's signing keys... ?.
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
right.

im more or less curious if a stock, .img/full update exists, thats flashable in the stock recovery. as that would be like a "cure-all" for this issue. if not, google should consider putting something out. as it probably would save retailers a lot of money on exchanging.
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
Yeah, that would be nice! I've never seen anything like that though. The only thing I've seen that's remotely like that was on the Nexus One: there was a leaked zip file signed by HTC that, when placed on the sdcard, would flash every partition on the NAND back to stock once you booted into the bootloader.
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
all we need is a signed-by-google flashable factory image zip, and so many issues would be resolved. such an easy fix. ill need to find somebody at google to relay this too.. :D
[Nexus 6 Q&A, Help & Troubleshooting] BLONDMAN:
no.have not root or any kernel.
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
The only way I see is flashing boot + system partition from adb commands (restoring partitions)

Enviado desde mi iPhone utilizando Tapatalk
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Unless you're using the dd command to unpack the images into the partitions, you wouldn't be using adb at all. Fastboot is the usual method to flash those images and it won't help with a locked bootloader
[Nexus 6 Q&A, Help & Troubleshooting] GedBlake:
Nexus 9 unlock.img

Hi, playahate...

I've just followed your instructions, and generated an unlockN9.img file from my bootloader unlocked Nexus 9, running TWRP and with the Allow OEM Unlocking setting enabled in developer settings.

Don't know if this is still useful to you, given the highly technical nature of this thread, and how things have developed... and which, if I'm honest, goes a little over my head:(.

Anyway, it's attached, along with a screenshot of how I acquired it... according to your instructions.

Hope it's of some use:).

Rgrds,

Ged.
[Nexus 6 Q&A, Help & Troubleshooting] playahate:
[MENTION=5049483]GedBlake[/MENTION] thanx. i hope it will help someone... i'll add it to my first post.
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
Great! Have a unusual question: could you share a dump from your /SYSTEM partition to be flashed with adb (mmcblk...) ?
[Nexus 6 Q&A, Help & Troubleshooting] GedBlake:
Hi, tramuyo...

Just to be clear, and for you to confirm..

You want me to run something like this... and upload the output somewhere?

adb shell dd if=/dev/block/mmcblk0p29 of=/sdcard/N9M2DevPreviewRootedSystem.img

(See attached screenshot for /system partition details.)

...because my N9 is currently running the 2nd Android M (build MPZ79M) developer preview (

NOT

the latest Lollipop factory stock), and is rooted.

Further, it will also be rather large, at about 2.6Gb!!!

-----

Anyway, let me know if this is exactly what you want:).

Rgrds,

Ged.
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
right, something like. but, i want a specific partition right now since my N9 is totally screen black thx to unlockn6.img in a incorrect partition haha...

selected partition is: mmcblk0p18

someone else have the same problem as me (used unlockn6 in a n9... and doesnt get luck)
[Nexus 6 Q&A, Help & Troubleshooting] GedBlake:
Hi, tramuyo...

Apologies it's taken me so long for me to get back to you, but I've been having technical problems with my laptop (now happily resolved).

-----

The partition dump you require (mmcblk0p18 ) is the MFG (Manufacturing Data) partition, and although I've successfully created a 'dump' of it using terminal emulator, I decided to first do a bit of research to ascertain exactly what this partition contains before uploading it.

According to

this article

the MFG partition contains the devices manufacturing data, including the following...

** My Nexus 9's unique Android Device ID.

** My Nexus 9's serial number.

Further, having looked through it myself with a hex editor, I find it also contains my devices WiFi MAC code.

As a result of my findings, I'm reluctant to make this particular partition dump publicly available for reasons of security and privacy. I hope you understand.

-----

I doubt it would be of much use to you anyway, as I suspect it wouldn't work on anybody else's Nexus 9 except my own.

Sorry I couldn't help in this instance.

Rgrds,

Ged.
[Nexus 6 Q&A, Help & Troubleshooting] tramuyo:
Well pal, thx anyway for helping. The reason I ask for that partition specifically, its because in the first page, people like me (there is another one) killed tablet by writing unlockN6 into N9 tablet using that block (mmcblk0p18), ending with a blank screen tablet (working, but a bit useless). So I thought recovering that partition, screen could go up again. Thats why i was interested in that.

Enviado desde mi iPhone utilizando Tapatalk
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Sounds similar to an EFS partition, so it probably means that even if someone did give you a dump, it won't be fix able
[Nexus 6 Q&A, Help & Troubleshooting] tanipat:
is there any way to use this method if i can boot to stock recovery. can i do adb push to flash this file? i have nexus6 and have this problem but unfortunately i have no TWRP flash and now with only stock recovery. please help!!!!
[Nexus 6 Q&A, Help & Troubleshooting] efrant:
No, not possible. The stock recovery cannot flash anything not signed by Google.
[Nexus 6 Q&A, Help & Troubleshooting] ghassir:
Deleted!