• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [5.1.1]XenonHD For LG Leon C50/H345 on T-Mobile and Walmart Family Mobile

Turn off GPS and the random reboots go away. I haven't had a random reboot since then
GPS does work, but turn it off when you are done using it
Yep! Same here. When GPS gets a lock, it's normally good for a while. But then some app will try to grab your location, and you'll get a reboot. Best to just disable when not needed.
 
Now I personally am glad this conversation came up cause it sheds new light on building Android 6.0 for me. I have been trying to build CM 13 using the generic msm8916 CM kernel source and even without setting a flag to build 64 bit it still wants to build for 64 bit. But yet the BoardConfigCommon.mk still has the processor as v7. So maybe this is why the kernel is refusing to build. Plus you guys would not beleive the massave amount of errors I have had to work through just to even get it to start building kernel. I will have to put this knowledge to the test now as I had not realized that the 64 bit side may actually be v8 and not still v7.
Hey @TMacgnolia

I might have a minute to download SRC tonight. Where did you find the kernel for the ms8916? Is it in the CM repo somewhere? (On mobile now and don't feel like looking!)

Thanks
Pez
 
is that the one that you are trying to get to build for 6.0?
Yes but it needs a several cherry picks to build 6.0. I actually got 6.0 built last night for Leon for the first time. But when I flash it it just boots to splash screen and flashes then boots recovery.

I have the needed cherry picks in the kernel I forked on my github. It is all in the mm branch. https://github.com/T-Macgnolia/android_kernel_lge_c50/tree/mm

You can look at the cherry picks I made in the commits. Those are just to get it to build. You will have to remove the wcnss_lge folder to from android_device_lge_msm8916-common or you will get a error about it. I got to figure out how to properly fix that error after I get a build to boot.

You will also get overlay errors but those are easy to fix just remove the lines under Performance profiles in device/lge/msm8916-common/overlay/frameworks/base/core/res/res/values/config.xml.

Also remove <bool name="config_speed_up_audio_on_mt_calls">true</bool> from device/lge/msm8916-common/overlay/packages/services/Telecomm/res/values/config.xml
 
Yes but it needs a several cherry picks to build 6.0. I actually got 6.0 built last night for Leon for the first time. But when I flash it it just boots to splash screen and flashes then boots recovery.

I have the needed cherry picks in the kernel I forked on my github. It is all in the mm branch. https://github.com/T-Macgnolia/android_kernel_lge_c50/tree/mm

You can look at the cherry picks I made in the commits. Those are just to get it to build. You will have to remove the wcnss_lge folder to from android_device_lge_msm8916-common or you will get a error about it. I got to figure out how to properly fix that error after I get a build to boot.

You will also get overlay errors but those are easy to fix just remove the lines under Performance profiles in device/lge/msm8916-common/overlay/frameworks/base/core/res/res/values/config.xml.

Also remove <bool name="config_speed_up_audio_on_mt_calls">true</bool> from device/lge/msm8916-common/overlay/packages/services/Telecomm/res/values/config.xml
I can run logcats if you want.
 
Ok you still have the h345, but technically they are the same device that is why a build for one will work on the other with edits to the updater-script to get it to install. Any way I will give you a list of the repos you need to build with. All of them will be TeaRegular's repos as they are updated more than the ones I had months ago.

You will need the the android_device_lge_ms345 repo. If it was a proper recovery for h345 you would use android_device_lge_h345, but I am working on making a proper recovery.

You need the android_device_lge_c5-common repo.

You need the android_kernel_lge_c50.

If you are not building CM you will probably need the android_external_mm-dash repo.

Last you need the vendor_lge repo. But befor you build you need to go to vendor/lge/c50-common/propriatary/lib/hw and change the name of the camera.vendor.msm8916.so to camera.msm8916.so. Then go vendor/lge/c50-common/c50-common-vendor-blobs.mk and edit line #43 to reflect that name change.
I grabbed all the repos listed above and put them all into a new directory. Guessing maybe I need to read some more on this. Do I need to go to google and grab the entire android source tree?
http://source.android.com/source/downloading.html
 
I grabbed all the repos listed above and put them all into a new directory. Guessing maybe I need to read some more on this. Do I need to go to google and grab the entire android source tree?
http://source.android.com/source/downloading.html
Yes you need to do a repo of the intior android source. But you need to repo CM our another groups spurce as you will not get pure AOSP to build without a ton of commits added and having to clone all the caf repos for tge device. AOSP is pretty much set up just for Nexus devices. Non nexus devices need things that are not in AOSP.
 
Yes you need to do a repo of the intior android source. But you need to repo CM our another groups spurce as you will not get pure AOSP to build without a ton of commits added and having to clone all the caf repos for tge device. AOSP is pretty much set up just for Nexus devices. Non nexus devices need things that are not in AOSP.

Thanks!

Grabbing from
git://github.com/CyanogenMod/android.git -b cm-12.1

right now!
 
Getting an error...

Code:
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching projects: 100% (547/547), done.
Syncing work tree:  93% (509/547)  error: The following untracked working tree files would be overwritten by checkout:
    COPYING
    COPYING.LIB
    SOURCES
    bin/x86_64-linux-android-addr2line
    bin/x86_64-linux-android-ar
    bin/x86_64-linux-android-as
    bin/x86_64-linux-android-c++
    bin/x86_64-linux-android-c++filt
    bin/x86_64-linux-android-cpp
    bin/x86_64-linux-android-dwp
    bin/x86_64-linux-android-elfedit
    bin/x86_64-linux-android-g++
    bin/x86_64-linux-android-gcc
    bin/x86_64-linux-android-gcc-4.8
    bin/x86_64-linux-android-gcc-ar
    bin/x86_64-linux-android-gcc-nm
    bin/x86_64-linux-android-gcc-ranlib
    bin/x86_64-linux-android-gcov
    bin/x86_64-linux-android-gdb
    bin/x86_64-linux-android-gprof
    bin/x86_64-linux-android-ld
    bin/x86_64-linux-android-ld.bfd
    bin/x86_64-linux-android-ld.gold
    bin/x86_64-linux-android-ld.mcld
    bin/x86_64-linux-android-nm
    bin/x86_64-linux-android-objcopy
    bin/x86_64-linux-android-objdump
    bin/x86_64-linux-android-ranlib
    bin/x86_64-linux-android-readelf
    bin/x86_64-linux-android-size
    bin/x86_64-linux-android-strings
    bin/x86_64-linux-android-strip
    include/gdb/jit-reader.h
    lib/gcc/x86_64-linux-android/4.8/32/crtbegin.o
    lib/gcc/x86_64-linux-android/4.8/32/crtbeginS.o
    lib/gcc/x86_64-linux-android/4.8/32/crtbeginT.o
    lib/gcc/x86_64-linux-android/4.8/32/crtend.o
    lib/gcc/x86_64-linux-android/4.8/32/crtendS.o
    lib/gcc/x86_64-linux-android/4.8/32/crtfastmath.o
    lib/gcc/x86_64-linux-android/4.8/32/crtprec32.o
    lib/gcc/x86_64-linux-android/4.8/32/crtprec64.o
    lib/gcc/x86_64-linux-android/4.8/32/crtprec80.o
    lib/gcc/x86_64-linux-android/4.8/32/libgcc.a
Please move or remove them before you can switch branches.
Aborting
Syncing work tree: 100% (547/547), done.

error: prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.8/: platform/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.8 checkout ea38468bbc5480e053deb50309083dfbfb1511c2

Looks like I pulled down a good 30some gig of files based on how much of my HDD is being used up now, so I think I got everything.

I've got that stuff in a separate folder from the Team Regular repos I grabbed earlier. Guessing I need to throw those things into specific directories and kick off a build. Looking through this mess of files right now! yay! there's a build directory! let's see what that's all about!


edit: Ran envsetup.sh Now I can brunch and lunch things! Guess I just gotta add the Leon stuff to the menu! :)
 
Getting an error...

Code:
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching project CyanogenMod/android_hardware_qcom_media
Fetching projects: 100% (547/547), done.
Syncing work tree:  93% (509/547)  error: The following untracked working tree files would be overwritten by checkout:
    COPYING
    COPYING.LIB
    SOURCES
    bin/x86_64-linux-android-addr2line
    bin/x86_64-linux-android-ar
    bin/x86_64-linux-android-as
    bin/x86_64-linux-android-c++
    bin/x86_64-linux-android-c++filt
    bin/x86_64-linux-android-cpp
    bin/x86_64-linux-android-dwp
    bin/x86_64-linux-android-elfedit
    bin/x86_64-linux-android-g++
    bin/x86_64-linux-android-gcc
    bin/x86_64-linux-android-gcc-4.8
    bin/x86_64-linux-android-gcc-ar
    bin/x86_64-linux-android-gcc-nm
    bin/x86_64-linux-android-gcc-ranlib
    bin/x86_64-linux-android-gcov
    bin/x86_64-linux-android-gdb
    bin/x86_64-linux-android-gprof
    bin/x86_64-linux-android-ld
    bin/x86_64-linux-android-ld.bfd
    bin/x86_64-linux-android-ld.gold
    bin/x86_64-linux-android-ld.mcld
    bin/x86_64-linux-android-nm
    bin/x86_64-linux-android-objcopy
    bin/x86_64-linux-android-objdump
    bin/x86_64-linux-android-ranlib
    bin/x86_64-linux-android-readelf
    bin/x86_64-linux-android-size
    bin/x86_64-linux-android-strings
    bin/x86_64-linux-android-strip
    include/gdb/jit-reader.h
    lib/gcc/x86_64-linux-android/4.8/32/crtbegin.o
    lib/gcc/x86_64-linux-android/4.8/32/crtbeginS.o
    lib/gcc/x86_64-linux-android/4.8/32/crtbeginT.o
    lib/gcc/x86_64-linux-android/4.8/32/crtend.o
    lib/gcc/x86_64-linux-android/4.8/32/crtendS.o
    lib/gcc/x86_64-linux-android/4.8/32/crtfastmath.o
    lib/gcc/x86_64-linux-android/4.8/32/crtprec32.o
    lib/gcc/x86_64-linux-android/4.8/32/crtprec64.o
    lib/gcc/x86_64-linux-android/4.8/32/crtprec80.o
    lib/gcc/x86_64-linux-android/4.8/32/libgcc.a
Please move or remove them before you can switch branches.
Aborting
Syncing work tree: 100% (547/547), done.

error: prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.8/: platform/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.8 checkout ea38468bbc5480e053deb50309083dfbfb1511c2

Looks like I pulled down a good 30some gig of files based on how much of my HDD is being used up now, so I think I got everything.

I've got that stuff in a separate folder from the Team Regular repos I grabbed earlier. Guessing I need to throw those things into specific directories and kick off a build. Looking through this mess of files right now! yay! there's a build directory! let's see what that's all about!


edit: Ran envsetup.sh Now I can brunch and lunch things! Guess I just gotta add the Leon stuff to the menu! :)
This is how you need to set up your device folders.

device/lge/h345
device/lge/c50-common
device/lge/msm8916-common

You also need to grab the following repo from CM as it is not in their defualt.xml

device/qcom/common

I do not know the name of the folder you have your source in. So for this I will call it android. Open a terminal and do this.

mkdir kernel
mkdir kernel/lge

Then put your kernel source in the lge folder.

kernel/lge/c50

Last is your vendor

vendor/lge

Then you can build
 
This is how you need to set up your device folders.

device/lge/h345
device/lge/c50-common
device/lge/msm8916-common

You also need to grab the following repo from CM as it is not in their defualt.xml

device/qcom/common

I do not know the name of the folder you have your source in. So for this I will call it android. Open a terminal and do this.

mkdir kernel
mkdir kernel/lge

Then put your kernel source in the lge folder.

kernel/lge/c50

Last is your vendor

vendor/lge

Then you can build

Awesome!! Thanks for all the help getting me set up!

I'll let you know how it goes...hopefully later tonight!
 
Well I have been working on trying to get cm 13.0 up and going on leon. I can get it to build but no boot. I have also been working on getting cm 13.0 going on the LG G Stylo. Same results with that device. But I am trying something new for the Stylo today. And seeing as the Stylo and Leon use the same msm8916 boad and same processor if it works I should be able to do the same for Leon. The two devices pretty much use the same kernel and msm8916-common folder. So I am hoping this works
 
Well I have been working on trying to get cm 13.0 up and going on leon. I can get it to build but no boot. I have also been working on getting cm 13.0 going on the LG G Stylo. Same results with that device. But I am trying something new for the Stylo today. And seeing as the Stylo and Leon use the same msm8916 boad and same processor if it works I should be able to do the same for Leon. The two devices pretty much use the same kernel and msm8916-common folder. So I am hoping this works
Hell yeah I didn't have much time to tinker this weekend tried a few things to get a asop cam threw but no luck on the video part
 
i just flashed the 1.13.16 rom and now opening the camera forces the screen black then boot animation and back to lockscreen??? should i try to reflash or is the camera broken on this build?
 
i just flashed the 1.13.16 rom and now opening the camera forces the screen black then boot animation and back to lockscreen??? should i try to reflash or is the camera broken on this build?
Check in system/lib/hw and see if you see camera.vendor.msm8916-common.so. If so rename it to camera.msm8916.so
 
Back
Top Bottom