[UNOFFICIAL][PRE-ALPHA][7.1.2][H930] LineageOS 14.1

Search This thread

SGCMarkus

Recognized Developer
Jan 10, 2011
1,081
2,124
HTC Desire HD
OnePlus 2

http%3A%2F%2Fi.imgur.com%2FzYkSW7S.png
LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.


Code:
#include "std_disclaimer.h"
/*
 * Your warranty is void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */


Working

  • Boot
  • Mobile data
  • Cam (pics only)
  • flashlight
  • fingerprint
  • sdcard is recognized/mounted

Unknown/Untested

  • GPS
  • NFC
  • calls/sms (should work i guess, because data works)
  • audio (cant test that in class )

Issues

  • USB
  • Wifi
  • Bluetooth
  • Recording
  • Brightness change
  • Everything i forgot probably

As you can see on the "Working" list, this is a highly experimental build, flash at your own risk, and don't come crying to me if it should brick anything (it didn't for me, but seeing from the TWRP Thread the V30 can be picky).
Dont forget to make a backup!!!
If you want to report any bugs, NEVER do it without providing logs. I can't try to fix things without logs.
Helpful log commands:
  • logcat (usage: e.g. logcat > /sdcard/logcat.txt )
  • dumpsys (usage: e.g. dumpsys SurfaceFlinger > /sdcard/dump_sf.txt)
  • dmesg (usage: e.g. dmesg > /sdcard/dmesg.txt , might need root)
for more examples on how to use the commands, either google (do that first) or ask (only do this if you already googled how to use those commands).

FAQ
  • USB isn't working. How do I get logs?
  • In the ramdisk theres a nice little script which will print the logcat to /data/ramoops/cm14.1_<number>_logcat_<date/time>.txt

  • The logcat is many many hundreds of MB in size, why?
  • Its currently spammed with something like this:
    Code:
    E/QMI_FW  (  674): xport_reg Failed for service_id=0x35 version=0x1001 on 15
    Replace
    Code:
    [0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9] E/QMI_FW  (  [0-9][0-9][0-9]): xport_reg Failed for service_id=0x35 version=0x1001 on [0-9]*[0-9]
    in the log with your favorite editor which can use regex with nothing (or delete all those lines if you have that option)

  • Is there another way to get some logs?
  • In Developer Options, turn on "Local Terminal", and get a logcat or other logs with that.

  • The screen glitches, is there a way to fix this?
  • I hope so, working on this too.

  • After restoring my backup with TWRP, my phone won't recognize my PIN (not SIM PIN). What todo now?
  • Just follow the guide on here. Afterwards you have to setup your PIN again (also Fingerprints, and enable Trusted Agents in Settings -> Fingerprints & Security)

Download
Version 0.0.2: https://www.androidfilehost.com/?fid=962187416754470110

Version 0.0.1: https://www.androidfilehost.com/?fid=818070582850487924

XDA:DevDB Information
Unofficial LineageOS 14.1, ROM for the LG V30

Contributors
SGCMarkus
Source Code: https://github.com/SGCMarkus

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 4.x

Version Information
Status: Testing

Created 2018-01-25
Last Updated 2018-01-25
 

Attachments

  • Screenshot_20180322-081526.png
    Screenshot_20180322-081526.png
    157.1 KB · Views: 1,220
  • Screenshot_20180322-082218.png
    Screenshot_20180322-082218.png
    196.3 KB · Views: 1,155
  • Screenshot_20180322-082341.png
    Screenshot_20180322-082341.png
    152.4 KB · Views: 1,110
  • Screenshot_20180322-082355.jpg
    Screenshot_20180322-082355.jpg
    112.3 KB · Views: 1,113
  • Screenshot_20180322-082305.jpg
    Screenshot_20180322-082305.jpg
    252.9 KB · Views: 1,108
  • Screenshot_20180322-082229.jpg
    Screenshot_20180322-082229.jpg
    171.6 KB · Views: 1,095
Last edited:

SGCMarkus

Recognized Developer
Jan 10, 2011
1,081
2,124
HTC Desire HD
OnePlus 2
Exam time here though, so i couldnt really work on this more :/
But i have hope now for actual Treble support (we have a partition called OP, idk how important the stuff in there is though, 344MB if im not wrong, gathered all the Oreo blobs from the V300S kdz (i hope i have all needed ones), and those take up 324MB xD)
But atleast already a working recovery (TWRP 3.2.1) which would recognize the /OP as /vendor

Will work on each project a bit more when exams are over
 

okaiuz

Senior Member
Sep 21, 2011
116
17
i don't know if can help someone to build lineage or aosp based rom, btw here are the link to source and kernel for v30:
h930: http://opensource.lge.com/osSch/list?types=ALL&search=h930
us998: http://opensource.lge.com/osSch/list?types=ALL&search=us998
v300: http://opensource.lge.com/osSch/list?types=ALL&search=v300

Here the content of readme:
1. Android build
- Download original android source code ( android-7.1.2_r4 ) from http://source.android.com
( $repo init -u https://android.googlesource.com/platform/manifest -b android-7.1.2_r4
$repo sync -cdq -j12 --no-tags
$repo start android-7.1.2_r4 --all
)
- Untar opensource packages of LGH930_Nougat_Android.tar.gz into downloaded android source directory
a) tar -xvzf LGH930_Nougat_Android.tar.gz

- And, merge the source into the android source code
- Run following scripts to build android
a) source build/envsetup.sh
b) lunch 1
c) make -j4
- When you compile the android source code, you have to add google original prebuilt source(toolchain) into the android directory.
- After build, you can find output at out/target/product/generic

2. Kernel Build
- Uncompress using following command at the android directory
a) tar -xvzf LGH930_Nougat_Kernel.tar.gz

- When you compile the kernel source code, you have to add google original "prebuilt" source(toolchain) into the android directory.
- Run following scripts to build kernel

a) cd kernel/msm-4.4
b) mkdir -p out
c) make ARCH=arm64 O=./out joan_global_com_defconfig
d) make ARCH=arm64 O=./out CROSS_COMPILE=$(pwd)/../../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- KERNEL_COMPRESSION_SUFFIX=gz -j4

* "-j4" : The number, 4, is the number of multiple jobs to be invoked simultaneously.
- After build, you can find the build image(Image.gz) at out/arch/arm64/boot
 

kherio

Senior Member
Aug 3, 2009
901
1,076
Leioa
OnePlus 8T
I always loved to know how to build Kernel or ROM.
I'm not a dev so i cannot solve any FC or any other problem, so I need to know where to get the sources.
 

SGCMarkus

Recognized Developer
Jan 10, 2011
1,081
2,124
HTC Desire HD
OnePlus 2
Also could someone with a US998 test this?
And check what works (and doesnt)? And then send me the logcat (from /data/ramoops) after copying to the sdcard in twrp or whereever before restoring a backup xD
 
  • Like
Reactions: NadavCE

foamerman

Senior Member
Sep 1, 2010
386
78
B-town
Also could someone with a US998 test this?
And check what works (and doesnt)? And then send me the logcat (from /data/ramoops) after copying to the sdcard in twrp or whereever before restoring a backup xD

I was just getting ready to ask if this will work on US998. If I get a chance I will try it out but I'm not sure how to do the logcat thing sorry.
 

SGCMarkus

Recognized Developer
Jan 10, 2011
1,081
2,124
HTC Desire HD
OnePlus 2
I was just getting ready to ask if this will work on US998. If I get a chance I will try it out but I'm not sure how to do the logcat thing sorry.

The logcat is taken automatically, as for idk why it wont be recognized via USB... (same kernel as the TWRP, ramdisk and so should also work), just boot into recovery after you used it a bit (if it even boots, otherwise do the button dance), and there, before you wipe/restore a backup, go to advanced -> file manager, browse to /data/ramoops and copy the log in there to the sdcard or whatever else is safe :)
 
  • Like
Reactions: NadavCE

foamerman

Senior Member
Sep 1, 2010
386
78
B-town
The logcat is taken automatically, as for idk why it wont be recognized via USB... (same kernel as the TWRP, ramdisk and so should also work), just boot into recovery after you used it a bit (if it even boots, otherwise do the button dance), and there, before you wipe/restore a backup, go to advanced -> file manager, browse to /data/ramoops and copy the log in there to the sdcard or whatever else is safe :)

OK but now I have another problem TWRP backup failed on me. So if I do install 14.1 and it doesn't boot I have WETA 1.5 I can do the button dance and go twrp and reinstall weta as soon as I get some time I'll will try it.

---------- Post added at 02:45 PM ---------- Previous post was at 02:26 PM ----------

Sorry one more question I'm guessing we need to download our own gapps too yes? so arm64 7.1 pico would be fine that's the least one
 

SGCMarkus

Recognized Developer
Jan 10, 2011
1,081
2,124
HTC Desire HD
OnePlus 2
OK but now I have another problem TWRP backup failed on me. So if I do install 14.1 and it doesn't boot I have WETA 1.5 I can do the button dance and go twrp and reinstall weta as soon as I get some time I'll will try it.

---------- Post added at 02:45 PM ---------- Previous post was at 02:26 PM ----------

Sorry one more question I'm guessing we need to download our own gapps too yes? so arm64 7.1 pico would be fine that's the least one

Try it without gapps, its not worth to setup all that, it isnt daily driver ready... and gapps would just add more (unneccessary) stuff to the log ^^
 
  • Like
Reactions: NadavCE

foamerman

Senior Member
Sep 1, 2010
386
78
B-town
Probably because of wrong device, remove the assert line in the updater-script in side the .zip file
(.zip/META-INF/com/google/android/updater-script)

OK I unzipped the file and deleted the (.zip/META-INF/com/google/android/updater-script) OK now I need a little help I'm a little slow I'm not sure how to zip it back up
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12

    http%3A%2F%2Fi.imgur.com%2FzYkSW7S.png
    LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.


    Code:
    #include "std_disclaimer.h"
    /*
     * Your warranty is void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */


    Working

    • Boot
    • Mobile data
    • Cam (pics only)
    • flashlight
    • fingerprint
    • sdcard is recognized/mounted

    Unknown/Untested

    • GPS
    • NFC
    • calls/sms (should work i guess, because data works)
    • audio (cant test that in class )

    Issues

    • USB
    • Wifi
    • Bluetooth
    • Recording
    • Brightness change
    • Everything i forgot probably

    As you can see on the "Working" list, this is a highly experimental build, flash at your own risk, and don't come crying to me if it should brick anything (it didn't for me, but seeing from the TWRP Thread the V30 can be picky).
    Dont forget to make a backup!!!
    If you want to report any bugs, NEVER do it without providing logs. I can't try to fix things without logs.
    Helpful log commands:
    • logcat (usage: e.g. logcat > /sdcard/logcat.txt )
    • dumpsys (usage: e.g. dumpsys SurfaceFlinger > /sdcard/dump_sf.txt)
    • dmesg (usage: e.g. dmesg > /sdcard/dmesg.txt , might need root)
    for more examples on how to use the commands, either google (do that first) or ask (only do this if you already googled how to use those commands).

    FAQ
    • USB isn't working. How do I get logs?
    • In the ramdisk theres a nice little script which will print the logcat to /data/ramoops/cm14.1_<number>_logcat_<date/time>.txt

    • The logcat is many many hundreds of MB in size, why?
    • Its currently spammed with something like this:
      Code:
      E/QMI_FW  (  674): xport_reg Failed for service_id=0x35 version=0x1001 on 15
      Replace
      Code:
      [0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9] E/QMI_FW  (  [0-9][0-9][0-9]): xport_reg Failed for service_id=0x35 version=0x1001 on [0-9]*[0-9]
      in the log with your favorite editor which can use regex with nothing (or delete all those lines if you have that option)

    • Is there another way to get some logs?
    • In Developer Options, turn on "Local Terminal", and get a logcat or other logs with that.

    • The screen glitches, is there a way to fix this?
    • I hope so, working on this too.

    • After restoring my backup with TWRP, my phone won't recognize my PIN (not SIM PIN). What todo now?
    • Just follow the guide on here. Afterwards you have to setup your PIN again (also Fingerprints, and enable Trusted Agents in Settings -> Fingerprints & Security)

    Download
    Version 0.0.2: https://www.androidfilehost.com/?fid=962187416754470110

    Version 0.0.1: https://www.androidfilehost.com/?fid=818070582850487924

    XDA:DevDB Information
    Unofficial LineageOS 14.1, ROM for the LG V30

    Contributors
    SGCMarkus
    Source Code: https://github.com/SGCMarkus

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 4.x

    Version Information
    Status: Testing

    Created 2018-01-25
    Last Updated 2018-01-25
    4
    Little update here, decided to fix LOS14.1 first as 15.1 didnt wanna work at all ?
    3
    Exam time here though, so i couldnt really work on this more :/
    But i have hope now for actual Treble support (we have a partition called OP, idk how important the stuff in there is though, 344MB if im not wrong, gathered all the Oreo blobs from the V300S kdz (i hope i have all needed ones), and those take up 324MB xD)
    But atleast already a working recovery (TWRP 3.2.1) which would recognize the /OP as /vendor

    Will work on each project a bit more when exams are over
    2
    Changelog

    • v 0.0.1 Initial build
      • it boots
    • v 0.0.2
      • Mobile data works
      • Cam works (pictures only)
      • fixed graphics glitches
      • Fingerprint works
      • flashlight works
      • SDCard is recognized
    2
    It all depends on Lineage; no Lineage, no buy :p Guess I'll wait a bit longer, the V30 certainly seems worth waiting for.

    Dont have to wait that much longer I guess, even though not 100% stable.... Cant wait longer gonna release today.... lol
    Dont wanna tease you people too much.

    Preparing 2 ROM Threads currently, and 1 or 2 Guides...