[App][Rooted]KPPD Control[4.4+][Oreo Compatible now!]

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
I gave it a try. No luck. Doesn't work for rooted Verizon LG G4. When I open the app it prompts me for root which I grant. Then I click the install button and the phone restarts. I open the app again and there is no control panel it only shows the install button again. Tried it a few times with the same results.
Did you give the app storage permissions?

Go to:
Settings --> apps --> kppd --> permissions
And turn on storage.

That should help, let me know if not.

Sent from my LG-H811 using XDA-Developers Legacy app
 

mvaenskae

Member
Mar 8, 2014
20
6
0
Did you give the app storage permissions?

Go to:
Settings --> apps --> kppd --> permissions
And turn on storage.

That should help, let me know if not.

Sent from my LG-H811 using XDA-Developers Legacy app
Cheers,

see my previous post with the logcat information. Fixed the issue on my end with the Redmi Note 4 about the app not loading.
Sadly it doesn't support my device though :(
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
Hello!

Im using a RN4x with snapdragon 625. I can't get that app to be working :/ i gave it already root permissions and to memory, but it still says "Error: Please check permissions". What's wrong?
Cheers,

reporting the same issue on latest Xiaomi.eu Beta-7.7.20 and working Magisk 13.3 on a Xiaomi Redmi Note 4 Global Edition.
Logcat reports the following for the application using
Code:
adb logcat *:W
Code:
07-27 16:48:37.904  9538  9538 W System.err: java.io.FileNotFoundException: /storage/emulated/0/kppd (Permission denied)
07-27 16:48:37.905  9538  9538 W System.err:    at java.io.FileOutputStream.open(Native Method)
07-27 16:48:37.905  9538  9538 W System.err:    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
07-27 16:48:37.905  9538  9538 W System.err:    at java.io.FileOutputStream.<init>(FileOutputStream.java:108)
07-27 16:48:37.905  9538  9538 W System.err:    at com.alaskalinuxuser.kppdcontrol.InstallActivity.installKPPD(InstallActivity.java:84)
07-27 16:48:37.905  9538  9538 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
07-27 16:48:37.905  9538  9538 W System.err:    at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
07-27 16:48:37.905  9538  9538 W System.err:    at android.view.View.performClick(View.java)
07-27 16:48:37.905  9538  9538 W System.err:    at android.view.View$PerformClick.run(View.java)
07-27 16:48:37.905  9538  9538 W System.err:    at android.os.Handler.handleCallback(Handler.java)
07-27 16:48:37.905  9538  9538 W System.err:    at android.os.Handler.dispatchMessage(Handler.java)
07-27 16:48:37.905  9538  9538 W System.err:    at android.os.Looper.loop(Looper.java)
07-27 16:48:37.905  9538  9538 W System.err:    at android.app.ActivityThread.main(ActivityThread.java)
07-27 16:48:37.905  9538  9538 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
07-27 16:48:37.905  9538  9538 W System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
07-27 16:48:37.905  9538  9538 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
This is the output when not searching for warnings and above:
Code:
07-27 16:50:57.920  9538  9538 W System.err: java.io.FileNotFoundException: /storage/emulated/0/kppd (Permission denied)
07-27 16:50:57.920  9538  9538 W System.err:    at java.io.FileOutputStream.open(Native Method)
07-27 16:50:57.920  9538  9538 W System.err:    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
07-27 16:50:57.920  9538  9538 W System.err:    at java.io.FileOutputStream.<init>(FileOutputStream.java:108)
07-27 16:50:57.920  9538  9538 W System.err:    at com.alaskalinuxuser.kppdcontrol.InstallActivity.installKPPD(InstallActivity.java:84)
07-27 16:50:57.920  9538  9538 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
07-27 16:50:57.920  9538  9538 W System.err:    at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
07-27 16:50:57.921  9538  9538 W System.err:    at android.view.View.performClick(View.java)
07-27 16:50:57.921  9538  9538 W System.err:    at android.view.View$PerformClick.run(View.java)
07-27 16:50:57.921  9538  9538 W System.err:    at android.os.Handler.handleCallback(Handler.java)
07-27 16:50:57.921  9538  9538 W System.err:    at android.os.Handler.dispatchMessage(Handler.java)
07-27 16:50:57.921  9538  9538 W System.err:    at android.os.Looper.loop(Looper.java)
07-27 16:50:57.921  9538  9538 W System.err:    at android.app.ActivityThread.main(ActivityThread.java)
07-27 16:50:57.921  9538  9538 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
07-27 16:50:57.921  9538  9538 W System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
07-27 16:50:57.921  9538  9538 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
Go to:
Settings --> apps --> kppd --> permissions
And turn on storage.

The app is giving the error of permission denied to read/write to the file.

Try that and see of that helps. Let me know if it doesn't.

Sent from my LG-H811 using XDA-Developers Legacy app
 
  • Like
Reactions: darazor

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
I'm on android 5.1, its the only version that can be rooted for the verizon lg g4. I don't think you can manage individual app permissions in 5.1.
If you pull a log cat, perhaps we can see the problem.

If you go to your root explorer, does /system/bin/kppd exist? If so, the the install is working, but not the app. If not, then the install is not working.

Do you have busy box installed? If not, install busy box and try again, perhaps that will help.

Other than that, I need logs to see the problem.

Sent from my LG-H811 using XDA-Developers Legacy app
 

Spookymyo

Senior Member
Dec 12, 2007
912
215
73
45
Morristown, TN
If you pull a log cat, perhaps we can see the problem.

If you go to your root explorer, does /system/bin/kppd exist? If so, the the install is working, but not the app. If not, then the install is not working.

Do you have busy box installed? If not, install busy box and try again, perhaps that will help.

Other than that, I need logs to see the problem.
/system/bin/kppd does not exist.
I do have busy box installed.
I also have selinux mode set to permissive if that helps.
I'll get a log cat as soon as I can.
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
I've done that already but doesn't work
/system/bin/kppd does not exist.
I do have busy box installed.
I also have selinux mode set to permissive if that helps.
I'll get a log cat as soon as I can.
Something you both could try is following the link in the OP and trying savoca's steps manually and see where the error lies. My app follows his steps. If the manual install and operation works, then I may need to adjust my app. If the manual steps need to be changed, then that shows where the problem is.

It should take about 20 minutes to do the steps manually. It would certainly help in troubleshooting the issue.

Sent from my LG-H811 using XDA-Developers Legacy app
 

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
Thanks for the awesome job! This app makes KPPD so much easier to use :)

Btw, does anybody have a display-calibrating tool to find the right values to have the G4 calibrated to sRGB colorspace?

I'm asking because most of the internet content is sRGB so it would be amazing to achieve a better calibration on our G4 (which has horrible factory calibration).

Thanks in advance :)
Have you found a good setting that you'd like to share with the group?

Here's mine:
1501259674153.jpg

Sent from my LG-H811 using XDA-Developers Legacy app
 
  • Like
Reactions: darazor

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
Cheers! Would you know of a way to maybe debug as to where exactly the program is failing? Just curious as to maybe I could extend it for my chipset in one way or the other.
So the kppd was installed, and the control panel came up in the app, but changing any settings and saving them had no affect?

There are a couple of things you could try:
#1: edit the file manually, notice that the pa version is 2. You could try 1 or 3, if your device supports that.

The real question is if your device supports mdss (QualComm's display driver) and is mdp3 or mdp5 compatible. My understanding is if you are mdp3 compatible, only the red/green/blue sliders will work. If you are mdp5 compatible than all will work. So, that leads to the following question/attempt:

#2: does the rgb sliders work from the kppd app? If so, but the other sliders do not, then your mdp is 3, and there is nothing more we can do. If it does not work, then you will be non-supported, which leads to option next:

#3: savoca released his tools on GitHub. You can download his tools and edit them for your device, however, if you do so, you will need a new app to control it, but I can help you with that if you were to make it that far....
link to kppd: https://github.com/savoca/kppd
link to kcal: https://github.com/savoca/kcal

Sorry, I didn't make kcal or kppd. If the original kcal or kppd do not work for you, I can't help you. I only made an app that installs and controls savoca's great work.
 

mvaenskae

Member
Mar 8, 2014
20
6
0
So the kppd was installed, and the control panel came up in the app, but changing any settings and saving them had no affect?

There are a couple of things you could try:
#1: edit the file manually, notice that the pa version is 2. You could try 1 or 3, if your device supports that.

The real question is if your device supports mdss (QualComm's display driver) and is mdp3 or mdp5 compatible. My understanding is if you are mdp3 compatible, only the red/green/blue sliders will work. If you are mdp5 compatible than all will work. So, that leads to the following question/attempt:

#2: does the rgb sliders work from the kppd app? If so, but the other sliders do not, then your mdp is 3, and there is nothing more we can do. If it does not work, then you will be non-supported, which leads to option next:

#3: savoca released his tools on GitHub. You can download his tools and edit them for your device, however, if you do so, you will need a new app to control it, but I can help you with that if you were to make it that far....
link to kppd: https://github.com/savoca/kppd
link to kcal: https://github.com/savoca/kcal

Sorry, I didn't make kcal or kppd. If the original kcal or kppd do not work for you, I can't help you. I only made an app that installs and controls savoca's great work.
Cheers,

the app successfully launched I could set values on the sliders, but nothing took effect sadly. I will give the first approach a try later tonight, for now let me commence a bit with my research I did (as this may be a lot more helpful for either of us :) ).

Thanks a bunch for explaining how and where your app actually attaches itself into and giving a description of the terms plus effects. To my understanding kcal is supported on the SD625 and I see actual questions on the best kcal values in my device's forums but it may very well not be supported by MIUI's kernel. Here I can see the following thread(s) showing support for KCAL:
https://forum.xda-developers.com/re...-development/faust-kernel-7-1-2-mido-t3624515
https://forum.xda-developers.com/redmi-note-4/help/custom-kernel-miui-t3647446

This post here makes me believe mpd5 support exists at least for one kernel:
https://forum.xda-developers.com/showpost.php?p=72684205&postcount=4

I can try with a different kernel obviously and report back but with the current kernel I do not see any kcal related files in /sys/devices/platform.

Just to clarify. Is KCAL support enough for this to work or does one need KPPD as well?
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
Cheers,

the app successfully launched I could set values on the sliders, but nothing took effect sadly. I will give the first approach a try later tonight, for now let me commence a bit with my research I did (as this may be a lot more helpful for either of us :) ).

Thanks a bunch for explaining how and where your app actually attaches itself into and giving a description of the terms plus effects. To my understanding kcal is supported on the SD625 and I see actual questions on the best kcal values in my device's forums but it may very well not be supported by MIUI's kernel. Here I can see the following thread(s) showing support for KCAL:
https://forum.xda-developers.com/re...-development/faust-kernel-7-1-2-mido-t3624515
https://forum.xda-developers.com/redmi-note-4/help/custom-kernel-miui-t3647446

This post here makes me believe mpd5 support exists at least for one kernel:
https://forum.xda-developers.com/showpost.php?p=72684205&postcount=4

I can try with a different kernel obviously and report back but with the current kernel I do not see any kcal related files in /sys/devices/platform.

Just to clarify. Is KCAL support enough for this to work or does one need KPPD as well?
To clarify, this uses kppd and does not use kcal.

Savoca made kcal, which is a kernel modification or can be used through insmoding a kernel module. It does not need kppd to work.

Savoca then made kppd, a kcal post possessing daemon for people who could not mod their kernel. So kppd does what kcal did without touching your kernel, however it is not kcal. You do not need kcal for kppd to work. Kppd works on certain chipsets, regardless of which kernel is installed.

This app installs kppd, not kcal.

Hopefully that clears the water. Thanks for all the effort to test out a solution! I'd slap your thanks button, but I ran out of my 8 for the day.

Sent from my LG-H811 using XDA-Developers Legacy app
 
  • Like
Reactions: darazor

marn3us

Senior Member
Sep 15, 2013
372
181
0
Have you found a good setting that you'd like to share with the group?

Here's mine:
Thanks for sharing! :)

Unfortunately I don't have any calibration tools (other than comparing to my calibrated pc monitor) so I am not able to properly adjust the parameters...

But since the difference from my two calibrated monitors (both pc and macbook) is quite noticeable, it would be great if someone with calibrating tools could provide us with tweaks for sRGB on our LG G4.

This is especially useful considering that most internet content and the most popular phones (all recent iphones and Samungs from S7 and on) are calibrated on sRGB ;)
 

obol2

Senior Member
Nov 23, 2014
1,481
422
113
Home
Thanks for testing it!

Question: did it not work at all? Did the r g b multipliers work, or just not at all?

Sorry, just read up on the LG G5, it has an 8996 chip, which savoca did not list as applicable. Then again, neither is the G4's chip, the 8992, but it works on the G4 anyways. Sorry that it does not work on the G5.



Also, if you have time did savoca's original kppd work? Sorry for all all the questions. Thanks for taking the time to test it!

Forgive my ignorance, too, but is the G5 chose on the list of chips in the OP (just updated, was not there before now)?

If so, which version? Notice in the text file there is a "pa" version. You may need to change to 1, 2, or 3 depending on your version. If that is the case (and them editing the text file works) I could add a settings for version number also.
I gave all permissions and when I press install, it rebooted and when I open the app again, it shows the same screen as before (with the install button).
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
I gave all permissions and when I press install, it rebooted and when I open the app again, it shows the same screen as before (with the install button).
I recommend that you try savoca's instructions to manually install kppd. If you take notes, we can see where the differences are in my app and the manual instructions.

The link is in the OP.

After installing kppd manually, and testing as peer his instructions, you can try opening my app to see if the controls work.

Sent from my LG-H811 using XDA-Developers Legacy app
 
  • Like
Reactions: obol2 and darazor