yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] nutcasev1.5:
Build 4

042118:

< Build 4 >

~ Latest Lineage Sources

~ Linaro 7.3 TC

~ Latest Hololite Source

~ Ubuntu 18.04 Build Machine

+ Stk App

+ Updated Lawnchair

+ Dialer Proximity Response Fixes

+ Triple Pass Proguard Optimization

+ 32bit Atom Optimization [POP-CNT Instructions]

- mStackRealign Flag

-------- - ----- ---- --- ------- -- - ----- ---- -- - ------ -- - - - -- -------- - -- - --- -- -- --- - -- - - ------ - - - --- ------- - -- -------- - - - ------ - - --- - -------- --

I recently found out that Lineage Apps do not survive a dirty flash, because of lack on Addon.d support, which is hard to implement,

since the zipping process is done by a script.

The only solution is to flash the Apps that you want everytime. The same goes for the experimental Bluetooth Doze zip,

that has been uploaded in the Addons folder.

Also, Since I have exams right now, I am detaching myself from any timelines I might have told you guys about,

No ETA on MM blobs, Oreo , Holo 4.4 or anything else. I will continue work when I get the time but got no set date or deadline to

meet.
[ZenFone 2 Android Development] AhZhi:
Good Luck with your exams~ :highfive:
[ZenFone 2 Android Development] AlexBBxelA:
So except for the lineageapps can I dirty flash over the older version or maybe a clean flash is better ?

Thanks
[ZenFone 2 Android Development] nutcasev1.5:
Clean flash is always better. Lineage apps need to be flashed every time anyway.
[ZenFone 2 Android Development] AlexBBxelA:
ù

Thanks I will try as soon as i have some spare time to clean the phone .

Thanks.

BTW, the bluetooth patch is valid only with the new version or I can try to dirty flash it into the previous one ?

Ciao!
[ZenFone 2 Android Development] nutcasev1.5:
The Bluetooth patch is valid regardless of version, though I recommend you upgrade.
[ZenFone 2 Android Development] Abusayeed91:
is the last build nougat or oreo
[ZenFone 2 Android Development] x1ld3n:
Pancake
[ZenFone 2 Android Development] Abusayeed91:
awesome
[ZenFone 2 Android Development] :
Let me know, and how does Linaro and Ubuntu 18.04 affect the end result?

I apologize for the bad english
[ZenFone 2 Android Development] nutcasev1.5:
The base affects the final product. Its the difference of using 5dollar tools from the supermarket & specialized expensive tools to make a race car.
[ZenFone 2 Android Development] septimvs80:
I dirty-flashed the latest builds of both the OS and the Lineage Apps (the full package), wiping dalvik & cache only. It actually worked for me.
[ZenFone 2 Android Development] :
You know, I was very interested in comparing "5-dollar tools from the supermarket and specialized high-value tools."

Given the specifics of the optimizations (O3 & Ofast, POP-CNT, mStackRealign Flag ....) and tools (Linaro 7.3 TC, Ubuntu 18.04 ....), it is logical to assume that the gain should be expected from the CPU and not from the GPU. Primitive testing in GeekBench shows a small backlog of NutOS from Lineage. However, it is so small that it easily fits into the error. Tell me, what benchmark or measuring tool allowed you to conclude that Linaro 7.3 TC & Ubuntu 18.04 are specialized high-value tools? And did you get a racing car?
[ZenFone 2 Android Development] nutcasev1.5:
Yes, the tools are worth it & I am not misleading anyone. But not just in performance. It makes the code more efficient, sometimes it performs better, other times it consumes less power to do the same amount of computation.

As for your benchmarking, I am actually very happy with the results, I would like you to upload them here so I can see. You see, Lineage & NutOS have been configured VERY differently. The kernel is different, it's configuration for the cpu frequency & power management is different.

See the defaults that the kernel has at boot from an app like KAMR. Apply those defaults to the lineage kernel, you will see a measurable drop in the bench.

I would say Linaro 7.3 & the Ubuntu 18.04 are great tools. As they allow me to tune the parameters to save battery without sacrificing the performance, as overall they make the code more efficient than in official Lineage.

This is just the kernel, which has more features than the default Lineage, but it consumes less power & outputs the same performance.

There are romside changes too, like changes to the init library, ramdisk, other optimization parameters that Official Lineage doesn't have.

BTW, the changelog says that the mstackrealign flag was removed, not added.

Unfortunately, this ROM was never meant to be a race car, it was meant to be a Transformer. You want a race car? Tune the parameters. OC the CPU & GPU. Change the memory & disk management parameters.

By default however, official lineage is a good old reliable gasoline powered sedan & this is the new generation electric sedan; cooler, cleaner & efficient.
[ZenFone 2 Android Development] :
I will write the results of benchmarking in a test form (generalized result), since working with images on XDA is somewhat inconvenient:

NutOS

Single Core Score 1072

Multi Core Score 3086

LineageOS 14.1 (collected two weeks ago, fairly fresh)

Single Core Score 1086

Multi Core Score 3175

Both firmware were tested after the first start, before installation, all partitions were formatted except Micro SD.

That is, in fact, we have similar results. It is quite possible for an error in one or another result, so formally parity.

I perfectly understand that you were digging through the code, making edits, Tweaks.

I welcome this and wish you good luck in the future.

But tell me, if you collected on Ubuntu 16.04 and not on Ubuntu 18.04, you would have received a less optimized firmware as a result?

The software packages have the same versions. )))

Once again, I apologize for my English

https://ibb.co/bM9Uwx

https://ibb.co/nt69wx
[ZenFone 2 Android Development] CapSel:
GPS and light sensor is not working for me anymore. Am I the only one?

I tried to wipe everything and then flash - didn't help.
[ZenFone 2 Android Development] nutcasev1.5:
Yes, this is more apparent in the kernel than rom wide as the rom is always compiled with the Google 4.9 TC & since we are x86, I can't do much about it.

The major difference between 16.04 & 18.04 is the change in the compiler tools default versions, they get upgraded. For example, 16.04 gcc is 5.4 by default, while 18.04 is 7.3. Same goes for many other components like binutils; libraries like isl, mpfr etc.

In most cases, the difference is noticeable. Compare the March build with the April build, performance & efficency wise. You will see April is better & since you can make out from the change log what changed, you will be able to tell the only reason there is a difference is because of the newer Ubuntu & an updated TC.
[ZenFone 2 Android Development] androidbling:
GPS (device only) mode doesn't seem to work for me.

Had clean flashed ROM.
[ZenFone 2 Android Development] nutcasev1.5:
You haven't given any of us, any information about your system, setup, hardware or anything else that is relevant.
[ZenFone 2 Android Development] CapSel:
I wiped everything using twrp 3.1.1, flashed only newest image and opengapps for Android 7.1 x86.

After wizard I installed google maps and GPS status, then I enabled highest mode for GPS. Google maps was able to find me but GPS status was not able to show any satellites and Compass didn't show correct direction. Compass pointed to top of the phone on start then tried to remember direction my phone was pointed to.

GPS testing performed outside of course, far from my computer.

042118 image has described problem, previous one does not.
[ZenFone 2 Android Development] AlexBBxelA:
I was too lazy for a clean install, dirty flashed onto the older one.

+ flashed lineage apps

+ flashed minigapps

+ flashed bluetooth patch

... seem that everything works fine... no bluetooth drops till now.. good job nut! thanks!

.. also the battery seems good as before ( It was GOOD for me)

.. no annoing lags till now.

Thanks again and good luck for your exams!
[ZenFone 2 Android Development] SpiderPack:
I don't think flashing minigapps was necessary. Since it's a dirty flash, data/apps partition is untouched.
[ZenFone 2 Android Development] abutrex:
I have tested several ROMs and NutOs is the best one I used so far, the performance is great an so is the battery life. I got 5 hours of screen-on time with bluetooth and WiFi turned on all the time and high brightness, impressive.

Thanks to everyone involved in the creation of this great ROM!
[ZenFone 2 Android Development] nutcasev1.5:
There will be no builds in May, the one year anniversary update *wink* will have mm blobs hopefully.
[ZenFone 2 Android Development] zakhiem:
can you guy give me the oreo beta link?, thanks
[ZenFone 2 Android Development] bernardobas:
It's not even beta yet and it wont be public until it's more stable.
[ZenFone 2 Android Development] nutcasev1.5:
It's about a rho in Greek alphabet, makes you :crying: ( The hind verb for cry is Rho )
[ZenFone 2 Android Development] androidbling:
All modes of GPS are working fine for me.

Last time I'd done the following:

-Clean flashed latest (April) release of ROM

-Flashed addonssu

- Flashed OLD (march) release of GAPPS

- Used Titanium backup to restore ALL apps(including Gmaps)

- Found GPS device only mode not working (checked with few more GPS apps in outdoor open area)

This time, followed below steps

- Clean flashed latest (April) release of ROM

-Flashed addonssu

-Flashed LATEST release of GAPPS(20180414)

-Did not use Titanium Backup

-Installed google maps

-Found GPS to be working perfectly fine :)

Hope this helps:good: :)
[ZenFone 2 Android Development] AnDr0001dd:
Help sim card not detect after flash the update....

after I flash the update my sim no longer detected....
[ZenFone 2 Android Development] CapSel:
I did clean install of rom from Aprill again - same situation with GPS, compass = not working.

Then I cleaned entire phone, installed rom from March, setup all my apps and everything is working fine.

Then I tried dirty flashing rom feom April and now GPS and compass are not working anymore.

Testing with google maps is not very helpful - it can ignore not working gps in phone and use wifi, gsm, bluetooth to find your most probable positions like "home".

GPS Status shows position that is received from GPS in the phone, shows where are gps satelites and a compass. On phones that have not implemented gps at all it shows toast with apropriate message. Most noticible sign of gps problems is when GPS Status does not show its notification icon.

edit:

looks now like it's working now... strange
[ZenFone 2 Android Development] Rolandon24:
Was having this same problem, and in the end it turned out to be a coincidence with the latest rom installation. I created a NutOs backup, installed GroovyA and then sim card was visible again, So it was the NutOs Rom, right? WRONG! few hours later, again invisible. Opened the back cover a pushed lightly in the bottom of the panel, and sim was again visible. I was having trouble with sound too, no ringtone, nothing out of the main speaker. After pushing the panel, sound was back also. So i decided to return to NutOs (restored backup), and everything still working.

So finally my almost three year old phone is showing hardware issues, i dont know the others, but in my case that was the reason.
[ZenFone 2 Android Development] okicupu:
ahoy dev..

iam using this rom since friday, from officeial lineage os using method

- twrp 3-1

- nut os 042118

- holon_v6s0

- addonsu-14.1-x86-silvermont

and i play game clash royale and free fire, PUBG, and instagram there is lot of LAG

do i miss something or wrong methode?

thx
[ZenFone 2 Android Development] nutcasev1.5:
What did you flash Holo 6S0? 6 month old build?

Instagram finally uses so much resources that it classifies as a game now? ?

Did you clean flash? You didn't flash gapps or lineage apps?
[ZenFone 2 Android Development] IndraSukma:
Is there any difference between hololite, holo-N, and holo kernel?
[ZenFone 2 Android Development] okicupu:
ya iam clean flash, wipe, dalvik, cache

i didnt flash the gapps nor line age apps..

iam only use my methode above..

so what should i do?
[ZenFone 2 Android Development] x1ld3n:
Pubg mobile is laggy even with Atom kernel and you want this game to run smooth on a battery life based kernel?
[ZenFone 2 Android Development] Cvk vamsi krishna:
Yeah pubg was lagging in holo

Flash atom or hololite:cool:
[ZenFone 2 Android Development] Rolandon24:
Any ETA when we get Android P for our Zenny?:laugh::laugh::laugh:

No, now seriously, jokes aside. Since the last build, and after detecting what was really the genesis of my No Sim detected problem (hardware related), NutOS has been great, i have around 67 apps installed, battery is acceptable i would say, but performance has been really good. No more lagging on my side, and no need to reboot, in fact, the phone rebooted itself once since las update (apr 21), but that was it. Very stable. I trully dont feel the need to reboot. Thanks to the dev.
[ZenFone 2 Android Development] johnwwweissberg:
Problem with Phone app

I was using the Jan version of Lineage N build. Yesterday, I did a clean wipe (cache,dalvik) and flashed April version of Nutos. After reboot, my Google account automatically restored my apps so I did not flash either OpenGapps or LineageApps.

Each time I tried to open the Phone app, the app immediately crashed and closed.

Has anyone ever seen this issue with the Phone app? Are there other items that I need to flash to make this ROM function correctly?
[ZenFone 2 Android Development] TrippySamurai2789:
Issues with April Update

When attempting to do the April Update. I do a clean wipe of everything and attempted to install. Everything looked like it was going well...

Then after it reached "patching system image unconditionally" the patching never finished. The bar was full but the code didn't complete its compilation/installation.

Any tips on how to fix this. I have rolled back to the March update as it still works on my devices

ASUS Z00a - 2GB RAM
[ZenFone 2 Android Development] nutcasev1.5:
You need to flash something. Either the lineage apps, gapps, or other alternative options like microg.
[ZenFone 2 Android Development] Druboo666:
my device revived from dead by its own don't know what kind of black magic was that:silly:

Saw your rom as you are the only active dev of ZF2 and saw this rom still suffering OMS font bug.

Maybe we are missing some sepolicy for changing the font.I had this kind of problem on my Axon 7 and was fixed by sepolicy from device tree or from the other place.

LOL I forgot..............but as far as i can remember it because of permission error
[ZenFone 2 Android Development] nutcasev1.5:
I didn't get any logs from any one regarding the issue. So can't debug it. If it's as simple as an selinux fix, I can fix it without much issue..... Still need logs.
[ZenFone 2 Android Development] Sagarvaghela:
I was going to buy a new Phone, but after applying the ROM update I think the phone can few more months maybe year. Thanks, OP for a stable Lagfree ROM and ya the battery life has improved a lot
[ZenFone 2 Android Development] :
LineageApps and GApps must be flashed every time you do a dirty flash. Otherwise you'll have problems like this (and Google restore system has nothing to do with that). Also, yours seems a dirty flash.

Ti fix the problem without deleting your data (dirty flash) download latest GApps and LineageApps, go into recovery, wipe /system /cache /dalvik-cache (backup first of course), and flash in order NutOS, LineageApps, and GApps (if you also want Magisk flash it last).
[ZenFone 2 Android Development] kenbo111:
Isn't it just the LinApps that needs to be reflashed each time?
[ZenFone 2 Android Development] LSS4181:
A question regarding Nanodroid (nanomod)... Is nanodroid_patcher needed?

I'm interested in trying Nanodroid and microG, but the thing is, NutOS appears to be odexed, and nanodroid_patcher cannot work with it. (The patcher said so, and when I extracted the system.new.dat, oat folders with odex can be found in system apps)

Tried to clean flash without nanodroid_patcher, but only to find Play Store (patched for microG) FC upon first startup, so maybe I need to have the ROM patched with it in order to get it working without FC.
[ZenFone 2 Android Development] nutcasev1.5:
Did it state why odexing was not supported?

[MENTION=4332327]JBolho[/MENTION] please help this guy out, there are other users around too who use nanomod....

I think you should give it a try, flash the patcher & see if everything is okay. How old is this statement? The one about it not supporting odexed roms? I don't really see a way in which odexing would cause problems...

Let us know how it goes.
[ZenFone 2 Android Development] LSS4181:
As for why odexed ROMs are not supported, see here.

I did flash the most recent version of the nanodroid_patcher and the installer aborts with "Odexed roms are not supported." error. The nanodroid zip itself can be installed when odexed, though.

I could flash NutOS and Nanodroid without the patcher, but when the system boots for the first time, the patched Play Store FCs.
[ZenFone 2 Android Development] nutcasev1.5:
I think you should try the magisk version instead of flashing zips. You don't need the patcher then, I think.

In the thread you have linked, the post, there are mentions of other patching options. Try them out.

Lastly, did you enable signature spoofing? From the app permission settings? It's disabled by default & could be the reason why apps FC. Maybe it's not the patcher.
[ZenFone 2 Android Development] JBolho:
Hey there... I'm afraid i can't be of much help, i never used it, and to be honest, i don't really know what's for... :(
[ZenFone 2 Android Development] J@ckr@bbit19:
Guys,

Anyone able to use Google lens through "Google assistant"? (I'm using Nano Gapps, also updated to latest google beta app (x86) through playstore, still not able to get it [emoji53] )....

Also, I can't find "Hey Google" hotword detection in voice detection settings!

Are these 2 features not available for the x86 platform yet? (//its already available on all arm, arm64 devices)
[ZenFone 2 Android Development] InfinityFath:
i have....

install a magisk module by name "google lens enabler", and magic will happen :good:

for the hotword detection, you can find in in settings > google > voice > voice match
[ZenFone 2 Android Development] J@ckr@bbit19:
Thanks for your reply, but I actually want google lens in google assistant(I already have it enabled on google photos app! - so I don't require the magisk module)

And, there's only "OK google" hotword detection available for me, not "hey google"....
[ZenFone 2 Android Development] persieghini:
Try changing region from India to US... Or some other area (maybe vice versa)
[ZenFone 2 Android Development] J@ckr@bbit19:
Nope, still not working for me, tried everything...[emoji17]
[ZenFone 2 Android Development] okicupu:
its good to heard that, meanwhile my device there is lot of lag
[ZenFone 2 Android Development] dicamarques:
Sometimes a I notice a huge lag while using the phone (typing, changing apps, scrolling...). What I usually do is, using the app "Fill Ram Memory", to force most of useless apps to go out of the ram and it begins to lose the lag.

Don't really know why this happens
[ZenFone 2 Android Development] nutcasev1.5:
Was thinking about this just this morning. I feel I have a fix that should kill the lags, especially on Z008 once & for all.

Dicamarques tell me more. What device? How much ram? A link to this app, as well.

The issue is swap & zRam. As memory gets used or the system suspends, the processes are moved out from the ram into the swap which is much slower. Its more noticeable in Z008 because of its low ram capacity. By removing swap, you force the os to clean the ram instead of moving stuff & making the whole system lag.
[ZenFone 2 Android Development] dicamarques:
I have the chinese model Z00A with 4Gb/16Gb

This is the app https://play.google.com/store/apps/details?id=me.empirical.android.application.fillmemory

I use it sometimes on lower ram devices to trigger the native android task killer.

With 4Gb of ram, i'm yet to see it full during the day. Not even with heavy games or using firefox. And i rarely close apps using the task switcher
[ZenFone 2 Android Development] CapSel:
Shouldn't the swap be disabled for android?
[ZenFone 2 Android Development] nutcasev1.5:
Yes but the only reason we use it is because of the 2G Z008 models. Those same models have lots of issues with holo, with lags & other ux slowdowns. Even 4G devices show the same behaviour if you run a ram intensive rom, such as GA.

For a lot time these issues have gotten Holo a bad name really. & the users have troubled me since forever. I want to finally get rid of this bug.
[ZenFone 2 Android Development] okicupu:
very in pity when the android using google stock rom but still lag T_T it should be good for android
[ZenFone 2 Android Development] zenyman:
can anyone try summoner war if it doesn't crash ?
[ZenFone 2 Android Development] AhZhi:
Thanks For Inform:D And Good Luck~
[ZenFone 2 Android Development] persieghini:
You tried........:laugh::o
[ZenFone 2 Android Development] CapSel:
Is there a way I can fix lags now - not waiting for next release?

I tried setting swappiness to 0 and disabling zswap but it does not help much, if at all.

Only reboot or not-sleeping (like charging) helps.
[ZenFone 2 Android Development] nutcasev1.5:
Not sure. Lags can have various reasons. This will only fix lags that appear after about 4 or 5 hours of uptime. Lags due to low memory.

Also, after setting swappiness to 0 you need to apply that on reboot & reboot the device to clear the swap.

You need to setup zRam as well, if you have a Z008 to 500mb.
[ZenFone 2 Android Development] joaohkfaria:
I'm having lags after 4-5 hours of uptime. I really want to disable swap on my Z00A. Anyone knows how to do it?
[ZenFone 2 Android Development] CapSel:
Install one of programs that allows that and set it to apply your changes at boot. zswap is located near "virtual memory".

I used "L Speed" and "Kernel Adiutor".

Any program that does that require root.
[ZenFone 2 Android Development] SpiderPack:
(ZE551ML 4GB) I'm using "very light" on Low Memory Killer and "1000 MB" on Z-RAM, and I'm experiencing almost no lag (neither the need for restarts). Since the later will use RAM memory as first resource for swap, we force the OS using a fast memory type until it's no longer possible.
[ZenFone 2 Android Development] nutcasev1.5:
The resultant memory you will have is around 4.5 G.

Also Z008 users cannot use 1000M zRam because there are limitations on how much zRam you can use for a given amount of processing required for the compression.
[ZenFone 2 Android Development] CapSel:
It does not help much :(

Leaving phone not connected for night makes it laggy in the morning.
[ZenFone 2 Android Development] CapSel:
I also experience random reboots when phone is in my pocket. I could not repeat this problem when phone was connected to adb logcat.

...

I'll now experiment with overcommit_ratio set to 100 instead of 50.
[ZenFone 2 Android Development] SpiderPack:
Try disabling the 2nd "Little" core.
[ZenFone 2 Android Development] nutcasev1.5:
Won't change anything. I have had no report of reboots from anyone about anything. Describe the problem in detail. Are you sure it's Holo that's causing it. If yes, tell me any unusual or non conventional way in which you use your phone, which might cause bugs.

Will definetly make things worse.

The whole problem is related to memory & nand.

You can try to tweak virtual memory settings to eliminate lags.