yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] nitin.chobhe:
So here is the current

Pie build

that I'm working on. I'm

unable to fix video playback

since last week.

What doesn't work:

1. Native video playback - workaround: videos play when played using VLC player. YouTube works fine when used from browser.

What works:

1. Everything else

Download links:

AFH: https://www.androidfilehost.com/?fid=11410963190603902769

SF: https://sourceforge.net/projects/ni...test/Nitrogen-OS-P-mako-20181019.zip/download

Please note: This is Beta 0 build and I'm sharing this on demand from few users.

I was able to flash with nano gapps after removing some apps. See here how to remove the apps from open gapps package.

Nitin
[Nexus 4 Android Development] ze7zez:
I suppose AFH has a big problem with hosting.

Only one server in California is active and is so heavily loaded that downloading is not possible.

Will you put a ZIP on sourceforge.net?
[Nexus 4 Android Development] nitin.chobhe:
Yes, I'v also observed this. I've uploaded it on SF: https://sourceforge.net/projects/ni...test/Nitrogen-OS-P-mako-20181019.zip/download

Nitin
[Nexus 4 Android Development] ze7zez:
I suppose that the removal of NotoSansCJK-Regular.ttc (~18 MB) will give a similar effect.

This is a fix for those who do not use JP, KR, SC, TC.

More info:

Noto CJK
[Nexus 4 Android Development] nitin.chobhe:
Waiting for initial feedback on the build. There are ~60 downloads from AFH.

Nitin
[Nexus 4 Android Development] :
Initial feedback, ive been running it since 9am this morning (5hrs). All good so far, everything seems to work. Haven't gone nuts on apps, still running the aosp variants, just added playstore, telegram, WhatsApp and xda labs in addition. Will report back on battery but seems no less than on any other ROM at present.

I will report back later once its had a full day, thanks for sharing nitin, top work

Edit: also running magisk 17.1 and magicgapps to install pico gapps package.
[Nexus 4 Android Development] Spike`:
only saw it now, will flash later in the day and will give my feedback/report the best i can :)
[Nexus 4 Android Development] alexandruvlad:
Hello

Can someone pinpoint exactly what GApps to download? I can't seem to be getting through succesfully, getting an error to download a correct GApps with SDK 22 or SDK 27 :(

Weird as hell

Thanks and regards
[Nexus 4 Android Development] ujh:
upgraded from latest oreo build. didn't reflashed gapps or else. on magisk 17.2. everything's quite good 'till now.
[Nexus 4 Android Development] __init__:
This build targets Android 5.1.1 so I can't install GApps for 9.0 :/
[Nexus 4 Android Development] nitin.chobhe:
I used open gapps Nano package (with some apps removed as mentioned in the release post).

This is not right, that's just the Build FP.

Nitin
[Nexus 4 Android Development] wizmart:
just dirty flashed on top of 8.1 and its going nice so far, thank you Nitin, twitch running btw great!!
[Nexus 4 Android Development] :
Quick update, ran it as a daily today. Calls, texts, IM apps, browser all good. Been in a poor service area all day so it's taken it's toll on the battery but it's done best part of the day without a single wobble, freeze or lag.

Only thing that doesn't seem to work is the battery light, could be my device as it's a bit didgy with some chargers and I'm using a cheap car charger at the minute..
[Nexus 4 Android Development] Stealth356:
All ok with resized system, OpenGapps Nano.
[Nexus 4 Android Development] nitin.chobhe:
What's your experience with video playback? Same as me?

Nitin
[Nexus 4 Android Development] mrk2815:
nitin, thanks to you .i am going to install tonight .i will let you know how things go.

---------- Post added at 09:43 PM ---------- Previous post was at 09:27 PM ----------

nitin, what did you exclude in your gapps-config file to get tnano gapps to install .

---------- Post added at 09:46 PM ---------- Previous post was at 09:43 PM ----------

plan on installing without gapps but i have a friend who also hasa nexus 4 that may want to install with gapps and so that's why i need to know what to exclude for him in his gapps config package so that he will just install based on my steps involved.
[Nexus 4 Android Development] chopoLet:
I wanted to test this but my Nexus 4 was accidentally dropped by my gf and it was damaged badly. I guess this is goodbye now Super Nitin. And also RIP to my vintage Nexus 4 :(
[Nexus 4 Android Development] nitin.chobhe:
This is what I added in gapps-config.txt file:

(Contacts)
(Dialer)

CalSync
CalculatorStock
CalendarStock
ClockStock
Email
faceunlock
GoogleTTS
MMS
Search
Speech

Override

Sad to hear that :(

Nitin
[Nexus 4 Android Development] :
Same experience as you so far for video issue
[Nexus 4 Android Development] 1stMako:
Also dirty flashed (only Pie-ROM) and all fine - just had to deinstall and reinstall Gboard to run perfectly too.

YouTube-App is not showing Videos, but playing Sound properly.

Otherwise I am absolutely flashed from the Pie-Experience, extremely smooth and just a blast!

Nitin is simply the best cook and has the best recipes - his Pie is as gorgeous as all his previous candy ;) :good::):D
[Nexus 4 Android Development] ujh:
They ain't working : /
[Nexus 4 Android Development] nitin.chobhe:
Yes, I've tried fixing this issue for over a week now and built approx. 90 builds; but couldn't get to work.

We need to use the workaround mentioned in the release post till we get lucky enough to find a solution for this issue.

Nitin
[Nexus 4 Android Development] wizmart:
About videos,

- youtube runs with audio but no video....running well in the browser

- twitch runs fine up to 720 max
[Nexus 4 Android Development] __init__:
Bluetooth works! Thanks Nitin

Having the same video playback issues as everybody else, but as far as I can tell everything else is working.
[Nexus 4 Android Development] HumbertoC:
I'm pretty sure you're gonna get it running in a near future?
[Nexus 4 Android Development] Spike`:
all seems good

Youtube only has sound, no video like reported

installed other youtube players to see if worked (most didn't) and noticed one thing, when i installed MP4 HD player -> https://play.google.com/store/apps/details?id=mp4.hd.player&hl=en_US <- it has option to select different type of video codecs and testing this was the result

- MPEG4 has only sound and no video (black screen)

- WebM - Works perfectly

- 3GPP - Works perfectly

Other player has the same black screen on MPEG4, when i change in setting to WebM works perfectly -> https://play.google.com/store/apps/details?id=com.play.tube.video

so the problem lies on MPEG4 codec, if not mistaken viewing youtube on chrome it defaults to WebM and probably the standalone Youtube app plays the MPEG4 version

not sure if it helps or you already know all of this :|

Edit: found a semi workaround

1. Uninstall/Remove Youtube APP

2. In Magisk Manager download "Youtube Vanced", after install do the necessary Reboot

3. Open the "new" Youtube app (has a darken icon now)

4. After the logo is displaying and you are seeing the normal Youtube view, clique on your icon account (Top Right), then select "Settings"

5. Scroll down and you will a new option, Vanced Configuration and click on that (or something like that, not sure exactly in your language but it has Vanced in it and below has build number)

6. When the Vanced options open, click on the first option "Ignore Codec?" and the activate the VP9 codec

7. go back all the way and play any video

8. if working properly Disable Automatic Youtube Updates, its mention on vanced website to do so, here's the link -> https://xdaforums.com/android/apps-games/app-youtube-vanced-edition-t3758757

Bonus: Youtube Vanced if the VP9 mencion above doesn't work properly for some reason you can test their custom player

1. If activated disable the VP9 codec mention on point 6.

2. on Vanced configurations click on the "Miscellaneous" (its the 4º option)

3. Enable ExoPlayerV2

4. go back all the way and play any video

If you dont want to use Magisk Manager you can download the root version or the non root version (this require instaling other stuff) on their official website -> https://vanced.azurewebsites.net/APKs?type=ROOT&style=BASIC

this way you have youtube working and even with some bonus like floating window, no ads, etc. That is mention on vanced xda link on the Features

Happy youtube videos :)

Edit2: the non root may be better for many if you dont want to stop updates in google store

1. go to https://vanced.azurewebsites.net/APKs?type=NONROOT&style=BASIC

2. download MicroG Vanced (New)

3. download the themed vanced version, it is the standart White and then is the custom toggle color version (the toggle is in vanced configurations)

4. install both and do the 4-7 steps
[Nexus 4 Android Development] jdtj98:
Hi, I flashed Android 9 in my Nexus 4, all work fine. But I can't install gapps, I tried flashed pico gapps.. I have not enough memory. Can you post a link with the minimun gapps that I need to get play store? I don't know how to do this.
[Nexus 4 Android Development] iason747:
Read nitins post again...
[Nexus 4 Android Development] __init__:
Still experiencing the wifi disconnect issue. Youtube with Force VP9 enabled works perfectly
[Nexus 4 Android Development] bgoel4132:
nitin can you please add the launcher3 used by ziyan in his build i really miss the google feeds:angel::angel:
[Nexus 4 Android Development] __init__:
You should be able to install Lawnchair with its quickstep and google feed addons
[Nexus 4 Android Development] ujh:
no worries, that's a non-issue, it seems as if P build's battery life's longer. maybe the new "adaptive" thing..
[Nexus 4 Android Development] Spike`:
has automatic brightness working for any of you?

i enable/disable it and even has some play on it (dont work) and nothing

i dirty flashed so asking if anyone has the same problem or i need to clean flash it
[Nexus 4 Android Development] :
Works for me, set up from a full clean flash.
[Nexus 4 Android Development] bgoel4132:
i did try that along with lawnstep but the experience was not that pleasantit was lagging a lot and because of that the smooth ui performance also suffered..
[Nexus 4 Android Development] wizmart:
YouTube vanced non root seems to be the solution following advise from spike, indeed running fine now
[Nexus 4 Android Development] nitin.chobhe:
What WiFi issue? No WiFi issue whatsoever to me.

I must try the YouTube Vanced :o

Sorry, I'm not willing to diverge from nitrogen default apps.

Works for me.

Nitin
[Nexus 4 Android Development] dennis369:
Same no video in youtube app issue as everyone else. Of interesting note, the embedded youtube videos in youtube notification emails in gmail work. All signs do seem to point to the system's MPEG decoder. If this is the root cause then is there any chance it can be fixed?

My experience with the ROM so far, everything (else) works perfectly. So if we must accept the extra tasks installing alternate youtube apps/browsers then I am perfectly happy to do that. If the issue can't be resolved (for now) then i suggest moving forward and releasing this awesome and working ROM.

YouTube Vanced Edition app

I can confirm the Magisk root instructions work for downloading and installing the YouTube Vanced app.

Once the app is installed and the codec is overridden to VP9, it works exactly like (better than) the official youtube app. I highly recommend this suggested solution.

Magisk

Flashed Magisk 17.1. It works as expected.

NOTE: I had to install Magisk Manager from official apk afterwards

Nexus 4 /system partition too small

If you are tired of frequently having to jump through flaming hoops to work around this persistent lack of space issue, then I suggest resizing /system.

I can confirm that the instructions posted here https://xdaforums.com/nexus-4/general/guide-increase-nexus-4s-partition-space-t3800264 work. The post accurately describes the method and commands to increase the /system partition from approx 881MB to 1431MB for an increase of 550MB.
[Nexus 4 Android Development] __init__:
I've had this issue on every version of this ROM I've tried back to 7.0. Every few minutes when I'm using the phone it will get disconnected from WiFi and I'll have to tap the network name to reconnect manually. It's minor but pretty annoying. I don't have this issue on most other ROMs (e.g. Unlegacy Android)
[Nexus 4 Android Development] nitin.chobhe:
That's weird. Read the announcement of this thread (at the top), that night help. Are you using 5 MHz?

Nitin
[Nexus 4 Android Development] CelticWarrior:
The wether in lock screen doesn't update, except after reboot... :confused:
[Nexus 4 Android Development] nitin.chobhe:
Will check that :)

Nitin
[Nexus 4 Android Development] Echelonex:
Dayum, OTA updates are dope! And dat new boot animation, sleek af <3

I have a question tho, why would anyone include any stock apps, bloat OS, and waste time on implementing them, or even updating them if the user can just download similar apps (or even the same, like clock, calculator, calendar) from google play that get updates regulary from other devs and dont depend on the OS...?
[Nexus 4 Android Development] amir.susul:
new boot animation is great

N means nitrogen, means noguat, and means nexus
[Nexus 4 Android Development] nitin.chobhe:
How and what things are you flashing? Write step by step...

Everyone is using this ROM without any problems

Nitin
[Nexus 4 Android Development] Son-j:
Love the new logo!

Request/question:

Is there a way to put native screenshot at the quick settings? :)
[Nexus 4 Android Development] nitin.chobhe:
Not in quick settings but you can put it on nav bar with smart bar settings

Nitin
[Nexus 4 Android Development] nguyenanhdn2006:
hi guys, i want remove superuser and flash supersu, please help me :(
[Nexus 4 Android Development] Gu$houn*:
Search the thread and you'll find your answer ...

P.

[sntfrmnxs⁴]
[Nexus 4 Android Development] Son-j:
OMG IM SOOO LOVING THE SMART BAR!!!

I will remove other apps and mods in my nexus 4 since pretty much everything is in nitrogen is already.

Thanks man!!!
[Nexus 4 Android Development] nguyenanhdn2006:
This is a not reply, i need support link or guide, Tks :crying:
[Nexus 4 Android Development] Gu$houn*:
Yeah, actually that was a reply and it was also a reply that should make you want to teach something by yourself, but it appears you just want someone to deliver the information right to you so you don't have to invest any extra minute ... well, good luck then.

P.

[sntfrmnxs⁴]
[Nexus 4 Android Development] tom0769:
One should at least read the forum rules once before dropping in and demanding help.

If you are new to this device, you have to do your homework on it first.

More than this, your question is not rom specific, so the right place to put your question is QA section.

Coming back to your question:

Go to recovery and flash supersu, that should do it.
[Nexus 4 Android Development] matheuseduardo:
kernel & f2fs

I'm using this ROM since r3 or r4... since phone, wifi, gps, data and sensors are working.

After every flashing, I flash Quanta Kernel v19 test (from AOSP 7.0 thread from [MENTION=4217103]zaclimon[/MENTION]), because is important for me "double tap 2 wake" and F2FS support.

So.. the "native" Kernel of Nitrogen OS ROM support those things?

(sorry bad english)
[Nexus 4 Android Development] Son-j:
I think I've found a bug on the latest build..

When I do split screen (via smart bar tweaks), system UI crashes repeatedly that I have to reboot my Nexus 4..

Anyone else able to observe this?
[Nexus 4 Android Development] nitin.chobhe:
dt2w - No

f2fs - I do not know the exact answer but I use kernel source of Zaclimon's

Logcat please

Nitin
[Nexus 4 Android Development] matheuseduardo:
so.. kernel of Zaclimon's AOSP ROM there is no support for F2FS.. BUT, the Quanta Kernel has support and DT2W.. but available kernel at Kernel Thread is only 6.0 (M) version.. so, I'm using Quanta Kernel (Nougat "test" version) from AOSP thread.

A little bit confused, I know.. sorry.

kinda.. Zaclimon developed Quanta kernel and it's v20 with 6.0 (marshmallow version).. and Zaclimon also developed AOSP rom, but don't use Quanta kernel..

So, in thread he released a test version for Quanta Kernel (v19).. since then, I always flash both.. ROM + Quanta kernel v20.

At first I was using AOSP 7.0 ROM, but since initial releases of Nitrogen OS I am using it.. Some mods are really interesting. GREAT JOB!
[Nexus 4 Android Development] Son-j:
Hi Nitin sorry I'm a bit of a newbie here and I did try to research about logcat. I got even more confused. How is it generated? What I can speculate is that you will need the log to confirm what exactly causes it right?

Anyway, I've been experimenting on it and I could confirm that the SystemUi crash is 100% consistent every time i do split screen. I hope others can tell if the same is observed. If not, I'll "clean" my system to purely nitrogen os and not flash magisk and other stuff.
[Nexus 4 Android Development] nitin.chobhe:
Just tested it and worked without any issues.. See attached screenshot.

Nitin
[Nexus 4 Android Development] __init__:
I am using 5GHz, and my router settings panel doesn't have an option for TKIP, I can only set it to AES.
[Nexus 4 Android Development] nitin.chobhe:
Yeah, that's why you are facing that. And it's annoying...

I'll see if I get time to look into the fix for that (not sure when).

Nitin
[Nexus 4 Android Development] bgoel4132:
[MENTION=6175226]nitin.[/MENTION]chobe i flashed the partial gapps from Nexus 5 thread, along with the aroma installer and everything is liquid smooth by now battery is efficient too.

i Would also try for the workarounds for video to get working..
[Nexus 4 Android Development] mrk2815:
nitin, thanks for all these wonderful roms.since i dont use gapps i found this rom more battery friendly then any other roms that have been done by you or others in the past. since we kno that the codec is broken.why not just include you tube vanced as a nitrogen rom apps as well.but that is up to you.
[Nexus 4 Android Development] nitin.chobhe:
Thanks!

Nitin
[Nexus 4 Android Development] gian87:
Dirty flash yesterday on previous 8.1 ROM without resizing....everything perfect apart from video play as you already know

Really many thanks nitin, you've done a perfect job
[Nexus 4 Android Development] bujok:
Just made a clean install. Everything runs smooth. YouTube works with Magisk module. Great job Nitin!! Mako never dead.

Edit. Videos in FB also don't work. There must be sth with built-in video codec.

@N4 Nitrogen Android 9.0
[Nexus 4 Android Development] 1stMako:
Confirmed, also [MENTION=280772]Dirty[/MENTION] flash FB-Videos not working.

Besides that, Pie is tasting perfectly and running smooth since install a few days ago! That Beta 0 from Nitin is rock solid, when others are not able to deliver so called final versions to be stable :good:
[Nexus 4 Android Development] cgfaherty:
Does the dirty flash on top of the most recent 8.1 nos take long? I have the nitrogen wheel ? for an hour or so.
[Nexus 4 Android Development] gian87:
My phone takes about 5/10 minutes, not more.

I've done these steps:

- clean dalvik+cache

- install pie package

- clean dalvik+cache

- install magisk 1.7

- clean dalvik+cache

- reboot
[Nexus 4 Android Development] dennis369:
No, something is not right. As gian87 indicated, 5-10 mins.

I've been curious, is wiping cache between flashing necessary? As long as the phone is not booted to system shouldn't the /cache partition remain empty?
[Nexus 4 Android Development] rebelpixel:
I installed Pie Build 0 and everything I typically use works fine, except for video. Forcing Youtube Vanced to use VP9 is a useful workaround, but other videos like .gifv in native apps (like Reddit clients) of course wouldn't play, as I assume they use the system's native libraries. I'm assuming playing those videos in a browser would work as previously suggested.

For a first build of Pie, this is very smooth and promising. I find it to be even smoother to use than the 8.1 builds. It helps me avoid the temptation to buy a new (or used) Pixel or slapping Pie onto my main phone (OP3T).

Note, I only use the Nexus 4 when my main phone is charging or when my kid borrows it for a while to play games, so I use the Nexus 4 only for Twitter, Pocket, Joey & Boost (Reddit clients) and occasional browsing using Kiwi browser.

Thank you so much for this Pie build, Nitin! :)
[Nexus 4 Android Development] __init__:
I had that issue when I tried installing magisk without rebooting first. Letting the device go through its initial setup and then installing magisk worked for me.
[Nexus 4 Android Development] gian87:
I don't know exactly if it's necessary, but i've always done it like this and never had issues in flashing roms.... But maybe....i'm just doing something not needed :laugh: :laugh:
[Nexus 4 Android Development] mrk2815:
do the same.i use the nexus 4 as my media device like an i pod.dont have that much apps on it.so cant wait till another builds is build by nitin with any other fixes for pie and neuxs 4 mako.
[Nexus 4 Android Development] nitin.chobhe:
There aren't any other fixes as there are no other bugs ;)

Waiting for someone (most probably Ziyan) to find a solution for media playback and then we are good to go.

Nitin
[Nexus 4 Android Development] mrk2815:
nitin, i ment the media playback issues.i know that you build stable code.hav been rocking your builds on almost any device that i have seen your builds supported on.
[Nexus 4 Android Development] bgoel4132:
nitin are the charging notification led are not working for me
[Nexus 4 Android Development] nitin.chobhe:
Yeah, I don't remember when they were working last... :( that's AOSP behavior as I mentioned (I think) in this thread.

Nitin
[Nexus 4 Android Development] HumbertoC:
Chargin lights were working on Nougat, at least on my device...

Good job (still on Oreo but might give it PIE a try:D)
[Nexus 4 Android Development] gc2712:
Do the installation instructions on the first post apply to installing Pie? I would be upgrading from 8.0. Do I need to change partition sizes or anything?
[Nexus 4 Android Development] nitin.chobhe:
Follow the instructions in OP along with the pie release post.

Nitin
[Nexus 4 Android Development] cgfaherty:
Sorted :good:

Updated twrp to 3.2.1, magisk to 17.3 and removed magisk xposed module.

Dirty flash on top of last O build, installing the ROM and then magisk 17.3

Happy days :laugh:
[Nexus 4 Android Development] tyler999:
dirty flash since last oreo , all works greats only vidéo youtube, Facebook, Snapchat don't works and notifications charging led don't works to.

thx again for your work .
[Nexus 4 Android Development] HubrisRev5:
hey Nitin, do you support or think it is a good idea to modify the size of the system partition, as described by bmg1001?
[Nexus 4 Android Development] mrk2815:
nitin, thanks for a great build.i did follow the others on doing a dirty flash. in whihc iw was abelto keep the oreo gapps and not rely on that for pie build. its running buttery smooth.so far so good. will jsut patiently wait for chief nitin, to figure out eh media playbuck and ones that is done.then i am jsut keeping my mako around on nitrogen pie and not bothering to play with other roms for the immediate future.

---------- Post added at 04:37 PM ---------- Previous post was at 04:31 PM ----------

i did a dirty flash from oreo to pie.i did the pie rom install wiped dalvik and cache rebooted an then went back to recovery an then install magisk 17.3 and then wiped dalvik and cache and rebooted and then got the system to boot within 10 minutes of doing the process. after that everything is working great for me on my nexus 4 on a new build of nitrogen pie. thanks for nitin great work on nitrogen pie for mako.
[Nexus 4 Android Development] nitin.chobhe:
Why is it needed? If you read my release post of pie or post below yours you can see that it's not needed.

Nitin