yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Q&A, Help & Troubleshooting] DevALT:
Did you flashed the modified kernel or the modified boot.img from the guide ?

Were you able to boot into the recovery?
[Nexus 6P Q&A, Help & Troubleshooting] margielamask:
I took the modified boot.img provided there only, and I also tried the system image from the google site. Did I have to find a modified kernel too ? I just followed all the instructions in that tutorial and flashed to all those images to try as none booted for my device.

As for recovery, no modified images allowed me to boot into recovery either (it would just freeze), but I tried the twrp modified recovery and I was able to boot that.
[Nexus 6P Q&A, Help & Troubleshooting] Wazzargdd:
You need the 4core kernel mod. Try that too.
[Galaxy S 4 i9506 Android Development] nhihoppro:
Will try it rom, tks u for support
[Galaxy S 4 i9506 Android Development] DonAndress:
Thanks for posting, I personally still use version 14.1 of crdroid.

But what is the purpose if you're not gonna debug and maintain this rom?

I'm sure something will pop up...
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I personally am currently using my own build of Nougat ResurrectionRemix, which I have also shared here at XDA. I personally wanted to check if I could build a non LineageOS Oreo ROM using [MENTION=4861355]kyasu[/MENTION] LOS device tree's. ie Hopefully, in the future, when all the source code code is more stable, I will be able to build another ROM for my personal use (which I would also share).

aaand ... https://en.wikiquote.org/wiki/George_Mallory)

ALL the oreo code is still VERY early days, I dont think there are even too many official devices with releases yet ie not even Alpha's. You don't need to look too far before something "pops up"

Thats one of the brilliant things of open source code. There are a team of people working on LineageOS (the basis for crDroid and ResurrectionRemix), as well as people working on crDroid and RR, as well as the work being done by [MENTION=4861355]kyasu[/MENTION] specifically for our device. Any work they do, would flow through to anyone building the ROM from source. ie "I" do not specifically need to do the debugging, hopefully. And that makes me think of another reason, maybe this build will inspire someone else to give it a go.
[Galaxy S 4 i9506 Android Development] DonAndress:
I have to check your build then. I'm aiming for most debloated rom.

You know I would but unfortunately I'm completely noob in this area. I don't even know where to start ;)
[Galaxy S 4 i9506 Android Development] PixelChris95:
Do you consider lineageos bloated?

Big thanks [MENTION=5417899]DiamondJohn[/MENTION] for providing us with some options besides LOS! By the way, was the "ks01ltexxd" in the title intended? :D
[Galaxy S 4 i9506 Android Development] DonAndress:
Each Dev has a right to include all the crap he wants. I'm not saying that DiamondJohn does but still, some roms are faster and more battery efficient then other.
[Galaxy S 4 i9506 Android Development] PixelChris95:
Yes that's true, but since almost every custom rom is based on LOS I wouldn't expect a huge difference. Also in my experience the apps installed by the user or Google services eat up the battery, not so much the rom (of course the system consumes battery, but most of the time it's something else, if one has unusual high battery drain). I think if you really want to save energy you probably need to throttle the CPU. And Oreo isn't too great at saving battery at the moment (I am only talking about the builds available for our device of course). I hope this will get better in the future. I am using Oreo nevertheless because it's rock stabil and I like the features.
[Galaxy S 4 i9506 Android Development] DonAndress:
Interesting, what features are they?
[Galaxy S 4 i9506 Android Development] PixelChris95:
Picture in picture mode, autofill framework and the design are the new features I benefit the most from. Might be different for others of course.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I'd like to hear the answer to this question.

I dont think you should be looking at ROMs like ResurrectionRemix or crDroid if you wish to be running "light", and I would also go for PICO GApps (which is what I run).

nope, thanks, and corrected:o

As this was a build straight from the source (I only changed one line to make it permissive), its the decision of the devs at the crDroid Team, not me.

By the way, whenever I have looked at the changes made in crDroid, the non-device specific code changes has always been by a single dev. I am sure its a group that decides on bigger things, like what to include, just interesting that shared (between devices) code almost seems to be maintained by a single guy.

I am running Nougat ResurrectionRemix, and to limit my battery drain, I have Greenify running VERY aggressively. I also have the CPU at standard max, but a conservative governor; Tripndroid, which doesn't seem to lag for my usage, but likes the lower frequencies.

I am guessing you are running LOS. The latest build appears to have caused some "noise", which worries me as this build is based on similar code. GPS also appears to be a common issue. I tried GPS on this build and it didnt connect to any satellites (I was inside, and it was heavily overcast that day) but when I restored my daily and it didnt lock a location either (but at least connected to a few satellites). I'd be interested to know by anyone who tries this ROM if the GPS works? That's a deal breaker for me personally. The "efs" partition talk also really concerns me.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
New build!

There is anew build up (see OP). This build was basically a test to see what would happen (ie would it even boot) if the SELinux was ENFORCING

Make sure you flash GApps along with the ROM before the first boot. I accidentally booted without GApps and then flashing it after caused issues.

I also tried Magisk 16.0 for root, and that appeared to work. Instead of the LineageOS add-an

I also tried flashing Viper, and that worked as soon as I switched over to permissive. I also took a log to see what permissions/SELinux statements would enable it to run enforcing.

I did appear to have issues the second time I flashed it with ADB over WiFi (it didnt pop up the request/confirmation).

I am also hoping that the GPS will be fixed soon in the LOS 15.1 builds which will hopefully flow through to crDroid:fingers-crossed:

Remember, this is unofficially an an unofficial build:silly:;)
[Galaxy S 4 i9506 Android Development] onenett:
does not work NFC
[Galaxy S 4 i9506 Android Development] DonAndress:
You don't think crdroid is light?

I've been using it for a year now and I believe it's pretty light.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Feature wise, it is NOT light; as it is very featured. Those features come from code.

To me, if you truly want light, you go with a "vanila" AOSP ROM. I am NOT talking about how they run, but their contents. On a different device (xt907) I built a number of Nougat ROMs, and AICP actually seemed noticeably "snappier" to me than crDroid or RR. A ROM not being light, does not mean it is slow.

Not that's its an accurate comparison of anything, but comparing the Oreo file sizes,

LOS 15.1 = 359MB

RR v6.0.0 = 329MB (I recently did a test build, and it booted and ran :victory:)

crDroid v4.0 = 385MB

also, the main build section has "steps" when compiling a ROM, below are the results from the last time I compiled each of these

LOS 15.1 = 75755

RR v6.0.0 = 76872

crDroid v4.0 = 77145

On a side note, I have another device (Nexus 5, the xt907 has died:() and that has an RR Oreo ROM at around 359MB and an AOSP ROM (v8.0) at 297MB.

By the way, RR is my ROM of choice, as (I think) this device is much more than capable of handling just about any ROM we can thrown at it, at least thus far for me.:good:
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Do you know if it works on the Oreo LineageOS builds?
[Galaxy S 4 i9506 Android Development] DiamondJohn:
out of interest

There has been over 100 downloads of the ROM. Is anyone actually using it as a daily? or simply as a preview? noting that was the actual purpose; ie a preview not a daily.
[Galaxy S 4 i9506 Android Development] pedra3000:
BEST ANDROID OREO ROM FOR - S4 I9506 ks01ltexx

Hi DiamonJohn,

I'm giving a daily test although this is not the case, but I'm even amazed by the result even with this state of the ROM.

In terms of apps, everything works, at least the ones I use daily basis that are; Facebook, Messenger, Inbox "2 email accounts", Outlook "1 email account", Google Keep, DropBox, Skype, Twitter, Youtube, etc..., bluetooth works and I'm going to test the GPS tomorrow when I go running :)

What I mean is that even though not being for daily use (for now) this ROM is not too far from that in my point of view, of course you still need a lot of work ahead and the battery does not last long but what does it matter at this stage since the RR roms happens the same :laugh:

With spirit and with head this rom can get very good at level ★ ★ ★ crDroid ★ ★ ★ Official[7.1.2][ks01lte][V3.5][09 JUN] and by the way, it's the rom I use every day and it's great.

I was going to forget to mention, Magisk Manager, Xposed and Greenify they are installed and working properly.

For now is everything and I hope this rom go forwar, I am very interested because my GALAXY S4 LTE still has much to give :D :good:

And I say even that this ROM in the point that is, deserves the title that I gave :angel:
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I would not expect the GPS to be working. It was built without a change from LOS that would fix it. But I tried including the code, which didn't appear to work for me, and only after realised that I had a hardware issue (my antenna wasn't connecting well physically on the device:mad: fixed now) I am now waiting (patiently;)) for [MENTION=4861355]kyasu[/MENTION] to update his actual device tree with the changes.

I have also built an Oreo ResurrectionRemix. I am hoping someone will test applying a substratum theme against one of these Oreo ROMs (although I haven't made public the RR one) I have built. That (and the GPS) are probably my roadblocks right now foir me to upgrade and thereby be more frequent with new builds; ie I dont know if Substratum works or not. I have tested Viper (another one of my personal deal-breaks, and that works)
[Galaxy S 4 i9506 Android Development] pedra3000:
GPS Works well

Surprise LOL, GPS works well with me! :)

I use Endomondo - Running & Walking and GPS and continued to work well, without having the 4G connected!

I installed the GPS TESTE to see how many satellites it picks up and the accuracy and it seemed to me everything normal (view image link)

https://www.dropbox.com/s/kycoe6blbovs78g/Screenshot_GPS_Test_20180327-082957.png?dl=0

About the Resurrection Remix I tested (Nougat) are good, but the battery is the weak point, because until now they all drain very quickly, which can not be for me to be daily use. As I mentioned, the crdroid ★ ★ ★ ★ Official [7.1.2] [ks01lte] [V3.5] [09 JUN] the battery is very good and for now is my choice for daily use.

I want to update to the OREO and so far and I have always liked crDroid for better results this your unofficial ROM is very very good :good:

Of course I'm here to test your Oreo RR :D
[Galaxy S 4 i9506 Android Development] 3lambda:
I can test rr Oreo too

Actually S4 is my second device and can test everything you want
[Galaxy S 4 i9506 Android Development] DiamondJohn:
PM Sent.:good:

So what is NOT working?:confused: I am a little surprised since its SELinux enforcing.

Have you investigated what it is that is consuming your battery on RR ROMs? I am running my RR Nougat ROM as a daily, and have decent battery life, but I do have a new battery (from eBay, ie non genuine but new), Starting with a charge of only 80% I Get > 18hrs with 1hr+ screen on time (from memory, since its never been a problem, it doesn't stick in my head) I am running Greenify very aggressively, and have done a little debloating; nothing major eg NFC & Omniswitch is off, but not uninstalled/debloated.
[Galaxy S 4 i9506 Android Development] onenett:
seen zhor of the battery
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I do not understand what you are saying? can you explain it another way or in more detail what you mean?
[Galaxy S 4 i9506 Android Development] onenett:
very much take the battery
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Have you investigated what is consuming your battery?

Have you installed any apps ontop of the ROM?

Does your phone enter deep sleep?
[Galaxy S 4 i9506 Android Development] pedra3000:
My experience...

Hi DiamondJohn

What does not work so far is the NFC but the rest (Bluetooth and GPS) is working but I noticed certain things with the daily use!

I did a new test with the GPS, more intensive yesterday and during my race on the mount, I ran 30k and just scored on the Endomondo 8k lol

So apparently it's working is not very reliable, what now I understand your surprise by the GPS to be working :D

Greenify: With the greenify that seems to be working does not seem to be having a big effect because even with the aggressive doze I do not notice differences in the battery.

Magisk Manager: Apparently everything is working, at least the root part.

Xposed: Apparently everything is working

The cell phone dies when it reaches between 8% and 4% of battery life, with the battery saving mode switched on from 15%.

All the apps I use work fine but I do not know which app is draining the battery becouse everything shows normally in the consumption and they are the same apps that I have with the crDroid Nougat ROM. I always do a clean installation and never restore apps for backups, I install it through the google play! Maybe the ROM itself is draining the battery :D

As I indicated and as DiamondJohn said, this ROM OREO was not made for daily use, it is a preview of what has been done so far and is well on its way.

Being still a preview of the ROM, it's very good :good:

I am very good impression with this OREO ROM, even in the preview state :)
[Galaxy S 4 i9506 Android Development] DiamondJohn:
I was basing it off of all the problems people were having with LOS 15.1. [MENTION=4861355]kyasu[/MENTION] has made the fix to his latest build, but I cant see the change in his git repository, so I am guessing he did it as local fix/repo pick. Maybe I am looking in the wrong place.:confused:

Have you checked what is consuming your battery?

Have you checked that the phone is entering "deep-sleep"?

Is it entering into deep-sleep quickly after the screen is off, or taking some time?

One of the reasons I like crDroid (or RR on my current daily) is that it pretty much removes the need for running Xposed; at least for me.

From what I have read on the internet regarding the care of LiPoly batteries, they should not regularily be discharged to zero, nor charged to 100%. I think most places I read suggested running them at 40-60% and once a month doing the 0-100%. I personally aim for 20-80% for example https://www.gizmodo.com.au/2013/07/how-to-take-care-of-your-smartphone-battery-the-right-way/ Also, historically, when my own phone batteries were on their last leg, this is how they often behaved.

Running a day and checking what is consuming (ie %) and checking that deep-sleep is occurring regularly, is usually a good start for solving battery issues.
[Galaxy S 4 i9506 Android Development] DonAndress:
So your phone basically does 18h of deep sleep with greenify and only 1h+ of screen on?

That's worse than anything, mate ;)
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Remember, I am working with only around 60% of battery range, and I did also say GREATER than 1hr SOT. I charge basically every day, and as long as it lasts me the whole day I'm away from home, I'm fine with it. Its also an eBay battery, so who knows how long it will last or how good quality it actually is.

Wait a sec... were you being sarcastic? sarcasm does not carry well on forums.
[Galaxy S 4 i9506 Android Development] rojartem:
Lineage has been updated. What about Crdroid?
[Galaxy S 4 i9506 Android Development] :
It will be updated when it is updated. Please don't ask for when/if there will be updates on XDA, it is considered rude. Thanks
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Furthermore, read the whole OP carefully.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Logcats anyone, to help?

IF I was to release a new build (ie not promising anything;)) Something that you all can do to help make it better (specifically SELinux issues), is to attach some logs of the ROM running. You could use one of the many logcat apps on the market, but my personal preference is to simply use ADB. I use it over WiFi, and that way the phone does not need to be connected to the computer itself via a cable (ie it can sit next to me on my table or couch etc), but simply connected to the same WiFi network.

The thing to do is:

* Turn on developer settings (if not by default) in settings by tapping on settings/about phone/build number 7 times

* in settings/developer options/android debugging/ =>on

* in settings/developer options/ADB over network/ =>on

For Windows (i'm sure Linux users should be able to translate the steps), run in a dos prompt (in your ADB directory, most likely something like C:\Java\x86\Android\android-sdk\platform-tools>) :

NB: the first character on the line (ie >, & and # are not typed in by you)

Also, replace the IP address with whatever is assigned to your phone (should show up in the settings where you just turned it on)

Then enter into your command prompt:

[COLOR="DarkGreen"][FONT="Courier New"]> adb connect 192.168.1.XXX[/FONT][/COLOR]

this should prompt you on your phone if to allow this computer to attach over adb. click always.

Then enter on your computer:

[COLOR="DarkGreen"][FONT="Courier New"]> adb shell

$ su
# setenforce 0
# logcat -d > /sdcard/$(date +"%Y%m%d%H%M%S")_logcat.log; logcat -c;[/FONT][/COLOR]

... now run a few apps on the device, preferably all the standard built in apps (eg camera [photo & video], calendar, Music, Equalizer, file manager etc etc), but all your usual apps could possibly benefit the results ...

and then run this statement again, creating a new file in your SDCard root.

[COLOR="DarkGreen"][FONT="Courier New"]# logcat -d > /sdcard/$(date +"%Y%m%d%H%M%S")_logcat.log; logcat -c;[/FONT][/COLOR]

This statement will create a new file in the root of your SDCard every time it is run.

Get these files, zip them up (they can get pretty big, but they zip up very well to a small file, and zip puts them all in a single file) and post them here as attachments.
[Galaxy S 4 i9506 Android Development] :
Hope this helps.
[Galaxy S 4 i9506 Android Development] apon123:
I am CrDroid lover.... In previous I used N (v 3.4). But in the new CrDroid Oreo 8.1.0 (v 4.0) I could not found Trust face unlock. And I think the lock screen pattern area is small. Would you please add/fix these in next update.

Thank You for your job.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Oreo crDroid is a work in process, and the 4.0 build I did for this device is starting to age. ie the feature is part of crDroid (ie not device specific) and crDroid source had the issue, and it may of even been fixed by now. Look at the calendar graph showing the updates made by this one single dev to get an idea of the changes made. https://github.com/neobuddy89 crDroid has also been bumped to v4.1 now

Please read the OP VERY CAREFULLY.

Please re-read the OP VERY CAREFULLY.

You are asking ME to fix it? I asked you to get some logs, have you done this, not only for me, but for yourself?
[Galaxy S 4 i9506 Android Development] DiamondJohn:
New Build is up

New Build.:victory:

Check OP for link

crDroidAndroid-8.1-20180410-ks01ltexx-v4.1-DiamondJohnDroid.zip

I don't know what it means, but the crDroid version has incremented from v4.0 to v4.1. I forgot to check during my test flash, but I included code to extend the change-log from a 7 days default to 90 days, since its been some time since my last build.

NB: Its PURE coincidence that its 1 month since the last build.:confused:

If you have a similarly named file via a PM, this is still a newer build.:p

I know that the Video record of inbuilt camera does not work, but Footje from Play store does :cowboy:

The built in AudioFX does not work. However, ViperFX does work in permissive mode, and I have taken logs to see what its breaking. Thought I got it logged on last build/flash, but hopefully I got it this time.:mad:

GPS should now work

NB: Its pre-rooted, but root is off by default, you need to turn it on in developer options.

And, again, its SELinux ENFORCING:cool:

Please post any issues you have, and we can all thank [MENTION=4861355]kyasu[/MENTION], the crDroid team, LineageOS for making this ROM build possible.:highfive:

NB: In the attached screenshots, I have changed the colour scheme to dark (a built in crDroid feature:good:)
[Galaxy S 4 i9506 Android Development] eccko:
Hi, what is the difference between rom SELinux enforced and permissive ? Which better ? :)
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Off-Topic and well beyond the scope of this ROM specific thread. Use a web search for your answer.
[Galaxy S 4 i9506 Android Development] aelfinn:
This ROM is really nice, very smooth, but it has terrible battery life. (Three days max just sitting on my desk in airplane mode. An S4 9505 running RR5.8.5 ran for over 16 days under those conditions.) Is there anything to be done about that?
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Have you tried the normal techniques? eg Greenify? paid version better, and use aggressive settings not the default. Or manually force close apps in settings to test what is draining your battery.

Have you actually checked what is consuming your battery? Just saying your battery is being consumed is like asking how long is a piece of string.:p

How actively does the phone go into deep-sleep?

Have you turned off auto-updates and notifications from google play?

Oreo is still in VERY early stages of development (especially when compared to a Nougat Rom which has finished development, apples and oranges ;), a better comparison would be with LOS 15.1), so I would not be surprised if it has yet to have been fully optimised battery wise, but the above may be a good start to finding your root cause.
[Galaxy S 4 i9506 Android Development] aelfinn:
To be honest: no. In my defence, This is just the naked ROM, the only thing I installed is Kernel Adiutor, which says that the phone spent 98% of its time in deep sleep. On Lineage 15.1, battery life was similarly bad. I’ll have to compare with LOS 14.1 and RR5.8.5 to make sure that it isn’t just my battery that is bad.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
And theres the rub. crDroid is based off of LineageOS ie it shares a lot of LineageOS code.

And that could possibly be the cause:silly:. Do a force close in settings on KA. (and anything else you dont use) On a side note, I personally use KA-mod https://xdaforums.com/android/apps-games/approot4-0-ka-mod-reborn-v18-t3714105 Although not specifically battery related, it does not have advertising/moneytisation, which I don't personally trust.

Also, on another OT, I have read in different places where people run their phones in Airplane mode overnight. I don't get it. Why not just turn it off, while you are asleep? Your battery will thank you in the long term.
[Galaxy S 4 i9506 Android Development] DiamondJohn:
Did you install or tried it without GApps?
[Galaxy S 4 i9506 Android Development] aelfinn:
With OpenGApps-nano-20180401.
[Galaxy S 4 i9506 Android Development] :
Many people use the alarm clock I guess (including me). About the battery: With los15.1 I am able to just make it through the day with moderate use (haven't tested this rom enough, but it should be similar, since it is based on los15.1) During the night I loose maybe 1-2% in flight mode. So I can't really confirm the bad battery life. I agree it is better with los14.1 but with this rom it isn't that terrible either, especially in flight mode.