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

kingkhan2843

Member
Nov 18, 2016
37
2
8
Hello sir.Please help me. I have lg nexus 5 with 8974 chip and kppd and this app is not working in my nexus.I have tried everything like changing pa version and roms and giving permission but nothing changed.Sorry for my bad english.Thanks
 
  • Like
Reactions: AlaskaLinuxUser

levone1

Senior Member
Dec 28, 2014
3,741
1,451
243
What chip is in that phone?
Does kppd from savoca work (link in op)?

Sent from my Life One X2 using XDA-Developers Legacy app
Same phone I've been using it with on 7.1.1, Xperia Xc, (f5321), 64bit. I tried with kppd app, and also with script. Editing postproc.conf and saving doesn't cause crash,but doesn't make a change. Attempting to run script, or tapping 'Enable' in app causes freeze and crash.

---------- Post added at 08:11 PM ---------- Previous post was at 07:41 PM ----------

What chip is in that phone?
Does kppd from savoca work (link in op)?

Sent from my Life One X2 using XDA-Developers Legacy app
Interesting note - running the command in terminal in recovery causes changes to take effect. Not persistent on reboot though. Maybe a rom issue, not version issue
..
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
Same phone I've been using it with on 7.1.1, Xperia Xc, (f5321), 64bit. I tried with kppd app, and also with script. Editing postproc.conf and saving doesn't cause crash,but doesn't make a change. Attempting to run script, or tapping 'Enable' in app causes freeze and crash.

---------- Post added at 08:11 PM ---------- Previous post was at 07:41 PM ----------



Interesting note - running the command in terminal in recovery causes changes to take effect. Not persistent on reboot though. Maybe a rom issue, not version issue
..
Interesting. Just an aside, but it will not be persistent after reboot. If the app works properly, then it would re-enable kppd after reboot. But if you run it from the command line, then the app will probably not be able to do that.

Could you pull a logcat? If you turn on adb, hook to you computer, and run adb logcat, then try to use the app. After it freezes or crashes, you could copy the terminal output and post it here. Without a log I can't begin to trouble shoot.

However, you said this is Oreo, correct? Oreo has very stringent security, even if you are in permissive. I suspect that to be the case, as an off the cuff guess. [emoji2]



Sent from my Life One X2 using XDA-Developers Legacy app
 
  • Like
Reactions: darazor and levone1

levone1

Senior Member
Dec 28, 2014
3,741
1,451
243
Interesting. Just an aside, but it will not be persistent after reboot. If the app works properly, then it would re-enable kppd after reboot. But if you run it from the command line, then the app will probably not be able to do that.

Could you pull a logcat? If you turn on adb, hook to you computer, and run adb logcat, then try to use the app. After it freezes or crashes, you could copy the terminal output and post it here. Without a log I can't begin to trouble shoot.

However, you said this is Oreo, correct? Oreo has very stringent security, even if you are in permissive. I suspect that to be the case, as an off the cuff guess. [emoji2]



Sent from my Life One X2 using XDA-Developers Legacy app
https://pastebin.com/SzidNiym

I don't know much about reading logs, but I see around line 100 a Java permission error in response to kppd. Then everything just dies. I left the phone on for about 5 minutes after freeze, but seems like log stopped about 1 minute after...

Any hope?
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
https://pastebin.com/SzidNiym

I don't know much about reading logs, but I see around line 100 a Java permission error in response to kppd. Then everything just dies. I left the phone on for about 5 minutes after freeze, but seems like log stopped about 1 minute after...

Any hope?
01-15 06:51:57.632 *3412 *3412 W System.err: java.io.FileNotFoundException: /storage/emulated/0/documents/kppd.conf (Permission denied)

Here is the actual fail. Yes, you are right about that.

1. Okay, does the folder : /storage/emulated/0/documents/ exist? If not, can you create it? Notice the lower case documents.

2. Does kppd.conf exist in that folder? If not, can you create a blank file of that name there?

3. Does the app have storage permission? (About app, permissions.)

4. Does the app have root permission?



Sent from my Life One X2 using XDA-Developers Legacy app
 
  • Like
Reactions: darazor and levone1

levone1

Senior Member
Dec 28, 2014
3,741
1,451
243
01-15 06:51:57.632 *3412 *3412 W System.err: java.io.FileNotFoundException: /storage/emulated/0/documents/kppd.conf (Permission denied)

Here is the actual fail. Yes, you are right about that.

1. Okay, does the folder : /storage/emulated/0/documents/ exist? If not, can you create it? Notice the lower case documents.

2. Does kppd.conf exist in that folder? If not, can you create a blank file of that name there?

3. Does the app have storage permission? (About app, permissions.)

4. Does the app have root permission?



Sent from my Life One X2 using XDA-Developers Legacy app
I had uninstalled, so I reinstalled, and made sure all above were 'yes', and tried again. Still freeze and crash, but log is quite different. I see some 'no response' and 'timeout' lines down around line 140, and a few 'error opening trace file'...

https://pastebin.com/9DK0yzVp
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
I had uninstalled, so I reinstalled, and made sure all above were 'yes', and tried again. Still freeze and crash, but log is quite different. I see some 'no response' and 'timeout' lines down around line 140, and a few 'error opening trace file'...

https://pastebin.com/9DK0yzVp
Great work!

Notice line 253, this is the tombstone. This is where it dies. The process that dies is 2126. That process starts on line 7, before kppd starts. It is the screen buffer. Odd....

There are quite a few permission avc read/write errors throughout the log, but I'm not entirely sure which ones are related. Oreo is so new, and your xposed modules add notes to the log, making it difficult to pin down.

I'm looking at this on my cell phone, so maybe tomorrow I can look at the logs on a desktop screen, so I can see and search better. ;)

Also Oreo is now available for my lg g4, so perhaps I can try it there, tomorrow as well.

Sent from my Life One X2 using XDA-Developers Legacy app
 
  • Like
Reactions: darazor and levone1

levone1

Senior Member
Dec 28, 2014
3,741
1,451
243
Great work!

Notice line 253, this is the tombstone. This is where it dies. The process that dies is 2126. That process starts on line 7, before kppd starts. It is the screen buffer. Odd....

There are quite a few permission avc read/write errors throughout the log, but I'm not entirely sure which ones are related. Oreo is so new, and your xposed modules add notes to the log, making it difficult to pin down.

I'm looking at this on my cell phone, so maybe tomorrow I can look at the logs on a desktop screen, so I can see and search better. ;)

Also Oreo is now available for my lg g4, so perhaps I can try it there, tomorrow as well.

Sent from my Life One X2 using XDA-Developers Legacy app
Thanks. I wonder if changing log level or attempting on clean-flashed rom might help...
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,942
4,073
0
Fairbanks
thealaskalinuxuser.wordpress.com
Thanks. I wonder if changing log level or attempting on clean-flashed rom might help...
Okay, reworked and sucessfully tested on an LG G4 H811, running AOSCP 8.1. Works like a charm. I updated the play store to version 1.6, but it may take a couple hours for the play store to update. And the new apk is available here:
https://github.com/alaskalinuxuser/app_kppdcontrol/blob/master/app/kppdcontrol_v1.6.apk

Give that a try and see if it works.

Note, if you have previously installed kppd, you need to go delete the old app. Then, go to the terminal or adb:

$ su
# mount -o rw,remount /system
# rm /system/bin/kppd
# mount -o ro,remount /system

Then I recommend that you reboot, and install the new app.
Give that a try and let me know how that works for you.
 
  • Like
Reactions: darazor and levone1

levone1

Senior Member
Dec 28, 2014
3,741
1,451
243
Okay, reworked and sucessfully tested on an LG G4 H811, running AOSCP 8.1. Works like a charm. I updated the play store to version 1.6, but it may take a couple hours for the play store to update. And the new apk is available here:
https://github.com/alaskalinuxuser/app_kppdcontrol/blob/master/app/kppdcontrol_v1.6.apk

Give that a try and see if it works.

Note, if you have previously installed kppd, you need to go delete the old app. Then, go to the terminal or adb:

$ su
# mount -o rw,remount /system
# rm /system/bin/kppd
# mount -o ro,remount /system

Then I recommend that you reboot, and install the new app.
Give that a try and let me know how that works for you.
Nice - I'm back on N atm, but won't last long. I'll check it out. Maybe you should make a thread in Android developed and hacking. Or post in kppd thread at least. I think lots of people would appreciate it...

Thanks
 
  • Like
Reactions: AlaskaLinuxUser

wokawoka

Senior Member
Jul 25, 2014
153
22
0
in case we need to uninstall the app and the daemon, is it enough to uninstall the app and to remove the kppd folder in /system/bin/?
many thanks