yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] jdorth:
Hey there. Great kernel work. Is there any possibility to port over OP3T battery firmware onto the OP3.

This video

[youtube]n1sg2y8OuJs[/youtube]

shows that hardware wise the two batteries are similar enough to upgrade the OP3 battery

It seems like a small tweak from software perspective is require to properly read the capacity. if not please explain at your convenience.

Also if you can contribute to the battery lens mod thread in the forum and reply there it would be great help to original OP3 owners who want to upgrade their battery.
[OnePlus 3 & 3T Cross Device Development] ungeeked:
I think it would be easier for [MENTION=3873953]eng.stk[/MENTION] to to just gift you a note 7. Ultimately both things will have same result. Boom
[OnePlus 3 & 3T Cross Device Development] jdorth:
Yeah boom is not what I had in my mind. The video shows that they are compatible. The teardown shows that parts are nearly identical. I'm also gonna go out on a limb and say that the power IC chips are same.

It would be a cool project to upgrade the one plus 3

Again I have a lab rat OP3. If it does go boom then hey everyone gets to know. It it doesn't everyone can buy a replacement battery and get free upgrade.

He is one developer who I found a little active on 'both' forums. Hence I asked.

As for the note 7. trust me I can handle the heat :cool:
[OnePlus 3 & 3T Cross Device Development] ritchiedrama:
I have no idea how you attain 0.38 idle with 3.2.8 (or any OOS builds) I've only managed that with CM/RR, frustrating.

You're on r161 too? and stock 3.2.8 or freedom?

Do you use anything like Facebook/Snapchat/Instagram/FB messenger? I'm just trying to get to the bottom of my issues.

Thanks.
[OnePlus 3 & 3T Cross Device Development] derdjango:
I don't think this is welcomed here, feel free to delete my post OP.

Anyway, I'm on stock 3.2.8. I debloat everything I don't use myself. I use Swipe Pro for FB and Instagram. I don't use Snapchat.

To be fair, I started using Naptime (with Aggressive Doze but I let the sensors keep working) since I'm at a desk most of the day.
[OnePlus 3 & 3T Cross Device Development] Lownita:
Since updating to oos 3.2.8 and blu_spark r161 the latest twrp from eng.stk can't decrypt my data partition anymore. It was working with oos 3.2.7 and pervious kernel builds though. I know people had this problem with pervious versions of twrp, but for me, only official twrp is working right now. I'm on ext4 on all partitions.

Anything I can do? :confused:
[OnePlus 3 & 3T Cross Device Development] Mar-cel:
[MENTION=3873953]eng.stk[/MENTION] can you please make a kernel with disable force encryption for the new beta?
[OnePlus 3 & 3T Cross Device Development] RohanAJoshi:
twrp-3.0.2-1.28-oneplus3.img

asking me password at recovery on beta 8, clean flash, how do bypass this ?

cant access anything right now.

I did not set any pw .
[OnePlus 3 & 3T Cross Device Development] derdjango:
Hehe, the fun thing is, you're on your own now. Muahaha.

No TWRP, no OB support as per OP.
[OnePlus 3 & 3T Cross Device Development] urgali:
fastboot erase recovery

fastboot erase userdata

fastboot erase system

fastboot erase cache

fastboot flash recovery twrp-3.0.2-1.28-oneplus3.img

fastboot format userdata

fastboot format system

fastboot format cache
[OnePlus 3 & 3T Cross Device Development] RohanAJoshi:
thanks, trying now.

---------- Post added at 03:26 AM ---------- Previous post was at 03:01 AM ----------

tried and worked.

but now device is decrypted, what if I encrypt again from settings ?

same happen with twrp ? password ? even without I did not set any password ?
[OnePlus 3 & 3T Cross Device Development] nikhilsnigam:
why would you do that why why why... lol ?
[OnePlus 3 & 3T Cross Device Development] RohanAJoshi:
because stock kernel does not support decrypt data ?

right ?

its booted. deive is decrypted, but maybe because of community build, but when it goes official, then device encrypt automatically.

m i right ?

---------- Post added at 03:50 AM ---------- Previous post was at 03:40 AM ----------

now I am stuck with 24gb total memory. :(
[OnePlus 3 & 3T Cross Device Development] nmlssit:
Format data/factory reset inside TWRP before flashing the ROM will fix the 24gb error. Also, i would stay decrypt until TWRP team fixes the bug. This TWRP and OB8 issues should not be posted here anymore, there's a OB8 thread if you want to discuss, check my profile.
[OnePlus 3 & 3T Cross Device Development] Chaplan:
You use all the good ingredients.

Since the Nexus 5 bluspark, and the previous codeblue I have been using the kernel that makes the machine work as it should.

I thought the one plus 3 was great with stock kernel. No words for it now on bluspark... It is truly smooth, responsive....

Keep them coming and thanks...

Your work and knowledge is highly appreciated [MENTION=3873953]eng.stk[/MENTION]...

And thanks for the extra help...
[OnePlus 3 & 3T Cross Device Development] Ghost123NL:
I did the steps you said i still got bootloops......

But I also did flash kernel and then I did change filesystem to f2fs.
[OnePlus 3 & 3T Cross Device Development] andyman_187:
Are you on TWRP -28?

if coming from a full wipe and you intend to use f2fs, this is what I would do:

Flash TWRP -28 through fastboot (not necessary, can be flashed through existing TWRP but that's how I roll)

Reboot to recovery

Wipe > Advanced > Change File System of /data to f2fs

Reboot to recovery

Format Data (not necessary but I've experienced /data not converting to f2fs after changing file system)

Reboot to recovery

Flash Full ROM zip of 3.2.8

Flash SuperSU

Flash Kernel

Flash TP FW (optional)

Reboot
[OnePlus 3 & 3T Cross Device Development] nikhilsnigam:
follow this

https://forums.oneplus.net/threads/openbeta8-nougat-twrp-backup-stock-rooted.476880/

OR THIS

https://forums.oneplus.net/threads/...at-for-oneplus-3.476660/page-56#post-15437108

and enough of OT here.

Take this somewhere else.

Sorry OP.
[OnePlus 3 & 3T Cross Device Development] owaisnaim:
Guys Don't flood this thread with unnecessary questions & problems which are not related to this kernel, Remember this is a Development thread, Pls respect the op! he'd already mentioned that he will not give any support to beta build so respect his decision.

Peace ✌️
[OnePlus 3 & 3T Cross Device Development] Ghost123NL:
I'll try your method when I'm home. The thing is if i flash rom then supersu. When i boot my phone supersu its not coming. If i flash it after a reboot then i have bootloops. I did try supersu 2.74 if i remeber the version correctly and the latest one to.

But thanks I'll try your method and f2fs is workinf fine without root haha
[OnePlus 3 & 3T Cross Device Development] otonieru:
Try to use systemmode supersu
[OnePlus 3 & 3T Cross Device Development] papzi57:
What is the latest TWRP?

3.0.2-22 or 3.0.2-1.28?

Which one is better? Which version is compatible with beta8.
[OnePlus 3 & 3T Cross Device Development] Jole7:
1.28 is better and has latest changes
[OnePlus 3 & 3T Cross Device Development] thechints:
<Deleted>

Was about Twrp and read that those discussions were OT.

My bad.
[OnePlus 3 & 3T Cross Device Development] Jole7:
Not possible according to developer for me it works just fine
[OnePlus 3 & 3T Cross Device Development] server3249:
After I flashed this rom my Wifi doesn't work anymore. I was on Freedom os 3.2.8 with stock Oxygen OS kernel and Wifi was working. Please help..
[OnePlus 3 & 3T Cross Device Development] ungeeked:
You did something wrong. And a baby seal died.

Now try flashing in this sequence. ROM - SuperSU - kernel

Btw FreedomOS is not supported officially. Even their own included custom kernel has same issues with wifi. Flashing kernel twice usually does the trick.

Otherwise flash stock OOS, Bluspark and later download if you want
[OnePlus 3 & 3T Cross Device Development] Ghost123NL:
Yesterday I didn't had time but thank you very much !!!!

Your method did work however, i coulnd flash the latest TWRP because it just didn't boot.

So I flashed with a older version. reboots did really help !

Dam Thank you again:good:
[OnePlus 3 & 3T Cross Device Development] iscraigh:
mentioned a bunch of times that there is no space in the system directory. you need to delete some of the built in apps, once you are rooted go into /system/apps with a root file manager (or use titanium backup) and remove a couple apps. YouTube is a good one you can reinstall from playstore after you are set up. You could also try Franco his latest has a method of injecting the wifi drivers from outside system(didn't seem to work for me)

Craig
[OnePlus 3 & 3T Cross Device Development] EinsteinXXL:
Will bluspark support the oneplus 3T in near future?
[OnePlus 3 & 3T Cross Device Development] eng.stk:
blu_spark r165

All right crew!

New build is up. Wicked!

I decided to rework our installer to be all systemless, meaning that system will be not touched from now on, being OTA friendly and no more system is full issues when flashing stuff.

This will work no matter you're rooted or not.

If you want to be totally systemless, I suggest to dirty flash the stock ROM zip before flashing this new build

You can just flash the kernel and be like you are atm if you don't care about that.

I also merged a couple upstream fixes and some improvements to improve UX.

Keep in mind: I will give no active support for custom ROMs or CB. Meaning, if using anything besides stable OOS don't bother posting about it.

I am only interested on debugging stuff in stable OOS (with logs and reproducible steps to replicate the issue).

Don't spam this thread with CM or other ROMs stuff like "this don't work, my app doesn't open, etc" or debugging features.

Also don't go spam and bug reporting on ROM threads if using this.

If you like my work, donations are always welcome (but not mandatory).

Don't forget to hit thanks, it's free ;)
[OnePlus 3 & 3T Cross Device Development] Konskl:
search.... anyway he said no. He won't be buying the 3T
[OnePlus 3 & 3T Cross Device Development] marf28101995:
You sure ? ;)
[OnePlus 3 & 3T Cross Device Development] Crash:
Timeeeee to flash! Thanks mate!

OnePlus 3
[OnePlus 3 & 3T Cross Device Development] Pumpino:
[MENTION=3873953]eng.stk[/MENTION], thanks for your work on TWRP. Given that your modified version is required by so many ROMs, including official OP ROMs, are your changes likely to be incorporated into an official TWRP release? What's the process for making this happen, as I think it's important.
[OnePlus 3 & 3T Cross Device Development] SamuelBegui:
Yeah... I'm pretty sure he said he won't buy a OP3T lol he said so in this thread and on the articles lol.
[OnePlus 3 & 3T Cross Device Development] eng.stk:
I've been saying f2fs present in offical TWRP creates all kind of issues since a couple months, nobody cared so far.

All the rest are updates needed on the kernel and even on binaries because ROMs also update stuff.

I'm not the maintainer of OP3 TWR neither I want to be, don't have the time for it.

All I could do to help (and it was already more than what I originally thought), I already did.

I might have access to one in the future because my wife needs a new phone, but I don't know if I can/will develop for it.

Still waiting that OnePlus does this right and send some units to the 3 or 4 developers here that keep the party going.
[OnePlus 3 & 3T Cross Device Development] calvinistmac:
As long as you don't completely wipe your /sdcard/ partition you have nothing to worry about. It's only if you completely decrypt the phone, then run the OB8 and then try to go back into TWRP that you'll have the issue. I ran version -23 with no issue on OB8.
[OnePlus 3 & 3T Cross Device Development] nmlssit:
Beside that being OT now, why running .23 if .28 has the latest updates? Anyway i am actually running stock recovery until new OB.
[OnePlus 3 & 3T Cross Device Development] calvinistmac:
I did that before I knew about the .28 version. I'm now running that and a custom 7.1 rom. I may eventually go back to OB8 but not at the moment.
[OnePlus 3 & 3T Cross Device Development] EinsteinXXL:
[MENTION=3873953]eng.stk[/MENTION]

The bad thing is, that oneplus has replaced the normal 3 with the 3T. Users with a Oneplus 3T have no way to flash a good kernel, like yours, because almost all developers (flar2, you and other) said they do not want to write a kernel for the 3T. I am aware that the maintenance of several kernels, even more effort means, but it would be a pity if people who now buy a oneplus, and thus get a 3T, stay in the rain. What do you think about a Donation round? I think many people with the 3T will donate to you and this can also a part of motivation for you. ;) If you are interessted, let's make survey to check this out!!

greetings from Germany
[OnePlus 3 & 3T Cross Device Development] House_Maniac:
Does it work with the new open beta 08?
[OnePlus 3 & 3T Cross Device Development] ungeeked:
No
[OnePlus 3 & 3T Cross Device Development] madsponge26:
Wicked updated!
[OnePlus 3 & 3T Cross Device Development] immi803:
[MENTION=3873953]eng.stk[/MENTION]

classy update r165, thumbs up mate :good:
[OnePlus 3 & 3T Cross Device Development] M1LL3R:
Thanks really great update
[OnePlus 3 & 3T Cross Device Development] mysky911:
Thanks for the new updates!;)
[OnePlus 3 & 3T Cross Device Development] livsey:
Thanks for updates! I understand, it is not necessary to flash full rom(dirty), before the kernel update?
[OnePlus 3 & 3T Cross Device Development] immi803:
Yes, it's not necessary...
[OnePlus 3 & 3T Cross Device Development] derdjango:
Thanks for the update, dev!

Have you messed around with a powersaving profile, e.g. limiting max CPU/GPU freq? Not that it's needed but you know :p
[OnePlus 3 & 3T Cross Device Development] otonieru:
[MENTION=3873953]eng.stk[/MENTION] I can say that your kernel read and write speed is quite amazing, especially on random,

thx for latest update,

kinda miss your kernel on CM though, hahaha,

not much dev giving continuous and periodical stable kernel update out there
[OnePlus 3 & 3T Cross Device Development] mysky911:
Thanks, [MENTION=3873953]eng.stk[/MENTION]. You make this phone best phone for 2016!!!:good:
[OnePlus 3 & 3T Cross Device Development] samisharora:
Thanks for the update [MENTION=3873953]eng.stk[/MENTION]. Even if your kernel works on CB/Open Betas,the performance it offers on stock (3.2*) is just not comparable. Flying and flying high :)
[OnePlus 3 & 3T Cross Device Development] PivotMasterNM:
My curiosity took over and I still tried it on the Open Beta 8 (Nougat), and of course, it doesn't work (bootlooop) XD so for anyone still playing with the idea of trying it anyway:

DO NOT FLASH THIS KERNEL ON OPEN BETA 8 (NOUGAT)
[OnePlus 3 & 3T Cross Device Development] JumboMan:
[MENTION=3873953]eng.stk[/MENTION], after reading xda article on how f2fs helped op3t to open apps faster I converted data and cache partition to f2fs and Then flashed latest blu spark v165.

Its working without problem.

but I faced one problem. running fstrim command on data n cache partition giving error while on system partition fstrim is working.

error is "fstrim: FITRIM: Invalid argument"

------

OOS 3.2.7 with blu_spark 165 and supersu v2.78 sr5 in system mode
[OnePlus 3 & 3T Cross Device Development] Kiranb212:
Check this out by OP himself
[OnePlus 3 & 3T Cross Device Development] JumboMan:
ok i converted cache partition back to ext4 and fstrim is working on cache partition.

But getting error on data partition (f2fs).

is fstrim works on f2fs formated partition?
[OnePlus 3 & 3T Cross Device Development] Kiranb212:
Sorry Mate .. I have no idea .. may be someone should be able to help/advise...
[OnePlus 3 & 3T Cross Device Development] eng.stk:
Because probably fstrim binary present in OOS 3.2 doesn't recognize f2fs partitions.

There's tools in playstore that work, use that instead.

Nothing to do with kernel.
[OnePlus 3 & 3T Cross Device Development] JumboMan:
there is no fstrim file in /sys/bin folder.

for fstrim i have flashed busybox zip.
[OnePlus 3 & 3T Cross Device Development] Skinpipe:
F2fs doesn't need trimming it is carried out automagically!
[OnePlus 3 & 3T Cross Device Development] JumboMan:
i read somewhere that for automatic trimming there should be 'discard' attribute in fstab. correct me if i wrong.
[OnePlus 3 & 3T Cross Device Development] eng.stk:
What you flashed makes no difference, it's userspace related.

It's not installed the applet, but busybox (including the one present on OOS) ships with fstrim and several others applets and extensions.

But like said above, f2fs already auto trims at kernel level.

discard will trim everytime you clear data, that's a waste.

Android already does trimming by periodic deamon.
[OnePlus 3 & 3T Cross Device Development] JumboMan:
thanks for explanation eng.stk
[OnePlus 3 & 3T Cross Device Development] carlos67:
Ok guys, crazy question but here goes........

I've flashed (via fastboot) twrp 3.0.2-1.28 and it seemed to go ok with no errors. However, when I boot back into recovery it doesn't show the twrp version as 3.0.2-1.28 instead it shows it as 3.0.2-1 which is the version I was on previous to flashing (official twrp)

Am I right in thinking that this is correct and that the .28 bit at the end is not shown??

Would appreciate any help :)
[OnePlus 3 & 3T Cross Device Development] weeka89:
running version 3.0.2-1.28 and TWRP splash screen shows 3.0.2-1 (i think it's the official version).
[OnePlus 3 & 3T Cross Device Development] Explorer23:
Correct, modified TWRP versions do not change displayed version, it'll always show 3.0.2-1 (original version that was base for modified).

If there were no issues during installation, you can be sure you're running whatever you flashed (.28 in this case).
[OnePlus 3 & 3T Cross Device Development] otonieru:
Yes it works,

i fstrim my partition every 3 days
[OnePlus 3 & 3T Cross Device Development] nmlssit:
Wasn't fstrim obsolete since Lollipop?
[OnePlus 3 & 3T Cross Device Development] chinmai560621:
Do you recommend disabling encryption? Some say it increases I/O. And I want to know if sdcardfs can be implemented on 3.2.x (Ik your kernel supports sdcardfs)
[OnePlus 3 & 3T Cross Device Development] eng.stk:
In terms of speed doesn't make a huge difference on this device.

sdcardfs needs ROM support to be used instead of fuse. So no.
[OnePlus 3 & 3T Cross Device Development] Minux31:
Hi, and thanks OP for this great kernel, working fine on Oos 3.2.8 :)

Just a question : is it possible to bypass internal Oos led management ? I mean making apps like Light Manager working fine on Oos (I never achieved to make it works normally, colors are all the time different from I set)

Thank you !

Edit : Nevermind, I reset my settings, and now it works great with this kernel, thank you very much [MENTION=3873953]eng.stk[/MENTION] !
[OnePlus 3 & 3T Cross Device Development] laggardkernel:
Does the WiFi work well with 3.2.8? I'm on oos 3.2.8 with Magisk and the WiFi doesn't work after flashing this kernel. Maybe it's due to the Magisk.
[OnePlus 3 & 3T Cross Device Development] immi803:
Wifi works fine as well as magisk and xposed , all working fine
[OnePlus 3 & 3T Cross Device Development] Minux31:
Yes, wifi's running fine on 3.2.8 with this kernel, so it's probably magisk the problem
[OnePlus 3 & 3T Cross Device Development] laggardkernel:
r165? 3.2.8+Magisk+r165 blu_spark kernel, WiFi broke. After switch back to blu_spark r161, everything works well. I'm not sure whether the Magisk or the r165 build caused the problem.

At last, I modified the update-script to stop r161 replace WiFi module in system and made the WiFi module as a Magisk module myself. Systemless achieved.

---------- Post added at 08:32 PM ---------- Previous post was at 08:28 PM ----------

blu_spark r165 + OOS 3.2.8?
[OnePlus 3 & 3T Cross Device Development] Minux31:
Yes, latest blu_spark & OOS 3.2.8 :
[OnePlus 3 & 3T Cross Device Development] immi803:
Follow steps

Make clean install

Flash SU

Flash Bluspark

Reboot

Again recovery 0.28

Flash magisk version 9

Reboot

Install magisk manager

Install sdk23 system less framework

Install material design xposed installer

Happy flashing
[OnePlus 3 & 3T Cross Device Development] immi803:
No problems with kernel and going system less is best way to stay untouched, only boot image is patched, secondly, magisk makes a system image replica in a way, not touching real system at all

See screenshots
[OnePlus 3 & 3T Cross Device Development] immi803:
[MENTION=3873953]eng.stk[/MENTION]

I had my mobile left unfunctional, battery showed 0% and had to reboot , don't know what messed up

Please see attached log

Hope you can figure out

I'm on r165, data f2fs, 3.2.8

Further i can provide you driver log and logcat too if you need
[OnePlus 3 & 3T Cross Device Development] IvanCristina:
Does this kernel work on CB Beta 8?
[OnePlus 3 & 3T Cross Device Development] immi803:
No
[OnePlus 3 & 3T Cross Device Development] IvanCristina:
As I thought. But why isn't there any kernel yet? Didn't OnePlus released kernel sources?
[OnePlus 3 & 3T Cross Device Development] immi803:
You're right, one plus didn't release sources yet, wait for sources mate
[OnePlus 3 & 3T Cross Device Development] eng.stk:
Nothing for me really.

That's exactly why I don't support setuos with xposed and all that crap.

Use pastebin next time.

There is no sources for beta releases.
[OnePlus 3 & 3T Cross Device Development] ZeppeMan:
[MENTION=3873953]eng.stk[/MENTION]

I have to say.. 3.2.8 together with r165 and f2fs on data is the smoothest experience I ever had on any phone. No issues, stable, fast, great battery life and super smoothnessSSs!

Just a little more tweaking and we can revive all the baby seals that got killed in the past :svetius::D

Keep it up!
[OnePlus 3 & 3T Cross Device Development] humzaahmed155:
What do I do if I've reformatted and wiped but I'm still losing whatsapp messages by the second? Doesn't happen with other kernels so I'm assuming it's kernel related. Logcat doesn't show anything neither does a kmsg
[OnePlus 3 & 3T Cross Device Development] Sytis:
For me this solution worked: As I'm on f2fs which certainly causes this issue (no one knows why) I also disabled fsync and enabled laptop mode. After those two options WhatsApp worked normally again. So it's not really kernel related but filesystem related imo
[OnePlus 3 & 3T Cross Device Development] humzaahmed155:
Just disable fsync :svetius: but laptop mode?
[OnePlus 3 & 3T Cross Device Development] dabug123:
[MENTION=3873953]eng.stk[/MENTION] I'm making a custom kernel for aosip what any kernel do u use
[OnePlus 3 & 3T Cross Device Development] Sytis:
Maybe it works without laptop mode, but if you are also using f2fs with blu_spark you should disable fsync
[OnePlus 3 & 3T Cross Device Development] nikhilsnigam:
True that. My phone has never been so snappy before.

Thank you so much OP
[OnePlus 3 & 3T Cross Device Development] humzaahmed155:
Got it. Thank you dude.
[OnePlus 3 & 3T Cross Device Development] zulu657:
I'm sure it's just me but this thread seems to have changed into an f2fs thread. The last few pages have been little else but f2fs. Nothing against it if you use it but is it now the prime focus of the kernel? Those that don't use it are having a hard time finding relevant material.
[OnePlus 3 & 3T Cross Device Development] chinmai560621:
So stable rn. Can we see O3 complier optimization? And maybe voltage control?

Franco says zRAM will not go in vain if used. Can you implement it? Ik we've 6 gigs but still Google says it's benefit yet.

And I want to ask why was fastlane removed? It used to be so useful as I UC the cores and while gaming I just had to echo fastlane 1 on termux.

These are just suggestions/questions which I couldn't get an answer even after 30 min of digging the thread.

I have to say, ATM this is the best kernel for OP3 . THank you so much!!
[OnePlus 3 & 3T Cross Device Development] gillim74:
I am new to the op3 and dont want to screw it up.is this only for stock rom and do you have to have f2fs i tried to read the op but am not really understanding it.i just got the phone today.