Jump to content

LG G2 mini (lg-g2m): Difference between revisions

From postmarketOS Wiki
Ungeskriptet (talk | contribs)
Unlocking the bootloader: Don't forget to reboot to edl
Tags: mobile edit mobile web edit
SoySoy (talk | contribs)
m originalversion
 
(5 intermediate revisions by 4 users not shown)
Line 4: Line 4:
| codename = lg-g2m
| codename = lg-g2m
| releaseyear = 2014
| releaseyear = 2014
| originalsoftware = Android 4.4.2
| originalsoftware = Android
| chipset = Qualcomm MSM8926 Snapdragon 400
| originalversion = 4.4.2
| chipset = Qualcomm Snapdragon 400 (MSM8926)
| cpu = Quad-core 1.2 GHz Cortex-A7
| cpu = Quad-core 1.2 GHz Cortex-A7
| gpu = Adreno 305
| gpu = Adreno 305
Line 60: Line 61:
{{note|'''Note:''' Only the d620r model has been tested!}}
{{note|'''Note:''' Only the d620r model has been tested!}}


# Make sure you on Android Lolipop firmware (V20b tested). A link to the firmware can be found [https://androidfilehost.com/?fid=17825722713688289343 here]
# Make sure you are on Android Lolipop firmware (V20b tested). A link to the firmware can be found [https://androidfilehost.com/?fid=17825722713688289343 here]
# Download and install bkerler's EDL tool from [https://github.com/bkerler/edl/archive/d5ff2d474a185a0c0df09c74dfa24eb7cfe6e9e5.zip here] or clone it like below. '''The latest master branch does not work for this phone, so we reset working commit <code>d5ff2d4</code>.'''
# Download and install bkerler's EDL tool from [https://github.com/bkerler/edl/archive/d5ff2d474a185a0c0df09c74dfa24eb7cfe6e9e5.zip here] or clone it like below. '''The latest master branch does not work for this phone, so we reset working commit <code>d5ff2d4</code>'''
#:<syntaxhighlight lang="shell-session">
#:<syntaxhighlight lang="shell-session">
$ git clone https://github.com/bkerler/edl.git && cd edl
$ git clone https://github.com/bkerler/edl.git && cd edl
$ git reset --hard d5ff2d474a185a0c0df09c74dfa24eb7cfe6e9e5
$ git reset --hard d5ff2d474a185a0c0df09c74dfa24eb7cfe6e9e5
</syntaxhighlight>
</syntaxhighlight>
# Download necessary files for unlocking the bootloader from [https://github.com/ungeskriptet/lg-g2-mini-unlock-files here].
# Download necessary files for unlocking the bootloader from [https://github.com/ungeskriptet/lg-g2-mini-unlock-files here]
# Reboot to EDL from Android:
# Reboot to EDL from Android
#:<syntaxhighlight lang="shell-session">
#:<syntaxhighlight lang="shell-session">
$ adb reboot edl
$ adb reboot edl
</syntaxhighlight>
</syntaxhighlight>
# Dump all partitions from the phone and back it up:
# Dump all partitions from the phone and back it up. You can delete <code>userdata.bin</code> to save space on your computer
#:<syntaxhighlight lang="shell-session">
#:<syntaxhighlight lang="shell-session">
$ edl rl dump_lg-g2m --genxml
$ edl rl dump_lg-g2m --genxml
</syntaxhighlight>
</syntaxhighlight>
# Write the patched aboot to the phone with files from the GitHub repo:
# Write the patched aboot to the phone with files from the GitHub repo
#:<syntaxhighlight lang="shell-session">
#:<syntaxhighlight lang="shell-session">
$ edl w aboot aboot_d620r_patched.bin --memory emmc --loader 008050e100000000_cc3153a80293939b_fhprg.bin
$ edl w aboot aboot_d620r_patched.bin --memory emmc --loader 008050e100000000_cc3153a80293939b_fhprg.bin
</syntaxhighlight>
</syntaxhighlight>
# (Optionally) Flash TWRP:
# (Optionally) Flash TWRP
#:<syntaxhighlight lang="shell-session">
#:<syntaxhighlight lang="shell-session">
$ edl w recovery twrp-3.1.1-0-g2m.img --memory emmc --loader 008050e100000000_cc3153a80293939b_fhprg.bin
$ edl w recovery twrp-3.1.1-0-g2m.img --memory emmc --loader 008050e100000000_cc3153a80293939b_fhprg.bin
</syntaxhighlight>
</syntaxhighlight>
# Reset the phone by removing the battery or with:
# Reset the phone by removing the battery or with
#:<syntaxhighlight lang="shell-session">
#:<syntaxhighlight lang="shell-session">
$ edl reset --loader 08050e100000000_cc3153a80293939b_fhprg.bin
$ edl reset --loader 08050e100000000_cc3153a80293939b_fhprg.bin

Latest revision as of 22:07, 23 October 2023

This device is marked as not booting.
LG G2 mini
Manufacturer LG
Name G2 mini
Codename lg-g2m
Released 2014
Hardware
Chipset Qualcomm Snapdragon 400 (MSM8926)
CPU Quad-core 1.2 GHz Cortex-A7
GPU Adreno 305
Display 540 x 960 IPS LCD
Storage 8 GB
Memory 1 GB
Architecture armv7
Software
Original software Android
Original version 4.4.2
postmarketOS
Category testing
Pre-built images no


Users owning this device


How to enter flash mode

  • Recovery mode: Power on the device by holding Volume Down and Power, once the screen turns on release the buttons and hold them again shortly after. Select "Yes" at the factory reset screen. If you have TWRP installed it won't actually wipe your phone.
  • Download/Bootloader mode: Hold down Volume Up and connect the device to a computer with a USB cable while it is in a powered off state. If you erased the laf partition the phone will boot into fastboot mode.

Unlocking the bootloader

Warning WARNING: Be prepared to disassemble the phone to force booting into EDL in case of failure!
Note Note: Only the d620r model has been tested!
  1. Make sure you are on Android Lolipop firmware (V20b tested). A link to the firmware can be found here
  2. Download and install bkerler's EDL tool from here or clone it like below. The latest master branch does not work for this phone, so we reset working commit d5ff2d4
    $ git clone https://github.com/bkerler/edl.git && cd edl
    $ git reset --hard d5ff2d474a185a0c0df09c74dfa24eb7cfe6e9e5
    
  3. Download necessary files for unlocking the bootloader from here
  4. Reboot to EDL from Android
    $ adb reboot edl
    
  5. Dump all partitions from the phone and back it up. You can delete userdata.bin to save space on your computer
    $ edl rl dump_lg-g2m --genxml
    
  6. Write the patched aboot to the phone with files from the GitHub repo
    $ edl w aboot aboot_d620r_patched.bin --memory emmc --loader 008050e100000000_cc3153a80293939b_fhprg.bin
    
  7. (Optionally) Flash TWRP
    $ edl w recovery twrp-3.1.1-0-g2m.img --memory emmc --loader 008050e100000000_cc3153a80293939b_fhprg.bin
    
  8. Reset the phone by removing the battery or with
    $ edl reset --loader 08050e100000000_cc3153a80293939b_fhprg.bin
    

Installation

/* Not yet */

See also

GSMArena page