yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] Snoop05:
Pretty weird, i have been Synapse user for long time and don't remmember it ever crashed. But when i switched to this ROM, Kernel Adiutor crashed right away! :D

Nevermind, very good job, this ROM is definetly less bloated and faster than official CyanogenMod 13 :good:

Also i have some suggestions that you could include in ROM:

1. Statusbar clock with seconds (please, i can't live without that :))

2. Basic Daydreams should be removed too

3. ODEXed version - because there is no reason for dex files of apps in /system (where is lot of free space) to reside in /data, => faster boot times and more space in /data

4. CyanDelta for updates
[Nexus 5 Android Development] Dark_Eyes_:
I'll look into the seconds in status bar, that should be easy to add. I can remove basic daydream too, no problem. But, I can't odex the ROM as that breaks Xposed, and I need it for YouTube Adaway.

As for cyandelta updates, I really don't know how to do that. Other ROM that have OTA app to update don't have delta updates as far as I know. You have to download the whole ROM every time. If you know where to start that would be great, cause for this one I have no idea.
[Nexus 5 Android Development] AndroZeek:
Here is Thread for How to add OpenDelta support in a ROM-

http://xdaforums.com/showthread.php?t=2756775

Also look at post

#8

http://xdaforums.com/showpost.php?p=53630387&postcount=8
[Nexus 5 Android Development] donz_Simon:
Yeah... I need delta update too, it's perfect plan.. it's really "dumb" if we want update rom by download full rom:eek:
[Nexus 5 Android Development] Dark_Eyes_:
Yeah I know! It's dumb for me having to build it all from scratch and uploading the whole ROM every time too! But as I said, to my knowledge there are not much ROMs out there that have delta updates. I'll take a look at the opendelta link, that looks promising! Hopefully I can get that to work, that would be great!
[Nexus 5 Android Development] donz_Simon:
Great... Good luck Friends, i hope you found what you search
[Nexus 5 Android Development] alsheron:
Yeah, getting a lot of crashes with Kernel Aduitor too, particularly in the CPU voltage screen. It's not keeping settings either when I underclock the CPU and after a while seems to revert to stock settings. Any idea what's causing it or if it just needs a ROM fix of some sort. Thanks as always for what to me is the definitive N5 ROM.
[Nexus 5 Android Development] pianistaPL:
What about Kernel Adiutor from Play Store, not built-in Kernel Adiutor Mod?

Wysłane z mojego Nexus 5 przy użyciu Tapatalka
[Nexus 5 Android Development] Dark_Eyes_:
I really don't know why you guys have crashes with KA. It's been stable for me, not a single crash. But for the cpu freq, I don't know if it's a problem with KA or with the latest TrueSight, but I agree that settings don't stick. I always leave it at stock freq, but I did try changing it and it reverted to stock. I can include regular KA instead of KAMOD, but I don't think it will change anything...

What do you guys think, revert back to synapse? Try the regular KA? If it's a kernel problem we will have to wait for lol4topnz to fix it...

EDIT: by the way, regular KA has ads now...
[Nexus 5 Android Development] pianistaPL:
AFAIK, you can compile normal KA from sources and remove ads.

Wysłane z mojego Nexus 5 przy użyciu Tapatalka
[Nexus 5 Android Development] star_throne:
Only problem i have with Kernel Adiutor is the same voltage screen. I guess this has something to do with the custom voltage manager that the kernel has
[Nexus 5 Android Development] alsheron:
Does it not crash for you when you edit the voltage settings (undervolt)? If not maybe I could do with a clean flash? In any case it's not keeping settings for underclocking. I actually prefer kernel Aduitor to synapse but synapse as bad as it looked seemed to function perfectly for me.
[Nexus 5 Android Development] bmccoy11:
Is anyone else having trouble with OpenGApps on the latest build? Most Google apps that aren't installed as a system app are crashing now, as if they're missing important libraries or something else.
[Nexus 5 Android Development] Dark_Eyes_:
Yeah, it crashes for me too. I usually leave that to stock. I can include regular kernel adiutor, it seems to work fine, but I don't think it's fair to grarak if I release it with ads removed. Anyway, I'll test a few things and make my mind...
[Nexus 5 Android Development] alsheron:
I've noticed that Kernel Adiutor doesn't seem to allow changing all the options I could with Synapse, particularly the ones relating to Hotpluging. Thinking about it, id probably prefer Synapse back tbh. Would it be possible to make a flash able zip to get that back if you end up deciding to stick with Kernel Adiutor?
[Nexus 5 Android Development] star_throne:
That was the main point in using synapse. And you could always download it from play
[Nexus 5 Android Development] Dark_Eyes_:
Good news bad news

OK, here is the progress I've made until now. Starting with the good news.

1- seconds in status bar are in

2- I think I managed to have Synapse work much better by installing it in the data partition instead of the system partition (go figure, but it seems to work!)

3- I also managed to have OpenDelta built with the ROM and accessible in about phone. I think I figured out how to create the Delta zips needed by OpenDelta too!

Now for the bad news.

1- I reverted the 4,5 columns in quick settings. I didn't like the implementation, plus it broke an Xposed module I was using, so that's out. Sorry about that.

2- Yet the worst news of them all, despite me having worked out what I believe is all the kinks with OpenDelta, neither AFH nor BasketBuild permits the delta updates. I was really pissed when I found out (after spending 3 hours making it work). I've written to basketbuild as it seems the problem might be fixable. I'll let you know when I hear back from them!

That being said, if anyone has an idea of a good free server, or even better if anyone has his own server where I could push my builds, that could work too. I'm already paying a bunch of money for a decent Internet connection that I wouldn't need if it weren't for syncing the cm source and uploading my builds, so I don't want to pay more for a server. Unfortunately, if we don't find a solution to that problem, we'll have to forget about Delta updates!

EDIT: If there are a few people willing to chip in, I have found a couple cheap servers that could do the trick too.
[Nexus 5 Android Development] star_throne:
Well i remember some roms having delta updates without the fancy updater thing, like you just download the small update zip and flash it. Dont know if thats any more convenient than normal zips, atleast faster build time and smaller file for you to upload and for us to download
[Nexus 5 Android Development] alsheron:
Wouldn't it be possible to use Google Drive to share these files/zips?
[Nexus 5 Android Development] Dark_Eyes_:
If you can point me in the direction of such ROM, I'll sure take a look at what they do. For now, I can make a delta files, but it's not a flashable zip. The OpenDelta app uses it to determine what is the best path to update your ROM, be it download a couple deltas if you are not a couple version back, or download the full ROM. There might be a way to create flashable delta zips, but I don't know how...

I can try hosting that to mediafire, I'll keep you guys posted. I thought about Google Drive, but I would prefer not use my own personal storage for that purpose...
[Nexus 5 Android Development] estanuel:
System Prefs volume Steps misbehaving

This is the best Nexus OS I've used by a longshot. It's snappy, it's clean, and it works. Thank you!

The struggle I've got is that when I add volume steps in the sound preferences, there's weird behavior with my bluetooth speaker. Instead of adding actual steps, it front loads the useful ones. So, at seven steps, the volume at far right is the loudest, while far left is the softest, and the spacing between is even. Every click does something.

At thirty steps, turning the volume up from the far left, the speaker reaches maximum volume at about 20% of the slider, and stays maxed out from there on. If I make it go all the way to 100% on the slider, then click down once, it jumps down to 20%. This eliminates the value of having additional volume steps.

This behavior doesn't seem to happen when it's using the phone speakers.

I tried a dirty re-flash and it helped briefly. Have you seen anything like this before? Lots of searches turn up nothing!
[Nexus 5 Android Development] Dark_Eyes_:
No, I never heard of such behavior. I'm using the stock volume steps, but I did try it with phone speaker and headset and both worked. I don't have a Bluetooth speaker, so I can't test it. Can you provide a logcat when changing the volume on your Bluetooth speaker? You said it worked for a short period of time and then stopped working?
[Nexus 5 Android Development] star_throne:
[MENTION=5445418]Dark_Eyes_[/MENTION] I found what the rom was, it was this xtrasmooth rom http://xdaforums.com/google-nexus-5/development/rom-xtraslim-1-0-stock-odex-optimized-t2924150

This had those delta zips like a year ago or something when i tried it, and looks like that the development is stopped at this point. And, if im right, this is one of those "modded stock roms" so its very different when compared to rom that is built from source.
[Nexus 5 Android Development] Titanium.vn:
My nexus have a problem so with volume. sounds not fine
[Nexus 5 Android Development] Dark_Eyes_:
New build is up !

Guys,

I just pusehd a new build. See changelog for what's new. I added OpenDelta, and after a lot of tinkering, I got it to work with MediaFire, so all new builds will be uploaded there. Obviously, delta updates will start with the next release, so you have to download the whole ROM one last time !

I hope you enjoy it !

P.S. I'll look into the volume steps, but if you don't give detailed information on what doesn't work AND provide a logcat, there is not much I can do... Thanks for your help making this ROM perfect ;)
[Nexus 5 Android Development] donz_Simon:
Yeaaah:laugh: thanks friends so lets "start the party":good: ,once again congratulation
[Nexus 5 Android Development] star_throne:
Glad to hear that you got the delta updates working. Thanks for the update, and thanks for providing this awesome rom for us. This rom has come a long way already! :good:
[Nexus 5 Android Development] Viksz:
can you post that build before this one that had Kernel Adiutor-Mod i would like to try it
[Nexus 5 Android Development] Dark_Eyes_:
All my previous builds are there

https://basketbuild.com/devs/Dark_Eyes_/DARK_ROM/hammerheadcaf
[Nexus 5 Android Development] pianistaPL:
You can easily download this app.

Wysłane z mojego Nexus 5 przy użyciu Tapatalka
[Nexus 5 Android Development] Viksz:
thanks bro i have some fc with latest build
[Nexus 5 Android Development] estanuel:
Of course! I'm sorry for telling you about a problem I had and not giving you anything actionable to do with it.

Unfortunately, I'm not sure I can be useful for another two weeks. I'll try to remember to do it when I get back. I bet I know what will remind me: listening to music in my living room.

Until then I will enjoy my wonderful resuscitated Nexus 5.
[Nexus 5 Android Development] Dark_Eyes_:
New build is up!

Guys,

I'm sorry to tell you that MediaFire won't do for delta updates. I thouhgt it was good at first, but the problem is that it allocates links dynamically to files on its server. What that means in short is this :

1) OpenDelta looks for a file on the server to know if there is a new version

2) MediaFire provides the download link to that file to OpenDelta

3) Whenever I push a new version, I also update that file on MediaFire so OpenDelta knows there is a new version

Problem is, when I update the file on MediaFire, it creates a NEW download link to the file, even if it has the same filename as the old one. Since the path is hardcoded in OpenDelta, it still looks at the old file, which doesn't have a new version. Bottom line, OpenDelta will never know if there is a new version because it can't look in the proper (updated) file.

So, after another 2 hours of tinkering, I found a (kinda nasty) solution. Only problem is, it needs another full ROM download. After that, delta updates SHOULD work, but it's hard to say for certain ahead of having a real update to push... I guess we will find out, but at this point most bugs have been fixed !

EDIT: Be sure to get the 20160820 build if you want delta updates to work. Otherwise the update app will always say that you are up to date.
[Nexus 5 Android Development] marco2012:
I finally found a battery friendly rom for my N5 that does not compromise performances! Thank you so much for your work :)
[Nexus 5 Android Development] killer618:
How do I make my recovery caf based?

Sorry for the newbie question ?
[Nexus 5 Android Development] bykumza:
Download this: https://dl.twrp.me/hammerheadcaf/twrp-3.0.2-0-hammerheadcaf.img.html and install in Recovery or Fastboot ;)
[Nexus 5 Android Development] killer618:
It was as easy as i thought then! Thanks! :D

Do i have to do the same in order to go back to normal recovery? (flash the non-caf)
[Nexus 5 Android Development] bykumza:
Exactly as you write ;)
[Nexus 5 Android Development] killer618:
I found out that i need to update to the latest bootloader. Do you have any guide for this?:angel:
[Nexus 5 Android Development] Dark_Eyes_:
There is a link a couple page back. Search the thread please.
[Nexus 5 Android Development] killer618:
I found the flashable zips. There is a caf and non caf zip files? Which one should I flash now that I am in Aosp based rom?

I want to go to dark rom.
[Nexus 5 Android Development] Dark_Eyes_:
It depends on your recovery, not the ROM that you have. I assume you already have caf twrp (recovery), so use the caf one. No worries, if you take the wrong one, twrp won't flash it.

After that, you can flash my ROM and gapps!

Hope it's a little clearer!
[Nexus 5 Android Development] star_throne:
Hi, few days back i had a horrible idle drain and it took me some time to figure it out. And i just replaced my battery, its made in 2016 so that shouldnt be a problem. But yeah, not sure if it was 19 or 20 update that fixed it but i did this too: First i cleared google play services data. This itself didnt help, tried it many times. Then i disabled google play services and tapped yes when it asked if to uninstall updates. Then i updated play services back to latest from play store, after that i disabled this service: "GmsIntentOperationService". I also disabled LocationManagerService but dont know if it matters having it disabled or enabled + it needs to be enabled every time you need gps. Now after few hours of idle, the battery graph seems to be a straight line compared to previous 2-10% loss. I will do a over night test tonight and see how that goes. Its generally not a good idea to mess with crucial system apps' services if you are happy with your batterylife but i just decided to post this if you are having this same issue. Apparently other people have had this too on some older phones, Note 1, Xperia Z2 and so on, and it looks like usually disabling GmsIntentOperationServices fixes this.
[Nexus 5 Android Development] rty1138:
I keep getting this error 7 message. Everything is up to date.
[Nexus 5 Android Development] Icyphox:
Can't seem to flash Xposed

I don't really know if this issue is just with this ROM or CAF ROMs in general, because it happened even when I flashed Alexandroid's Unofficial CM13 build.

But that aside, when I flash Xposed (v86 and v83), the lock screen gets completely messed up. When I swipe up to unlock, I don't get any keyguard/pattern screen. Just a blank one. Hence, I'm forced to reboot to recovery, flash the Xposed uninstaller ZIP and unlock my phone. And yes, I've tried flashing Xposed even after uninstalling all my modules, so it isn't any module related issue.

I'll be super glad if you could tell me a fix for this, because I really want to stay on this ROM, it gives me unholy battery life :p

Thanks again, and mind-blowing ROM you've created there, mate.
[Nexus 5 Android Development] Dark_Eyes_:
OpenDelta won't work with MediaFire

Guys, I just found out that OpenDelta can't work with MediaFire. The problem is the same I described before. The path to the file, for example www.mediafire.com/DARK_ROM/hammerheadcaf/cm-13.0-xxxxxxx.zip does not exist in itself. It points to another page where you get a unique (unpredictable) download link. The fact that any of those links are unpredictable makes it impossible to use with OpenDelta. What would be needed is that I update the OpenDelta by hand every time with the new download links, I push it as a small update for everyone allowing you to use the new OpenDelta app to donwload the actual update of the ROM. That obviously means a lot more work for me every time I release a new update, and I won't do that...

So, after even more tinkering, I think I found a way to hack it and make it work. I will need to recode a part of the OpenDelta app, so I don't know if it will be possible.

This also brings us back to square one, where for only a few bucks per mont (4-5 $ per month), we could have delta updates working in no time. Are there any people ready to put a couple bucks on delta updates? I invested too much time in that to let it go just like that lol ;)
[Nexus 5 Android Development] Dark_Eyes_:
Probably a wrong recovery. Make sure you are on CAF twrp. If you look closely at the error when flashing, it will tell you what's wrong.
[Nexus 5 Android Development] Dark_Eyes_:
I'm using Xposed without problems, but my phone isn't locked. Maybe try a clean flash, then install xposed without a lock pattern, and see if it works. Then add the lock pattern and reinstall a couple of your apps at a time. You might identify the problem doing that. I'm pretty sure at least a couple people use lock patterns on there phones around here, so it's probably just on your side...
[Nexus 5 Android Development] Icyphox:
Hmmm... Alright then, will do and report back. Sounds cool?
[Nexus 5 Android Development] rty1138:
Yup I think that's it. Didn't know I needed a caf twrp. Just found it and will flash it tonight.

for people with this problem in the future: https://twrp.me/devices/lgnexus5.html
[Nexus 5 Android Development] lionheartk:
Hello everyone! Thanks for the awesome ROM, I just flashed it doing a full wipe, and installed with the latest Open Gapps.

However, I'm having some trouble with an app I use here in my city. It's one to buy parking time on the streets, and it crashes when it begins to load. I need this app because I use it daily, so it would be a great deal to me if this could be fixed! The app is called "Estapar" (com.areatec.Vagainteligente).

Perusing the report I'm thinking it has something to do with the Java version in this ROM. LogCat Extreme shows it complaining about /jvm/lib/arm/minimal/libjvm.so.

It also complain about oracle.adfmf apparently. I can post more info as/if needed!

Can we perhaps debug this and make it work? Anyone else having trouble with any other app crashing? Thanks and congrats on the awesome work, the rom is flawless here apart from this bug!
[Nexus 5 Android Development] Dark_Eyes_:
Sure, please get me a logcat of the crash so i can look into it.
[Nexus 5 Android Development] Dark_Eyes_:
[MENTION=1409248]lionheartk[/MENTION] it looks like a SELinux permission error. Try settings SELinux to permissive in Synapse and let me know if it works. Maybe there are permissions you need to grant for the app to, like storage?
[Nexus 5 Android Development] Dark_Eyes_:
The culprit is

08-21 15:40:45.450 4297 4297 I debuggerd: type=1400 audit(0.0:654): avc: denied { getattr } for path="/data/data/com.areatec.VagaInteligente/storage/jvm/lib/arm/libsunec.so" dev="mmcblk0p28" ino=1695778 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1

I don't know much about SELinux, but from what I see your app was denied access to the attribute of the libsunec.so library. That means you should have that error on any CM13.0 builds, because I never changed any SE policy (to be honest I did change the policy to allow V4A to run in enforcing, but that's beside the point...)

There is not much I can do here. What puzzles me is that it breaks even in permissive... Did you manage to have this app running on other roms?
[Nexus 5 Android Development] Dark_Eyes_:
By the way, I tried adding a lock pattern to the phone and it worked as expected. Did you manage to find your problem?
[Nexus 5 Android Development] Dark_Eyes_:
OpenDelta working !!!

Guys,

after messing around a lot and recoding part of the OpenDelta app, I figured a clever way to have OpenDelta work with Baskebuild. So we move back to there. Android File Host won't work, sorry about that. Unfortunately, you will have once again to download the latest full build 20160821, which will probably be the last full build you'll have to download. I tested it this time and it worked, so I'm confident it will work for you too ! (By the way, it takes a while to flash in recovery, don't be surprised. And you will have to keep the latest build on your sdcard so the deltas can be applied on top of it.)

Other than that there isn't much new, but you all need to update to this build if you want delta updates. I also removed all other (broken) versions.

As always, I hope you guys enjoy it!
[Nexus 5 Android Development] lionheartk:
Yep! It runs on other CM13 CAF roms like this one, for example:

https://nyyu.tk/cm13/

which was the one I was using prior to yours.

Yeah it's weird that even on permissive it also gets denied... I'll keep on looking on the problem then, thanks man!
[Nexus 5 Android Development] ungefere:
delta updates

Hello

I have few questions about new delta system of updates.

1. Do I need keep latest build on root of SD :crying: or can I change destination :good:?

2. Can I delete delta update after flashing :good: or do I need keep them :crying:?

3. What else we should to know? :confused:

Thanks for reply :fingers-crossed:
[Nexus 5 Android Development] Dark_Eyes_:
Good questions, I haven't use it much obviously so I guess we will find out later. Here's what I know so far :

You will need the latest full build on your sdcard, at least for the first update. From what I've seen in the code, it shouldn't matter where it is, but during my test it was on the root of my sdcard.

For later, I don't think it's necessary to actually keep the Delta updates, but if needed the app will redownload them, so it's probably not a good idea to delete them...

EDIT : So, for now, I would recommend keeping the latest full build on the root of your sdcard. After the first delta update, I'll give you more info on what can be done. Also, I added an new section in the OP about delta updates. I wll update it as needed, so keep an eye on it.
[Nexus 5 Android Development] lionheartk:
[MENTION=5445418]Dark_Eyes_[/MENTION] I'm beginning to suspect it has to do with the JVM files inside the app folder being from oracle's java and the ROM being compiled with OpenJDK. Will further investigate.
[Nexus 5 Android Development] Dark_Eyes_:
That's a possibility, but I'm pretty sure most devs build with OpenJDK. Not long ago it was even forced in the build process (Oracle wouldn't build). Maybe try replacing the libs in data with one's built with Oracle? I still don't understand why SELinux is acting up that much... even in permissive.

What could be the problem is that I build with java 8, and by default CM13 is built with java 7. Makes sense?
[Nexus 5 Android Development] lionheartk:
hrmm that makes a lot of sense actually, maybe the app is built using an older version of java.

Inside the app JVM folder all I could find pertaining to versions was this:

Manifest-Version: 1.0
Implementation-Vendor: Oracle Corporation
Implementation-Title: Java Runtime Environment
Implementation-Version: 1.8.0_65
Specification-Vendor: Oracle Corporation
Created-By: 1.7.0_07 (Oracle Corporation)
Specification-Title: Java Platform API Specification
Specification-Version: 1.8