Skip to content

heyManNice/flashlmdd_rec_flash_win

Repository files navigation

flashlmdd_rec_flash_win

Choose your language

English | 中文简体

brief

Script code for flashing Windows dual-system on LG V50, allowing customization of disk space for Android and Windows.

Other device repositories:

To reduce testing costs, the script should be device-specific. For new devices, please create a new Fork.

Process Diagram

过程图片

How to Flash

This script is currently in the testing phase.
If you are worried about damaging your LG V50, do not flash this package yet. Flashing may fail unexpectedly, and we are not responsible for bricking your device.
Please ensure you have the ability to unbrick your device before flashing this package.

Preparation

  • Hardware: LG V50 phone, OTG cable, USB drive with at least 8GB capacity
  • Software: flashlmdd_rec_flash_win compressed package
  • Phone status: Able to enter third-party recovery

Steps

  • Format USB Drive (SD Card): Format the USB drive (or SD card) to exFAT. If it is already in this format, you can skip this step.
  • Copy Flash Package: Extract the flashlmdd_rec_flash_win folder from the compressed package and place it in the root directory of the USB drive.
  • Configure Flash Package: Open the flashlmdd_rec_flash_win folder and find package.info. Open it with a text editor. Here, you can set whether to partition and the partition sizes for Android and Windows. If this is the first time installing Windows on your phone, the partition function must be enabled.
  • Install TWRP (Optional): The recommended recovery is v50-twrp-installer-v3.6.0-flashlmdd_ab-by_youngguo (included in the compressed package). It was tested during development and has good compatibility.
  • Connect USB Drive (SD Card): In TWRP, insert the USB drive (SD card) into the phone and use the mount function to mount the external USB drive.
  • Install Windows: Locate /usb-otg/flashlmdd_rec_flash_win/install.zip and flash it like a regular ROM.

For Developers

The structure of the flash package is as follows:
flashlmdd_rec_flash_win
  backups //Directory for partition backups during flashing
  sources //Windows resource folder
    install.wim //Windows resource file
    uefi.img //UEFI file
  install.zip //Flash script file
  package.info //Flash package information and configuration file

By replacing install.wim, you can install any version of Windows.

Use.\build.bat release to generate the install.zip file in ./package_example.
Use.\build.bat dev to generate the test.zip file in ./build and push it to the phone’s /tmp via adb.

Related Resources

Binary Programs:
bash busybox toolbox dos2unix parted wimlib-imagex mkntfs ntfsfix bcdboot mkfs.fat 7z adb

Reference Tutorials: woa-flashlmdd windows-flashable-script

WOA Related Resources: msmnilePkg msmnile-Drivers

System Images:

  • [Luo]Windows 10 Pro Arm64 21390.2050.wim

twrp:

  • v50-twrp-installer-v3.6.0-flashlmdd_ab-by_youngguo220102.zip

About

Script code for flashing Windows dual-system on LG V50, allowing customization of disk space for Android and Windows.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors