yashsingh1/xdaforums huggingface dataset:
[General Topics] adeii:
New stock update appeared for LDN-L21B C432 (8.0.0.159), last one was 8.0.0.151.

http://update.dbankcdn.com/download/data/pub_13/HWHOTA_hotaMigrate_900_9/d1/v3/beb9cc4fb2a94ad1bedd5e32386ff99b/full/update.zip
http://update.dbankcdn.com/download/data/pub_13/HWHOTA_hotaMigrate_900_9/d1/v3/beb9cc4fb2a94ad1bedd5e32386ff99b/full/public/update_data_full_public.zip
http://update.dbankcdn.com/download/data/pub_13/HWHOTA_hotaMigrate_900_9/d1/v3/beb9cc4fb2a94ad1bedd5e32386ff99b/full/LDN-L21B_hw_eu/update_full_LDN-L21B_hw_eu.zip
[General Topics] 雯hai:
@adeii

Bro.When I brush the GSI of Android 11 and 9, there's a problem with the brightness. The maximum brightness is still very dark. Android 10 is normal. Do you have any solutions?
[General Topics] B83C:
One stupid question, are LDN-LX2 and LDN-L21 the same? And is the firmware of one compatible with the other?
[General Topics] B83C:
Anyone tried this combination:

CAOS11 phh + Magisk v23.0 phh + adkcal kernel?

It doesn't seem to run well on my LDN LX2... (I see a lot of dumps from crashed process in dmesg, causing the device to lag very much)

I have attached the log below
[General Topics] adeii:
Kernel and /system are the same, i guess. Diff is in /vendor.

I you can try permissive kernel with no any further modds/addons 3.18.67

Update1:Try to update OpenGL and Vulkan drivers flashing this. Use [M]agisk flashable, so you could disable it if not works.
[General Topics] adeii:
Maybe. Look for post-install or post-GSI install or overlay patches in this thread. There is some small flashable with fixed brightness.

Update1: like this.

Update2: edit /system/build.prop like Milan did.

Update3: or put this and reboot.
[General Topics] B83C:
Anyone facing off-screen battery draining issues on phh's treble roms?

I find mine with reduction of up to 10% overnight!

Current setup : CAOS 11 + (overlay + acdkal kernel) by @adeii

In fact, I tried to flash every single drivers but none worked on android R (phh treble). Instead, it keeps rebooting into recovery.
[General Topics] B83C:
Would you mind rebuilding the overlay with higher brightness val?

it's quite low here...

Despite having installed the overlay in both system and vendor, I couldn't seem to set the brightness beyond a certain threshold in the system except sysfs.
[General Topics] B83C:
I am a bloody dumbass. The bootloader locked itself after I flashed my old emmc backups and now it couldn't be unlocked ( Idk why but I flashed some 'foreign' partitions on the phone before unlocking it with dc unlocker, and they have been deleted afterwards so I do not have any copy of which ..) Anyway to unlock the bootloader again? I have some backup.ab of the entire system but it doesn't help at all :(
[General Topics] adeii:
I guess that you had saved unlocked code first time and that you could re-use it ?
[General Topics] Arsam javed:
I have bought A new Phone named Infinix Hot 11S it is A/B Type. I tried to Find its Stoc Recovery So that i can make TWRP recovery for it but i am unable to find it. Either its name is changed or something else please look at the screen shot and tell me where it could be
[General Topics] B83C:
Hello, are you guys able to find the uart port on this device?
[General Topics] islamDZ202:
hello guys i need help !

so i have auto restart problem on my LDN-LX2 i did backup files with Qfil tool and i have this questions :

1-how to make img file from bin file ( exemple want to make userdata.bin to userdata.img)

2-is userdata.img responsable of the personal data on phone ?

3-when flashing can i edit xml programmer to skip userdata flashing or i remove the xml line does that mean i can keep my data on phone?

4-if i remove userdata.img from flash folder can i skip flashing (userdata file ) using Qfil ?

5-how can i save my personel data with the qfil tool.

6-how i can use the qcfire without the smartcard or i dont know cause always make error smartcard missing .

here is an image , as you can see i only readdata and save it in bin extensions.
[General Topics] islamDZ202:
hello guys ! I'm new to this field please help me :)

i have the problem with LDN-LX2 another question is how to read this bin files i have been searching for this many times i didn't find an answer
[General Topics] islamDZ202:
yes you can use EDL mode by using the testpoints search it
[General Topics] adeii:
Flash GSI images on /system, resizes your system partition.

I tried AOSP 10 on EMUI 8.0 system fall and got shrinked system partition from 2.1GB to 1.8GB and could not restore previous system.

System part, No.54 got "new parts" like prevs, prevas, prev. as part 55,56,57,58 and userdata got number 59 (originaly 55). So, I got to delete those new part 54-59 and make as one system 54.

Manual is got from other site:

You must have TWRP installed, a USB connected smartphone and ADB, fastboot on PC:

Get parted and gdisk from here

Reboot in recovery mode

adb reboot recovery
Push gdisk and parted

adb push parted /
adb push gdisk /
chmod 777 ./parted
chmod 777 ./gdisk
With parted, resize the data partition. In my case, it is 55 and we resize from 24.8G to 24G

adb shell
umount /data
parted /dev/block/mmc0blk0
resizepart 55 24G
Now exit from parted and open gdisk

umount /system
gdisk /dev/block/mmc0blk0
d #delete, select the system partition, in my case is 54
n #new,I select the new size of 3G for my system partition and 0700 as fsid
od 3506176 do 9043967
w #write
Now, reopen with parted and rename the partition 54 as system

Reboot in recovery mode from TWRP or ADB

adb reboot recovery
The command

fdisk -l /dev/block/mmc0blk0
must report correct sizes

Now, create the ext4fs

make_ext4fs /dev/block/mmc0blk0p54
Resize the fs

umount /system||echo ok
e2fsck -f /dev/block/mmcblk0p54
resize2fs /dev/block/mmcblk0p54
Eventually, correct the /etc/fstab. The command mount /system must complete successfully. With TWRP, try to wipe the partitions data, system, etc. The command must complete successfully.

Install Android ROM or recover from a backup.
----
I see my Lineage OS image resize automatically the partition to 1G (sic!) so I'm trying this workaround:

Install Lineage OS
Reboot and wait for Android OS
Reboot in TWRP
Resize the partition
Install the other zips
[General Topics] simbiyot:
is there a rom for (lineageos) for huawei y7 2018 ldn-l01? Thank you...? adeii
[General Topics] adeii:
There are LineageOS GSIs, for android 8 to android 13.

You can try these, problem is larger size of image than system partition.

Try various GSI vanila (pure android without GApps) A-only, arma64.

Latest LineageOS 15.1 / Android 8.1

Release AOSP 8.1 v32 · phhusson/treble_experimentations

June security patch

github.com

Just example, Lineage OS 16 / Android 9 is 1.9GB, it could pass partition size.

https://xdaforums.com/t/discontinue...-gsi-all-archs-and-how-to-build-them.3908029/

Also try LOS 17 / Android 10, LOS 18 / Android 11 etc.

Andy Yan's personal builds // GSI - Browse Files at SourceForge.net

sourceforge.net

For GApps, try some package via Magisk, to install it systemlessly. Some ye eld post:

https://xdaforums.com/t/deprecated-...gapps-install-opengapps-systemlessly.3611362/
[General Topics] simbiyot:
Thank you so much adeii 🙂
[General Topics] adeii:
Your are welcome. Hope some custom ROM works already on your phone.
[General Topics] Dayes:
@adeii long time no see, I got a new phone a while ago because I somehow broke my huawei's audio. I'm thinking of using my huawei as a second phone or a experimental device because I'm thinking of porting 4.9 to it but I have no idea on how to fix the audio. I thought it was the speakers itself, but even the headphone jack doesn't work and I would need to make it use the earpiece as a speaker for the audio to work. Here are the logs if you would like to look at it. I have also tried going back to stock emui 8 but the same issue had persisted unfortunately.

UPDATE: it looks like huawei pulled their firmware for the LDN-LX2 or nova2lite off their servers or atleast moved it since I can't download it from the erecovery anymore
[General Topics] Dayes:
Also, is it possible to find a way to flash the product.img or other image files that are from stock? since flashing it through fastboot would report it as command not authorized or something like that
[General Topics] simbiyot:
is there a way to unlock bootloader huawei y7 2018 ? becoz mine is still locked. 😔
[General Topics] Dayes:
There is, but it's not free. I don't know about the others, but I got mine unlocked by using DC Unlocker. It was around 3-5USD, If I remember correctly.
[General Topics] simbiyot:
Thank you for information. :) Do you know about this rom video or screen shot if there is?
[General Topics] Dayes:
This is probably going to be hard, but does anyone have the firehose for the LDN ? I managed to find some for the LDN msm8937 but they don't work.
[General Topics] Dayes:
I don't have current screenshots/video of custom roms on my LDN-LX2 but I do have old pictures of it.
[General Topics] simbiyot:
oh no i didnt knew that. But amazing. But its LDN-LX2 but mine LDN-L01 was it compitable? and i still couldnt unlock my phones bootloader. 😔
[General Topics] Dayes:
good news! i fixed my huawei.

bad news my bootloader got locked
[General Topics] psr540:
I am stuck somehow trying to install ASOP follwing @ProgrammingPleb tutorial. I can't just seem to pass overwriting vendor partition. Phone is Enjoy 8(LDN-AL00 8.0.0.255(c00) ). Tried both VENDOR.img downloaded from tutorial and one unzipped from LDN-AL00 8.0.0.202(c00). Twrp refused to flash img file reporting "cannot write image to file systems" error (even backed up oem vendor failed), Tried dd copy, only oem vendor image saved from TWRP works, the other two just resulted in unmounted partion. Checked both dmesg and with blkid it seems both file are bad. Late I found the oem one could be mounted as a loop device while the other two reported I/O error.

I tried to use the oem vendor but df shows the partition is 100% full, flashing updateVenFstab-noVerEnc.zip reported success but resulted in an empty fstab.qcom. Maybe I can try deleting some files in vendor directory but I am not familar with this stuff. Now really stuck.
[General Topics] psr540:
Follwing up this post, in desperation, I just deleted some libs (camera, fingerprint etc) , the small freed space to allowed me to push manually edited fstab.qcom and recovery.fstab(the updateVenFstab-noVerEnc.zip lookes have different partition layout than mine), now I can boot into the system but the phone shuts down in about 10 seconds rebooting to TWRP. Anyway this is a big step.
[General Topics] psr540:
Weired tried both Havoc and ASOP all have no way to navigate our any app, once app opened, I can not swipe away it or back to home screen, what could be the problem here?
[General Topics] psr540:
Probably this is a dead thread I don't know, here is some update. I finally figured out the bad vendor image is actually in sparse format. Unfortunately when converted to raw image it's bigger than my phone's current vendor partition. The weired no swipe is actually a mistake by trying to shrink the vendor patition when I deleted sh in vendor bin and made a soft link to busybox (btw, both are the same version per --help showed). After adding back sh, UI works normally now (to my surprise the three navigation button reappeared which is lacking before).

It seems my phone (pure china version) is very tight on each partition I could now only load havoc and aosp,lineageos booted to a blank screen while pixel is too large.

Some observation: both havoc and aosp does not support Chinse sim card with mobile network greyed out. Aosp drains battery very fast and is very hot around camera area while havoc has non-functional adb interface. Both have mobile data working but reports limited access.
[General Topics] psr540:
{Mod edit: Quoted post has been deleted. Oswald Boelcke, Senior Moderator}

Flash TWRP (I use twrp-ldn-64bit-all.img) to recovery_ramdisk, boot to TWRP and flash latest migisk.zip (I guess version 27). Then boot to phone install migisk app (27 too), choose install->direct install), you will be OK.
[General Topics] Hari tharan:
I have downloaded the source code, but how can I make a custom rom from it?

I'm using Huawei Nova 2 Lite how to root my device please help me
[General Topics] adeii:
Does sourcecode contain /kernel, /vendor folders only or you had found something more like device tree?

This should be enough to make custom recovery first, but for custom rom...something is missing.
[General Topics] adeii:
I made backup of some partitions of LDN-L21B (Y7 P. '18) with stock rom (8.0.0.134-C432) here@mega.

There are no classic /boot, but partition /aboot, /kernel, /bootfail and /ramdisk; (i guess boot is splinted to kernel and ramdisk).

Stock recovery is splitted to /recovery_ramdisk and /recovery_vendor (i guess also /kernel, since no zImage on unpacked image)

There is also eRecovery with parts /erecovery_kernel, /erecovery_ramdisk and /erecovery_vendor. (/er_kernel is the same as /kernel). May be useful for future projects.
[General Topics] nena2410:
I use y7 prime 2018(ldn-l21) but I can't find twrp file on Google can someone please send me a link and is there any other way to install it without pc
[General Topics] adeii:
1 - its not made yet;

2 - we have to use PC to flash future twrp.img via fastboot command in bootloader mode...or it could be done with rooted phone, in terminal like: dd if=twrp.img of=/dev/block/mmcblk0p43

I guess it should be flash to /recovery_ramdisk partition.
[General Topics] Hari tharan:
Okay thank you
[General Topics] nena2410:
Can someone tell me step by step if I can root y7 prime 2018(ldn-l21) without any custom recovery.?

Becase I can't find any custom recovery on internet

and king root and other apps don't work.
[General Topics] adeii:
This guy did it over teamviewer and flexihub for 4$ ministryofsolutions.com/huawei-bootloader-unlock-paid-service-html. Cracking bootloader code will ERASE all data in phone (internal memory also). After 1st boot of phone, turn on adb debug and oem unlocking. Then unlock bootloader (in bootloader mode) with code that you got from "ministry of solutions"-guy and it will ERASE all data again. Use this guide.

Now easy part, overwrite ramdisk part of bootloader with patched ramdisk and install Magisk Manager to got rooted phone, with no need for custom recovery! Use this guide!
[General Topics] adeii:
TWRP is compiled (android 8.0 branch) and can not boot.

Error: dtb not found. Dummy (empty) recovery.img-dt or *.img-dtb not helping.

UPDATE: Built again, but no luck.

Even: flashboot boot zImage ramdisk.cpio.gz

freeze and do not boot to recovery. (zImage is stock from /kernel and ramdisk is from compiled TWRP recovery.img.

Even ramdisk from TRT-Lx1 TWRP do not work on Y7 Prime 2018. Any way to patch kernel to work with twrp?!
[General Topics] adeii:
With "cat /proc/config.gz > config.gz" and "adb pull config.gz", I got (stock) kernel config from Y7 Prime 2018. if someone needed.
[General Topics] adeii:
Honor 7A and Honor 7C also has the same CPU MSM8937 but no twrp for them.

Honor 6A has older system, EMUI 5.1 and CPU MSM8937.

I tried to port Honor 6A's TWRP to stock recovery of Y7 Prime 2018..

.

It boots, but extremely unstable and reboots to recovery after 2 sec. You can not bypass recovery-loop, only way is to reflash original recovery_ramdisk in bootloader mode.

If someone can help, to make stable twrp, link is https://www.androidfilehost.com/?w=files&flid=285727.

Use fastboot flash recovery_ramdisk rec_ramdisk_honor6a.img and fastboot reboot to reboot to system. Then reboot to recovery using some app or adb command... Be sure that you already make backup of stock recovery_ramdisk for re-flashing / unbricking.

update: problem is probably in many *.rc files in /recovery_ramdisk but also in symlinked files from /vendor
[General Topics] adeii:
TWRP 3.2.3 for Toronto (Y7 2017) by Kiruha21, successfully ported for London (Y7 [Prime] 2018) !!!

https://www.androidfilehost.com/?fid=11410963190603859487

Still in beta phase!!! WORKS, BUT USE ON YOUR RESPONSIBILITY!!!

Limitations:

- stock /data and its part /sdcard (or /internal_sd) are encrypted and folders and files have fuzzy names

- screencap -p *.png and sideload do not work

- adb can not write on /external_sd even as root

Pros:

- charger animation works (green cycle and flashbolt)

- reboot to system, recovery, bootloader and power off works

- mounting of partitions works

- reading files works

- terminal can write files

Installation:

-Back up stock /recovery_ramdisk partition (terminal > su > dd if=/dev/block/mmcblk0p43 of=/storage/5CEB-2300/stock_recovery_ramdisk.img)

-Boot to bootloader mode (power off Y7 and hold Vol- and Power until white Bootloader screen)

-Flash twrp via fastboot (fastboot flash recovery_ramdisk rec_ramdisk_trt2ldn_port1.img)

-Reboot to system (fastboot reboot)

-After that, reboot to twrp recovery (adb reboot recovery) or use some app like 3Minit rebooter or use Vol+ + Power combo on turned off Y7.
[General Topics] futuristicsam:
Hi, Im a few minutes from trying it... have you flashed any zip with the recovery or do a nandroid backup?... Do I need an sdcard to flash zip if internal storage is encrypted or it works regardless?...Also can I sideload zip via adb?

Update: Sorry about the adb question. Didnt read correctly. Works as you said. Thank you. I'll try to find sd card or otg for flashing zip.
[General Topics] kalfish:
It's a mid-range phone and yeah it does well in that category.
[General Topics] adeii:
OTG and Sideload not work. Have to use adb push to /tmp (or /data/tmp) or use external sd.

/data and /sdcard have most of crypted folders and files and can not backup on stock rom.
[General Topics] Proseph:
Which partition contains boot.img? I need to pull it via ADB in order to install magisk using the patched boot.img method. I have a Y7 Prime 2018 (LDN-LX2) running Ressurection Remix GSI and it's limited to ADB root only
[General Topics] adeii:
No boot.img in Oreo. There are kernel.img and ramdisk.img, Magisk patches ramdisk.img.

Backing up of kernel, ramdisk, e/recovery also works in TWRP but just to external Micro SD.

If you disable forced encryption of /data and /sdcard, you could also backup to internal storage.

/kernel emmc /dev/block/bootdevice/by-name/kernel flags=display="Kernel";backup=1;flashimg
/ramdisk emmc /dev/block/bootdevice/by-name/ramdisk flags=display="Boot_RamDisk";backup=1;flashimg

Run in terminal: ls -l /dev/block/platform/soc/7824900.sdhci/by-name to list all partitions.

Partitions in LDN-L21, should be the same

kernel -> /dev/block/mmcblk0p41
ramdisk -> /dev/block/mmcblk0p42
recovery_ramdisk -> /dev/block/mmcblk0p43
system -> /dev/block/mmcblk0p54
userdata -> /dev/block/mmcblk0p55
vendor -> /dev/block/mmcblk0p51
[General Topics] Proseph:
Thanks. I successfully installed magisk. Is there a way to set selinux mode to permissive? I've tried multiple apps but it won't work and tried the command "setenforce 0" via adb but it says "invalid argument"
[General Topics] adeii:
If you decompile ramdisk.img, you will got /split_img/ramdisk.img-cmdline with ending:

... androidboot.selinux=enforcing buildvariant=user you could change it to androidboot.selinux=permissive buildvariant=userdebug

and recompile it.
[General Topics] Proseph:
I tried it and flashed it, but the SELinux status is still enforcing :(
[General Topics] adeii:
What is manifestation of enforced SELinux? I have not enough knowledge about it.

SELinuxModeChanger said about gone permissive, but went on enforcing on next start.

https://xdaforums.com/apps/magisk/selinux-mode-inverter-t3775271 Magisk module also does not work.

Next module, let me change type from user to userdebug, but can not add ro.build.selinux to prop.default (manually add also not helping).

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228

UPDATE: If change ro.debuggable=1, ro.secure=0, ro.build.type=userdebug, also can't add/change selinux.

UPDATE2: Kernel recompile is needing! Change CONFIG_SECURITY_SELINUX=y to n.
[General Topics] Proseph:
How to recompile kernel? And where to find CONFIG_SECURITY_SELINUX?
[General Topics] adeii:
First post of this thread got link to LDN kernel sourcecode. Default config is: arch/arm64/configs/merge_msm8937_64_defconfig.

I guess it is similar to https://github.com/adeii/kernel_huawei_msm8937 and set london_se_defconfig as config.

I followed the manual, but I can not finish compiling.
[General Topics] adeii:
2 more ports of TWRP, but still not completed. Just proof of concept :)

* TWRP 3.2.1 using TWRP autoporter + TWRP 3.2.3 for Y7 2017 =

got TWRP with working sideload, mounts, adb,terminal, but no otg (32bit vs 64bit conflict), no mtp and no data decrypting

https://www.androidfilehost.com/?fid=11410963190603893360

* TWRP 3.2.1 using TWRP for P10 Lite (with Kirin 6280 cpu) + ported TWRP for Y7

= got TWRP with working OTG and mounts, but no adb, no mtp, no sideload and no data decrypting

https://www.androidfilehost.com/?fid=11410963190603892656

Encrypted files in /data can not be copied = no /data backup.

Still can not combine these two for fully working twrp...Any help?!
[General Topics] adeii:
New, better port of TWRP 3.2.1 for Y7 (Prime) 2018 / LDN-L21

https://www.androidfilehost.com/?fid=11410963190603893514

Working:

mounts all partitions, mount usb_otg, adb, sideload, flashing, wiping, terminal, reboot to system/recovery/bootloader/turn off...

Not working:

mtp, decrypting /data files, backup of /data

UPDATE: At least, /data_image (emmc) can be backed up on 32GB+ external sd and/or usb drive and on PC via adb with:

adb exec-out dd if=/dev/block/mmcblk0p55 > data-emmc-backup.img (about 25GB)
[General Topics] Proseph:
Hey, can you kindly upload stock recovery ramdisk? My drive got corrupted and I don't want to download full firmware just to pull it..

---------- Post added at 01:43 PM ---------- Previous post was at 01:37 PM ----------

Planning to build a permissive kernel for Huawei Y7 Prime (LDN-LX2), I just need to setup my Linux machine.

We need permissive kernel in order to successfully boot Android Pie GSIs since only HavocOS and phhuson's Pie GSIs work with enforcing kernel. It is also needed to fix backlight bug when running 8.1 or 9.0 GSIs
[General Topics] adeii:
Sure! https://www.androidfilehost.com/?fid=11410963190603879155 stock rec_ramdisk

and stock with adb.secure=0 at https://www.androidfilehost.com/?fid=11410963190603853321

Good luck with building!
[General Topics] adeii:
New, better port of TWRP 3.2.x for Y7 (Prime) 2018 / LDN-L21

https://www.androidfilehost.com/?fid=11410963190603909865

Ported from TWRP for Honor 7C / LDN-L29

Working:

mounts all partitions, mount usb_otg, adb, mtp, sideload, flashing, wiping, terminal, reboot to system/recovery/bootloader/turn off,

backing up of data_image

Not working:

decrypting /data files, backup of /data, screencapture
[General Topics] Nathorakain:
Hi, just wondering before i download and try if this is compatible with LDN-LX2 (nova 2 lite dual sim) it will be my first time venturing into this side of things with android devices so not sure if there's any differences or concerns
[General Topics] adeii:
Theoretically, it is same telephone (msm8937, emui 8.0, treble) just make sure that you have unlocked bootloader (since june 2018. you must pay about 4$ for service) and backed up stock recovery_ramdisk partition (it is /dev/block/mmcblk0p43 on LDN-L21B or /dev/block/bootdevice/by-name/recovery_ramdisk or /dev/block/platform/soc/7824900.sdhci/by-name/recovery_ramdisk) or got it extracted from stock rom's UPDATE.APP.

Also, you need for restore stock ramdisk and recovery_ramdisk for every upgrade.