yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] kldoc:
Hello folks, nightlies for Nexus 4 just got started, I will do a more exhaustive post later, but I would like you to wait a bit before flashing when it'll be ready to download. I need to test it to make sure it actually works fine, and that nothing got broken in the process.

Thank you all for your patience, i should be able to give you the go-no-go today or tomorrow.

EDIT: Ok the first build couldn't finish. some changes in repos, will be fixed tomorrow :)

EDIT 2: Nightlies need a manual sync, and actually 3 devices have nightlies broken because of this, will be fixed in the coming days, i ask for your patience a little bit more, wait is almost over folks :)
[Nexus 4 Original Android Development] Yeseshvi:
180 degree (upside down) screen rotation isn't working, and the gallery app FCs when try to edit any pic.

Kindly look into those issues :)

Just one quick suggestion... The most recent app in the OmniSwitch appears at the top (up to down), but if it were at the bottom (down to up) near the recents button it'd be easier to switch. I'm going to have to go all the way to the top of the screen to switch apps when I have only few apps in the background or even otherwise :(
[Nexus 4 Original Android Development] kldoc:
I would if I could, screen rotation is working perfectly fine here, you know google now launcher doesn't support screen rotation ? It's planned for a future release, or so i heard, but for now, it's not.

Also make sure your screen rotation isn't disabled.

For suggestions about OmniSwitch, best is to go on irc, and tell maxwen about it.
[Nexus 4 Original Android Development] Yeseshvi:
Yes, I know GNL doesn't support rotation. I use Nova L Prime and I have rotation enabled, and it does rotate to landscape (90 and 270) :)

I'm talking about upside down portrait (180) which isn't working. Well it could be a bug just in my phone, I'm sure it'll work in the nightly build by default. :)
[Nexus 4 Original Android Development] Theyonut:
I confirm the issue.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] kldoc:
Ah wait, you mean portrait up-side down ? I meant landscape up-side down, which is perfectly working.

Portrait up side down, yes that doesn't turn, but I don't actually remember it ever working ...

I don't even see the point to turn upside down in portrait mode ...

Not much I can do about this, I did run a logcat while testing this, it simply doesn't seem to be supported framework wise, there nothing in the logcat when rotating from landscape to up-side down portrait mode, which means the code doesn't handle it.
[Nexus 4 Original Android Development] Theyonut:
I have a tablet (nexus 7 grouper) with omni 4 and the rotation works well. In omni 5, with mako, I don't remember if it works. Maybe is not inplemented in omni 6.

I don't care if it works or not, sometimes it's annoying.
[Nexus 4 Original Android Development] yever:
I can't believe I am still asking this, but how to take screenshot in this ROM? Power+VolDwn doesn't work for me.
[Nexus 4 Original Android Development] Theyonut:
Retry.. works well for me.
[Nexus 4 Original Android Development] yever:
:o woking now. I didn't press long enough.
[Nexus 4 Original Android Development] kldoc:
I didn't see anything towards that in Omni modifications, it can be an AOSP modification.

On a sidenote, I'm leaving home for the vacations (3 weeks for chinese lunar new year) to my wife's hometown.

While i'm taking my computer with me (laptop, and yes, I build with a laptop :p), I might not have a lot of time to give support while i'm in vacations.

And for all those who celebrate it, happy lunar new year :)
[Nexus 4 Original Android Development] Yeseshvi:
So we'll get nightly after 3 wks?

Just asking.
[Nexus 4 Original Android Development] schiznik:
The rotation options originated CM iirc. They're not there in the latest stock mako image from Google.
[Nexus 4 Original Android Development] kldoc:
Of course not, nightlies have already been added to the server, but they need a manual sync, and I don't have any control on this. The person in charge is a bit absent lately, and we're waiting for someone with those rights to actually do what's needed.

Believe me, I am not happy with that situation either, but since i have zero control over this, I wait the same way you all do. I can submit changes for Nexus 4 and merge those and update what's needed in term of blobs on Nexus 4. But production server, only a handful of person has access to it.

I guess you'll be able to download the first nightly before i actually can really test it.

I will make a post about this tomorrow, full wipe is needed. supersu system less beta is the only one that works.
[Nexus 4 Original Android Development] Theyonut:
I see some menu are in English even if I setted a different language. How can I help you (and the omni team) with the translation?
[Nexus 4 Original Android Development] schiznik:
[MENTION=2604804]kldoc[/MENTION] - is omni buildable from the main repo's now, or do you still have your own ones it needs?

Want to have a look into the 'play games' issues
[Nexus 4 Original Android Development] kldoc:
You are more than welcome to join us on #omni on irc freenode :)

Translation is done with crowdin ( at least i think it is).
[Nexus 4 Original Android Development] kldoc:
Omni's buildable from the main repo, I don't have any commit that isn't merged.

The "play games" issue is a Google gapps issue.

Using a recent gapps package should solve the issue, but if you had any issue with it, verify it has the proper permission in settings=>apps=>permissions

More generally speaking, when you build on your own, if you see things in device tree, or kernel, where you'd like to see some changes, just submit something on gerrit, I'll be more than happy to review those commits :)
[Nexus 4 Original Android Development] gbetous:
Hi,

I have a question regarding getting binary blobs. The wiki Build_for_mako is giving two ways : one from Cyanogen, other from Google.com. Is there a Best Known Method ? What is your advice ?

And by the way, what is the difference between those 2 versions ?

Thanks,
[Nexus 4 Original Android Development] kldoc:
As of now, this is outdated, since some blobs are coming from the flo (adreno blobs). Easy way now is to take those from DonkeyCoyote (OmniROM's git for blobs).
[Nexus 4 Original Android Development] gbetous:
OK, found the git repo. Any recipe to integrate it cleanly with the omniROM GIT ? I guess that manually copying the files is not the best ;)
[Nexus 4 Original Android Development] kldoc:
Just add the repo to the local_manifest ;) If you need the exact line, i'll give it to you, but it's a good thing to actually understand how the manifests works :)
[Nexus 4 Original Android Development] gbetous:
I flashed your 20160122 build. I install (before the first boot) OpenGapps micro. Everything works fine (GMail, GooglePlay...).

After that, I install Google Keep via the market. At first run, it asks me the account to use. I select mine, and then the app aborts immediately :

01-29 17:17:09.334 7331 7331 D AndroidRuntime: Shutting down VM
01-29 17:17:09.337 7331 7331 E AndroidRuntime: FATAL EXCEPTION: main
01-29 17:17:09.337 7331 7331 E AndroidRuntime: Process: com.google.android.keep, PID: 7331
01-29 17:17:09.337 7331 7331 E AndroidRuntime: java.lang.RuntimeException: Unable to stop activity {com.google.android.keep/com.google.android.keep.activities.BrowseActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.keep.toasts.ToastsFragment.hideToast()' on a null object reference
01-29 17:17:09.337 7331 7331 E AndroidRuntime:	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3795)
01-29 17:17:09.337 7331 7331 E AndroidRuntime:	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849)
01-29 17:17:09.337 7331 7331 E AndroidRuntime:	at android.app.ActivityThread.-wrap5(ActivityThread.java)
01-29 17:17:09.337 7331 7331 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1398)

I tried to clear data, to reinstall it, to reboot... nothing : always same issue.

Did someone tried Keep ?
[Nexus 4 Original Android Development] biondi53:
Clear play services data
[Nexus 4 Original Android Development] gbetous:
Nice try, but same issue :(
[Nexus 4 Original Android Development] biondi53:
Clear playstore, play services and keep data and reboot, I had the same problem and I solved with this steps
[Nexus 4 Original Android Development] gbetous:
I tried but same issue again... Can't understand. I also installed Hangout, Drive... everything else works fine.
[Nexus 4 Original Android Development] mariospizza:
Have you granted it storage permission? I don't know why but worked for me.
[Nexus 4 Original Android Development] gbetous:
YES !!!! Thanks a lot. Did the trick :good:
[Nexus 4 Original Android Development] gbetous:
Ok and now I'm running my own image, compiled from Omni source. I'm so proud of that :)

Thank you so much kldoc for your work !
[Nexus 4 Original Android Development] kldoc:
Thanks for giving him this, that's actually what i was about to answer before you gave him the answer ;)

Some Google apps don't get the permissions they need after install, because they don't ask for those, i read this was because those are supposed to be part of stock ROM.

[MENTION=3318971]gbetous[/MENTION]

Glad you made it :) Building Android from sources is a lot of fun :)

I should make a post about a poorly documented way to boot/install linux from a RAW disk image file residing on an ntfs partition, while bootloader itself is on a flashdrive. It's a bit like Ubuntu wubi, except external bootloader truly allows zero modification to local hard drive (outside of the linux.img).

Theory is simple, grub 2 support loading a kernel from a loopback device, once the kernel is loaded, all you need is a hook in the ramdisk to load the partition the image disk is on, and set the root fs on the fs in that image, done :p

Been using this on BBQLinux for around a month now, and it greatly sped up my builds on my laptop.

If anyone wants the links I used to prepare the env, just ask, my modifications are not perfect (my hook is half broken for some reason, so i do enter some of it manually in busybox).
[Nexus 4 Original Android Development] gbetous:
Yeah I suspect that installing some apps, - even if they are available on the market ! - , is not a really supported feature.

I have another issue on some GApps : they don't get my Google account. At startup, they can't recognize my google account, so they ask me to register one. If I register mine, I have the error "this account is already registered on the phone". Arglllllll....

I had this on GMail on my first attempts, and for some reasons, it finally worked (after a zillion factory/reset, reflash etc.). Now I have this on GoogleMaps.

Is this also a known issue ?
[Nexus 4 Original Android Development] kldoc:
Give those permission to read contacts :p
[Nexus 4 Original Android Development] gbetous:
Oh my god... ok, this I a new feature from M, I have to get this usual :)

By the way, I rooted my device with BETASuperSU, it works fine.
[Nexus 4 Original Android Development] kldoc:
Hi folks, my trip actually got cancelled, but another one is coming.

Then I got busy with a tv box i have that runs android, but is outdated, and tried some stuff on it.

To make it short, I'll bring you a new build by tomorrow.

A few changes worth a new build, like the kill by long press on back that did a come back :)

Stay tuned !
[Nexus 4 Original Android Development] kldoc:
Hello folks ! Change of plan, Nightlies landed ! So heat up TWRP to make your nand backup, backup everything you can, then full wipe, and then go for the flash :)

Nightlies

You must wipe even if you are coming from my builds.

Have fun with OmniROM !
[Nexus 4 Original Android Development] Theyonut:
It doesn't have Chromium, right?
[Nexus 4 Original Android Development] kldoc:
It has Chromium, accordingly to the result of the poll I did. It simply means you don't need Chrome. They both work the same.
[Nexus 4 Original Android Development] gbetous:
Congrats for the nightlies ! Great job !!!
[Nexus 4 Original Android Development] lebenskuenstler:
Thank you for all your efforts for us!

A remark: Update Manager offers OTA update von 5.x to 6. I know from following this thread, that it won't work, but others might not and end up in bootloops flashing 6 via OTA over 5.x Maybe you could propose an enhancement of OTA mechanism showing a release note or something warning the users not to proceed, but to backup and wipe and then install the new Omni release.

Again, thank you very much to all contributors to Omni. I am very grateful for you work.
[Nexus 4 Original Android Development] kldoc:
Afaik, there are too many changes, you really can't update ANY DEVICE from 5.x to 6. This is not a Nexus 4 limitation, there simply was really too many changes in 6 to update from 5, starting with all the selinux stuff.
[Nexus 4 Original Android Development] kldoc:
Please, I didn't mention it in the comments, but I did on main thread, GAPPS can only be flashed BEFORE first boot, it MUST be flashed after wiping and flashing Omni 6 zip, but BEFORE REBOOT !
[Nexus 4 Original Android Development] amarprat87:
Hi,

If you could please confirm normal day usage stability and GPS performance.

Thanks in advance
[Nexus 4 Original Android Development] kldoc:
I've been using Omni 6 on Nexus 4 ever since I published the first build as my daily driver, since I only own a Nexus 4, I can assure you it's really stable and smooth, GPS, i'm in China, and maps isn't working very well in China, but as far as I can tell, GPS works well. :)
[Nexus 4 Original Android Development] markir:
Just tried omni-6.0.1-20160201-mako-NIGHTLY.zip with both lp and mm gapps...seeing a boot loop despite a complete wipe (I'm using twrp recovery and 5.1.1 was - and still is fine). Currently testing the just uploaded 6.0.1-20160202-mako-NIGHTLY.zip *without* any gapps to try to pin down the issue.
[Nexus 4 Original Android Development] kldoc:
Did you root ? And if yes, did you use the beta system less supersu ?

You must flash mm gapps before rebooting, and don't use an outdated package.

Wipe /system, /cache, /data

I just did flash it myself, boots perfectly fine.

Which version of TWRP ?
[Nexus 4 Original Android Development] markir:
I'm using twrp 2.8.4....I see you are recommending 2.8.7. Will update and retry.
[Nexus 4 Original Android Development] kldoc:
Folks, I just did try OpenGapps, and I'm not really satisfied, had to install Google+ and Youtube from older apk then update through store to get those work properly, not ideal IMHO. I guess using Banks gapps might be a better idea after all.
[Nexus 4 Original Android Development] markir:
Yeah, full wipe and 6.0 gapps (see next post for no gapps). I'm thinking the su business might be the issue, as I have no idea what is being done there (perhaps some clear docs about what we need to do to get things in the right state)/
[Nexus 4 Original Android Development] kldoc:
Yes, it's actually needed, due to lots of changes in security :)
[Nexus 4 Original Android Development] kldoc:
My bad about supersu, even though we don't support it officially, I forgot to add the link to the system less version in the main thread. It's now fixed, as of now, it's 2.67 beta :)

Well, all answers are in this thread, you can use the search function ;)

There isn't much more to it than what's already there, one only have to read what's already there, and I clearly lack the time to write more than what's already there.
[Nexus 4 Original Android Development] markir:
Ok, confirmed that su is the issue - I clicked on the 'do not install' and (with 6.0 gapps) we are all good. Thanks for your help!

---------- Post added at 07:30 AM ---------- Previous post was at 06:45 AM ----------

Sorry to be a pain - but the docs on systemless su are anything but plain, now that I have the 6.0 booting ok I'll take a look (really need it as I can't copy any files to the phone at all...that seems weird I must say).
[Nexus 4 Original Android Development] kldoc:
In android 6, they changed the way you copy files, you must actually manually change from usb for charging to file transfer, you get a notification on your screen, click on it, and change it. This must be done every time.

Notification

Change it

Supersu itself is beta, and we have zero control over it. Refer/ask to its dev for further informations.

Honestly, starting from here, it's more about learning how android 6 works, I can't really write a whole guide about how to use your phone. I don't want to be rude, but 5 seconds of google would have answered your question.
[Nexus 4 Original Android Development] markir:
You are so right, doh! Apologies for being a bit dense! Yeah, selecting the 'file transfer' options got that working. Now I have some sympathy for your (slight) frustration about the latter silly questions - but (I realize this is not your fault) - the frankly unnecessary changes are just asking for may more like myself to wonder if there is something wrong with the rom rather than just *expecting* vastly different behaviour...(ahem - if it is so different...might be worth mentioning on the main site....information is key after all).
[Nexus 4 Original Android Development] hashtask:
That's correct. It was a nightmare. Tried installing the mini but there wasn't any space in System. Installed pico. There were issues with Google, Google launcher, Gmail, Maps, Keep, Sheets, Docs, Drive, Photos, and YouTube had to be installed manually. (Would have been easier to say all apps, but haven't installed other apps from Google) :)

Only chrome and translate installed properly through play store.
[Nexus 4 Original Android Development] kldoc:
There are many reviews of Android 6 around the web, and most of the time, it's very easy to find that information by using Google.

It's really not possible to describe every single new change in Android whenever Google release a new version.

I can answer some questions as they arise when the question itself is not obvious due to a major change in behavior, and I had the same issue discovering you actually had to switch USB mode to be able to use mtp. That's why I answered that one.

But I can't technically document every single feature/change of Android 6, I do have a life, and writing such would take a lot of time that then wouldn't be spent on maintaining Nexus 4 on OmniROM, this is not my job, just a hobby, and I do have a family.

Speaking of which, security update just dropped, and repos are being updated, I'll try to check out the changes to verify nothing is broken, but "if" anything got broken in the process, I won't be able to fix it before at least 1 week, as I'm going in a family trip for a week.

I hope you understand,

Have fun with OmniROM :)
[Nexus 4 Original Android Development] kldoc:
Agree, so far, gapps on Android 6 hasn't got any real package working 100% out of the box.

Happily, you only need to do it once :)

Don't reflash gapps when next nightly drop ;)
[Nexus 4 Original Android Development] markir:
Indeed, and the uncertainly you refer to cuts both ways - when a new rom behaves differently - us early adopters (yes I know 6 has been out for a bit, but on mako it is very new) are gonna be a bit confused about the source of our issue. In my case - I've been using custom roms since Android 2..2, so not a newbie at all - and sure I was stupidly confused, and maybe should have looked on Google a bit more (but I still might have ended up asking here....after all this *is* the most obviously relevant thread). I suggest you expect more annoying questions...
[Nexus 4 Original Android Development] kldoc:
Oh I indeed expect a lot of those. Truth is not many maintainers are as active as I am, community-wise, on Xda. I do so to let users enjoy the best experience possible with that device and that ROM. But you also get to put some boundaries :)

I tried to cover as much as I could in term of usage differences, but I certainly have forgotten some.

Point is it usually takes longer to ask for something then obtain an answer than looking for it in a search engine.

Time difference with me also makes it more difficult.

You didn't bother me, your questions were actually needing an answer, and that's why I answered. I too believed mtp was broken before I found out about that change ;)

I certainly do hope you enjoy OmniROM :)

If you have any unanswered question, don't hesitate, I'll try to answer the best I can.

I've been able to reproduce that aosp keyboard fc on swipe. I need to find some time to log and debug it, in the meantime, if any of you need this, I advise Google keyboard as a replacement. At least until this get solved.
[Nexus 4 Original Android Development] saenanme:
Updated as indicated: backup, wipe (cache, dalvik & data plus system), flash rom + gapps + betasu

Booting with no problems.

Instaling nandroid manager apk and restored all my apps from the backup

Everything working as expected

Regards
[Nexus 4 Original Android Development] kldoc:
What gapps did you use ? There are some reports across devices, that some gapps can't sign in. Opengapps seems to fail. I ended installing the faulty ones manually by downloading from apkmirror, but if there's a better package, might be a good thing :)
[Nexus 4 Original Android Development] Theyonut:
Hi! I flashed the first nightly and Bank's gapps and I have the same trouble like Opengapps. I have Sign-in request that don't login. The device is not rooted.
[Nexus 4 Original Android Development] kldoc:
Ok, for the failing gapps, just install those that fails manually, download from apk mirror.

Also make sure they have the proper permissions. Settings=>app=>name of the app=>permissions
[Nexus 4 Original Android Development] saenanme:
Aroma opengapps because is the only way, at least for me, to replace the asop exchange services for the google exchange services.

But I have only installed the basic gapps (pico gapps) plus gmail and google calendar (and their exchange services).

Regards
[Nexus 4 Original Android Development] kldoc:
So, i did investigate the problem with AOSP keyboard swype, i could reproduce the issue, and i now know why. Swyping is not a native feature of AOSP keyboard, when you install gapps, most of those package will install the libs which will unable swyping. But, if you install Google keyboard on top of it, it breaks.

Just use Google keyboard is my advice, or whatever other keyboard you may like if you flash gapps ;)
[Nexus 4 Original Android Development] gbetous:
I had many issues with Google Apps (I use OpenGApps), but all was resolved by giving permissions (mainly contacts and storage).
[Nexus 4 Original Android Development] gbetous:
Hi kldoc, a question please.

If I want to update my phone, I compile a new image, the I flash it with TWRP. My question is : do I have to reflash BETASuperSU and the OpenGApps package ?

Thanks !
[Nexus 4 Original Android Development] kldoc:
Note that if you flash your homemade build, you will have to wipe everything again if you are flashing this from nightlies.

Same rule apply for gapps, only can be flashed on initial flash.

Supersu is to be flashed every time you flash a build.
[Nexus 4 Original Android Development] gbetous:
Yes I erased everything before using my own build. Now I'm talking only to update my build to a new version.

Ok, SUperSU have to be reflashed, but what about OpenGApps ? Do I have to reflash the micro package everytime ? I guess YES because this package goes in /system, and I saw that the package generated by the compilation is formatting /system before installing the package content.
[Nexus 4 Original Android Development] Theyonut:
Gallery has a force close when I try to edit a photo. I can't appy any effect.
[Nexus 4 Original Android Development] gbetous:
In Settings / Application / Galery => which authrosiations do you have ? I guess that Galery needs storage
[Nexus 4 Original Android Development] Theyonut:
All of them: Camera, Contacts, Location, Microphone and Storage.

I have the last build (20160203).