Updated KPPD Control app for Android Oreo!

Now that Oreo is out, I needed to go through my apps and make adjustments and updates for the new platform. One of the biggest problems I found was that of the KPPD Control app.

For some reason, assets in the asset folder are not transferring with the apk. I fiddled with this for a while, but became so frustrated that I eventually gave up. Instead, I moved the kppd file to the /res/raw folder. The difference is, the asset folder is copied to the drive, while the raw files are hidden in the app, I think. Either way, it worked great!

You can check out the commit here: https://github.com/alaskalinuxuser/app_kppdcontrol/commit/7a781de16ddbbd047f743b7d0153e7a42867fbc4

And I have updated the Play Store, as well as posting the new apk on GitHub.

Linux – keep it simple.

Ril-daemon control app for LG G4 AOSCP Oreo!

I’m sure many of you are already using Kessaras’ great AOSCP Oreo Rom for the LG G4!

One small current issue is the ril-daemon sometimes needs to be stopped and started to make your sim card and cellular work properly. In the past, you could just reboot, or stop and start the daemon from the command line. But now you can just tap a button! That’s right, just a simple, easy to use app that stops or starts the ril-daemon when you tap the buttons.

This app requires root permission!

This app is open source, licensed under the Apache 2.0, and you can check out the source code here:
https://github.com/alaskalinuxuser/app_ril_control

You can download the app here:
https://github.com/alaskalinuxuser/app_ril_control/blob/master/app/Ril_Control.apk

Or get it on the Play Store!
https://play.google.com/store/apps/details?id=com.alaskalinuxuser.rilcontrol

Linux – keep it simple.

Error: TARGET_USES_UNCOMPRESSED_KERNEL is depreciated!

While starting my new attempt at an Oreo build for the H811/H815 (T-Mobile LG G4), I ran into an error, right off the bat:

Error: TARGET_USES_UNCOMPRESSED_KERNEL is depreciated!

I took a look at the make files that build the kernel. You can find them in the tasks folder under vendor/lineage/build/tasks/kernel.mk, which has a very lengthy explanation on how to name the kernel to build uncompressed images. Here is the pertinent part:

# BOARD_KERNEL_IMAGE_NAME = Built image name
# for ARM use: zImage
# for ARM64 use: Image.gz
# for uncompressed use: Image
# If using an appended DT, append ‘-dtb’
# to the end of the image name.
# For example, for ARM devices,
# use zImage-dtb instead of zImage.

So all I had to do was remove this line from my device/lge/g4-common/BoardConfigCommon.mk file:

TARGET_USES_UNCOMPRESSED_KERNEL := true

Because my kernel has the naming convention like so:

BOARD_KERNEL_IMAGE_NAME := Image

Which alludes to an uncompressed image already. I love it when the solution is easy!

Linux – keep it simple.

Building Android Oreo, error: ADDITIONAL_DEFAULT_PROPERTIES must not be set

So, round one of building Android Oreo. Specifically giving an early try for SlimRoms and OmniRom, both of which have started an Oreo build system. Obviously, anything at this stage is a pre-alpha, more or less just a rebranded AOSP build. Still, it’s fun to check it out and see what Oreo is all about.

That being easier said than done, here was the first error (not counting all the ones to set up the build environment to recognize the H811 phone as an option) :

[CODE]
out/build-slim_h811.ninja is missing, regenerating…
build/core/main.mk:245: error: ADDITIONAL_DEFAULT_PROPERTIES must not be set before here: ro.device.cache_dir=/data/cache.
07:23:13 ckati failed with: exit status 1
make: *** [run_soong_ui] Error 1
[/CODE]

So, I took a look at build/core/main.mk on line 245, and made a few edits:

[CODE]
#
# —————————————————————–
# Validate ADDITIONAL_DEFAULT_PROPERTIES.
# WJH ifneq ($(ADDITIONAL_DEFAULT_PROPERTIES),)
# WJH $(error ADDITIONAL_DEFAULT_PROPERTIES must not be set before here: $(ADDITIONAL_DEFAULT_PROPERTIES))
# WJH endif
[/CODE]

Now the build can continue. This is probably not the right way to fix this, but it is an easy bandaid until I figure that out.

Linux – keep it simple.