yashsingh1/xdaforums huggingface dataset:
[Mate 8 General] jbmc83:
guys, please remember: before u relock the phone it has to be 100% COMPLETELY STOCK! that includes unroot, encrypted boot image, stock recovery, stock partitions, stock everything! if u try and relock the bootloader when even one little thing is non-stock itll mess up your phone!
[Mate 8 General] shoppie:
Thank you for your help.

I’m new tot his phone and reading days on XDA but have not the feeling I’m getting it. So a bit more guidance is very welcome, not only for me I’m afraid :)

The phone is already unlocked, fastboot says.

Is there an image for the AL10 I can upload over fastboot (how) so everything is stock again? I can find some untouched Zip files but don't now how to flash them over fastboot.

After that I can relock the bootloader and Lock the bootloader again, so to start all over
[Mate 8 General] rowihel2012:
did you activate find my phone feature?
[Mate 8 General] shoppie:
No I did not, :confused:
[Mate 8 General] rowihel2012:
i sold my mate becuse this problem
[Mate 8 General] shoppie:
I did not ever use the "find my phone feature". So that cannot be the problem here.

Did someone find a solution, or workarround of the command: fastboot oem relock xxxxxxx ?

Without the message:

FAILED (remote: root type is risk)
[Mate 8 General] themissionimpossible:
IMHO this message is clear:

you are not allowed to relock the bootloader if you are still rooted because Huawei says that there is a risk.

So unrooting and returning to stock seems absolutely required to relock.
[Mate 8 General] themissionimpossible:
Since you are rooted, try to enter recovery using this app:

https://play.google.com/store/apps/details?id=com.siriusapplications.quickboot
[Mate 8 General] shoppie:
Thank you, installed the app. Turns out the Phone is not rooted.

So root is not the problem.

Why the fail to relock:

fastboot oem relock 987342842298xxxx

response is:

FAILED (remote: root type is risk)

finished. total time: 0.007s

phone is already unlocked

Someone?:confused:

Other clues?
[Mate 8 General] themissionimpossible:
Maybe you're rooted but don't have Supersu installed?
[Mate 8 General] shoppie:
Correct never got that far, Supersu was not installed. But now I cannot install Supersu, or can I?
[Mate 8 General] themissionimpossible:
Maybe you can install Supersu from the Google Play...
[Mate 8 General] rowihel2012:
same with me i could not relock will i was stock unrooted
[Mate 8 General] m3dd0g:
Im completely stock b152 and i can lock and relock bootloader

Fastboot OEM relock xxxxxxxxxxxxx
[Mate 8 General] shoppie:
In trying to solve my messed up ROM sand the problem here with fastboot oem relock I have a working ROM now.

I installed NXT-l29C432B152-FULL-OTA rom with dload.

After that I installed a fastboot flash recovery twrp_eng-mate8.img.

And did fastboot flash recovery twrp_eng-mate8.img.

root with fastboot fastboot flash recovery twrp_eng-mate8.img

TWRP was working now to. So in TWRP flashed SuperSU

ROM is working good now.

Also found this how to install from dload https://www.youtube.com/watch?v=aU-CA58p3rw

Problem 1

But still the same problem here with fastboot oem relock

fastboot oem relock 987342842298xxxx

...

FAILED (remote: root type is risk)

finished. total time: 0.007s

Problem 2:confused:

Not able to backup TWRP. Get failed to mount errors. Hot to solve this?
[Mate 8 General] themissionimpossible:
If I understand correctly, you were rooted when you tried to relock.

In such case, this for sure is preventing fastboot to successfully relock.
[Mate 8 General] shoppie:
Sorry for my incomplete info

First step:

I installed NXT-l29C432B152-FULL-OTA rom with dload

So I have a clean phone at this moment

Next step:

After that I did the fastboot oem relock xxxxxxxx

But still the same problem here with fastboot oem relock

fastboot oem relock 987342842298xxxx

...

FAILED (remote: root type is risk)

This is strange, just mention this in XDA for others with the failed fastboot oem relock problem.

But is not important for me now.

Now the issue is not able to backup TWRP. Get failed to mount errors….:confused:
[Mate 8 General] ajsmsg78:
I'm pretty sure you need to be pretty much stock to relock the bootloader. If you unlock, root and install a rom it won't let you lock it.
[Mate 8 General] shoppie:
Thank you, but I was complete stock I think.

flashing NXT-l29C432B152-FULL-OTA rom with dload, this is complete stock. The next step was the fastboot oem relock...

I'm fine now with this problem for the moment. Can use the ROM.

Not able to backup with TWRP with the failed to mount errors is a real problem now.

Any clue how to solve this?
[Mate 8 General] ajsmsg78:
In twrp go to Wipe, then Format Data, then type in yes. This will remove encryption and the data errors will go away. It will wipe your internal storage as well so make sure you back it up if you have anything important in it.
[Mate 8 General] shoppie:
Did the Format Data in TWRP. took 20 min.

Now the issues to backup TWRP is over thank you for the help!:)
[Mate 8 General] themissionimpossible:
Is your Mate 8 a true European L29 3/32 model?

Otherwise you are not completely "stock", and for this reason the relock might still fail...
[Mate 8 General] shoppie:
it is a AL10 , this must be the reason the relock still fails.:o
[Mate 8 General] teflon79:
is it necesssry ?

twrp really needed?
[Mate 8 General] somboons:
I fastboot stock recovery boefore then user fastboot oem relock . It is working.

D:\04 Mobiles\SRKTool\SRKtool_1.0.8_d802_droidth\command>fastboot.exe flash recovery 01.recovery.img

target reported max download size of 471859200 bytes

sending 'recovery' (43558 KB)...

OKAY [ 1.415s]

writing 'recovery'...

OKAY [ 0.785s]

finished. total time: 2.216s

D:\04 Mobiles\SRKTool\SRKtool_1.0.8_d802_droidth\command>Fastboot oem relock 2354211518145192

...

FAILED (status read failed (Too many links))

finished. total time: 36.851s

D:\04 Mobiles\SRKTool\SRKtool_1.0.8_d802_droidth\command>
[Mate 8 General] jbmc83:
LOL, um.....thats NOT completely stock, its exactly the opposite :D stock means STOCK, not flashing another model´s stock rom onto your chinese model ;) well there u have it, uve messed up the bootloader relock procedure by this :)
[Mate 8 General] somboons:
After I relocked bootloader, When I enter to fastboot mode , it shows Phone relocked which before I unlocked bootloder it shows Phone locked.

How can I go back to Phone Locked ?
[Mate 8 General] themissionimpossible:
I suspect that there is no way to restore 100% the original bootloader status (so I haven't yet unlocked).

Other people that have successfully relocked their bootloader could check if their fastboot message is the same or back to "Locked".

Anyway, the status Relocked doesn't necessarily mean that such a Mate 8 can't behave as a perfect stock phone for which regards OTA updates and warranty.
[Mate 8 General] somboons:
That's mean Phone Relocked warranty out ? :crying:
[Mate 8 General] themissionimpossible:
Not necessarily, as I wrote above.

But only Huawei can answer this question...
[Mate 8 General] somboons:
We should command

fastboot oem lock or fastboot oem relock
[Mate 8 General] themissionimpossible:
I don't think that this command exists, I've never heard of it.
[Mate 8 General] SnZ:
I must say I don't like that "relocked" thingy. Is this some kind of tamper flag or something similar? There is no chance to safely lock phone back to factory state? Did anybody thought about doing backups/restore after playing with unlocking/locking device? I remember there was some trick to backup your DRM and other stuff doing something like that http://xdaforums.com/xperia-z/orig-development/tutorial-backup-ta-partition-to-drm-t2234627 on Sony devices.
[Mate 8 General] somboons:
I saw a method in HTC thread , they use command echo something to partition for write status relocked to locked.
[Mate 8 General] SnZ:
http://xdaforums.com/showthread.php?t=2708571

Anyone with mate 8 have ideas which area (/dev/block) could be backuped and compared? I don't have this device still, was thinking about buying before i saw this mess :)
[Mate 8 General] dlorean:
Had a problem with adb (device unauthorized) no popup on phone. I flashed the rom B152 again. Was stupid and forgot to reflash twrp. Now have stock recovery, working rom without adb access. How I can boot to bootloader? Tried to use another usb port, reinstall driver, turn off on usb debugging, another pc and vol - power,nothing is working

Think I solved the problem. Flashed the B152 with dload. Now I have under development settings the option to delete the authorization back. Hope it will work now, test it later

Huawei Mate 8 B152 with Tapatalk
[Mate 8 General] Rockydabull:
is there any DC unlocker files that can be installed on a iMac? The one that i downloaded from the DC Unlocker site only has Windows .exe files available.
[Mate 8 General] ghfatw:
What is the simplest way to update a rooted Mate 8 to B165? I am on B156 and have tried various things to update without much success.
[Mate 8 General] DarkSilentSC:
I got bootloader unlocked, but no matter how many times I try fastboot flash recovery command, I'm still left with Huawei eRecovery. Help!
[Mate 8 General] :
what are you typing in? What does adb say? Did you looked at my Guide? There is a Step by Step howto
[Mate 8 General] mmeidl78:
Tried to unlock my Mate 8 but dc-unlock shows no "read bootloader unlock dings". It reads the IMEI etc. and seems to be proper connected but the menu isn't there? What have I done wrong? :D
[Mate 8 General] fueleff:
Huawei ID

After unlocking the phone when I reboot, the phone does not recognise my Huawei ID. Does anyone have this problem
[Mate 8 General] ZeroPDA:
I successfully unlocked for free my bootloader using Huawei site https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail

I didn't find appropriate topic to ask. It seems here is the most suitable. How to allow other (not stock) file managers, TitaniumBackup and other app to write down on MicroSD card? On Lollipop it was possible to /system/etc/permissions/platform.xml add just one line to under <permission name="android.permission.WRITE_EXTERNAL_STORAGE">. But here there is no such line. How can I fix the issue?
[Mate 8 General] dlorean:
Titanium Backup, u have to set documentstorage under settings - backup folder location - storage provider - select documents storage and there select sd card and click on all. The same way with file manager, it will open the documents storage and select sd card

Huawei Mate 8 L29 B152 using Tapatalk
[Mate 8 General] ZeroPDA:
The problem to in going there but in writing on microsd sdcard anything. I cannot even create folder on /storage/ext_sdcard

The problem is in permissions.

And question No.2: Now I have B103 version with root. How can I update my L29 to the latest without loosing root?
[Mate 8 General] DarkSilentSC:
Ah actually I got it working. Sometimes, depending on whether my phone is connected to charger or to my PC, I can still get eRecovery menu. Disconnecting the phone from USB allowed me to go into TWRP with slightly different "unlocked warning" message. I thought flashing basically overwrites already existing eRecovery partition, but I guess that didn't do it.
[Mate 8 General] AngelicCore:
I opted for the free method of waiting the 14 days for Huawei ID, but what is the link for getting the phone unlocked officially?

The link above just opens Huawei self-help center and I can't see anything about a boot loader there.
[Mate 8 General] Valhalla89:
Hi, will you still receive OTA updates upon unlocking and rooting?
[Mate 8 General] ZeroPDA:
I got unlock code immediately on this page. If it help please, don't forget about Thanks meter.
[Mate 8 General] AngelicCore:
Thanks ZeroPDA
[Mate 8 General] :
no.
[Mate 8 General] jdubya45:
Hello all - so I might have an issue maybe not. I got the bootloader I unlocked, I installed TWRP but now TWRP says data, sdcard, system etc all are not mounted. I can't flash anything or backup. I read on here about factory reset but nervous it may delete system and then I am screwed. Can someone help me figure out whats going on before I throw my Mate 8 through the window? I wont do that but...please help! Thanks.
[Mate 8 General] muhyidin:
Hello

How can i back in stock on the Mate 8. ?

Thx
[Mate 8 General] Phanatic:
As far as I know you havo to:

1. Flash with fastboot stock recovery. (If you dont have it, you have extract it from original update.app)

2. Flash stock firmware (update.app @ /dload) via Huawei recovery.

3. Lock bootloader again with dc-unlocker.

Not 100% sure, but these are the steps backwards.
[Mate 8 General] ajsmsg78:
You must go to Wipe then format data and type in yes. You have to do this once to remove encryption on the internal storage. Do a regular backup first. Any time you fastboot flash back to stock or restore a stock rom you have to format data in order for things to work properly with TWRP.
[Mate 8 General] jdubya45:
Thanks for the reply. I didnt fastboot flash back to stock. Just unlocked the bootloader and installed twrp (i believe your version). I have formatted data several times and still no. Is it because i do not have a decrypted boot image?

EDIT: Flashing your unsecure boot worked. L-29 636 B103. Thanks.
[Mate 8 General] M.Noury:
You don't need to flash decrypted boot image, put the SuperSu in microsd card and then you will be able to flash it from twrp

---------- Post added at 01:13 PM ---------- Previous post was at 01:06 PM ----------

I just did it yesterday for testing.

1st download Huawei update extractor and extract boot.img & recovery.img from update.app (if you flashed a cuatom ROM extract system.img and cust.img as well)

From fastboot flash the stock boot and recovery extracted from update.app ( in case of using custom ROM flash system.img & cust.img)

Boot to recovery and do a factory reset.

Place the dload on the internal or external storage

Boot to dload updater and update your device

From fastboot try to relock using the code you used for unlocking fastboot oem relock code

Or you can get it for free without waiting from the website in the below topic

http://xdaforums.com/showthread.php?t=3334004&share_tid=3334004

EMUI website to unlock bootloader without registeration
[Mate 8 General] Mathsl:
Really thank you!!! Completely free and 100% working!!
[Mate 8 General] mazighi:
Remote : Necessary to unlock FRP

When i try fastboot oem unlock
[Mate 8 General] Lykeul:
Hi every body. I have the same issu like jdubya but don't understand what I have flashed... Some one can help me please?
[Mate 8 General] bluheart:
Buddy flash insecure boot from this post as per your software version.
[Mate 8 General] Lykeul:
Thank you. But don't work for me... for starter I don't see the .img with TWRP and after i flashed with FLASHY.apk..... don't work :(

TWRP say "failed to mount data" or "unmount data"
[Mate 8 General] jarod27:
you must flash .img with fasboot

with twrp, you can flash only .zip (rom for exmple)
[Mate 8 General] ajsmsg78:
Just go to Wipe, then hit Format Data. Then type in yes. This will remove the encryption on your phone. Then you need to flash either SuperSU, an insecure boot.img or one of my roms to keep the encryption disabled. If you don't, as soon as you boot with the stock boot.img it will automatically encrypt your phone again. I'll make my decrypted boot.img into a twrp flashable zip tonight.
[Mate 8 General] Lykeul:
ok but I try to flash with fastboot and don't work, what is the right line command, I try "fastboot flash boot Decrypted_Insecure_Boot_168.img" don't work

Help me please
[Mate 8 General] Lykeul:
Thank but I can't wipe... TWRP say "failed unable to mount data"
[Mate 8 General] ajsmsg78:
That's because you're doing the wrong wipe. You need to do it this way as in the photos.
[Mate 8 General] ajsmsg78:
Updated the boot.img thread with a TWRP flashable decrypted boot.img
[Mate 8 General] Lykeul:
Thank you very much. For TWRP it's ok. I do a full wipe and format data, flash your ROM and your decrypted boot.img but when I start my phone I have the warning screen, do you have a idea ?
[Mate 8 General] ajsmsg78:
That's built into Android. There is no way around the warning screen. It happens on every unlocked phone. It goes away after a few seconds. That's what happens after you unlock the bootloader. That's normal.
[Mate 8 General] ajsmsg78:
Added step 4 to OP and fixed some links.
[Mate 8 General] Lykeul:
One more time, thank you guy. You're rom it's really the best for this great phone.

Can you make a international rom with double puce and your kangvip setting please?
[Mate 8 General] ajsmsg78:
No the framework will only work in the Chinese based roms.
[Mate 8 General] Lykeul:
Ok, I keep on your rom, really great work men.
[Mate 8 General] Filgaliel:
What are these steps exactly?

Place the dload on the internal or external storage

Boot to dload updater and update your device

Thanks.
[Mate 8 General] bluheart:
Make a.folder dload and unzip the downloaded file in it. Then reboot into recovery and the flashing process starts.

If rooted, try the.zip file from dev thread
[Mate 8 General] Filgaliel:
So I make a folder called dload on the internal storage and extract the update.zip into it. Metainf folder and update.app ??
[Mate 8 General] bluheart:
Yes. As simple as that
[Mate 8 General] Filgaliel:
excellent..

---------- Post added at 05:06 PM ---------- Previous post was at 04:13 PM ----------

[/COLOR]Hmm.. trying to flash the boot from fastboot I get this error..

FAILED (remote: command not allowed)

I messed up a bit I think. I ended up just flashing the update.zip in recovery. Now I dont have twrp and fastboot wont let me flash it.. Gives me same error as above.

Remote: Command not allowed..

What is wrong ?
[Mate 8 General] bluheart:
Now use fastboot commands to.install twrp and.boot
[Mate 8 General] Filgaliel:
It wont. It tells me :

FAILED (remote: command not allowed)
[Mate 8 General] bluheart:
Reflash the full rom
[Mate 8 General] Filgaliel:
I cant. Twrp is gone.
[Mate 8 General] fueleff:
TWRP

What is the latest of twrp to use?
[Mate 8 General] bluheart:
If twrp is gone, use dload method to flash latest stock Rom.

Latest twrp is in dev.thread look there ;)
[Mate 8 General] Filgaliel:
I am on latest stock, flashed via dload. Now I want twrp and root. But fastboot won't flash anything.
[Mate 8 General] bluheart:
Buddy, first flash decrypt boot image from here Then flash twrp and do format via wipe.menu then.your twrp will.stay and also your.Rom will be fine
[Mate 8 General] Filgaliel:
I can´t flash the decrypted boot. Same error..

C:\Android\android-sdk\platform-tools>fastboot devices
QHC0216128004048 fastboot

C:\Android\android-sdk\platform-tools>fastboot flash boot boot.img
target reported max download size of 471859200 bytes
sending 'boot' (30430 KB)...
OKAY [ 0.651s]
writing 'boot'...
FAILED (remote: Command not allowed)
finished. total time: 0.659s

C:\Android\android-sdk\platform-tools>
[Mate 8 General] bluheart:
Oh.

Check status of boot loader, is it locked or unlocked?

On.locked boot, you can't fastboot

Only stock recovery will.work
[Mate 8 General] Filgaliel:
Dc-unlocker says its open. And fastboot oem unlock says its already oem unlocked... So yes. I suppose it is open.
[Mate 8 General] bluheart:
Ok. In fastboot, check devices to know if fastboot is working or not

Fastboot devices

Other commands to check

just type fastboot and youll be given a similar useage list for fastboot commands

devices list all connected devices

reboot reboot device normally

reboot-bootloader reboot device into bootloader
[Mate 8 General] Filgaliel:
Yes. All these work. Device is listed and reboot commands work.
[Mate 8 General] bluheart:
Then, the check again and again about dev options and if usb debugging is on and also if oem unlock is there or not.

Then try fastboot again
[Mate 8 General] Filgaliel:
Usb debugging and oem activated.
[Mate 8 General] Filgaliel:
Here.
[Mate 8 General] bluheart:
And still fastboot isn't working at all :-O
[Mate 8 General] Filgaliel:
Yes. It is not working.
[Mate 8 General] bluheart:
In pc, remove the drivers and reinstall

Reboot pc

Then plug in mobile and let the.pc install the.drivers then reboot pc and plug in the.phone again and try fast oot
[Micromax Canvas Nitro A310/A311] vijay_marathe01:
most of post tell about installation of miui 7 developer rom

how to install miui 7 stable rom on nitro a310

please provide the link for miui 7 stable rom
[Android Q&A, Help & Troubleshooting] Crypt1k:
I am not sure where to actually put this but its a question that probably has a simple answer. Is there a way to share photos on facebook from a specific folder on android or do i have to continue scrolling through my 6000 photos to find what im looking for every time?
[Fire HD 6 and 7 Q&A, Help & Troubleshooting] bibikalka:
I just got a fresh Fire HD 7 with 4.1.1, and updated it first to 4.5.3, and then to 5.2.2u2 with 5.2.0 bootloaders. While doing so, I kept track of the state of all the internal partitions that the updates do not seemingly touch (see this post for partitions http://xdaforums.com/fire-hd/help/internal-memory-structure-hidden-t3122246 )

I've been using a simple script pasted from adb window on the PC side (needs root access):

adb shell
su
dd if=/dev/block/mmcblk0p1 of=/sdcard/01_pro_info.img
dd if=/dev/block/mmcblk0p2 of=/sdcard/02_pmt.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/03_tee1.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/04_tee2.img
dd if=/dev/block/mmcblk0p5 of=/sdcard/05_uboot.img
dd if=/dev/block/mmcblk0p6 of=/sdcard/06_boot.img
dd if=/dev/block/mmcblk0p7 of=/sdcard/07_recovery.img
dd if=/dev/block/mmcblk0p8 of=/sdcard/08_kb.img
dd if=/dev/block/mmcblk0p9 of=/sdcard/09_dkb.img
dd if=/dev/block/mmcblk0p10 of=/sdcard/10_misc.img
dd if=/dev/block/mmcblk0p11 of=/sdcard/11_persisbackup.img
cd /sdcard/
md5 *.img
rm *.img
cd /sdcard/

I can now compare 2 different Fires (old & new), and also the new Fire on the path from 4.1.1 to 4.5.3 to 5.2.0

Between the 2 different Fires, the only partition that has the same md5 is :

72fe4bd35179bc299674c781033ae1f7 10_misc.img

The other dark partitions differ between the 2 Fires (pro_info, pmt, kb, dkb)

Now, on the new Fire, partition that always changes between boots is :

8c72758dff50208f74b7bbc12725e46a 11_persisbackup.img

(so this is probably the boot counter lives and so on)

Finally, when the new Fire went from 4.1.1 to 4.5.3, (pro_info, pmt, kb, dkb) all stayed the same. But when I updated it to 5.2.0 bootloaders, dkb changed md5. The other 3 are still the same.

It'd be nice to run this script on a Fire with 5.2.2u2 bootloaders, and see if persisbackup is the same.

It could be possible to replace some of these dark partitions, and convert the Fire into an "unbricking" state.
[Fire HD 6 and 7 Q&A, Help & Troubleshooting] DoLooper:
Just to confirm: One can copy your whole script and paste it into the CMD window. It runs and doesn't do anything to the Fire HD. It just gets info that can help you, right? Whoever does this can drag the mouse over all the output to select it and hit ENTER to copy to clipboard, then paste it into a post for you.

I ask because my guide doesn't install the 5.2.0 bootloaders, so anyone who used it in the last month or so will have 5.2.2.u2 bootloaders. If no one else jumps in, perhaps [MENTION=3782001]comapro[/MENTION] or [MENTION=7223988]benyaki[/MENTION] or [MENTION=4636634]sunilzs[/MENTION] would have the time to run it for you. ;) :D
[Fire HD 6 and 7 Q&A, Help & Troubleshooting] benyaki:
If time permits tomorrow, I'll run that for you. (And if I remember!)