yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] morfances:
This version

https://kernels.franco-lnx.net/Nexus5/6.0.1/anyKernel/

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] Paschfire:
You have to launch FKM&U app and then clear from recents list 3times in a row, after which you can then touch & hold the FKM&U app icon for 2 minutes (a toast message should pop-up to confirm action) to reveal the shutdown_on_drop state menu within the app.
[Nexus 5 Original Android Development] L.F.B.:
r108 is up? Ive just updated...

Master Franco or Master Osmosis please, update nexus 7 to work with FKU...
[Nexus 5 Original Android Development] franciscofranco:
Ok break from XDA is over, and vacations are over. Sorry for the absence but I had to rest.

r108 is up with a couple security patches, nothing fancy, there isn't much left to do on this device at this point.

You can flash it with https://play.google.com/store/apps/details?id=com.franco.kernel or any other mean you're used to!

Hope you're having a great start of summer!
[Nexus 5 Original Android Development] :
Ping me if he returns. ;)

Cheers!
[Nexus 5 Original Android Development] osm0sis:
[MENTION=3292224]franciscofranco[/MENTION], welcome back! This would be cool for Lineage stock root users. :)
[Nexus 5 Original Android Development] franciscofranco:
Oi! I added those commits for r108.
[Nexus 5 Original Android Development] osm0sis:
Nice one! I'm still a staunch SuperSU user but that's kick ass, I'm sure some people will be pleased. :)
[Nexus 5 Original Android Development] sunnysky:
Thanks!

Just joined up to say thanks for your work on this kernel.

So - thanks!
[Nexus 5 Original Android Development] Bhgprox:
Im getting CPU 1 2 and 3 completly off as soon as the FKU sets the config. They wont turn on even if i run some heavy app

restarting solves the problem as long as I dont make any changes in FKU after restart

EDIT: Just checked it happens after turning off the screen and turning on again. Maybe a problem with naptime? IDK

EDIT2: Tried disabling naptime but it havent solved anything. I am starting to think that may be a problem with lineageos

EDIT3: Tried other programs to check the cpu and the problem was with cpu z, i guess.
[Nexus 5 Original Android Development] Paschfire:
Not sure if it's something within r108 update causing this, but at random Performance Profiles stop following the per-app-mode settings and upon inspection the Performance Profiles tab becomes absent within FKM&U(see SS), this only started happening after the FK r108 update.

I need to clear FKM&U from recents and relaunch upto 3 times before the Performance Profile tab returns and per-app-mode is functional again.

Pls let me know if you there's anything I can submit to help figure out the cause.

Thanks!

Nexus5, ROM DU11.5-06/23/17 7.1.2-N, Magisk v13(54e6a79) beta, FKr108, FKMU 2.2.14
[Nexus 5 Original Android Development] Arstoien:
And there you go. Often it's another app causing the problem.
[Nexus 5 Original Android Development] nyetwurk:
Can somebody fix this already. Getting tired of it.
[Nexus 5 Original Android Development] osm0sis:
Well, for one, you can filter it out in a logcat app with: ^((?!touch_boost).)*$

To actually work around it, I tried to make a dummy socket server with the socket for mpdecision that would pacify it, and it looked like it worked at first, but it eventually maxed the CPU. :eek:

Maybe someone else more familiar with sockets can take a stab at it? I might be missing something.

sock_srv.c:

// Based on: https://github.com/troydhanson/network/blob/master/unixdomain/srv.c
// and: https://android.googlesource.com/platform/hardware/qcom/power/+/master/power.c

#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdlib.h>

char *socket_path = "./socket";

int main(int argc, char *argv[]) {
struct sockaddr_un addr;
int fd,cl,rc;

if (argc > 1) socket_path=argv[1];

if ( (fd = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1) {
perror("socket error");
exit(-1);
}

memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
if (*socket_path == '\0') {
*addr.sun_path = '\0';
strncpy(addr.sun_path+1, socket_path+1, sizeof(addr.sun_path)-2);
} else {
strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path)-1);
unlink(socket_path);
}

if (bind(fd, (struct sockaddr*)&addr, sizeof(addr)) == -1) {
perror("bind error");
exit(-1);
}

while (1) {
if (rc == -1) {
perror("read");
exit(-1);
}
else if (rc == 0) {
printf("EOF\n");
close(cl);
}
}

return 0;
}

Compiled with: `arm-linux-androideabi-gcc -static sock_srv.c -o sock_srv`

Then a script in the ramdisk to run it..

fake-mpd.sh:

#!/system/bin/sh

SUPOLICY=`which supolicy`;

{
/sbin/sock_srv /dev/socket/pb > /dev/null 2>&1;
}&

chown root:system /dev/socket/pb;
chmod 666 /dev/socket/pb;
chcon u:object_r:mpdecision_socket:s0 /dev/socket/pb;
$SUPOLICY --live "allow system_server init unix_dgram_socket sendto";

Then this in init.fk.rc to run that:

exec u:r:init:s0 root root -- /sbin/fake-mpd.sh
[Nexus 5 Original Android Development] xenyz:
[MENTION=3750240]stratosk[/MENTION] made something like this for the Semaphore kernel on the Nexus 4. You can find it in the anykernel installer as 'mpdfake'.

Doing a quick search around the net and his GitHub I can't find the source for it though, but as it's 32 bit on both devices, it could run on the Nexus 5 perhaps?
[Nexus 5 Original Android Development] osm0sis:
Good find! Yeah, should work! :fingers-crossed:
[Nexus 5 Original Android Development] meteora:
Hi all

I've just flashed r108 over this ROM:

https://xdaforums.com/google-nexus-5/orig-development/wip-aosp-nougat-nexus-5-t3446875

my problem is that Telegram (messenger) video messages won't play and freeze in the beginning. I am not sure if this is a kernel related issue or not. Please advice. Could it be due to kernel?

I've erased the cache of the Telegram and updated my GPlay services, still no luck.
[Nexus 5 Original Android Development] osm0sis:
​

You tell us. Flash the default kernel for that ROM (boot.img in the ROM zip) and see if things are still broken.
[Nexus 5 Original Android Development] meteora:
Thanks for your reply. I did that but it didn't solve the problem. However latest telegram update solved it ;)
[Nexus 5 Original Android Development] Kusie:
Hi all,

I´m running my Nexus 5 on the latest official 6.0.1. Stock ROM and franco.Kernel ... I have the problem that the phone is going "offline" when in standby even if I select to keep WLAN on in standby... I detected this when I ran Whatsapp Web and aftera few minutes it said my phone was not connected... Clicked the power button of my nexus and It was instantly online again.

Is that a "feature" of the kernel? And if so, how do I deactivate it?

Thanks,

K.
[Nexus 5 Original Android Development] osm0sis:
You try it? His binary with my script to simplify the setup works perfectly! :D
[Nexus 5 Original Android Development] xenyz:
No, I haven't had to yet-- I just switched to N5 from N4 and the ROM/kernel I chose doesn't seem to produce the touchboost events. I only have power.default.so in system/lib/hw; I'm assuming the dev took out the option, as Battery Saver mode doesn't lower the CPU frequency either.

I did use the semaphore installer with a different kernel on the N4 with great success though.
[Nexus 5 Original Android Development] osm0sis:
Ah okay. mpdfake is the only way to disable mpdecision and hide the logcat spam without modifying /system that I've seen, so nice work [MENTION=3750240]stratosk[/MENTION]. Maybe he can direct us to the source at some point. :good:

Edit

: Until [MENTION=3292224]franciscofranco[/MENTION] can add it to his zip, I'll make an AK2 zip to add it to, well, any kernel. ;)
[Nexus 5 Original Android Development] osm0sis:
Looks like zram broke on hammerhead as well as flo (at least on Lineage 14.1), so... :cowboy:

fk-r108-fixed.zip:

- update to latest AK2 core, script patches

- fix zram setup and enabling

https://basketbuild.com/devs/osm0sis/osmods -- http://v.ht/osmods

I've also got mpdfake_Injector_Addon-AK2-signed.zip available there which adds [MENTION=3750240]stratosk[/MENTION]'s mpdfake binary to the ramdisk and sets it up to intercept the mpdecision calls from the powerhal, and suppress all that touch_boost logcat spam. :cool::good:

Flash fk-r108-fixed.zip, then optionally mpdfake if you hate logcat spam as much as I do.
[Nexus 5 Original Android Development] morfances:
Work on lineage CAF?
[Nexus 5 Original Android Development] Paschfire:
Pls use the search function as this question has been asked/answered many times already, no it won't work on CAF Lineage OS, it will work on Non-CAF Lineage OS.
[Nexus 5 Original Android Development] 228aye:
Hello [MENTION=3292224]franciscofranco[/MENTION]! I have a very unusable bug on all Nougat ROM's, for example in Telegram app (and in some other messangers/apps). When I change the network type from LTE to Wi-Fi, or from Wi-Fi to LTE (or 3G, it doesn't matter) being in the app, it writes "Connecting..." and don't update the dialogs, cause connection to Internet is lost. Helps only restart the app, or very long waiting for connection again. What I can do?
[Nexus 5 Original Android Development] Paschfire:
Rom/Setup? Other mods installed? Logcat of the Issue?

I use Apps mentioned and never had this issue.
[Nexus 5 Original Android Development] 228aye:
Lineage OS, Stock kernel, No modifications.
[Nexus 5 Original Android Development] namerke:
Hi there [MENTION=4544860]osm0sis[/MENTION] ,

Thanks for your great additions.

This might not be the best place to ask, but my question is somewhat directly related to these modifications, therefore here I go:

Should ZRAM get enabled with your updated ramdisk even without rooting the device?

The reason I'm asking is because I'm currently trying to achieve the same on N7 (Grouper) 3.4 kernel, 3.10 backported more or less same way as it is here , everything seems to work just fine using the following lines:

+on post-fs
+ exec u:r:init:s0 -- /system/bin/mkswap /dev/block/zram0
+ exec u:r:init:s0 -- /system/bin/swapon /dev/block/zram0
+
+ exec u:r:su:s0 root root -- /system/bin/mkswap /dev/block/zram0
+ exec u:r:su:s0 root root -- /system/bin/swapon /dev/block/zram0
+
+ exec u:r:supersu:s0 root root -- /system/bin/mkswap /dev/block/zram0
+ exec u:r:supersu:s0 root root -- /system/bin/swapon /dev/block/zram0

Except that ZRAM won't initialize without root.

If i type 'free' command in terminal emulator the size will show 0.

If i root the device it shows the correct size, which is defined in fstab.

Unfortunately I'm can't afford to check if this is the same behaviour on the N5 with your scripts because this phone is my daily driver now and I can't thinker with it.

If this is not the best place to discuss this topic please feel free to join my thread.
[Nexus 5 Original Android Development] osm0sis:
The hope is that the top 2 of those lines will init zram without root but it depends on the SELinux and how restrictive/broken is the init binary.

For example on hammerhead the entry in the fstab used to be sufficient and handle everything without root, but for flo/deb the fstab changes would hang the boot so doing it manually with those commands was the only way.

Further, those init context commands used to work on unrooted flo/deb but now they also appear not to, so now we've got those others on both devices as fallback.

So my suggestion would be to try the fstab version and hope it doesn't **** your boot, and then use what you've quoted there as a fallback. If you've got control of the ROM then add the init/SELinux patches necessary to make either the fstab or init versions work without root.
[Nexus 5 Original Android Development] Jack_92:
I have a problema in Nexus 5 with euclidean OS and Franco kernel. I can't chose maximum frequenti offerte CPU. The Fk manager Fox Always the frequency 1497MHz eventuali informazioni i change It. Any halp?
[Nexus 5 Original Android Development] Paschfire:
Is the device hot? As this sounds like the CPU is Thermal Throttled.

You can view this within,

FKM&U app>Menu>Options>CPU Temperature>Toggle Temperature.

Depending on how hot the CPU is, try letting it cooldown sitting in standby mode for 5-10mins then try changing the CPU Frequency.
[Nexus 5 Original Android Development] :
Hello. I flashed latest Franco Kernel on the latest AOSPA and now my phone doesn't boot. It shows Google logo, but bootlogo doesn't show up. What can cause this issue?
[Nexus 5 Original Android Development] Nexive:
Paranoid Android 7.2.1 is a CAF-based ROM so only CAF-based kernels will work. Franco's kernel isn't CAF-based so it won't work.
[Nexus 5 Original Android Development] :
Thanks, my bad. Somehow missed that.
[Nexus 5 Original Android Development] maybeme2:
I'm sure this has been asked but I couldn't find the answers I needed. Although I have a rooted nexus 5 I've never flashed a non stock kernel or rom and am therefore scared. But I've heard such good things about the Franco kernel that I would like to try it.

My phone is a rooted nexus 5, stock 5.1.1, twrp and supersu with xposed installed.

Questions:

1. Do I need to remove xposed before flashing this kernel?

2. Can I still use xposed modules with this kernel?

3. I have a twrp nandroid backup. If the kernel flashing goes wrong will my nandroid backup restore the previous kernel or will I need to do something else?

4. Will I lose root by flashing this kernel ?

Thank you.
[Nexus 5 Original Android Development] osm0sis:
Don't be afraid. No, yes, yes, no.

A lot of that is the beauty of AnyKernel2. For the best experience as a new user I recommend using my r108-fixed version while we wait for [MENTION=3292224]franciscofranco[/MENTION] to make it to the N5 on his to-do list and integrate my fixes. :)
[Nexus 5 Original Android Development] Stevica Smederevac:
Please, correct yourself;) . User is on 5.1.1.
[Nexus 5 Original Android Development] osm0sis:
Ah jeez. Last version for 5.1 was way back. Why is he even using Lollipop and not the last official Marshmallow if he wanted to stay stock ROM.. :eek::confused:
[Nexus 5 Original Android Development] maybeme2:
Because I tried 6.0.1 and didn't like it, so I moved back to 5.1.1 which I have fine tuned the way I like it with minimal battery loss. Also i value my privacy and use xprivacy and Afwall. So marshmallow's greater integration with Google and social media is not for me.

Which brings up another question. I have battery usage nicely controlled with Greenify, Amplify, etc. Will this kernal still be useful?

Thanks.
[Nexus 5 Original Android Development] Sefyron:
I can't download your profile too many ads please can you give me a proper link I'm a new owner of Nexus 5 thank uuu
[Nexus 5 Original Android Development] osm0sis:
Probably. It was still good back then, but latest is greatest..

http://kernels.franco-lnx.net/Nexus5/5.1/

Good luck!
[Nexus 5 Original Android Development] ravichaudhary133:
Are there any good ppsspp games running lag-free on our device..?
[Nexus 5 Original Android Development] :
Excuse me, but how is that related to the topic?
[Nexus 5 Original Android Development] ravichaudhary133:
Sorry to ask that question in this forum..

But I think kernel is something to do with controlling frequency ,voltage and clocks of cpu..

So my question should have been and is- how to overclock cpu and gpu so that I can play ppsspp games smoothly on our device.:confused:

Sorry for that previous post..:(
[Nexus 5 Original Android Development] Testraindrop:
It's not a Rom...

Gesendet von meinem Nexus 5
[Nexus 5 Original Android Development] ryk k:
to use with this kernel ..

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] franciscofranco:
Well, no shít, performance keeps min/max the same at 2,3GHz..................
[Nexus 5 Original Android Development] 75markus:
all stock-based

no cm based, they got their own kernel
[Nexus 5 Original Android Development] franciscofranco:
Pushed, hopefully, the last r15-test: http://192.241.177.15/Nexus5/4.4/tests/boot-test15.img made things a little more conservative to not spend too much time at higher freqs due to the thread migration thingy cpu boost.
[Nexus 5 Original Android Development] ryk k:
Ok ;) thanks

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] P.Mobile:
test it up guys!!! :) cant wait for r15!! r14 is already off the hook!
[Nexus 5 Original Android Development] i860:
Still fc in Firefox after reboot.
[Nexus 5 Original Android Development] Notechis:
No issues so far on latest test version ... Colors are cold as ice ... Like that ...

Fluid as liquid KitKat
[Nexus 5 Original Android Development] nerotix:
+1
[Nexus 5 Original Android Development] franciscofranco:
Ok I need the exact steps you used to cause that FC on Firefox for me to reproduce locally.
[Nexus 5 Original Android Development] dwang:
latest r15 seems to be spending more time at 960mhz, whereas in the previous images, it was staying at 300mhz.
[Nexus 5 Original Android Development] franciscofranco:
Alright, thank you, I think I know why.
[Nexus 5 Original Android Development] Notechis:
Exactly my stats

VIVA las Tapas
[Nexus 5 Original Android Development] i860:
Hi

The fc appears after each reboot on R15 final version. The reboots in dead trigger 2 seems to gone away. Is just me of the device is hot during gaming on R15.
[Nexus 5 Original Android Development] tyrellcorpnexus:
How's battery life been for r15 testers so far?
[Nexus 5 Original Android Development] bleuxeon:
it'is worse !! Don't use it!!! never!:silly:

How do you think we can juge a kernel battery life when it was released 1 hour ago?
[Nexus 5 Original Android Development] The Gingerbread Man:
My battery hasn't run out from testing r15 v3 yet I'm at 50% left :p
[Nexus 5 Original Android Development] bpdev:
What do you guys think about r15's performance vs stock. I know battery life will be better.
[Nexus 5 Original Android Development] Zyphur:
I don't think anybody makes kernel's or roms designed to be worse than stock, do you?
[Nexus 5 Original Android Development] SonicGold:
Wow, I ran exactly into the same issue, I didn't think PA was CAF-based actually (since it's also spelled AOSPA), which explains why I was getting the same issue as alveola666.

Thanks for the reply also ! :)
[Nexus 5 Original Android Development] franciscofranco:
r109 with a bunch of security fixes and some magic by osm0sis is up and running. Get it now!
[Nexus 5 Original Android Development] osm0sis:
Ramdisk fixes in r109:

- fix zram on Nougat and/or Magisk

- suppress touch_boost logcat spam (thanks [MENTION=3750240]stratosk[/MENTION])
[Nexus 5 Original Android Development] namerke:
Hi [MENTION=3292224]franciscofranco[/MENTION] ,

Thanks for the updates, as always.

Just for your consideration, [MENTION=614507]razorloves[/MENTION] seems to do some nice progress regarding important security patches (BroadPwn) for LOS (non-CAF) hammerhead kernel [here] and [here] . I'm not sure if all these changes could be merged into your branch , or if all of them are missing, I've only checked one commit which was missing for sure here. By all means this is not a request, but if these changes will be incorporated into the next release they will be very welcomed.

Anyway, thanks for your time and effort. :good:
[Nexus 5 Original Android Development] franciscofranco:
Nice more security patches. I'll merge and release r110 since these are important.
[Nexus 5 Original Android Development] tfernandes:
It seems that most of custom roms nowadays are CAF .. it's hard to find a non-caf one...

Francisco, could you suggest a good NON-CAF rom to use with your kernel?

Thanks!
[Nexus 5 Original Android Development] osm0sis:
[MENTION=614507]razorloves[/MENTION]' official Lineage 14.1 is working well for me. He's an excellently skilled and attentive maintainer. :)
[Nexus 5 Original Android Development] tfernandes:
Is this the thread link https://xdaforums.com/google-nexus-5/orig-development/rom-cm14-1-nexus-5-hammerhead-t3510548 ?
[Nexus 5 Original Android Development] lmulli:
I must have a different version of XDA on my end only the majority of custom roms are non-caf from what I can see and based on AOSP. Personally, I'm using SAOSP which appears to work well, although this device isn't one of my daily phones and spends its days festering in a drawer in readiness just in case its needed for some reason or other.
[Nexus 5 Original Android Development] Paschfire:
Without going to crazy with the OT(my apologies Francisco;)), I would also suggest trying Dirty Unicorns DU11.7-7.1.2-N as it's AOSP based and works beautifully with FK, is feature rich, bug free, super stable performance.

Has been my DD since KK and N is just a spectacular example of their hard work.

It can be found within DUs G+ home page, as DU has chosen not to use XDA to stage their ROMs.
[Nexus 5 Original Android Development] franciscofranco:
Pushed r110 with more security patches! Get it now.
[Nexus 5 Original Android Development] ravichaudhary133:
Please help!

my android/obb folder is not opening and that's why i am getting error 492 on play store . Any fixes...

I am on Franco kernel
[Nexus 5 Original Android Development] osm0sis:
You're totally off topic, but go find my Odds and Ends thread and flash my sdcard Fix Permissions script zip.
[Nexus 5 Original Android Development] ravichaudhary133:
Sorry ! But Still not fixed..
[Nexus 5 Original Android Development] osm0sis:
Then go open a q&a thread like you should have in the first place.
[Nexus 5 Original Android Development] ravichaudhary133:
:D
[Nexus 5 Original Android Development] cas0404:
Hi,

Does this kernel comes with the best setting by default? or do i have to root my device to apply the good settings ?

Thx
[Nexus 5 Original Android Development] Nevermindthelabel:
You can flash and forget
[Nexus 5 Original Android Development] Junnie:
kernel version r110 wifi not working on android marshmellow MTC20F , im using AOSPA 6.3

---------- Post added at 11:27 AM ---------- Previous post was at 11:16 AM ----------

version r96 cant work too :(

---------- Post added at 11:30 AM ---------- Previous post was at 11:27 AM ----------

version r96 cant work too :(
[Nexus 5 Original Android Development] Paschfire:
That's an issue with the ROM not updating the WiFi drivers and not related to FK, search this thread for the "WiFi fix", it's a flashable archive.
[Nexus 5 Original Android Development] gargyagotra:
Anyone else facing battery drain on r110???
[Nexus 5 Original Android Development] Byronbgs:
Check the system monitor in the app. If any of the CPU are constantly maximum then switch governor's, reboot and switch back to your preference and reboot.

Also, maybe one of your apps went rouge. Wipe your cache in recovery.

Lately I have found that sometimes the first flash over the stock ROM Kernel will cause one or more cores to get stuck in performance mode. Whether it's AOSP or lineage os and either using Franco or ElementalX kernals, I have had the same experience.

I once had 70% battery left when idle overnight when I usually have 93%. Or drain a battery 20 - 30% while watching you tube for 15 min.

Hope this helps. :good:
[Nexus 5 Original Android Development] franciscofranco:
r111 is out with some interesting patches, go get it!
[Nexus 5 Original Android Development] franciscofranco:
Just curious, is anyone running the Oreo port on this thing?
[Nexus 5 Original Android Development] armando_rod:
I'm not but once it gets RIL working I'll test it, just waiting for that and nothing else.
[Nexus 5 Original Android Development] Nexive:
Once RIL is working I will use it. It's mine main device so it's kind of important to have RIL. :)
[Nexus 5 Original Android Development] franciscofranco:
Ain't nobody got time for RIL.
[Nexus 5 Original Android Development] lmulli:
I am. Not my primary phone so always willing to try new things.
[Nexus 5 Original Android Development] franciscofranco:
How magical is it?