yashsingh1/xdaforums huggingface dataset:
[Honor 10 Lite Questions & Answers] tomax80:
How did you unlock the bootloader?

To install magisk you need to install twrp first, then flash magisk zip from there. But there's no twrp for our device so far, maybe you can try running a twrp of a device with our same socket without installing it, from fastboot, and see if it works. For example

fastboot boot twrpfilename.img

If it works, then you can try flashing magisk from there.
[Honor 10 Lite Questions & Answers] Shlendr:
I got the phone from presentation. So, it is already unlocked from factory.

I'm not realy understand how can i use the twrpfilename.img? And where i can get this file? Did you have some manual?

I tried to flash twrpkirin.img from Honor 8x, but all system sections are encrypted. So i can't flash magisk.zip

---------- Post added at 08:59 AM ---------- Previous post was at 08:40 AM ----------

I have an error:

C:\adb>fastboot boot JSNtwrp.img

downloading 'boot.img'...

OKAY [ 0.550s]

booting...

FAILED (remote: invalid command)

finished. total time: 0.550s
[Honor 10 Lite Questions & Answers] tomax80:
There's no manual, just try booting phone in bootloader mode then use that command I told in the previous post. It's just a try , there are no tutorials for this phone so far
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

Already done. Got an error
[Honor 10 Lite Questions & Answers] tomax80:
Ok then probably that version of twrp doesn't work with our phone , we just need to wait for a compatible one.
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

I can send all nesessary data of the phone, which will help to creat a workable TWRP. But who can do this?)
[Honor 10 Lite Questions & Answers] tomax80:
I have no idea sincerely, I think we just need to wait patiently till someone works on it . And it's also not granted that it's going to happen, since it's everything blocked.
[Honor 10 Lite Questions & Answers] cyrusiranmehr:
guys, what about Android root apps? can those apps help?
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

No
[Honor 10 Lite Questions & Answers] GraveDanger:
locked after i got into bootloader

hey guys, i tried using bootloader first time and got myself into some situation:

C:\Users\USAKg\AppData\Local\Android\Sdk\platform-tools>adb reboot bootloader

adb server version (39) doesn't match this client (40); killing...

* daemon started successfully

C:\Users\USAKg\AppData\Local\Android\Sdk\platform-tools>fastboot flash recovery_ramdisk twrp_bkl_0.7.img

Sending 'recovery_ramdisk' (23542 KB) OKAY [ 0.711s]

Writing 'recovery_ramdisk' FAILED (remote: 'Command not allowed')

fastboot: error: Command failed

Does anyone know how to unlock this one? or do i have to buy unlock bootloader code?

from site named: global unlocking solutions.miiduu ???
[Honor 10 Lite Questions & Answers] tomax80:
Bootloader is locked and you can't flash anything till it's locked. There are paid services to unlock it but so far our device is not supported. Though there's no sense to pay a lot of money to unlock it, also if it was supported, just to have root (if you're lucky) , since there are no custom ROMs for Honor 10 lite. Our device is not made for modding. The only solution on my opinion is to wait patiently till someone finds an hack to unlock it for free, or sell your phone and buy a Xiaomi. You can unlock bootloader very easily and there are plenty of custom ROMs for it.
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

Hello. What the twrp_bkl_0.7.img? Where did you get it?) Is it workable?
[Honor 10 Lite Questions & Answers] mayen:
You can always install a different launcher like Nova Launcher ;)
[Honor 10 Lite Questions & Answers] alecxs:
this link claims you can use TWRP from Huawei P9 lite

https://unofficialtwrp.com/root-twrp-hry-lx1-hry-lx2-hry-al00
[Honor 10 Lite Questions & Answers] ArvinBai:
At this point you need to go to China Taobao, where there is an unlock code.
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

It's a fake.
[Honor 10 Lite Questions & Answers] alecxs:
There are currently two official maintained android 9.0 devices, from the TWRP site they say

We are currently facing a lack of users willing to test. You stated the above link is a fake, but at the same time you posted a screenshot that it boots, Touchscreen is working, just the display is not optimized for the notch. The mounting issues may related to Huawei new erofs file system. If you re-format the partitions to ext4 or f2fs then the above TWRP should work. So it's not a fake

you can compare the fstab with one of this

Honor View 10

Huawei P20 Pro

if you are willing to test please try to mount partition manually from TWRP Terminal/ adb shell. once you figured out the right mount parameters we can update recovery.fstab

maybe there is a new binary we must place inside /sbin in order to support Huawei EROFS file system
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

Yes, i can and want to test, cause i need to install Magisk to use Google pay.

Can you write me an step by step instruction what should I do? Because I myself can do something wrong.

Or maybe i can send to you some data and then you can compare it by yourself?

I will be very grateful for the help)

And how i can get the recovery.log?
[Honor 10 Lite Questions & Answers] alecxs:
check the file systems (from android)

adb shell
mount
cat /vendor/etc/fstab*

for testing it is possible for some devices, boot the twrp.img from fastboot without flashing it each time. then check again the mounts and gather some data (from recovery)

fastboot boot recovery.img
adb shell
mount
cat /etc/recovery.fstab
cat /etc/fstab
cat /etc/mtab

you can try to manually mount, for example

mount -t ext4 -r /dev/block/bootdevice/by-name/system /system

if the /etc/recovery.fstab is correct, then it should match with /etc/fstab, and can be simply mounted with

mount -r /system

the recovery.log you can get from adb

exit
adb pull /tmp/recovery.log "C:\adb\recovery.log"
[Honor 10 Lite Questions & Answers] alecxs:
thanks, we now can see in 1. that your partitions are formatted as erofs. the commands 2. - 5. was for recovery, not for android, so the commands did not work. please note each line is a single command.

in twrp recovery, please try the following (if you get no errors, proceed line by line)

mount -t erofs -r /dev/block/bootdevice/by-name/system /system
ls /system
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

Sorry, missunderstood)

I tried all commands in TWRP - not success, as you already known)

Here is a photo of your last command.
[Honor 10 Lite Questions & Answers] alecxs:
you have successfully mounted /system! that means, just change the fstab from ext4 -> erofs then this twrp will work. I will upload a fixed version today
[Honor 10 Lite Questions & Answers] Shlendr:
TWRP Recovery Honor 10 Lite

Unbelievable! Waiting for the file)
[Honor 10 Lite Questions & Answers] Shlendr:
Does it ready?)
[Honor 10 Lite Questions & Answers] alecxs:
i can not find a mkfs.erofs binary so the partitions remain read-only and non-wipeable. please test this version, i had some trouble re-packing so it may not boot.

do not flash it! test version only!

Download: twrp_3.2_kirin710_erofs.zip

[MENTION=4323130]kilroystyx[/MENTION] Many thanks about the notch, your improvement is highly appreciated!

if you get managed to make a backup of the erofs partitions, you can reformat it to ext4 and restore the backup with the other version. then some files inside /vendor need to be patched (change everything from erofs to ext4)

however, if this fail you may still have a option to find another rom which uses ext4

edit:

Huawei recently changed the LZ4 decompression (improved speed), if someone want to compile use the new sources!

staging: erofs: switch to new decompression backend

As it is a read-only file system, it is generally not supported to mount rw. That means, the whole partition has to be re-created each time you want to modify (for example /vendor/etc/*fstab*). Magisk does support EROFS already. for flashing partitions use /system_image or /vendor_image (it is handled as RAW data) so this TWRP should be fine. But you can not, and you never will be able to install any zips on /system
[Honor 10 Lite Questions & Answers] Shlendr:
Yes, unfortunately i've got an mount errors again:

E:Unknown File System: 'efors'
Unable to find partiton for path '/system'

I did not quite understand: can i install Magisk now without data lost or not? If yes - then tell me how (step by step), please)
[Honor 10 Lite Questions & Answers] alecxs:
you can install Magisk with the second method without TWRP. Please note you must boot into recovery each time you want root access. it depends on how long you press the buttons. read more

https://topjohnwu.github.io/Magisk/install.html#emui-9-or-higher

regarding TWRP this looks like a typo in fstab. please provide recovery.log

edit:

please also provide output of /etc/fstab from recovery. i believe i can cheat TWRP to mount the unrecognized 'erofs' format with a shell script

adb shell
cat /etc/fstab

edit 2:

meanwhile you can still manually mount the partitions in TWRP, maybe then Magisk zip will work too

mkdir /cust
mkdir /product
mkdir /system
mkdir /vendor
mkdir /version
mkdir /odm
mount -t erofs -r /dev/block/bootdevice/by-name/cust /cust
mount -t erofs -r /dev/block/bootdevice/by-name/product /product
mount -t erofs -r /dev/block/bootdevice/by-name/system /system
mount -t erofs -r /dev/block/bootdevice/by-name/vendor /vendor
mount -t erofs -r /dev/block/bootdevice/by-name/version /version
mount -t erofs -r /dev/block/bootdevice/by-name/odm /odm
[Honor 10 Lite Questions & Answers] Shlendr:
"To flash the patched image to your device, here is the fastboot command:

fastboot flash recovery_ramdisk /path/to/magisk_patched.img"

Tried to do that. Booted up. Passed Root check. Enabled Magisk Hide for Google Pay, but it still doesn't work. Tried to use Adaway.apk (need root) to block AD - also doesn't work( So, Magisk installed, but didn't work.
[Honor 10 Lite Questions & Answers] Shlendr:
Here it is:

cat /etc/fstab
/dev/block/mmcblk0p60 /cache ext4 rw 0 0
/dev/block/mmcblk0p68 /data f2fs rw 0 0
/external_sd vfat rw 0 0
/dev/block/mmcblk0p22 /splash2 ext4 rw 0 0
/usbotg auto rw 0 0
[Honor 10 Lite Questions & Answers] alecxs:
are you sure you booted into recovery mode to enable Magisk root? I don't trust these rootcheckers, try su from adb shell. You must add your app to Magisk hide list. AdAway has systemless mode - enable it
[Honor 10 Lite Questions & Answers] Shlendr:
Yes, i am sure: i booted up the phone with long press "PWB+VolumeUp" and instead of booting the TWRP the phone booted in System. Magisk manager shows that the root was granted. Yes, i already add Google Pay app to Hide list.

C:\adb>adb shell
HWHRY-H:/ $ su
su
HWHRY-H:/ #

Enabled systemless mode in AdAway. After rebooting the phone AdAway try to create symlink again and doesn't work.

---------- Post added at 08:33 PM ---------- Previous post was at 08:28 PM ----------

mkdir /cust
mkdir /product
mkdir /system
mkdir /vendor
mkdir /version
mkdir /odm
mount -t erofs -r /dev/block/bootdevice/by-name/cust /cust
mount -t erofs -r /dev/block/bootdevice/by-name/product /product
mount -t erofs -r /dev/block/bootdevice/by-name/system /system
mount -t erofs -r /dev/block/bootdevice/by-name/vendor /vendor
mount -t erofs -r /dev/block/bootdevice/by-name/version /version
mount -t erofs -r /dev/block/bootdevice/by-name/odm /odm

Did this manualy. Flashed Magisk.zip with errors of erofs, but it works like i was flash the patched img file.
[Honor 10 Lite Questions & Answers] Shlendr:
So, Titanium Backup works, Lucky Patcher works, Adaway does not work, Google Pay with Magisk Hide does not work.

But can't move app to system.
[Honor 10 Lite Questions & Answers] alecxs:
of course you can't, it is a read-only file system.

edit:

413 MB free? seems like a problem with f2fs - please double check from adb shell with df -h /data
[Honor 10 Lite Questions & Answers] Shlendr:
Here it is
[Honor 10 Lite Questions & Answers] alecxs:
:good: 37 GB free
[Honor 10 Lite Questions & Answers] Shlendr:
Anyway, can't make a system app(
[Honor 10 Lite Questions & Answers] kilroystyx:
I will, give me some time :)
[Honor 10 Lite Questions & Answers] kilroystyx:
[MENTION=4646731]Alecxs[/MENTION], I PM you, let me know if it worked or send to me a photo how it looks like.
[Honor 10 Lite Questions & Answers] alecxs:
i am sorry you did PM the wrong :) i don't own this device. just post a link and let the community test. meanwhile got the erofs mounted, so i need your version to modify
[Honor 10 Lite Questions & Answers] alecxs:
please note i did not receive a PM

you sent to wrong user [MENTION=4646731]Alecxs[/MENTION] my name is [MENTION=7285913]aIecxs[/MENTION] with i instead of L

:)
[Honor 10 Lite Questions & Answers] kilroystyx:
Check now!
[Honor 10 Lite Questions & Answers] alecxs:
[MENTION=4323130]kilroystyx[/MENTION] Many thanks! [MENTION=3146403]Shlendr[/MENTION] i have modified the twrp_3.2_kirin710_erofs_KilroyStyx.img please test the mounts and post a screenshot. It will display Errors but check /etc/fstab there should be the entries

cat /etc/fstab

edit:

try again (small fix in /sbin/permissive.sh)

# for some reason files inside /etc/init.d lose permissions

chmod -R 0750 /etc/init.d
[Honor 10 Lite Questions & Answers] Shlendr:
Thanks for your work, guyes!

I tried to boot in fastboot mode, but can't do that) Phone boots up in to the system every time...

So, i can't to flash your img file.

I will try to do something with that...
[Honor 10 Lite Questions & Answers] alecxs:
You can flash it from Official TWRP app, but you should patch it against Magisk before
[Honor 10 Lite Questions & Answers] kilroystyx:
You should try to boot into recovery using adb command.

1. Boot into system

2. Enable "Developer options"

3. Enable HDB to allow HiSuite connect your device.

4. Connect your device to PC and assure that HiSuite is connected to device.

5. In the Developer options enable USB debugging

6. Assure the connection is ok, in the adb prompt use the command => adb devices

If return device plus serial goto next item.

7. Write the command => adb reboot recovery

Device should boot now into recovery.

You can test this sequence first with stock recovery and then with TWRP.
[Honor 10 Lite Questions & Answers] kilroystyx:
If you want boot into bootloader use this command instead of 7.

7. Write the command => adb reboot bootloader
[Honor 10 Lite Questions & Answers] @Spyboy:
How to root Honor 10 lite and unlock bootloader
[Honor 10 Lite Questions & Answers] Cmonlol:
/

For f*cks sake, will they make bootloader unlockable?!
[Honor 10 Lite Questions & Answers] catfelix:
And who does not give the green light to unlock the bootloader? After all, a lot of people want to unlock.
[Honor 10 Lite Questions & Answers] alecxs:
Nobody cries for unlocking iPhone, why not accept Huawei's decision? Buy unlocking code from third party once available
[Honor 10 Lite Questions & Answers] fooiskandar:
Anyone have success install twrp...?

Any try this command....?

fastboot flash recovery_ramdisk recovery.img
[Honor 10 Lite Questions & Answers] alecxs:
you should try to boot twrp from fastboot first, as suggested
[Honor 10 Lite Questions & Answers] Nullrequest:
Openkirin has roms for honor 10 lite.
[Honor 10 Lite Questions & Answers] djaurin:
TWRP??

i saw in a website a TWRP for 10 lite (cant link a newbie) or any of you have a working TWRP?

as you know soon there will be EMUI 10 and new rom needs wipe of dalvik cache. I don't know if im asking here right
[Honor 10 Lite Questions & Answers] alecxs:
see post #49 "working" but untested because lack of users. needs a small fix for system-as-root maybe. try and report back
[Honor 10 Lite Questions & Answers] Lakrates:
is there any update on twrp ?
[Honor 10 Lite Questions & Answers] Gigifol:
Ciao ragazzi a quanto pare sul sito che vi sto per scivere c'è il download di rom per

Ciao ragazzi a quanto pare sul sito che sto per dirvi ci sono le rom per molti dei modelli huawei ed Honor. Il sito è

openkirin.net/download/

Mi date conferma? Si può quindi flashare una rom custom su Huawei?
[Honor 10 Lite Questions & Answers] Neko-Monika:
I recently unlocked my Honor 10 Lite and flashed this recovery image (because I can't boot it through fastboot, it reports "command not allowed" during booting stage). At this moment of time, I noticed the next bugs:

1. Touch doesn't work, but I can use mouse through USB-OTG cable

2. Recovery cannot remember ticked state of "Never show this screen again" on "Unmodified system partition" screen and any modified options: language, timezone, etc.

3. Also recovery cannot mount some partitions, according to logs. Command to mount /system from this post works perfectly, and after that I can also format this partition.

I can be your recovery tester, if you want. But I don't visit XDA forum that often, so you may write me on Discord: Neko-Monika#0940
[Honor 10 Lite Questions & Answers] alecxs:
hi, many thanks for testing and reporting back!

as you may already have noticed i don't own this device. therefore i am not primary interested in development. but of course i am offering my help in case you want me to fix

fastboot boot is disabled on most devices nowadays, which makes it harder to figure out cause of touchsreen not working. glad you figured out otg mouse.

unfortunately i don't know how twrp works (language, timezone, etc.) but if you provide recovery.log i will help to fix fstab with proper mounts
[Honor 10 Lite Questions & Answers] Neko-Monika:
Here you go. I pulled it through adb because I can't insert SD Card into my phone right now and all data in Internal Storage is encrypted by default.
[Honor 10 Lite Questions & Answers] alecxs:
seems the init.d script is not working, can you try to start manually from shell. when script is running try to mount system from the mount menu a view times, finally adb pull /tmp/recovery.log again

sh -x /etc/init.d/00_mount_watchdog
[Honor 10 Lite Questions & Answers] Neko-Monika:
I started this script manually through TWRP Terminal, then went to main screen and open Mount menu. Practically all partitions were ticked (except Splash2; Micro SD Card and USB OTG doesn't count, I think). Then I tried to untick and tick System few times: unticking happens immediately, but ticking - only after a short time.
[Honor 10 Lite Questions & Answers] alecxs:
have added init.d support in init.rc to make the script run on boot. added /system_root and /storage in recovery.fstab (same link)

service set_permissive /sbin/permissive.sh
oneshot
seclabel u:r:recovery:s0

Note the delay is in nature of this cheat because all 00_mount_watchdog does is looking for failed mount attempt in recovery.log and update /etc/mtab with erofs entry. with growing log the TWRP session becomes more and more slower
[Honor 10 Lite Questions & Answers] Neko-Monika:
I redownloaded and updated flashed recovery image through fastboot. Touchscreen still doesn't work, System Root mounts in Mount menu successfully, but it's a little strange to see a System item next to it. And TWRP still tries unsuccessfully to mount same partitions. What else can I check to see if it's working?

By the way, I went from stock EMUI 9 to AEX 10 ROM by OpenKirin. Is that not critical in tests?
[Honor 10 Lite Questions & Answers] alecxs:
Touch screen nothing i can do. /system is required for binaries in /system/bin and is only a bind mount of /system_root/system

TWRP can not mount partitions because it does not allow erofs file system type, that's what the shell script is for and it's only a cheat not a fix. Is the script running automatically on boot?

afaik ROM doesn't matter because this TWRP has bundled kind of it's own ROM in /system

you can try to flash magisk canary maybe it will fix touch by patching dts or dtb partition (check logs)
[Honor 10 Lite Questions & Answers] Neko-Monika:
Well, I went to EMUI 9.1 after some minor issues in custom ROM, but that's not the point. So, I can mount System Root on custom ROM, but in stock ROM - I can't, it gives me an "Invalid argument" error. Probably because system partition in custom ROM is not in erofs format.

I also tried to mount vendor, same error. Seems like script doesn't boot during recovery loading.

If anything, "Не удается смонтировать" is "Failed to mount" on English. I just changed recovery language on Russian.
[Honor 10 Lite Questions & Answers] alecxs:
custom ROM is ext4 as usual. interestingly i see no error for /storage that mean bind mounts will work out of the box without script at all. can you please double check if script still works in english language when started manually, maybe i broke it completely or maybe it just not running..

please also try to start from

/sbin/permissive.sh
sh /sbin/permissive.sh
/etc/init.d/00_mount_watchdog
sh /etc/init.d/00_mount_watchdog
[Honor 10 Lite Questions & Answers] Neko-Monika:
Manually started sh -x /etc/init.d/00_mount_watchdog is still running successfully. I also tried to run these commands, and here's results:

1. sh /sbin/permissive.sh refuses to start without -x:

setenforce: setenforce() failed: Invalid argument

But if I run this command with -x, the output will be:

+ setenforce 0
setenforce: setenforce() failed: Invalid argument
+ chmod -R 0750 /etc/init.d
+ find /etc/init.d -maxdepth 1 -type f -perm /110
+ / # sort
+ read -r SCRIPT
+ /etc/init.d/00_mount_watchdog

And after these strings it starts spamming this string:

umount: can't unmount : No such file or directory

But in Mount menu practically all partitions, except Splash2, were mounted.

2. sh /etc/init.d/00_mount_watchdog started without any output, and seems like practically all partitions, except Splash2, were mounted.

Here's logs:
[Honor 10 Lite Questions & Answers] alecxs:
fixed the language bug, should detect Failed to mount/Не удается смонтировать now in every language according to /twres/languages/ru.xml -> if that text line appears in recovery.log the script will mount erofs (same for umount)

not sure whats the problem with autostart, have deleted permissive.sh and moved the init.d code into setprop.sh instead. note there is a delay of 10 seconds on boot. if script still does not start you can start it manually by typing

setprop.sh

please confirm umount is spamming only when script is started twice (so two sessions of 00_mount_watchdog are in a race condition)