Skip to content
steadfasterX edited this page Dec 13, 2024 · 11 revisions

Installation guide: LG G4

models: h815, h815_usu

⚠️ THIS DEVICE IS IN BETA ⚠️

This device (and the whole page you are currently reading) is currently in beta phase and so things might not work properly or completely fail. In particular this includes the need to reset the device and/or you might loose any data during the process.

Ensure you have a full backup of all your data and proceed only if you are aware of the risk of data loss and unexpected behavior.

If you would like to help getting this stable soon then report any issues found in the support channel.

Support level

verified & tested: by the AXP team

Read here about the details/impacts: click

⚠️ This is a legacy device and does not support the modern encryption standard FBE so using FDE instead.

Firmware

AXP.OS for the LG G4 does not include any firmware so you need to manually upgrade as described . Skipping this step might result in unexpected behavior and problems later on.

This step needs to be done only once.

Install / Upgrade

installing AXP.OS

Pre-requirements

AXP.OS for the LG G4 is a special release as it is one of the rare devices where we still support FDE because all attempts to get FBE working (backporting FBE to the msm8992 kernel) failed.

So to get the most out of your device we enforce the usage of F2FS which requires that you follow these simple steps first (AXP.OS won't even boot otherwise):

Note: The following process will WIPE all your user data, photos, everything. .. and no, there is no other option. So you better have a backup and you better have tested the restore of that backup actually works.

  1. flash latest "311 or later" <-- ! TWRP build first!
    • download from here
    • fastboot flash recovery <TWRP.....img>
  2. boot TWRP
  3. Select Wipe
  4. Swipe to Factory Reset (this will also clear any encryption metadata ever stored)
  5. Press the HOME button
  6. Select Wipe
  7. Select Advanced Wipe
  8. Select only Cache (not Dalvik/ART cache)
  9. Select Repair or Change File System
  10. Select Change File System
  11. Select F2FS and swipe to change it
  12. Press the HOME button
  13. Select Wipe
  14. Select Format data
  15. Type yes
  16. Verify the output says it was formatted with f2fs!
  17. Press the HOME button
  18. continue with the regular procedure: Install_non-A/B

Setup AXP.OS

Follow Setup

Re-locking the bootloader

Supported: no

XDA thread

see here

Debugging

[DEVICE-BOOT-DEBUG-PATH]: /persist (see Logs)