yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] xenyz:
OK, I tried the cpuset enabled kernel and see more under /dev/cpuset but you are correct that it won't take the configuration. Perhaps it's dependent on 3.10 branch features and some bits have to be backported to 3.4?

Edit: perhaps try bringing kernel up to 3.4.112? Easiest way would be to apply nougat patches to hellspawn kernel.

Edit2: I think I figured it out. New devices don't use hotplugging. If you disable mpdecision

# stop mpdecision

Then cpuset is set up properly. When cpus go offline, cpuset has to adapt to the new number of cores available.

It's worth a test to see if battery is worse off, but performance is crazy now. I'll run it for a bit. If anyone else wants to try it, see attachment for a simple shell script.

Edit3: if mpdecision is disabled we now need the cpu_boost driver for input boost.
[Nexus 4 Android Development] blacknikname:
Date issues, already 2 September but, at some point is indicated and 1 September
[Nexus 4 Android Development] blacknikname:
For combating video acceleration issue using VLC
[Nexus 4 Android Development] webg3brasil:
enable rotation screen (sorry bad english)
[Nexus 4 Android Development] doegeenon:
thx for your reply;)after a reboot, still no doze during the night, I have no idea what's wrong with it.

---------- Post added at 12:50 AM ---------- Previous post was at 12:46 AM ----------

It still no doze during last night. I've already reboot my device. Do you have any idea with this？
[Nexus 4 Android Development] jer_ying_fd:
Try go to Settings -> Accounts, then try manually syncing the accounts you have.

Refer to this for further instructions: https://www.reddit.com/r/Nexus6P/co...k_your_account_sync_if_you_have_bad/?sort=new

This seemed to help me and it woke up considerably less at night now.
[Nexus 4 Android Development] ganachoco:
Great thanks for your reporting and analysis.

I made simple daemon[1] to reassign cpuset whenever cpu goes online or offline.

Would you try testing rom[2] that enabled cpuset feature, and could you reply how about that?

[1]: https://github.com/ganadist/device_lge_mako/commit/2f04756b5c26985f1dfcf0089605affae51e496c

[2]: https://www.androidfilehost.com/?fid=24686680535467216
[Nexus 4 Android Development] doegeenon:
awesome, this method works for me, thank you for your helps:good:
[Nexus 4 Android Development] eldraan:
Does anyone have a list of all the apps that normally come preinstalled on a new Nexus phone, but which are not included in the stable build of Fake Nexus ROM?

e.g. Google Photos, Cloud Print, Google Play Books, etc.

I'd like to configure my phone running Fake Nexus ROM to be as close as possible to what a new Nexus device comes with as standard.
[Nexus 4 Android Development] jer_ying_fd:
Just check open gapps wiki for the apps included in stock package
[Nexus 4 Android Development] eldraan:
Apart from the apps that can be installed from Play Store, if I go into Settings -> Apps and have a look at all the individual packages, I see that there are far fewer packages installed as standard by Fake Nexus ROM compared to what is on my other Nexus 4 which is running the official 5.1.1 release from Google.

Did Marshmallow drastically reduce the number of system packages compared to Lollipop? I'm just trying to understand why my main Nexus 4, running stock Android from Google, has so much more stuff and whether I need to be concerned about getting all those extra packages installed on Fake Nexus ROM in order to have a phone that matches what Google provides out of the box.

I'm referring to packages such as these:

Android Live Wallpaper

Android System

Android Work Assistant

Basic Daydreams

Bluetooth Share

Bubbles

Calendar Storage

CaptivePortalLogin

Certificate Installer

com.android.backupconfirm

com.android.browser.provider

com.android.wallpapercropper

ConfigUpdater

Device Policy

Device Provisioner

External Storage

Fused Location

Google Account Manager

...

etc.

EDIT: I see that there is an option in the Apps section in Marshmallow to show 'System' which then shows many of these system packages. But the overall list is still shorter than on my Nexus running Lollipop. And some of them show a size of 0.00 B -- I wonder what that means.
[Nexus 4 Android Development] xenyz:
It looks like it works. I tested with...

#!/system/bin/sh

while :; do
cat /dev/cpuset/foreground/cpus
cat /dev/cpuset/foreground/boost/cpus
cat /dev/cpuset/background/cpus
cat /dev/cpuset/system-background/cpus
cat /dev/cpuset/top-app/cpus
sleep .5
echo -n "\n"
done;

...and running 'yes' in another terminal. Nice work!

I found some other changes in bullhead/flo repos you may consider adding/changing:

From init.bullhead.rc on boot:

write /sys/block/mmcblk0/queue/rq_affinity 0
write /sys/block/mmcblk0/queue/scheduler noop

From init.flo.rc on boot:

restorecon_recursive /sys/devices/system/cpu/cpufreq/ondemand
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4
write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 10
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core 60
write /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core 3
write /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq 918000
write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq 1026000
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load 80

I'll edit post if I find any more.
[Nexus 4 Android Development] kryzeK:
Please replace the terrible SIM Toolkit icon with this one (maybe it will be the official in a future release)

Source: https://code.google.com/p/android/issues/detail?id=189247

Alternative link to new icon: http://imgur.com/HT6zugT
[Nexus 4 Android Development] tb110188:
Is the latest version compiled using the New sources from Zaclimon???
[Nexus 4 Android Development] ganachoco:
Thanks very much.

I found changelog.

I heard that noop block scheduler is better than cfg on newer and faster block devices.

But mako is 5 years old. So I cannot be sure this change bring better performance to mako.

Flo has same SOC with mako. but it is tablet form factor.

It needs more performance, and has more battery.

But mako is phone form factor, and has limited battery capacity.

So, it seems it is not suitable to apply on mako.

Anyway, thanks a lot about your analysis and suggestion.
[Nexus 4 Android Development] sidnoit22:
[MENTION=6117313]ganachoco[/MENTION] Is the latest update is synced with the [MENTION=4217103]zaclimon[/MENTION] sources?
[Nexus 4 Android Development] ganachoco:
Not yet, and it seems v4 version has no visible changes to fake nexus rom users.

I'll sync [MENTION=4217103]zaclimon[/MENTION] 's work someday, but not now.
[Nexus 4 Android Development] Thrikiller18:
Zaclimon added nights mode and mavbar tweaks. [MENTION=6117313]ganachoco[/MENTION] if you sync his sources, will they be added too?
[Nexus 4 Android Development] TheManii:
Those can be enabled/disabled by directly looking at aosp, it's simply uncommenting out code that google disabled.
[Nexus 4 Android Development] sidnoit22:
[MENTION=6117313]ganachoco[/MENTION] Why Android Webview is disabled and can't be enabled in the build? I have checked twice with clean flashes.
[Nexus 4 Android Development] jer_ying_fd:
Webview is replaced by chrome in N, so unless you disable or delete chrome, you will not be able to enable webview
[Nexus 4 Android Development] blacknikname:
so we need webview or not?
[Nexus 4 Android Development] jer_ying_fd:
Nope, unless you don't have chrome
[Nexus 4 Android Development] WHOARETHROLL:
Greetings!

now I became the owner of Nougat on your old device: D

And I have a question.

I found a few bugs:

- Do not change the wallpaper (error)

- The camera writes video, but it is not always preserved

- The captured video can not be played (instead of Malevich's square).

copy recorded video on the PC - do not open. Hence the video camera is not written.

- Do not turn on the flashlight.

https://www.youtube.com/watch?v=3seeSSBCnbI&
[Nexus 4 Android Development] orcgoblinsupply:
Maybe you should reinstall ROM with wipe, cuz I do not have some of these problems (camera wasn't tested yet).
[Nexus 4 Android Development] jer_ying_fd:
I clean flashed and still has these problems
[Nexus 4 Android Development] WHOARETHROLL:
I installed Nougat on top of Marshmallow 6.0.1 Chroma with full wipe :)

The problem with a flashlight decided, took a few pictures with the flash and reboot the device.

Wallpaper has not changed - the error takes off.

You do not know when the problem will be solved with a video camera and playback of captured video?
[Nexus 4 Android Development] orcgoblinsupply:
Some time ago I had problem with cellular, but somehow it self fixed now, same thing with flashlight and wallpaper I see (since alpha versions no problem with wallpaper and flash to me). Looks like problems going randomly on different devices. I do not know anything about these fixes, but I think it will be as soon as possible.

Also I got YouTube app bugs when playing videos there are lots of freezes sometimes + when video is paused I am getting huge crash even the launcher. There are no problems while using splitscreen.
[Nexus 4 Android Development] jer_ying_fd:
Try hard rebooting to fix torchlight toggle, somehow worked for me. For wallpaper, switch to Google Now Launcher first and change wallpaper, and then switch back to Nexus Launcher, it should work now.
[Nexus 4 Android Development] jer_ying_fd:
I'm sorry [MENTION=6117313]ganachoco[/MENTION], I do not know how to make a bug report with the necessary info for the wi-fi bug (only for educational ones like eduroam and universities wi-fi) as only the "connect" button is greyed out and logcat doesn't register anything at all :(
[Nexus 4 Android Development] JeJoye:
[MENTION=6117313]ganachoco[/MENTION] Can you please sync device tree again with [MENTION=4217103]zaclimon[/MENTION] work? He made some really good improvement such H/W video decoding and enabled Navigation Bar tweaks and Night mode in SystemUI Tuner. And thanks again for the best rom ever :D
[Nexus 4 Android Development] wizmart:
Great, I just find out video is recording perfectly with camera-4-1-12616192 N and I did not update yet to Sept/03
[Nexus 4 Android Development] gabrielsm922:
I have this problem too!

Enviado de meu Nexus 4 usando Tapatalk
[Nexus 4 Android Development] ganachoco:
Simple FAQ on nougat build.

Q:Please apply latest zaclimon work.

A: I found that Google Camera 3,4 is not working with zaclimon device tree.

So I'll not apply latest zaclimon device tree, sooner or later.

Q: Please fix A/B/C bugs.

A: If that item can be reproduced on My N4, I'll try to fix it, but if it is not reproducable, I cannot fix it.

If you provide some hints to resolve it, it can be fixed easily.

Q: Please add A/B/C features.

A: Basically, I'll try to add features that described on Android Hal documentations in platform only.

I have no plan to add the other features, now.

And these are priority orders in fake nexus developments, currently.

Clean up device tree and build scripts for nougat

Switch user build instead of usetdebug

Simple documentations for development.

fix bugs and others.

And these are known issues

Video Recording is not working on Camera2 (It is working with Google Camera3,4)

Sometimes, Camera rotation is invalid on Google Camera3, 4

Camera 2 has a workaround for this issue, but Google Camera3 and 4 seems that removed this workaround.

1080p Video recording is not working on Google Camera3, 4 (It is not platform issue. Google Camera has this bug)

I found there are a workarounds in Camera2 app for Nexus 4.

But it seems these workarounds are removed in Google Camera3,4.

Android Media DRM service is crashed, because this rom uses old widevine drm plugin and internal c++ api of android media is changed.

If I cannot fix this bug, I'll remove widevine drm feature.

It seems that fixed on 20160905 build

It seems Android MediaCodec service is not using hardware codec.

It seems that if MediaCodec service open hardware codecs, camera server cannot use codecs, so video recorder feature cannot use.

Video Decoder Codec uses hardware now, but Encoder might be not working yet.

Firefox and some other apps using JNI (ex: aliexpress, or using unity library) are crashed on current version.

It seems apps can be run on userdebug, but after switch user build, app are crashed.

debuggerd cannot print stacktrace.

After revert this commit, it works.

It seems that fixed on 20160923 build
[Nexus 4 Android Development] sidnoit22:
[MENTION=6117313]ganachoco[/MENTION] I play Mini Militia 2 game and every after 1-2 min the whole devices freezes and I have to hard reboot the device but while the device is in the frozen state is will slowly do every action I do but with a 20 sec delay. Like I press home after the freeze it will do that after 20 sec or something. Maybe it is related to H/W decoding or Cpuset?
[Nexus 4 Android Development] ganachoco:
It seems it is same issue that mediaserver is crashed because widevine drm api is broken.

But I can see this issue only when device playback video, not playing game.

So I cannot be sure that is same issue that related drm binary.
[Nexus 4 Android Development] WHOARETHROLL:
I played light game, after 3-5 minutes of the game, my device perfectly still hovered. I had to do hard reboot :(

In the assembly chamber of 5.09 did not remove the video.
[Nexus 4 Android Development] zaclimon:
I find it kinda funny you say that camera is not working with my device tree, I might have to check it up though it was working just fine for me? :confused: might be related to the encoder's permissions.

Anyways I just want you to clarify something.

1. Debugging the logcat for recording in 1080p, the issue looks like to be what you initially said about camera2 (preview size not fitting the resolution of the screen)

2. Did you have issues with YouTube freezing in 60 fps? (at first I thought it was the drm issue but with the test version of Quanta I don't have this bug)

3. Mediacodec do use hardware decoders and encoders as well. (example YouTube) otherwise your commit wouldn't make sense:

https://github.com/ganadist/device_lge_mako/commit/6e4242c19d749f9382b989d5971cae4455dec4af

Anyways have you tried to see what happens if software encoding is used? If not, I might try to do something later with it.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] Tmfz:
Video recording works fine for me too on your v4 with google camera4 after setting it to 720p minus the rotation bug.
[Nexus 4 Android Development] lukaszdomanski@gmail.com:
Is there similar rom available for Nexus 5?
[Nexus 4 Android Development] xenyz:
Play Movies was not working on 20160903, is now working on 20160905.

Thanks for user build.
[Nexus 4 Android Development] leshka1998:
Play Movies work great.

0903

Отправлено с моего Nexus 4 через Tapatalk
[Nexus 4 Android Development] aureliomilitao:
Please,

Install the last build 20160905

Apps not running

Firefox and others browsers

Apps the Aliexpress not work
[Nexus 4 Android Development] dramalicious:
Try use Chrome
[Nexus 4 Android Development] aureliomilitao:
Ok

But Aliexpress Apps dont work...in other Fake work

Gplus no works too
[Nexus 4 Android Development] ganachoco:
I mentioned about Google Camera3 or 4, not Camera 2.

Here is error log message when set 1080p resolution on Google Camera4.
[Nexus 4 Android Development] ganachoco:
It seems there is no issue when play 60fps video on youtube with 20160905 build of fake nexus rom.

Here is log message when play 60fps video.
[Nexus 4 Android Development] ganachoco:
I know that this change would disable hardware accelerated video encoder to application that using media codec api.

But IMHO, camera function is more important than other applications.
[Nexus 4 Android Development] JeJoye:
[MENTION=6117313]ganachoco[/MENTION] Hello, do you apply this patch in latest beta release, it's all about doze?
[Nexus 4 Android Development] ganachoco:
You can check by following command.

$ aapt d --values resources system/framework/framework-res.apk res/values/config.xml |grep -A 1 config_enableAuto
spec resource 0x01120013 android:bool/config_enableAutoPowerModes: flags=0x00000000
spec resource 0x01120014 android:bool/config_autoPowerModePreferWristTilt: flags=0x00000000
--
resource 0x01120013 android:bool/config_enableAutoPowerModes: t=0x12 d=0xffffffff (s=0x0008 r=0x00)
(color) #ffffffff

"(color) #ffffffff" means "true"
[Nexus 4 Android Development] dramalicious:
If i will EVER be capable to undertand those codes, it will be a dream come true :)
[Nexus 4 Android Development] webg3brasil:
[MENTION=6117313]ganachoco[/MENTION] Great job, is stable and ready pro everyday use, but some bugs:

Problems related to other browsers, OGYoutube, FIFA Mobile (new), SP timeout.

In the previous version there was only the problem related to SP timeout.

PS: Some are complaining of timing and Force Close of GAPPS. Camera working after update 4.1 (video recordings must be configured to be in 720p). Nice!
[Nexus 4 Android Development] sidnoit22:
[MENTION=6117313]ganachoco[/MENTION] New security update is out and new Nougat factory images! http://kickedface.blogspot.com/2016/09/google-releases-septembers-android.html

Can we expect few improvements?
[Nexus 4 Android Development] webg3brasil:
This security patch refers to the bug Quadrooter, but the Fake had received the patch kernel level, then this patch does not bring anything new or not makes no difference to us at the time.
[Nexus 4 Android Development] webg3brasil:
[MENTION=6117313]ganachoco[/MENTION], Thanks for you.

Fix bugs: SP timeout, OGYoutube. Nice!
[Nexus 4 Android Development] doegeenon:
Taobao and Alipay keep crashing after 20160905 update. and 20160907 update didn't make it works.:(
[Nexus 4 Android Development] doegeenon:
here are the screenshots. Alipay didn't FC, but it can't login, I've inputed the right account name and psw, then it show up this message. (PS: there is no system error, my friend can login at the same time:()
[Nexus 4 Android Development] something123:
Same thing for Firefox, I attached a log here: http://xdaforums.com/showpost.php?p=68558810&postcount=1147

They are probably related since Firefox also worked fine on occam-img-20160903
[Nexus 4 Android Development] doegeenon:
[MENTION=6117313]ganachoco[/MENTION] SOS:eek:
[Nexus 4 Android Development] ganachoco:
I updated FAQ for known issue tracking.
[Nexus 4 Android Development] coikutebmt:
in 20160907.zip

change wallpaper on Launcher 3 ---> FC
[Nexus 4 Android Development] sidnoit22:
Bug Report

[MENTION=6117313]ganachoco[/MENTION] There is a location bug in ROM or Play Store.

How to reproduce :

Switch off location, open play store and dont clear from recent.

Go to Apps and give it location permission.

Turn on location and open Play Store.

It will constantly open GPS until you deny the permission or Close GPS.

Edit : Fixed somehow.
[Nexus 4 Android Development] Cristiano Lira:
Is this ROM sound as bad as zaclimon's or it's better? I'm asking because I'm using the one from him and sound quality is like horse **** when comparing to aosp MM roms. Thanks.
[Nexus 4 Android Development] something123:
Don't install custom ROMs if you don't bother to read the first post or want to complain like a stupid donkey for something you're getting for free.
[Nexus 4 Android Development] Tmfz:
I don't notice any difference between his rom's sound and roms from M. I've also not seen a single other person mention bad sound quality on either of these N roms.

You should really rethink your attitude coming in here calling things horse crap. These devs don't owe us anything. They are building and maintaining these roms out of pure kindness. Show a little respect and gratitude.
[Nexus 4 Android Development] Cristiano Lira:
Lol. I'm talking about the sound, bro. And if I would blame anyone I would be blaming google as wasn't zaclimon that developed Nougat. :) And here I notice a big difference in zaclimon's rom audio to mm aosp ROMs, sound is totally muffled, no bass at all.

---------- Post added at 03:14 PM ---------- Previous post was at 03:06 PM ----------

Who do you think I am blaming, bro, zaclimon? I blaming google as it wasn't zaclimon that build Nougat. And where in the first post of zaclimon's ROM it's talking about sound quality, seriously? None of you who replied me answered my question, only clompained about my blaming at google. ;)
[Nexus 4 Android Development] kryzeK:
Another stupid Brazilian. (Do not come to judge me for saying this because I'm also Brazilian)

Dude it was very disrespectful, even if this was not your intention, you were a complete idiot.

You really do not realize that the achievement is to have Nougat for our 4 year old device, is not it?

These developers are guys that make you do not need to spend hundreds of dollars on a new smartphone to use the latest Android. And almost never get something for it. And when they receive a gift, it's not too high.

These guys are heroes to us! Even if you work only WiFi should be quite grateful for this because they are breaking the head as you is in your room giving F5 to download, install and claim that something is not good :fingers-crossed:
[Nexus 4 Android Development] tb110188:
Took the words of my mouth...
[Nexus 4 Android Development] webg3brasil:
[MENTION=5337411]Cristiano Lira[/MENTION]. About the sound quality, install Dolby ATMOS

http://xdaforums.com/android/apps-games/mod-dolby-atmos-t3109446/page231

We all know that the Nexus 4 has a very low and with serious bads sound, so do not let's stay here complaining about or mentioning it, if you want to improve, try alternatives, XDA is full of solutions for this.

I am brazilian too.
[Nexus 4 Android Development] blacknikname:
Sep/07/2016: 20160907 (beta) smother than Aug/31/2016: 20160831... comparable to 31 found some issues with application... callistics from time to time is force closing and like already other write about that, aliexpress. chears
[Nexus 4 Android Development] coikutebmt:
change wallpaper on Launcher 3 ---> FC

Flash Light not use

Chrome not load page web
[Nexus 4 Android Development] kryzeK:
Give storage permission for the app called Wallpapers and clean cache/data

Flashlight works, but the tile is bugged for now. I use this app for flashlight: https://play.google.com/store/apps/details?id=com.favaro.lightbulb

Chrome works fine here... Try update to v53 available on apkmirror, and of course, clean cache/data
[Nexus 4 Android Development] Mazzo98:
I have installed the latest build and it's very smooth!! The only bugs are the problem with 1080p video and the FC of Snapchat... Great job and I wait the next release!!!
[Nexus 4 Android Development] Cizzle4:
Last beta (android 7.0) for now works grate except for the already known bug

update: [MENTION=6117313]ganachoco[/MENTION] is on this rom enabled doze?
[Nexus 4 Android Development] doegeenon:
pretty sure
[Nexus 4 Android Development] gitti_italy:
it should note be enabled because it is based on zaclimon v4.

From their changelog:

V6: (09/09/16)
- Updated to September security patches
- Fixed freezing while watching YouTube
- Attempt to enable LTE
- Hidden misc battery drain as it causes some misinterpretations

V5: (05/09/16)
- Enabled Doze for real this time
- Reverted a change that may have broke Camera

So I suppose the next update will have Doze
[Nexus 4 Android Development] jer_ying_fd:
It is already enabled...
[Nexus 4 Android Development] dragos281993:
Just install "Numbers 3.5" from the "Arise sound systems" thread. Make sure you install the Dolby Atmos Add-On as well. You'll need "deep_buffer_remover" too which you have to flash after flashing the main stuff, so PM me if you decide to flash this, and I'll send you the buffer remover. Believe me, the sound is great after you will have installed all this stuff and did some sound equalizing and tweaking.