yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] Sultanxda:
Heap placement randomization:

The heap is a region of memory that a program can utilize to dynamically allocate memory as per its needs. When a program is loaded into memory (i.e. executed), the kernel decides where that program's heap will be placed. Randomizing the placement of the program's heap makes it harder for attackers to target it because they won't know where it is (since its placement is always randomized).

Stage-2 protection of kernel text region:

The part of a program that contains the actual instructions that make up the program is referred to as the text region. When a program is loaded into memory, the general rule of thumb is that the text region should only be readable and executable. In other words, the CPU should only be able to look at the text region and execute the instructions that it contains; it should not be able to modify the text region, because modifying the text region would equate to modifying a program while it is already running (analogy: you wouldn't do maintenance on your car while you're driving it).

The kernel itself is just a normal program too. It is loaded into memory by the bootloader, and it contains a text region that has all of its instructions. So just like any other program, the kernel's text region should only be readable and executable; you should not be able to make changes to the kernel's code while it is already running.

There is already a mechanism in place in the kernel to prevent modification of its text region. However, since the kernel is a *very important* program, Qualcomm implemented another layer of protection to ensure that the kernel's text region could never get modified. Qualcomm accomplished this with their "kernel protect" driver here by utilizing the hypervisor (hardware) to protect the kernel text region. This means that if something managed to bypass the first layer of protection blocking modification of the kernel's text region, and then managed to actually modify the kernel's text region, then the hypervisor would catch this and cause your device to immediately reboot.

However, someone at Qualcomm unknowingly broke the kernel protection driver, so I fixed it with this.
[OnePlus 3 & 3T Cross Device Development] :
This is why you are the best developer!!! :victory:
[OnePlus 3 & 3T Cross Device Development] roadrunner4spd:
makes me realize how old school my c programming is with pointers.....
[OnePlus 3 & 3T Cross Device Development] moSess:
Battery Life ?

The battery life is horrible. I've had GPS navigation use in Waze, Bluetooth, been browsing, Instagram browsing like a loser, all on mobile data. All throughout my work day and this evening at home.
[OnePlus 3 & 3T Cross Device Development] vinoxflame:
is that a joke?
[OnePlus 3 & 3T Cross Device Development] Khaos VFX:
Haha! Nice :) Question: How did you get that black theme?
[OnePlus 3 & 3T Cross Device Development] mk_1996:
Are you for real? After using for 5 and a half hours you still have 35% juice left and that's horrible? You need a mental checkup buddy. Hope you recover soon
[OnePlus 3 & 3T Cross Device Development] Ahmadnine5:
Prior to updating, I used to be able to use Button Mapper Pro to customise my buttons further since there's limited option for that in this rom (not complaining). In particular, I was able to long press my back button to turn the screen off and then unlock it with my fingerprint. But since the update, whenever I lock my phone this way, I'm not able to unlock it with my fingerprint, but I still need to use my secondary security measures (pattern) because it says "Device administrator locked device". Have looked into this to no avail. As always still a great rom
[OnePlus 3 & 3T Cross Device Development] joakimbo:
Substratum working? What theme are you using? Thanks
[OnePlus 3 & 3T Cross Device Development] vinoxflame:
substratum will work on legacy mode
[OnePlus 3 & 3T Cross Device Development] mexiro:
[MENTION=4800121]Sultanxda[/MENTION]

I am having not great battery life recently, i don't know why. Two alarms pop up job.delay and job.deadline approximately firing each minute or so. Android system is taking always in any case the biggest share in battery drain, no matter how many time i clear cache, how many apps i uninstall or so.

is there any clue i could look into ?
[OnePlus 3 & 3T Cross Device Development] mk_1996:
Install better battery stats and let it collect some logs. You can also post a screenshot too. It will tell the developer what process is running which drains your battery
[OnePlus 3 & 3T Cross Device Development] moSess:
I was definitely not trying to be facetious. Sarcasm is lost on some ...

Updated below to show the horrible sleep and even more SOT

That substratum. Legacy mode. For the kicker, I chose OMS, and NOT Lineage. It allows for the dark notifications with no issues at all. And Swift Black is the theme. Paying two bucks never felt so good. It is thorough.
[OnePlus 3 & 3T Cross Device Development] moSess:
I am also running exposed, although not recommended, carefully using Gravity Box and a host of other modules. No issues. At all.

Folks with issues, remember, check YOUR setup. Outliers are just that.
[OnePlus 3 & 3T Cross Device Development] joakimbo:
Is it possible to just make quick settings and settings black without making the notifications black?
[OnePlus 3 & 3T Cross Device Development] Againstt:
Yes, choose LineageOS or any other "legacy" setting
[OnePlus 3 & 3T Cross Device Development] bunu:
I have some good battery life like moSess. Dirty flashing since forever. magisk with a few modules. no xposed. no custom kernel. stock kernel settings
[OnePlus 3 & 3T Cross Device Development] mk_1996:
Uhh sure couldn't understand your sarcasm on the internet. Keep trying ?
[OnePlus 3 & 3T Cross Device Development] finalista:
i have a high energy consumption during standby since using sultan. any ideas?
[OnePlus 3 & 3T Cross Device Development] moSess:
When it's worked I unfortunately had white text on white notifications. Horrid.

Par for the course. Elegant work, this ROM

Check ya setup.
[OnePlus 3 & 3T Cross Device Development] joakimbo:
This is probably because you are mostly standby. You have an estimate of 1,5 day left on 36% and been using it for 3 days without charging. Then ofc standby is on top.
[OnePlus 3 & 3T Cross Device Development] mikronac.ns:
Hi guys, I just noticed that sRGB on LineageOS and OOS are quite different. Colors are vanished more than OOS.

Which settings are you using?
[OnePlus 3 & 3T Cross Device Development] Ward ss:
I'm having problems with netflix/spotify etc crashing/not opening on oneplus 3 when bluetooth earbuds (Jaybird x3's) are connected, this behaviour starts randomly and eventually results in whole rom crashing and rebooting. When i'm not connected to a bluetooth device, the rom is smooth and fast without any problems, this only happens when connected to a bluetooth device.

I don't have magisk, supersu or anything like that installed (no root).
[OnePlus 3 & 3T Cross Device Development] Againstt:
Using any audiomods like V4A or Sauron?
[OnePlus 3 & 3T Cross Device Development] Hw4ng3r:
An FYI for [MENTION=4800121]Sultanxda[/MENTION] and for those of you using this ROM:

I'm not sure if this is a bug, but if you have automatic DND (do not disturb) on, after the DND kicks in and you reboot your phone, the DND rules do not automatically re-apply upon reboot.

Thank you again for all your work Sultan; best ROM for my usage.
[OnePlus 3 & 3T Cross Device Development] Ward ss:
Na, no mods at all. Just stock sultanxda rom.
[OnePlus 3 & 3T Cross Device Development] aymahalawa:
I don't think it should work after a reboot because of the alert slider . The phone should read the status of DND through the physical placement of the slider (initially)
[OnePlus 3 & 3T Cross Device Development] Againstt:
Hmm I don't know then. Recommend clean flashing, bluetooth worked fine when I tried it about a month ago .
[OnePlus 3 & 3T Cross Device Development] mexiro:
Here are some logs.

What is strange is not idle battery draining, but when screen is on. Battery was around 55% this morning and dropped 5% almost in 7 minutes, but without doing anything. I was just checking somethings in the settings, and didn't open any app. As you see also no app is consuming battery. Don't know what is this. I am starting to think that maybe the battery capacity is defective or something, I had also the same issue on oxygen os.

Proximity Sensor is taking great part of the wakeups all the time is set to true and is 9 hours operation, thus android system is taking 10 hours of sensor time (all wake up gestures and settings are turned off, i dont rely on any proximity sensor). Android job.delay and job.deadline is setting thousands of alarms.

I am now with 1 hour screen on time and at the level of 42% battery. And by 1 hour i mean just checking settings, checking time or weather not doing anything.

please [MENTION=4800121]Sultanxda[/MENTION] have a look at my stats.
[OnePlus 3 & 3T Cross Device Development] christantoan:
Do anyone else having problem with screen mirroring through Miracast (not Chromecast). Last time it worked was when it was still CM13 though I haven't tried it again since then until today.

It keeps trying to connect but then timeout.

Thank you
[OnePlus 3 & 3T Cross Device Development] grotesque02:
[MENTION=4800121]Sultanxda[/MENTION] the rom is amazing and your camera mod too, but can you take a look at the google camera port?

I see the fix for front camera hdr don't work with your rom.

Is just 2 lib files, maybe is easy to fix!

Thanks man!
[OnePlus 3 & 3T Cross Device Development] Diaze:
Is there a way to get notifications ticker on this rom? I'm on latest build and it s amazing. Just want that feature tho
[OnePlus 3 & 3T Cross Device Development] christantoan:
Cannot confirm. It works fine here (OP3T).
[OnePlus 3 & 3T Cross Device Development] _Man0waR_:
I confirm it works fine too on the OP3.
[OnePlus 3 & 3T Cross Device Development] NUMB401:
After dirty flashing the latest version my BLE hr monitor just says pairing rejected when I attempt to pair from the menu. The Mio Go app doesn't even find the HR monitor. Worked fine on the 11/25 version.
[OnePlus 3 & 3T Cross Device Development] moSess:
Works here as well.
[OnePlus 3 & 3T Cross Device Development] lokeshjt:
It's working now with the new apk from arnova (v5)
[OnePlus 3 & 3T Cross Device Development] finalista:
could you please share the link?
[OnePlus 3 & 3T Cross Device Development] Seanc92:
So I love this Rom. Everything has been great! Battery life is phenomenal! I did notice on camera bug however. When I double tap power button in the lock screen sometimes it just freezes on a white screen and won't open the camera app. It works if you unlock the phone and double tap power once the phone is unlocked. Just not from the lock screen. A simple reboot fixes it. Anyone else have this issue?
[OnePlus 3 & 3T Cross Device Development] lokeshjt:
This post has the apk

You'll need the front camera fix from here

I hope Sultan can incorporate the fix in the ROM itself in future versions, so that we won't need to root for the front camera fix.
[OnePlus 3 & 3T Cross Device Development] netmm:
Does anyone have problems with Bluetooth?

I can't connect to cars anymore with the latest update.

Other BT devices like headphones work but whenever there is a pin code check like in my car it stops at pairing....
[OnePlus 3 & 3T Cross Device Development] xxxfuq:
Same
[OnePlus 3 & 3T Cross Device Development] ML_Outlaw:
Nope works like a champ
[OnePlus 3 & 3T Cross Device Development] netmm:
I can't get it to work. Tried clearing cache&dalvik, and clearing Bluetooth Appdata as well as resetting network settings.

I made a logcat from when I try to connect to the car (sorry if there's anything wrong with it, it's my first logcat).
[OnePlus 3 & 3T Cross Device Development] jianwen03:
Hey Sultan,

Will you be including & developing your snap cam with gcam's fixed front camera lib?

Gcam port now works great for me but snap cam sometimes freezes when switching from rear to front camera.

(Snap cam works properly again after I killed it)

I'm using the libs from this post: https://goo.gl/iukYai

Attached below is a log with camera related errors when/after the freeze occured.
[OnePlus 3 & 3T Cross Device Development] sky321:
Hard times comming, [MENTION=4800121]Sultanxda[/MENTION] moves on.

https://xdaforums.com/oneplus-5t/development/op5t-unofficial-lineageos-14-1-custom-t3745019
[OnePlus 3 & 3T Cross Device Development] erraticpurple:
I wouldn't go so far as to say that, sultan still updates his rom for the OPO
[OnePlus 3 & 3T Cross Device Development] casual_kikoo:
Who said Sultan would abandoned the OnePlus 3T ?
[OnePlus 3 & 3T Cross Device Development] Salty Wagyu:
Fake news.
[OnePlus 3 & 3T Cross Device Development] ML_Outlaw:
puuuhhh 57 security fixes from Google this month

https://source.android.com/security/bulletin/2018-02-01

those are NOT only for Nexus / Pixel

https://source.android.com/security/bulletin/pixel/2018-02-01
[OnePlus 3 & 3T Cross Device Development] moSess:
Battery ? life

Still getting horrible battery life. Using xposed, substratum, gravity box, and shtuff
[OnePlus 3 & 3T Cross Device Development] vinoxflame:
how about removing xposed, substratum and stuff then check again your battery life
[OnePlus 3 & 3T Cross Device Development] mk_1996:
He is a troll. Ignore please
[OnePlus 3 & 3T Cross Device Development] Scarface1991:
I think he meant it ironically.

---------- Post added at 11:39 AM ---------- Previous post was at 11:39 AM ----------

What font is that?
[OnePlus 3 & 3T Cross Device Development] moSess:
Hahahahaa

Oh boy...

Magisk, google product sans. It's the bees knees.

Folks, I kid. Often. Relax! How can any of my stats not go over as exaggeration or irony?!! They are effen awesome. Read between the lines, geez
[OnePlus 3 & 3T Cross Device Development] netmm:
I fixed this one by clean flashing the ROM again. Don't know what caused it, maybe some of the suggested battery improving apps (BackgroundRestrictor) or something else. Going to now leave the ROM as intended by the dev this time, works perfectly anyways.
[OnePlus 3 & 3T Cross Device Development] gyorijonatan:
And what other stuff do you use for such an awful (amazing) battery life?
[OnePlus 3 & 3T Cross Device Development] mk_1996:
You can troll somewhere else. Youtube is a best platform to showcase your talent to the world. Maybe you should too. Just saying?. You should also read between the lines bruh
[OnePlus 3 & 3T Cross Device Development] gamal001:
I see you are not using WiFi, so how you control draining from Google play services ?
[OnePlus 3 & 3T Cross Device Development] hc8708:
Thank you @sultanxda

I have to admit that this is the best ROM I have come across for oneplus 3T.In so many areas not just in battery.
[OnePlus 3 & 3T Cross Device Development] moSess:
Everything I'm running and activated in the screens. Just superb work by the developer.

What trolling man. I've been on this site over a decade. Get a grip. And a better sense of community. Just chill. And miss me with your passive aggressiveness. Peace.

I use no wifi! Hardly ever! Unlimited on tmobile in NYC! I also have no drain from play services. I'd recommend, that if you do, to check your setup.

I concur!
[OnePlus 3 & 3T Cross Device Development] mk_1996:
As i said you should also read bw the lines. No one is being aggressive to you. You cant really judge someone over a post can you? Afaik its a development thread too not a place to troll. So yelling at me for your stupidity doesn't really seem like a good idea brother. I've seen your posts earlier and i know what kinda stuff you post. So you need to chill. You're not the only one with a sense of humour here
[OnePlus 3 & 3T Cross Device Development] hypnoc:
Why do you use Greenify4Magisk? I don't think it'll be any help since you already have xposed installed.
[OnePlus 3 & 3T Cross Device Development] moSess:
Just testing. In my observations I've noticed better battery with magisk implementation as opposed to xposed. That's why it's deactivated in xposed. Your results may vary
[OnePlus 3 & 3T Cross Device Development] praga_94:
I tried so much to install viper 4 android and to make it working but its not simply working. My linux is enforcing status and my safety net check is also failed is that a problem. The status processing is no for v4a. Anybody pls help and guide.
[OnePlus 3 & 3T Cross Device Development] danny_bhoy67:
I am aware that this rom has call blocking built into the dialler and this done at the system level. Does anyone know if there is any way to block using wildcards instead of just specified numbers. For example, I keep getting scam calls from numbers beginning 0088 but each time the rest of the number is different, so there is no point blocking the numbers as they just use a new one each time so it is ineffective.

Otherwise, does anyone know of a better way to deal with such issues - I just want to be able to say "block all numbers beginning with 0088", for example.
[OnePlus 3 & 3T Cross Device Development] praga_94:
Thanks I got it working
[OnePlus 3 & 3T Cross Device Development] Naudiz:
Unfortunately the answer is no. I know, this was an immensely useful feature of Cyanogenmod and I have no idea why LineageOS scraped it. One can only hope that it will be back in future LineageOS releases.
[OnePlus 3 & 3T Cross Device Development] Polarissucks:
For some reason on games when using Bluetooth headphones I get stuttering. Tried clearing cache and re pairing. No improvement.

Great otherwise though.
[OnePlus 3 & 3T Cross Device Development] pendragon666:
This is what I was saying previously. Infinite battery mode engaged :laugh:
[OnePlus 3 & 3T Cross Device Development] moSess:
I've noticed similar behavior. A really long %100 battery. As well as truly awesome battery in general.
[OnePlus 3 & 3T Cross Device Development] felixchris:
Does anyone else notice a strange behavior with the alert slider toggling?

I sometimes observe it turning to completely silent when the slider is in fact in all sounds position.

A quick slide down into silent and up again into all sounds resolves the issue. But it's weird. Happens randomly.

Anyone else experienced that? If not might just be a buggy switch for me on the hardware side.
[OnePlus 3 & 3T Cross Device Development] jimmmaras:
Guys I can't apply any substratum theme I always get an error , can someone help me ?
[OnePlus 3 & 3T Cross Device Development] Aramarth:
Yes, me too! Sometimes i have to slide up and down again.
[OnePlus 3 & 3T Cross Device Development] felixchris:
Then we got to investigate. Any suggestions on how we do that? It's not exactly a reproducible situation that we can log.
[OnePlus 3 & 3T Cross Device Development] pendragon666:
Can confirm awesome battery life. But still weird.
[OnePlus 3 & 3T Cross Device Development] moSess:
Choosing OMS or lineage ? Which themes are you trying to apply?

Ya. Nothing nefarious, I know, but still extremely peculiar.
[OnePlus 3 & 3T Cross Device Development] Aramarth:
I have no idea :) I just hope that Sultan read!
[OnePlus 3 & 3T Cross Device Development] jimmmaras:
Going to Oms nougat and trying to apply pitch black
[OnePlus 3 & 3T Cross Device Development] Naudiz:
Do you maybe use system profiles? Toggling to another profile like "work" or "car" can change the DND-setting aswell.
[OnePlus 3 & 3T Cross Device Development] Marceline89:
So I know hevc works fine on this device but what about HEIC? Any plans to support it?
[OnePlus 3 & 3T Cross Device Development] coolsparsh33:
If I downgrade from oreo, do I have to flash OOS or the given firmware first?
[OnePlus 3 & 3T Cross Device Development] JumboMan:
only firware (4.5.1) is enough
[OnePlus 3 & 3T Cross Device Development] Againstt:
Flash the recommended firmware from OP
[OnePlus 3 & 3T Cross Device Development] JumboMan:
this rom dont support substratum and themes.
[OnePlus 3 & 3T Cross Device Development] :
Wishing [MENTION=4800121]Sultanxda[/MENTION] add back that built in function since none other rom have it and the way it work for best should be built in the dialer :angel:

Back to CM again :(
[OnePlus 3 & 3T Cross Device Development] lammpat:
Sim swap and call blocking with * , 2 great features of cm is missing in leanage, don't know why :confused:
[OnePlus 3 & 3T Cross Device Development] Naudiz:
IMHO, Lineage Devs should build it back in, not Sultan. I'm curious if there ever has been discussion on Lineage's Gerrit about this feature. And if not, why. Privacy settings is one of CM/Lineage key-features, so it's weird to cut a feature in that department.

Anyways, I'm pretty sure it makes much more sense to contact official Lineage Devs about that, not sultan.
[OnePlus 3 & 3T Cross Device Development] thejrcrafter2:
I installed the latest version yesterday, my touchscreen becomes unresponsive sometimes after turning the screen on (my guess is after deep sleep), which seems like it was fixed a few versions ago. I can provide a dmesg or logcat when I get back to my computer.
[OnePlus 3 & 3T Cross Device Development] _Man0waR_:
I can't say if this is your problem but did you install the correct firmware?
[OnePlus 3 & 3T Cross Device Development] thejrcrafter2:
I believe I installed the firmware linked in the OP. If not, can I safely flash that one without wiping anything else?

Update: Sometimes when I wake the device I will instead have rapid touch events in the top-left corner of the screen that do not go away until a reboot.
[OnePlus 3 & 3T Cross Device Development] ML_Outlaw:
Yes you can
[OnePlus 3 & 3T Cross Device Development] :
We should request that too to the official.

I'm just getting used to sultan rom. It will be easier for him since this is his modified rom after all. He can do whatever he want if he want it.
[OnePlus 3 & 3T Cross Device Development] Actura:
I got this when I was trying build from December (Dec 9th?).

Try installing the latest version or the older version. Trial and error.
[OnePlus 3 & 3T Cross Device Development] tzmz0r:
bbs shows nothing for kernel wakelock.. is it just me?
[OnePlus 3 & 3T Cross Device Development] xxxfuq:
Too
[OnePlus 3 & 3T Cross Device Development] W99DEY:
I am struggling to download the latest rom from both mirrors
[OnePlus 3 & 3T Cross Device Development] hananim:
Anyone here getting unresponsive screen and capacitive keys after fingerprint unlocking?

Usually fix by locking the phone and unlocking again but this seems to be happening more than December's build.

Btw this was dirty flash from December to January and completely stock rom no root.
[OnePlus 3 & 3T Cross Device Development] bunu:
I do sometimes. I just have to tap the screen twice. I've been dirty flashing also. It might go away if I clean flash but I cba to do that and have to set up my phone again so I just deal with it.
[OnePlus 3 & 3T Cross Device Development] vickymbbs:
[MENTION=4800121]Sultanxda[/MENTION],pls..add following features these are all working in official lineage os

1,DC3-PI support

2,lockscreen blur

3,battery percentage while charging when phone is off

4,Light up capacitive keys only when only the keys are pressed
[OnePlus 3 & 3T Cross Device Development] tflogic:
Yep. Taking a while on my end as well. Should be done by the end of the night though. No hurry!
[OnePlus 3 & 3T Cross Device Development] Naudiz:
Yesterday evening I had a strange incident with the camera app. I took a photo and the screen flashed like it usually does, but the photo was actually not saved anywhere. I tried to tap the trigger some more times, but nothing.

The phone then became overall sluggish and unresponsive. I even wasn't able to exit the camera app. Back-, Home- and Recents-button didn't react. I had to long-press power to reboot.

Obviously I don't have a log as I didn't expect that to happen and after reboot everything was fine again. I just wanted to share this experience anyways.
[OnePlus 3 & 3T Cross Device Development] casual_kikoo:
Sultan seems to had found the issue, and should be fixed in the next release : https://github.com/sultanxda/androi...mmit/7932a251535f665ff1db0789526c48ccca9b2e03
[OnePlus 3 & 3T Cross Device Development] Naudiz:
This commit was 4 months ago... ?