yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Droudrew03:
I want to express my apologies if I do not speak English very well I did this using google translation because in France, I did not find a forum where to solve this problem.

Hello everyone !

I do not know if we can really talk about computers in my case as it concerns android but I am currently really locked in my case, but if I present myself for this case, it is that I think that there may be someone who could help me. I have a zenfone 3, I wanted to go under lineage os (rom custom) when I was in android 7.1.2 it seems to me to get a phone a little more stable, fast and open. So I installed twrp (recovery custom) after unblocking my bootloader with the software provided by ASUS (UnlockTool_2016_0715) which is in the support provided for the phone. Then I installed lineageos with this tutorial: https://www.lineageosroms.org/forums/topic/lineage-os-14-1-zenfone-3-ze552kl-ze520kl-nougat-7-1- rom /

Until then everything was fine until the day I wanted to reinstall the basic rom because there was the release of android oreo on my model, so I reset the sdcard partition and then I downloaded firmware from the support for my smartphone too. It did not work so I tried to install the boot.img images with fastboot but still failed, and now I find myself with an unusable phone because I can not install lineageos there is something that blocks. I have done all this with adb and fastboot from my pc and I hope you could be useful, even if I am aware that I ask you there is quite complex but I say to myself that it can remain a last solution . Thank you if you took the time to read this long text.
[Essential Phone Questions & Answers] systematic99:
Hi so I want to revert back to factory image, however I keep on getting "file not found" or "target didn't report max-download-size" error. I already installed the drivers, unlock the bootloader and when I check fastboot devices, the phone shows up.

Any help would be greatly appreciated.
[Essential Phone Questions & Answers] The_Automator:
Ive had similar performance within the bootloader menu. Some things to check on your pc verify that the phone is showing up in device manager as essential phone fastboot. You may need to restart the pc or change usb port to get it to properly communicate.

You should also be able to revert to the factory image through the normal recovery; instead of attempting to install twrp to flash the stock image (sounds like what you might be trying to do your post is a little unclear) you can always just run the normal essential recovery partition and then use adb sideload from there to restore the factory image.

From essential's website

https://www.essential.com/developer/beta-builds

Your device is now in Recovery mode. An Android logo with red exclamation mark should appear on screen.

Hold the Power button, then press the Volume-Up button one time. When the menu appears, select Apply update from ADB.

Run the following command: adb devices. Then check that your device shows up with “sideload” next to its name

Run the following command: adb sideload ota_file.zip where ota_file.zip is the name of the file you downloaded and verified

Once the update finishes, select Reboot system now to reboot your phone
[Essential Phone Questions & Answers] Zargone:
I tried this and it seems to work great but if I select slot b it will not boot properly. Has anyone else tried this?

I don't believe that the Essential bath file flashes both slots. I had to use the BTS file to fix my phone.
[Essential Phone Questions & Answers] RavinDal:
Halp

Did you manage to successfully flash the stock image? If yes, would you kindly provide the steps that you performed? Im trying to get back to Oreo from Android P Beta so that I can have my unit replaced
[Essential Phone Questions & Answers] lolifer:
I just got one of these phones as payment for some consulting. I booted into fastboot mode and checked fastboot devices before agreeing on the deal and I see the device listed. I get home and start to unlock bootloader etc...only to continue getting this error...

FAILED (remote: 'Flashing Unlock is not allowed

')

Finished. Total time: 0.005s

This was a simple process on my Huawei. WHats going on here does anyone know?
[Essential Phone Questions & Answers] exb0:
Have you enabled oem unlock in developer options?
[Essential Phone Questions & Answers] lolifer:
I cannot boot into android to check. I literally got this phone a couple hours ago. Is there anyway to enable it via fastboot?

The guy that I got it from told me it was stuck on boot logo. I simply hooked it up to laptop, installed adb/fastboot, and drivers and booted to fastboot and ran fastboot devices which gave me the serial #. So i figured I would be able to restore it no matter as long as fastboot could see the device.
[Essential Phone Questions & Answers] gm007:
There is no way to unlock bootloader if you can't enable oem unlock option in developer menu.

You can try to boot to recovery and do a factory reset,or try switching slots a/b and see if you can boot ur phone.
[Essential Phone Questions & Answers] lolifer:
i already did those options. each time FB fails to write because of locked state. I cannot access recovery. I tried to> fastboot boot boot.img and this is what I get:

platform-tools_r28.0.1-windows\platform-tools>fastboot boot boot.img

Downloading 'boot.img' OKAY [ 0.935s]

booting FAILED (remote: 'unknown command')

Finished. Total time: 0.962s

EDIT**** Just specified a USB device using fastboot -s. Looks like the partitions were created but just couldnt wipe userdata. What is SuperBlocks backup?

C:\Users\Leebo\Downloads\platform-tools_r28.0.1-windows\platform-tools>fastboot -s PM1LHMD762601033 -w

mke2fs 1.44.3 (10-July-2018)

Creating filesystem with 26768215 4k blocks and 6692864 inodes

Filesystem UUID: 672d99c8-c617-11e8-8c24-45c467b7c233

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done

Writing inode tables: done

Creating journal (131072 blocks): done

Writing superblocks and filesystem accounting information: done

Erasing 'userdata' FAILED (remote: 'Erase is not allowed in Lock State')

Finished. Total time: 1.068s
[Essential Phone Questions & Answers] tech_head:
You will need to side load the OTA.

You cannot flash.
[Essential Phone Questions & Answers] lolifer:
But I cannot get adb to work, only fastboot. I install essentials ADB, download Essential drivers. Am I missing something? In Device Manager while in fastboot it says Essential Fastboot Phone.

Im starting to think the original owner must have had twrp and installed OTA update without going back to stock recovery. If I were to assume this the case, what would be the next step to recover?
[Essential Phone Questions & Answers] lolifer:
How do I go about sideloading from fastboot?
[Essential Phone Questions & Answers] tech_head:
Don't know. My phone is rooted and bl unlocked
[Essential Phone Questions & Answers] galakanokis:
Pretty sure you cannot sideload with fastboot. Anything flashing related in the bootloader with fastboot requires an unlocked bootloader. If twrp was previously installed than he would unlocked the bootloader at some point. What happens when you boot to recovery from the bootloader? Or the hardware buttons?
[Essential Phone Questions & Answers] lolifer:
when I boot into recovery the phone simply restarts and gets stuck on the boot screen "powered by Android" screen. What do you mean the hardware buttons? VOL UP+POwer?
[Essential Phone Questions & Answers] galakanokis:
Yeah, was just curious about what you were seeing in recovery. If your bootloader is locked and you have somehow lost recovery I am not to sure what else you can do. You said you switched slots and still were unable to boot to recovery?
[Essential Phone Questions & Answers] rignfool:
Ok...

Let's try this thing...

Grab the fastboot images from the Essential website...

Download and unzip it...

Try flashing boot to it's partition...

Theory- signed by the OEM?

Once you can get to recovery... You can use ADB
[Essential Phone Questions & Answers] lolifer:
...downloading images for PIE now.

EDIT**Here is the fastboot result..

C:\Users\Administrator\Downloads\PH1-Images-PPR1.180610.091\PH1-Images-PPR1.180610.091>fastboot flash boot boot.img

< waiting for any device >

target reported max download size of 536870912 bytes

sending 'boot_b' (20769 KB)...

OKAY [ 0.830s]

writing 'boot_b'...

FAILED (remote: Flashing is not allowed in Lock State)

finished. total time: 0.845s
[Essential Phone Questions & Answers] rignfool:
Damn...

I woulda thought for sure you could flash signed image...
[Essential Phone Questions & Answers] lolifer:
just fired up miraclebox and did a read info under the qualcomm section and this was my result.

Starting..

Waiting for Phone...

Phone Found..

version:0.5

unlocked:no

off-mode-charge:1

charger-screen-enabled:1

battery-soc-ok:yes

battery-voltage:3721

version-baseband:2.0.c4-M1.2

version-bootloader:mata-4452425

variant:

partition-type:userdata:ext4

partition-size:userdata: 0x1987357000

partition-type:system_b:ext4

partition-size:system_b: 0x100000000

has-slot:nvdef:yes

has-slot:dsp:yes

has-slot:vendor:yes

has-slot:devcfg:yes

has-slot:cmnlib64:yes

has-slot:cmnlib:yes

has-slot:boot:yes

has-slot:keymaster:yes

has-slot:abl:yes

has-slot:mdtp:yes

has-slot:mdtpsecapp:yes

has-slot:bluetooth:yes

has-slot:modem:yes

has-slot:pmic:yes

has-slot:hyp:yes

has-slot:tz:yes

has-slot:rpm:yes

has-slot:xbl:yes

has-slot:system:yes

current-slot:_b

slot-retry-count:_b:0

slot-unbootable:_b:no

slot-successful:_b:no

slot-retry-count:_a:0

slot-unbootable:_a:yes

slot-successful:_a:no

slot-count:2

slot-suffixes:_a,_b,

secure:yes

serialno:PM1LHMD762601033

product:Mata

max-download-size:0x20000000

kernel:uefi

all:

0.011s

>>Process Done...
[Xiaomi Redmi 4X Guides, News, & Discussion] shubhandu:
If you are running the MIUI 9 Global Stable (9.2.5.0) you can have the Face Unlock feature (Recieved by Redmi Note 5 Pro in the Latest Update) enabled

Here is the procedure-

1. Download the zip file(link below)

2. Flash it using TWRP Recovery.

No need to clear any cache

3. Reboot.

Credits-

Exetron on 4pda.ru

Tested on Redmi 4/4x running on MIUI 9 Global Stable (9.2.5.0)

Here is my last port for Redmi note 4

FAQs-

1-Will it work on other devices?

I do not know for sure, but for similar configurations it might work, you are free to try it on your device and post it below how it works.

2-Does it work on Developer Rom?

It does.

3- Will it be ported for other XYZ device?

We'll see.

Screenshots in the comment section provided by user Cybertron.

Download link- Here

Thanks would be appreciated. Hit :good: if it was useful.
[Xiaomi Redmi 4X Guides, News, & Discussion] Cybertron™:
working in redmi 4x thanks ...
[Xiaomi Redmi 4X Guides, News, & Discussion] LiquidMorphium:
Face ID Works

Thanks It Works. I tried it in MIUI 9.2.5 Stable. Need not flash TWRP.Just boot to it and Flash it Directly and it works
[Xiaomi Redmi 4X Guides, News, & Discussion] ani00:
Can I flash it in the latest miui beta rom (8.2.8)?

And it will disable ota updates, right?
[Xiaomi Redmi 4X Guides, News, & Discussion] Phuclun510:
Any screenshot ?
[Xiaomi Redmi 4X Guides, News, & Discussion] mayank..:
Can you port it for Redmi 3S?
[Xiaomi Redmi 4X Guides, News, & Discussion] Sureshkn3:
How can u flash without TwRp? Just want to know...and I hope this won't need root access...and will it void warranty if install custom recovery
[Xiaomi Redmi 4X Guides, News, & Discussion] ankushsaxobeat:
It Works Thanks For the port ?
[Xiaomi Redmi 4X Guides, News, & Discussion] smile201426:
Thanks? it works
[Xiaomi Redmi 4X Guides, News, & Discussion] wiktorek140:
Will it works on Redmi 4A?
[Xiaomi Redmi 4X Guides, News, & Discussion] alindk19:
face unlock on redmi 4x beta.

Will it work on Redmi 4x with miui 8.2(global beta)??
[Xiaomi Redmi 4X Guides, News, & Discussion] bkshgnj:
Works like charm !! Beta ROM supported too !!

:highfive::highfive::highfive::highfive:
[Xiaomi Redmi 4X Guides, News, & Discussion] Azis3199:
Work with MiuiPro 8.2.1, thx
[Xiaomi Redmi 4X Guides, News, & Discussion] rvj5:
It's working fine with beta roms
[Xiaomi Redmi 4X Guides, News, & Discussion] raza_maestro:
Will it work on custom roms too? Currently using crdroid (nougat) on redmi 4x.
[Xiaomi Redmi 4X Guides, News, & Discussion] ardonhs:
Any chance to work with miui 8 ?
[Xiaomi Redmi 4X Guides, News, & Discussion] Phuclun510:
Is this exactly like the redmi note 5 pro or jusst like face unlock on xiaomi.eu ?
[Xiaomi Redmi 4X Guides, News, & Discussion] oziojik:
Works at 9.2.5 Global Stable
[Xiaomi Redmi 4X Guides, News, & Discussion] hsboss:
But booting to TWRP asks for password! And does it modifies system partition so that safetynet check will fail?

---------- Post added at 08:05 AM ---------- Previous post was at 07:48 AM ----------

Will OTA work?
[Xiaomi Redmi 4X Guides, News, & Discussion] Surya:):
Will there be future updates? For this FaceId..Zip?

Thank You, it works well!

Will there be future updates? For this FaceId..Zip?

cause this app merges the settings app with then new one and also the keyguard....

that means you would have to give new updates....
[Xiaomi Redmi 4X Guides, News, & Discussion] LiquidMorphium:
Modified TWRP

download this twrp and boot to it(NEED NOT FLASH) and go to Advanced>Tools>Disable DM-Verify

I'm not allowed to give external links for now.

go to google and type "twrp for Redmi 4x" and then select xiaomifirmware link and download TWRP_3.1.1-0_Redmi4x_7.zip

afterwards again boot to twrp and install faceunlock.zip and done.

You can most probably receive OTA Updates but you will lose any root.
[Xiaomi Redmi 4X Guides, News, & Discussion] ibal97:
Great job...working with latest miui beta :good: :highfive:
[Xiaomi Redmi 4X Guides, News, & Discussion] LiquidMorphium:
Booting to TWRP Recovery vs Flashing TWRP Recovery

>fastboot boot twrp_recovery.img

this command will make the phone to boot to TWRP recovery Temporarily but your Original Mi Recovery will not be replaced and you can performed your required actions

>fastboot flash recovery twrp_recovery.img

this command replaces Mi Recovery with twrp recovery. and you need to go to Advanced>Tools>Disable DM-Verify to remove Force Encryption(available in MODIFIED RECOVERY of xiaomifirmware website)[Iam not allowed to post links for now]. only after Encryption is not Forced, your Redmi 4x will boot else it will be struck in bootloop
[Xiaomi Redmi 4X Guides, News, & Discussion] Flash_er:
Does it work on any custom rom?
[Xiaomi Redmi 4X Guides, News, & Discussion] jalondo:
Good morning,

Has anyone been able to test this functionality with a custom rom, for example LINEAGE 14.1 from TingyiChen, please?

Greetings to all
[Xiaomi Redmi 4X Guides, News, & Discussion] haravtar:
Try face unlock module with magisk it works for me .
[Xiaomi Redmi 4X Guides, News, & Discussion] Sureshkn3:
Thanks..Will it void warranty if I unlock only bootloader...and I forgot that I can boot into twrp temporarily
[Xiaomi Redmi 4X Guides, News, & Discussion] LiquidMorphium:
Yes. If you unlock bootloader then warranty is void.
[Xiaomi Redmi 4X Guides, News, & Discussion] hsboss:
No unlocking xiaomi phone bootloader doesn't voids. Warranty as far as you unlock the bootloader by official method

---------- Post added at 05:24 AM ---------- Previous post was at 05:12 AM ----------

Friend, does OTA update work?

---------- Post added at 05:27 AM ---------- Previous post was at 05:24 AM ----------

Hey do u keep Sytem partition read only in TWRP?
[Xiaomi Redmi 4X Guides, News, & Discussion] IndianAndroider:
Can we flash OTA afer disabling verify? Is there a way to flash OTA updates again?
[Xiaomi Redmi 4X Guides, News, & Discussion] LiquidMorphium:
Yes. MIUI updater will flash the OTA,but it removes twrp,root and installs MIUI recovery
[Xiaomi Redmi 4X Guides, News, & Discussion] @PV:
Can anyone port it for Redmi note 4 mediatek
[Xiaomi Redmi 4X Guides, News, & Discussion] Cybertron™:
No (Allow Modification). Well I'm using Redwolf TWRP.
[Xiaomi Redmi 4X Guides, News, & Discussion] hsboss:
But then if I allow.... OTA Update will not work... Or it will?
[Xiaomi Redmi 4X Guides, News, & Discussion] Cybertron™:
it works here :good:
[Xiaomi Redmi 4X Guides, News, & Discussion] :
can you port for Mi A1?
[Xiaomi Redmi 4X Guides, News, & Discussion] V1ncent9:
Any way to get face id on coustom roms
[Xiaomi Redmi 4X Guides, News, & Discussion] hsboss:
I think u should check out smart lock of google. This face unlock feature was provided in the google stock android since android lolipop (as far as I could remember), I used it on my Yu Yunique running on CyanogenMod 12.1, 13.0, 13.1 & 14.1. It was quite accurate in good lighting condition. These companies just created a hype of face unlock, except Apple, which actually uses 3d technique, otherwise all other companies just altered the stock rom and removed that face unlock feature, and now they r saying they r providing smartphones "with face unlock feature", which actually google provided in its stock roms way back.

---------- Post added at 05:46 AM ---------- Previous post was at 05:45 AM ----------

Check of smart unlock is present.
[Xiaomi Redmi 4X Guides, News, & Discussion] V1ncent9:
Yeah I know that it isn't that responsive and dosent unlock itself after face recognition we have to slide it anyways so I tot there must be a way to get the exact face id like miui in custom rom like Oxygen os its close to stock with that function
[Xiaomi Redmi 4X Guides, News, & Discussion] Irwan_dcpx:
Cant use after 8.3.22 and up

cant Use after 8.3.22 and up
[Xiaomi Redmi 4X Guides, News, & Discussion] andhi.h:
i hope you'll port it for Redmi 4 Prime, please.
[Xiaomi Redmi 4X Guides, News, & Discussion] parthavluv:
Systemui fc while adding face data....

From my Redmi 4X using Tapatalk VIP
[Xiaomi Redmi 4X Guides, News, & Discussion] abhikhm:
It works on MIUI 9.5.4.0 I've tested.

Thanks to the creators for porting this.
[Xiaomi Redmi 4X Guides, News, & Discussion] Laspal:
[youtube]q7JX1gm63NU[/youtube]

You can check out the video of installing tutorial for Redmi 4 and note 4
[Xiaomi Redmi 4X Guides, News, & Discussion] belej:
I can confirm it for MIUI 9.5.4.0

Thank you.
[Xiaomi Redmi 4X Guides, News, & Discussion] Irwan_dcpx:
No update?
[Xiaomi Redmi 4X Guides, News, & Discussion] Souvik karmakar:
How to remove full face id setup
[Xiaomi Redmi 4X Guides, News, & Discussion] elialitem:
Works on XiaomiEU MIUI 9.5 stable.

Many Thanks.
[Xiaomi Redmi 4X Guides, News, & Discussion] parthavluv:
Not working on latest beta roms....

Try to update this thread
[Xiaomi Redmi 4X Guides, News, & Discussion] Krish53:
Tested on redmi 5a with miui 9.5.6 it works
[Xiaomi Redmi 4X Guides, News, & Discussion] sandesh.rv007:
Stuck with bootloop on Epic Rom. any solutions to revert back????
[Xiaomi Redmi 4X Guides, News, & Discussion] padjadjaran70:
Dear sir.

Please make for Redmi 4 Prime/Pro MIUI 9.5.x.x

Thanks.

Regards.
[Xiaomi Redmi 4X Guides, News, & Discussion] parthavluv:
It will work for any miui 9.5 rom

But not beta roms

Sent From Redmi 4X Using Tapatalk VIP
[Xiaomi Redmi 4X Guides, News, & Discussion] salvolomagno:
can you explain to me how did you do it? can you flash from recovery stock?
[Xiaomi Redmi 4X Guides, News, & Discussion] TheusKhan:
Working fine.

Working perfectly on MIUI 9.5.5.0 Global Stable.
[Xiaomi Redmi 4X Guides, News, & Discussion] Betico82:
Hi.

Is there any way to uninstall it?

I installed it (rom base series v.9.5.9 and root with magisk) and I have left the mobile that does not pass the start image (logo Mi)

Thank you
[Xiaomi Redmi 4X Guides, News, & Discussion] parthavluv:
You have to Reflash your rom to boot up your phone...

Sent From Redmi 4X Using Tapatalk VIP
[Xiaomi Redmi 4X Guides, News, & Discussion] tofiq19901:
my miui version 9.5.5.0 Redmi 4X 32GB

Working or not working ?
[Xiaomi Redmi 4X Guides, News, & Discussion] Keshav jagan:
You can do this without affecting your warranty!

You need not flash the TWRP recovery into your recovery. You can run it instead (not flashing) using fastboot command.

Go to cmd and navigate to the directory where you have downloaded the adb drivers and twrp file (.img file) and execute the following provided your phone has unlocked bootloader and in fastboot mode:

fastboot boot <img file name>

e.g. fastboot boot twrp.img.

Now you have booted into twrp without flashing or overriding your stock recovery.

your warranty is not void now!
[Xiaomi Redmi 4X Guides, News, & Discussion] SRIRAMMAKASH:
I'm using MIUI 9.5.10.0 this file will work on this version of MIUI r I should change to MIUI 9.2.5... if I need 9.2.5 pls give me the download link for that version....
[Xiaomi Redmi 4X Guides, News, & Discussion] innocentwoolf:
can anyome test it on miui10???
[Xiaomi Redmi 4X Guides, News, & Discussion] belej:
FaceID working just fine on my Redmi 4x (SANTONI) with MIUI 9. 5. 10. 0.
[Xiaomi Redmi 4X Guides, News, & Discussion] MattHdH:
I am tested. But not works, dont flash this file to miui10,, its make your settings menu forced close.

I am test on miui 10 8.7.3 global beta
[Xiaomi Redmi 4X Guides, News, & Discussion] Mr_Killer:
Plz held

I flashed this on my Redmi 2, and now its not showing the Settings App. I cant see it. I want to remove this flashed zip file, is there any other way. Im on official Lineage OS 15.1 . Plz help, Urgent! :rolleyes:
[Xiaomi Redmi 4X Guides, News, & Discussion] parthavluv:
Well this mod is for miui..

Not for any custom rom based on lineage os..

If you want to revert back dirty flash your rom again...

Done...

Sent From Redmi 4X Using Tapatalk VIP
[Xiaomi Redmi 4X Guides, News, & Discussion] MohRez:
[MENTION=6590561]shubhandu[/MENTION]

does it work on MIUI 10 Beta ?!
[Xiaomi Redmi 4X Guides, News, & Discussion] parthavluv:
Nope never install this mod on miui 10 or you will get bootloop.

Sent From Redmi 4X Using Tapatalk VIP
[Xiaomi Redmi 4X Guides, News, & Discussion] Johny2k9:
Will this work on Redmi Note 4X (MTK) version?

Using Stable rom version 9.5.10.0

Unlocked Bootloader/TWRP/Root
[Xiaomi Redmi 4X Guides, News, & Discussion] Laspal:
Can I get faceunlock in miui 10 beta Redmi 4
[Xiaomi Redmi 4X Guides, News, & Discussion] bikisingh:
need FaceID.zip uninstaller, if anybody have.
[Xiaomi Redmi 4X Guides, News, & Discussion] xiikerwin:
I tried it on mine but my settings disappeared i don't know how to bring it back
[Xiaomi Redmi 4X Guides, News, & Discussion] 300Dy:
It works fine, but how to remove it?!
[Xiaomi Redmi 4X Guides, News, & Discussion] Nuresh_tarak:
It's causing problem

How to remove th flashed zip. My settings app is crashing
[Xiaomi Redmi 4X Guides, News, & Discussion] rudie_techie:
Settings crashes on MIUI 10 Pro
[Xiaomi Redmi 4X Guides, News, & Discussion] dilloo:
Not working on Redmi 4, which is updated with Version: V10.2.1.0.MCEMIXM (MIUI10). More over a bug report comming again and again stating that "settings has stopped." Pls tell me how to fix this problem?
[Xiaomi Redmi 4X Guides, News, & Discussion] puszcza:
Will you support 4x on custom rom with android 10?

https://xdaforums.com/xiaomi-redmi-4x/development/rom-pixysos-3-0-t3974875