yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] Hanny:
first of all go to developer options -> show cpu usage to see if any process is hogging your cpu all the time

then check if you have enough ram left for the phone, more than 200mb at least, I guess

dont know your phone's apps and config so the above suggestions first, then kernel wise:

- tune up the input boost frequency. the default input boost frequency is 1.1ghz, you can find it in governor control inside franco's app. mine is set to 1.2ghz and you may even consider higher ones up to 1.5ghz. it is no biggie because we did not find really bad battery impact at 1.5ghz since twenty or thirty nightlies ago, and the recent lower default is just to maximize the battery as much as possible and also because the input boost codes have been improved to work more responsively. you may decrease the boostpulse duration down abit to balance out your increased input boost frequency, if you are not always scrolling strongly through long long lists or posts.

- tune down the timer_rate. 25000 is good for battery but if you are not satisfied with the frequency that the governor polls for load, decrease it to 20000. again you dont have to worry about battery life much as this has been the default since long time ago and it was increased since r191. usually timer_rate improves gaming performance but if solely increasing input boost did not satisfy you, timer_rate will also improve overall smoothness.
[Nexus 4 Original Android Development] franciscofranco:
Perfect explanation.
[Nexus 4 Original Android Development] bigeyes0x0:
That's an interesting take on MPDecision, I think I'll add a check for the ramdisk later, as that is doable.

Regarding the thread polling pattern. The reason I didn't mention your name was simply because I find that to be the same as when Facebook posted about how they hacked dalvik VM to run their bloated app. It's rather embarrassing to be straight out honest. I didn't go into details but since you did, here are what's wrong with that code:

- Maintaining a handler like that effectively maintaining another reference to your activity, a potential memory leak

- mHandler.removeCallbacks(null) won't work check the doc/source

- It is not aware of activity life cycle so troubles might happen without additional complicated code when you need to maintain references between activity instances, another potential mem leak if not done correctly here

Headless fragment with a AsyncTask inside can be used to do background task and also maintains activity reference between configuration changes without any ugly hack. That code I shared is portable among Android projects and be implemented with a few line of code without worrying about any of the above, or recreating the whole pattern each time in another place, it's OOP. Long code in short term but shorter code in the long run, not to mention less error prone, and cleaner.

There are many ways to do background task but for shorter tasks in Activity the class I shared works beautifully. So that's all there is to it, some facts and some of my own opinions and as how opinion is concerned, you're free to do what you like.
[Nexus 4 Original Android Development] kecinzer:
Can someone confirm this behaviour with default (interactive) governor?

When someone calling phone starts ringing first. Then there is 1 - 3 seconds delay and after that screen goes on and you can see who calling.

I don't mean any call delay or something, just delay between phone starts ringing and screen goes on.
[Nexus 4 Original Android Development] RussianBear:
Have had this happen often before. Not sure if it's still the case, as I might've gotten used to it lol
[Nexus 4 Original Android Development] franciscofranco:
Thank you for the suggestions and the time to write the lengthy post.
[Nexus 4 Original Android Development] franciscofranco:
Have had this happen mostly on all my devices, custom Kernels or not.
[Nexus 4 Original Android Development] Mercado_Negro:
Apparently, it's gonna happen today...

http://www.androidpolice.com/2013/10/31/the-nexus-5-and-kitkat-launch-today-october-31st/

Hope they get those factory images up today so we can flash away :D
[Nexus 4 Original Android Development] hamad138:
Franco 4.4 is near does that mean u have to start from zero?

I think 193 is the perfect kernel atm, I want that on 4.4
[Nexus 4 Original Android Development] franciscofranco:
Depends on the changes they did on Mako Kernel. I sincerely hope I don't have to start from scratch - since I did not merge any patch from Codeaurora I'm pretty sure the merge with the new Kernel source will be flawless - if Google rebased again and started their own Kernel source from scratch then I'll have to do the same. I was pretty careful with 4.3 Kernel sources so even if I have to start from scratch its just a evening work.
[Nexus 4 Original Android Development] hamad138:
Ok just implent the hotplug touch driver lolz
[Nexus 4 Original Android Development] franciscofranco:
Hotplug touch driver? You lost me there.
[Nexus 4 Original Android Development] hamad138:
This thing which was introduced on r191 when i touch the screen
[Nexus 4 Original Android Development] franciscofranco:
Ah yes, don't worry.
[Nexus 4 Original Android Development] franciscofranco:
Off-topic, but please read this: https://plus.google.com/u/0/106873500108976028532/posts/PUfw9rLAtnt
[Nexus 4 Original Android Development] tkalli:
Off Topic: Just ordered Nexus 5.

:laugh:
[Nexus 4 Original Android Development] blsrbl:
Yes. It's been officially released.
[Nexus 4 Original Android Development] yoyoz808:
Nexus 5 is up on playstore!!! Just ordered mine :D
[Nexus 4 Original Android Development] theclaytons:
How long does it usually take for google to release new ROM for Nexus 4? I can't justify new phone after 3 months, finance committee (wife) would have kittens...
[Nexus 4 Original Android Development] franciscofranco:
Hope I get mine in a week :)
[Nexus 4 Original Android Development] Testraindrop:
Perfect, ordered also a 32Gb one (but got 2 confirmations :eek: now need to cancel one -.-).

Btw. already sold out in Germany, again.
[Nexus 4 Original Android Development] strapped365:
I'm right there with you. But luckily she is in need of a new phone, so I told her I was gonna order mine next week and just give her my 4...and she's perfectly content.

But as fast as they are selling out....it may be a while before I'm even able to grab one.

Sent from my freaked out NeXuS⁴
[Nexus 4 Original Android Development] cmhjr:
Order A white Nexus 5:thumbup:
[Nexus 4 Original Android Development] 777.300:
So frustrating that I cannot order one in the play store in the Netherlands. They only appear in some phone stores and are than almost 100,- dollar more in price.

Sent from my Nexus 4 with Tapatalk 4
[Nexus 4 Original Android Development] santeana:
16 gigabyte model sold out in Canada already :(

Guess I'll have to get the 32! :D
[Nexus 4 Original Android Development] pchtc:
same here bought the 32

hope custom roms and kernels are not too far behind
[Nexus 4 Original Android Development] markd0wn:
https://android.googlesource.com/device/lge/mako/+/kitkat-release
[Nexus 4 Original Android Development] i860:
Manage to buy 32gb nt will be dispatch on the 8th of Nov, hope Franco will work on N5
[Nexus 4 Original Android Development] resynx:
See you on the other side Franco :)
[Nexus 4 Original Android Development] hmillos:
For those who leave Nexus 4 http://www.youtube.com/watch?v=O5zGkqAWsWE

I wish I could afford a Nexus 5 right now.
[Nexus 4 Original Android Development] Pure Drive GT:
All I want is stock 4.4 for n4 but these google ducks ain't giving it that easily...
[Nexus 4 Original Android Development] CalicoJeb:
Hey the N5 may be a looker ... But... the N4 has got to be the Best Looking Device/Phone made so far....... Just to hold her, touch her lol :laugh:
[Nexus 4 Original Android Development] nexusmaniac:
Yay ordered my nexus 5 32gb :D
[Nexus 4 Original Android Development] Cantacid:
Said that right my friend, n5 aint beating n4 when it comes to looks.
[Nexus 4 Original Android Development] Savant:
Nexus 5 looks good and 32gb FTW.
[Nexus 4 Original Android Development] Waldos:
Someone can buy me a Nexus? I'm in Mexico. More info @ PM
[Nexus 4 Original Android Development] 3thman:
Okay how can I fix that??
[Nexus 4 Original Android Development] bilguun1:
OK I m on r28, so far data dropped here and there, but it came back without needing a boot. Battery life is amazing. Best so far since I got my phone which is 1.5 month. 40% remaining, 1 hour 15 min, all on mobile network, total 11hours 32 mins. Really impressed. I don't mind that data drop as long as battery stays the same.

---------- Post added at 04:25 AM ---------- Previous post was at 04:22 AM ----------

Also, coverage at my work is 1-2 bars, always yellowish, sometimes almost white. So I could imagine when its good coverage I'd get even more battery.
[Nexus 4 Original Android Development] Ballastatuz:
Pretty amazing battery life on r28 I charged it from 60-80 percent when I was headed to work but this is amazing.

Max 1350

Min 484

Row scheduler everything else stock.
[Nexus 4 Original Android Development] XxKillerKev7xX:
Hey guys how is the battery life with this kernel? What should I expect? Better than stock? Also if I want to return to stock what should I flash is there a kernel image. I bought my nexus 4 from the Canadian play store if that makes a difference?
[Nexus 4 Original Android Development] KyraOfFire:
As you can imagine, franco don't put in countless number of his precious free hours to make a crappy kernel that is even worse than stock. And he doesn't have a huge fan/user base for nothing.

The kernel is excellent. Period.

To return to stock you flash stock kernel. One good flashable zip can be downloaded from here http://faux.androidro.ms/mako/mako_421_reset_kernel.zip

And all Nexus 4's are the same.
[Nexus 4 Original Android Development] droyd4life:
Let me say this:

In my household, we have four Nexus 4s. Yes. FOUR.

Mine is the only one that is rooted. Comparing my phone (CM 10.1 Nightly + Franco Kernel R28) to a stock Nexus 4, I've noticed that my phone gets about 12-18% better battery life each day. Performance wise... It seems that they both are very similar, but I actually think that the Nexus 4 stock is a hair smoother. Buying your Nexus 4 from a Canadian play store doesn't make any difference, all Nexus 4's are international. You won't need to restore to the stock Kernel either, Franco's kernel has been awesome.
[Nexus 4 Original Android Development] XxKillerKev7xX:
Thanks guy's u made decision really easy for me :D I was worried I did a crap load of flashing roms, kernels etc.. on my old galaxy nexus but was wanting to keep the N4 stock but a increase in battery life who can complain about that :D Is there a certain number of times I need to charge it before seeing the difference in battery life? Also what is this user or system wakelock 99/100 times problem everyone is talking about and if I run into it how do I fix it?
[Nexus 4 Original Android Development] 3thman:
What ROM are you running?
[Nexus 4 Original Android Development] Ballastatuz:
I'm on the stock rom
[Nexus 4 Original Android Development] javacody:
Since installing r28 one of my balls is hanging lower than the other one. Would UV fix that? What about swipe2wake?

I've also been noticing strange textures in my bowel movements since the test builds. Not sure what that's about.

Should I post a kmsg log?
[Nexus 4 Original Android Development] daviiiiiid:
Here's my first full day from 100 to 0 with real heavy usage, lots of downloads, wifi on most of the day, some bluetooth. Watched a few youtube videos, facebook, falcon, spent a bunch of time customizing my lockscreen and setting up my Apex launcher..

Had this app also take up 11% for the first 80% of battery for I don't know what, so I deleted it.

Extremely satisfied with this. And since this is my first day with it, according to most people, they say it only gets better?

With r28.
[Nexus 4 Original Android Development] Smiert:
How the hell do I install this?

I already rooted and everything, have clockwork recovery and all that junk. Completely deleted all my data and cleared all sorts of caches, the .zip file isn't showing up in the CW flash zip thing. Put a copy in the main folder as well as a subfolder, both zip and img file.

:( I have a feeling I'm just doing something obviously stupid (I'm a novice android user)
[Nexus 4 Original Android Development] Ranguvar:
Ask in Q&A forum how to flash kernel ZIP or IMG, or search Q&A forum for other people who asked the same.
[Nexus 4 Original Android Development] XxKillerKev7xX:
Does anyone else notice it runs a tad slower then Stock kernel ? Like just a hair
[Nexus 4 Original Android Development] KyraOfFire:
That sounds very, very, very serious. I think you need a RMA with Google asap.

Just a head up, if the your call reaches a guy named Steve, he will probably tell you that you hold the phone wrong.

From my side of the ocean, signal seems to have improved from r27 and my bald head seems to regrow hair though.
[Nexus 4 Original Android Development] |Logic|:
Do you even root bro?
[Nexus 4 Original Android Development] drawde40599:
Not slower , just a different feel . IF! he works on this kernel like he did the GNex kernel all the UV and OC and crazy speed will come later after he has stable milestones , Franco likes to tweak/dev his kernels to much for him to not eventually add that stuff;) 100% JMO ;)

#HOPE4OC;)
[Nexus 4 Original Android Development] expertzero1:
do not wipe internal storage
[Nexus 4 Original Android Development] Koraboros:
Hmm... Phone is definitely throttling, but the temps don't seem that high? I'm seeing maybe 60 c on the CPU and games like Nova 3 and NFS most wanted start lagging after running a while... Is this due to the more aggressive thermal throttling?
[Nexus 4 Original Android Development] ragnarokx:
While many people on XDA have this problem figuratively, it sounds like you literally have your phone up your ass.
[Nexus 4 Original Android Development] jawz101:
What's the Linux kernel version in KitKat?
[Nexus 4 Original Android Development] spelaben:
Asked the same question in another thread and unfortunately it seems like it still uses 3.4 instead of 3.10.

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] Mercado_Negro:
I wish I could buy one right now but it won't happen before January. My country and its silly exchange policies... Sigh.
[Nexus 4 Original Android Development] pawan1993:
At the moment, we can't say. Google haven't updated the kernel repo yet and I don't think they will until the proprietaries are up. Hopefully in the next week we get some KitKat ;)
[Nexus 4 Original Android Development] CoolApps:
Get ready Franco, the factory image of 4.4 for the Nexus 5 is up so the Nexus 4 should be next tomorrow! :D
[Nexus 4 Original Android Development] zelendel:
\

They already stated that the n4 will be updated in the coming weeks and they are not in a rush.
[Nexus 4 Original Android Development] sNoxious:
Hope the N5 won't have any Notifications Delay.

Sent from my Nexus 4
[Nexus 4 Original Android Development] franciscofranco:
The new Launcher is awesome, great integration with Google Now.
[Nexus 4 Original Android Development] Savant:
What country are you in?
[Nexus 4 Original Android Development] svnhvn:
Indonesia.
[Nexus 4 Original Android Development] arcticrobot:
Are you quoting CM? What they have to do with Google repos? Also, what an offtop and lunacy with all this nexus5 and kitkat.
[Nexus 4 Original Android Development] aimcr7:
lol it will be a magic if you have access there without 'some hack'. there is a tutorial in N5 general to get it from non-play store country, but not sure google will accept your credit card or not.
[Nexus 4 Original Android Development] blueren:
GNex was in fact better looking than n4! (at least according to me) One might argue about the glass and glitter on the n4 by gnex was just plain.. curvy!
[Nexus 4 Original Android Development] re4lsk:
[MENTION=3292224]franciscofranco[/MENTION]

so I think the new FKu is gonna take a little moar time, since this new API's and design guidelines that come with KK.
[Nexus 4 Original Android Development] sir*mez:
I really hope Google uses 3.10.
[Nexus 4 Original Android Development] ben_pyett:
afraid that it doesn't.
[Nexus 4 Original Android Development] nachordez:
Absolutely agree!

Nexus 4 / Cataclysm / Franco / V4A
[Nexus 4 Original Android Development] ac009:
Hey guys I'm on PA 3.99 RC2, it says build number is JLSxxx

Which one from OP should I download? Thanks in advance guys!!
[Nexus 4 Original Android Development] consolation:
We are going to get a whole bunch of new users when people getting N5 put their N4 in the second hand market and prices drop. Brace yourselves for a lot of obvious questions...
[Nexus 4 Original Android Development] shengovind:
Jwr

sent from my pervert nexus from hell
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
So I guess this means you're going to be prioritizing Nexus 5 dev from now on?
[Nexus 4 Original Android Development] mefistos:
Yup he already said that
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
well i already bought my N5 so I guess that's fine. Nothing against Franco, but it's just the unfortunate state that if you don't follow the dev, chances are your phone gets a lot less love. :(
[Nexus 4 Original Android Development] nexusmaniac:
Anyone want to buy a 'like new' nexus 4?
[Nexus 4 Original Android Development] svnhvn:
Yeah and obviously you know that LG Indonesia makes a fortune from this s h i t t y situation.
[Nexus 4 Original Android Development] hoangtungst:
Somtimes my phone has been frozen in 4-6seconds.I am using franco r 193 (UV-100 , CPU FASTEST)and the lastest purity rom.How can i give you logcat and fix it ?
[Nexus 4 Original Android Development] redandr:
Will the kernel (next version?) support 4.3.1 ? Or maybe it already does?
[Nexus 4 Original Android Development] Pipusz:
As time passes, 4.3 will be dropped probably in favor of 4.4. I don't think Franco will update anything regarding 4.3.
[Nexus 4 Original Android Development] deadlast28:
I'm seeing the same thing, I'm running the Factory Rom with Root and Franco Kernel 193. Occasionally i'll be typing a message/email and the phone will stop responding for 5 seconds or so before returning to normal function, Also happy to provide the relevant log data.

Cheers

Dead
[Nexus 4 Original Android Development] 777.300:
Link to the latest Android 4.4 Google apk's.

http://www.droid-life.com/2013/10/3...om-the-nexus-5-dump-search-launcher-and-more/

All, except clock, running fine on my N4 with PA. (did not test the launcher)

The hangouts / camera and pictures updates are really nice.

Sent from my Nexus 4 with Tapatalk 4
[Nexus 4 Original Android Development] sordna:
What's weird is today I noticed Google Now prompts me to say "Ok Google". I'm on stock everything, when did they change "Google" to "Ok Google", was it an update? I don't recall a recent update of the search app. :confused:
[Nexus 4 Original Android Development] ragnarokx:
That changed happened many days ago.
[Nexus 4 Original Android Development] TToivanen:
It already does.
[Nexus 4 Original Android Development] sordna:
kitkat

Interesting stuff with KitKat, ART instead of Dalvik and OAT instead of ODEX...

Here's also the KitKat changelog:

https://funkyandroid.com/aosp-JSS15J-KRT16M.html

A quick look showed me 2 interesting commits:

kexec headers from kernel 3.10:

https://android.googlesource.com/platform/external/kernel-headers/+/ab1e562

loudness enhancer for mako, maybe franco should lower the speaker gain again, lol

https://android.googlesource.com/device/lge/mako/+/1c3855a^!
[Nexus 4 Original Android Development] sir*mez:
Great information on those links. TY!
[Nexus 4 Original Android Development] Lothaen:
Really looking forward to getting back on the Franco. Been all stock since I got my phone back from repair a short time ago... Nightmare!
[Nexus 4 Original Android Development] danielvc:
Got my Nexus 5 today, I'll see you guys (and Franco) on the other side :)

Thanks again Franco for making my Nexus 4 like 10 times better
[Nexus 4 Original Android Development] cobyman7035:
Franco working on Nexus live pro I meant to say Nexus 5

Via Google voice Δ |\|€×u$™ 7 FHD on Tapatalk²
[Nexus 4 Original Android Development] Pipusz:
Can you get one in Portugal from the Play Store or from somewhere else?
[Nexus 4 Original Android Development] sam razzy:
Have the kernel source released for KitKat ?
[Nexus 4 Original Android Development] ChavitoArg:
Franco please dont forget us when you get your N5 :_

Enviado desde mi Nexus 4 mediante Tapatalk
[Nexus 4 Original Android Development] zephiK:
He already said that he wouldn't. N4 and N5 both use Snapdragons so it is possible to port features over.

Bought a N5 myself.
[Nexus 4 Original Android Development] sordna:
KitKat built-in screenrecorder

KitKat has a built-in screenrecorder! Only accessible from the shell though:

adb shell screenrecord /sdcard/a.mp4

adb pull /sdcard/a.mp4

Gosh, so many cool things. Something else I learned, already available on Maps and Chrome, is the single-finger zoom gesture:

Double tap and keeping your finger on the screen, move your finger up, and the screen zooms in. It makes zooming so much easier!

Hey Francisco, I really hope that you first concentrate on KitKat on the Nexus 4, hopefully get a milestone franco.kernel, and then shift your focus to the Nexus 5. I'm guessing most of your users will remain on the Nexus 4 for the next few months at least.
[Nexus 4 Original Android Development] franciscofranco:
You don't fix it, thats the famous deadlock from JSS roms.

Not from Portugal, managed to snatch one from German store - then I'll have someone send to me.

Only for Hammerhead (N5).
[Nexus 4 Original Android Development] franciscofranco:
I'm also shifting directions about the nightlies/milestone thing. There won't be milestones anymore, I get too many emails and play store reviews with people crying about "NO MILESTONE/STABLE FIX PLZ, 1 STAR". I'll just focus on making more stable Kernels every time I push one out. From what I could see on the device mako tree there were not that many changes in the Kernel department, so the merge should be fine I hope - which means if that's true that we'll have some kind of r193 state + 4.4 Kernel changes.
[Nexus 4 Original Android Development] Mercado_Negro:
Maybe you could just open a place on your new server for alpha/beta versions where we can get them and only push stable versions through FKU. That will probably save you some 1 stars reviews. Just an idea :)
[Nexus 4 Original Android Development] franciscofranco:
Nah, I'll push normal nightlies, just no more "Milestone" label.
[Nexus 4 Original Android Development] sordna:
Sounds good. You should probably remove the Milestone stuff from FKU.

Anyway, regarding the N4 please please keep it your main focus for at least a couple of months.

The N5 is so much faster, and with KitKat's improvements will not have as much a need for a custom kernel that urgently. Let people use the stock kernel for a month or two :)

People should experience what the N5 (or any brand new phone / OS for that matter) has to offer, before immediately jumping into custom ROMS and custom kernels, personal opinion of course !
[Nexus 4 Original Android Development] svnhvn:
Couldn't agree more..
[Nexus 4 Original Android Development] Mercado_Negro:
I just think there's a much bigger world of FKU users outside of xda which would probably benefit from stable releases only. In fact, I've always thought that FKU shouldn't push nightlies but stable versions only but that's just me.
[Nexus 4 Original Android Development] franciscofranco:
I already removed milestone stuff from Pringles!

The N4 will continue to get love, don't worry, it's easier to maintain since its still a snapdragon chip, so now 3 nexus use a snapdragon, just makes things easy.

When was the last time you had a very unstable nightly? Rarely happens at all!