yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] mirhl:
I'm saying that the kernel part should be fine (or at least in 3.4, which ofc still never hurts), with only userland bits missing.

I'm also further speculating that these could be more-easily-than-expected worked around by checking the open code already lied down for qcom/fuji platform (if not any for the "interface with kernel", at least for understanding the sony-specific bits)

At least for the moment though, that's AOSP-only. So, until our dev doesn't port it to LOS, I doubt you are going to find any free useful cookie.

Especially given that.. I dunno, maybe you should first worry about the remainder on your cm12.1 list?
[Sony Xperia P, U, Sola, Go] Haxk20:
OK thanks.

Well I'm actually working on 3.4 for a little while now and its a little hell man.

3.3 changed a lot of code in CPU stuff and ux500 drivers are using the old code so basically I need to find ux500 drivers ported to 3.4 also I took chronomonochrome 3.4 clean sources as base. Then I can worry about WiFi BT which will probably work out of the box as drivers are already in source. I know 3.4 will be a savior for this device but really its a little hell to port it.

Any help will be great.

About the cm12.1 issues well CR should work but doesn't still cannot find the issue (Yes looked into logcat 1000 times).

Also the work on 3.4 I did so far is only because I have free week so once it end development will slow down again.
[Sony Xperia P, U, Sola, Go] Haxk20:
Guys I'm thinking on building omni ROM too because new twrp is going crazy from CM and well LOS team don't care about cm12.1 anymore.

I will build cm too but if I get new twrp to compile in omni then well I would also compile omni.

New twrp will be useful if we get cm14.1 ported cause 3.0.1.0 doesn't support 7.0 I think.

And as I heard from twrp team on xda thread even older omni tree should build new twrp just fine. And well latest twrp on this old phone will be cool.

And if all goes well and it will work and if I got fota kernel working by some weird luck then official support too.

And yeah you heard right official twrp support. Now that would be crazy cool.

OK that's about it now lets back to porting.
[Sony Xperia P, U, Sola, Go] Haxk20:
TWRP 3.1.1-0 sucess !!!!!!

Hi guys in a few minutes i will add here a boot.img with TWRP 3.1.1-0 <-- THIS IS THE LATEST !!!!!!!!!! :):):):):):):):):):):):):):):):):):):):)

EDIT: Link is on 1st Page.

I have not tested it yet with CM let me know if it works.

ALSO be sure to make backup in twrp of boot partition before flashing this one cause it may not boot the rom because this was compiled with omni sources.

TAKE this boot.img as PREVIEW of latest TWRP on our phone only.
[Sony Xperia P, U, Sola, Go] Haxk20:
Downloading Omni and LOS sources as im writing this and well will patch omni and build it also i will build TWRP 3.1.1 in cm boot image so that we can boot again cm rom with new twrp.

Edit: I just got new boot.img working with my rom and now bootable and fully working link as before in the 1st post.
[Sony Xperia P, U, Sola, Go] Haxk20:
Guys do you want:

1.Omni ROM 5.1.1 build.

2 LOS 12.1 build but actually with nothing new or any bugfix.

Its up to you guys.

And maybe after some time I could possibly build a RR (5.1.1 android) (Resurrection Remix) :))))
[Sony Xperia P, U, Sola, Go] 1Leo9:
I would love to try omni
[Sony Xperia P, U, Sola, Go] Haxk20:
Yeah me too I will just build twrp image with cm source with agontuk patches then delete cm and well then going to build omniand RR probably too once its done
[Sony Xperia P, U, Sola, Go] Haxk20:
Downloading RR source will build RR first if i got it working then omni and well if i get all of them working then well you could request any rom with 5.1.1 sources and i can build it.
[Sony Xperia P, U, Sola, Go] HiR3x:
The Tesla OS 2.7 is fantastic i have on my primary device with mtk chipset and will be nice to have on the nypon
[Sony Xperia P, U, Sola, Go] Haxk20:
Sure once i get omni and RR working i havent even downloaded RR yet the source is huge
[Sony Xperia P, U, Sola, Go] HiR3x:
OMNI its likely to

aosp, but resurrection remix is the best for customization ? but and tesla os and minimal os are olso great.

Please remove the ste logo on boot and and the logo of the roms

Sent from NYPON using XDA Labs
[Sony Xperia P, U, Sola, Go] Haxk20:
I cannot the kernel was created by Xperia STE so they put their logo in there and i cant do anything about that
[Sony Xperia P, U, Sola, Go] HiR3x:
But if you create the kernel 3.4 can you change the logo or just let only the logo of sony??

Sent from NYPON using XDA Labs
[Sony Xperia P, U, Sola, Go] Haxk20:
If i do 3.4 idk what i will do cause look i will explain how its now with 3.4.

There have been about 1 Million commits to kernel in the rc of 3.4 our drivers arent prepared for 3.3 not even 3.4.

If it was easy dont you think more devs will try to port it ? Its EXTREMLY HARD and i will probably fail porting it cause the errors are everywhere i fix one and the file compile finally the next one throws 300 errors at me :(

Guys i really dont know if its even worth the time i put into 3.4 because at 90 % i will fail.

Its easier to start porting cm 13.0 again or 14.1 cause look looooooooooot of devs tried it. And they all failed as we can see cause we still dont got it.

If it even compiled hunting down why it doesnt boot will be easier then fixing 1000 errors. So if anybody have a loooooooooot i mean looooooot of free time (Not me cause school) go ahead clone the chronomonochrome 3.4 clean sources and try it if you can do it well good but i cant (yeah sure after a lot of time i will got it surely but that would take minimaly 1 year all day working on it) so yeah.

Plan:

Add patches to new TWRP 3.1.1 and well build it.

Download 14.1 sources.

And try to port it and make it bootable. (Patches wont work cause are outdated so i need to understand what they did and well implement it in CM14.1 then it may compile)

Surely Wifi BT and that stuff would not work out of the box but well those can be fixed.

So question for you guys: Do you want:

1.) RR based on lollipop

2.) CM14.1

????
[Sony Xperia P, U, Sola, Go] Abdollah hosh:
Do you want to make new rom or new build 5.1 for XU?@Haxk20
[Sony Xperia P, U, Sola, Go] HiR3x:
You are the developer and this is you decision but if you are sure then can make a stable lollipop 5.1 rom ,this is wee need the most .
[Sony Xperia P, U, Sola, Go] Haxk20:
Member of LOSXSTE is building for XU build is probably in the old thread.
[Sony Xperia P, U, Sola, Go] Haxk20:
Making it stable would take loot of time and well fixing bugs even more and its stable as daily driver for me (WITHOUT xposed then the rom lags a little).

Downloading CM14.1 sources now i will surely build CM-12.1 too few times.

And back to making it stable you surely saw how long was percyg2 building this rom and the team fixed only few bugs and then the rest of the months was without fixes.
[Sony Xperia P, U, Sola, Go] HiR3x:
Percy_g2 is the creator of cm10,11 and cm12 and after left the project but the only stable custom roms are the cm10 . the kitkat have bigest problem with instagram,fb,messenger,and other apps the only thing you can do with the kitkats are using the gps,camera, and gaming , and you build is the best conpare with other build of cm12.1 but if you see a nexus 4 with cm12.1 the diference is huge ? , we dont want nfc,hdmi,fmradio, but thing like stability,batery.

Try the cm14.1 lets hope for a bootable rom.
[Sony Xperia P, U, Sola, Go] Haxk20:
Yes i know battery but well its hard to do. IDK what is draining battery the most. I will probably run some app of do a logcat of battery to see what process will drain the most. And well speed you can try to disable ZRAM yeah you will not have swap but maybe CPU will be more free cause it will not calculate so much.

Thanks to [MENTION=8418673]1Leo9[/MENTION] for tip about ZRAM

Also i have downloaded cm-13.0 and not 14.1 by mistake but will not redownload again (it takes loooot of time) so i will try to port cm-13.0
[Sony Xperia P, U, Sola, Go] Haxk20:
Going full time into CM-13.0 it looks good for now still errors but lot of them already fixed also i will pause TWRP for nypon now i will build again in near future (1Month)
[Sony Xperia P, U, Sola, Go] Haxk20:
Ok some work done on CM-13.0 and i finally can start with adapting patches from CM-12.1 to CM-13.0 This will be the hardest part since patches are outdated and even code changed in CM-13.0 but once patches are done it shouldnt take long after that to have it boot. Then fixing can begin like wifi or BT since those will not work out of the box at all.
[Sony Xperia P, U, Sola, Go] Haxk20:
I was taking a kinda holidays for few days but on this weekend i will start again with CM-13.0.

I just needed to take break from dev because i was having some very important stuff in school that i needed to do asap.

But once its weekend im back into dev.
[Sony Xperia P, U, Sola, Go] HiR3x:
i want to raport a bug i have download dream league soccer 2018 the version 5.0 and the phone keep rebooting... and all apps stop working all give me force close...and the only way to unistall is from play store
[Sony Xperia P, U, Sola, Go] Haxk20:
this is not a rom bug but android 5.1.1 bug im sorry but i cant do anything about this.

this happenes when app is compiled with 3.0.0 gradle and well anr is not ready for it yet at least 5.1.1 so the rom keeps rebooting the bug was reported and fixed in latest build tools so the app dev needs to build it with latest build tools then it will work.
[Sony Xperia P, U, Sola, Go] Haxk20:
OK guys maybe a little update on whats going on so :

1. i said goodbye to cm-13.0 and downloaded LineageOS-15.0 its better newer and actually [MENTION=5695278]ChronoMonochrome[/MENTION] (Thanks man) have done patches for U8500 so i will patch it modify a little and well will see how it goes.

2.Nothing else haha
[Sony Xperia P, U, Sola, Go] Haxk20:
LineageOS15.0

Hmmm i think i will like this development.

Also its very possible that i will implement init_sony stuff too.

But as always its not 100% that it will work.
[Sony Xperia P, U, Sola, Go] Haxk20:
Its going good.

Just to let you know guys that porting 8.0 is going fantasticaly.

I have got a zip file that im not sure will boot because i needed to make a "mock" custombootimg.mk file to make it compile so i will try to use cm-12.1 boot image and see if that one boots it.

For now thats all i can say.

Also if you think about the build time in the photo NO i do not have that fast PC i just use ccache to not build all the files over again.

Also i would love to say huge thanks to [MENTION=5695278]ChronoMonochrome[/MENTION] for his patches and help he gave me i wouldnt be able to do it without him.
[Sony Xperia P, U, Sola, Go] Haxk20:
Just to guys let you know the ROM doesn't boot up due to selinux.

Selinux just tells system that it cannot start because of permissions.

I'm working on it.

Also when it finally boots there is 50% chance that WiFi or BT will work out of the box.

But well I firstly need to fix problem with permission.

If anybody have experience in SElinux and wanna to help just tell me here (no PM)
[Sony Xperia P, U, Sola, Go] Haxk20:
So a little update.

I still don't got a working boot.img and selinux is still blocking system.

The first thing to fix is the boot.img which I'm working on.

After that I can disable selinux in kernel to make it boot.

And if I got it to boot the builds will be without selinux so they will not be for daily use.
[Sony Xperia P, U, Sola, Go] Haxk20:
Still stuck on the same problem that boot.img doesnt work still but im going to find solution to this eventually but its not gonna be fast.

Selinux problem will be fixed automatically once i got bot.img working
[Sony Xperia P, U, Sola, Go] Haxk20:
Great news probably i found a possible way to make working boot image its little hack around it all but well who cares when it will work ?

I just need to replace ramdisk in the boot image with 8.0 ones and donei will generate new images like this for every new 8.0 build but well i havent tested it yet so i will update this once i get it working and the system boots up.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
Please,create LineAge 15.1 or 14.1 For Xperia P.Pleeeeeaaaaaaaseeeeee.

Tomorrow i will intall that Rom,and i will help you to find bugs and issue.Thanks for your work)
[Sony Xperia P, U, Sola, Go] Haxk20:
If you don't see I'm trying as hard as I can.

And hahaha the ROM is not gonna be finished tomorrow maybe not even this month.

Its not easy as you think at all.

ROM is compilable that's perfect but what is making me problems is boot.IMG and selinux.

The 8.0 source can't compile bootable boot.img.

And when I even got bootable 8.0 image then selinux didn't allow me to boot at all.

So what's the next thing to fix is boot.img ASAP then well compile it again with disabled selinux and that should make it boot. At least I hope it does.

WiFi is going to work probably (like 50% 50%) but BT definetly not.

OK that's all.

Well I need time man to do this you know devs have life's too.

And I need to go to school every week and spend there almost all day.

So just wait I will try to do it ASAP but its not going to be fixed that soon.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
Ok Man,I know it's not easy.I installed that Rom, i find some issue.I have lagging when i'm just scrolling video,video quality is HD.And microphone doesn't work in telegram or another massangers,but works on calls.
[Sony Xperia P, U, Sola, Go] Haxk20:
Have you read the first post at this thread ????

Never post bugs without a proper logcat.

And well its weird because for me mic works just fine.

Also video is not lagging when you have youtube app or do you mean other site ? Also if you are in YT app the quality should not be HD at all this device have some issues with running HD video from web.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
No, local video, I installed Mx player and it's lagging. SYSTEM PLAYER IS LAGGING TOO.
[Sony Xperia P, U, Sola, Go] Haxk20:
Hmmm weird I just finished watching a movie on my phone without a lag.

Maybe try to lower the quality.
[Sony Xperia P, U, Sola, Go] Haxk20:
Also logcat should be great.

You know how I'm I supposed to know where is problem.

Also its normal for 5.1.1 to have some issues sometimes.

If you need a total stability then go for 4.4 kitkat that ROM is stable.
[Sony Xperia P, U, Sola, Go] Haxk20:
Also guys if 8.0 boots its very possible that it comes with TWRP 3.2.x just latest.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
I solve problems with laggs,i switched nu to awesome player in dev option,now video works very good
[Sony Xperia P, U, Sola, Go] Haxk20:
Yeah i forgot to say that everybody could change it because i think nu dont use HW but SW to play the video.

Awesome player can use HW to play video.
[Sony Xperia P, U, Sola, Go] 1Leo9:
Wow, thanks!
[Sony Xperia P, U, Sola, Go] Haxk20:
Hmmmm im thinking that when i get 8.0 booting and wifi working which might just work out of the box dont know cause still not bootable boot.img no time.

I may implement WireGuard into the kernel itself and actually add little more stuff and make it more stable.

What do you think ?

Also this will be done once wifi is working in 8.0
[Sony Xperia P, U, Sola, Go] Haxk20:
Happy new year guys :D
[Sony Xperia P, U, Sola, Go] Haxk20:
SElinux problem kinda fixed but it still doesnt boot at all its weird i have last_kmsg file in folder LineageOS15.0 and there is the file(On the same server as my LOS12.1 files) if anybody knows whats wrong please let me know.

EDIT:

So after few looks at it and help of [MENTION=5695278]ChronoMonochrome[/MENTION] we find out that SElinux is still not fixed.

Sadly i dont have the time this month to fix this at all since i have to do a paper of 30 pages (A4) about programming and C.

Also i have to do it before end of this month.

After it will be done i can then start working fully on android 8.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
Just Do It Xaxk20)A lot of people are waiting for this ROM)
[Sony Xperia P, U, Sola, Go] Haxk20:
and what the hell do you think im doing. im spending my own free time that i have and you just come here and say just do it. if you think i can just do it then man go ahead try it for yourself to see how hard it is to port a rom man. you can be actually happy since this device have almost no support now i got almost bootable oreo. also sorry but i firstly take care of school stuff then some android porting. for me school is really important.

so its totally on me when i do it.

so i will do school stuff then porting.

also as i said before this device is old and im myself supprissed that got oreo even to compile.

i have my xperia sp still at home and they got oreo few months back so i could just say goodbye to p and start compiling for sp and be without issue since device trees are oreo done.

so when oreo for p is done then it will be done.

ofcourse you still have the abbility to take 200gb of your hddspace and start compiling oreo yourself.

im sorry that i had to say it like that but your just do it words made me veryyyyyy angry:mad::mad:

1leo9 will surely tell you how hard was it to compile his own cm12.1 with all device trees prepared and sources ported and even with guide how to do it all.

he knows that its hard work that im doing cause he tried himself. maybe you try it too and then say something like that.

it was still hard since sources update all the time so patch that worked few minutes ago could not work in new build and will give u a huge error that you may fix in matter of seconds or it could take a week.

still this was kinda ok and i take it that not everybody knows what goes into porting it and it may sound easy.

so i needed to port device tree to oreo and use chronomonochrome patches but still those patches will only maybe get it booted which was not the case since im still not done porting and actually any issue that comes up during testing will need to be fixed by me or other dev specifically for this device.

as i said above im sorry that i had to say it like this but really that made me angry and it would do any other dev in my place.

every dev has his life too as everybody else does and its only my will that im porting it.

i could just easily leave it and study quantum physics more then i do now or maybe learn string theory.

school is for me at first place then anything else.
[Sony Xperia P, U, Sola, Go] 1Leo9:
Why don't you do it yourself?

That is quite easy! You just need some several years of hard, full-time working, and you will easily do it! What is the problem here?

Guy is working for free. He already done a LOT, so it is really surprising to see talking to devs like they are your slaves.

Some respect please. Better with actual help.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
No,i don't wanted to say bad word,im just wanted to hold up Haxk,in my country words JUST DO IT,YES YOU CAN are for holding up,Sorry i don't wanted to do you angry
[Sony Xperia P, U, Sola, Go] sajid.sm:
Ok
[Sony Xperia P, U, Sola, Go] 1Leo9:
That was not obvious at all.

He definitely can do it.

The real problem is time.
[Sony Xperia P, U, Sola, Go] Haxk20:
oh ok man then sorry for being angry at you.

yes i will with 95 percent bring oreo to this device and as 1leo9 the main problem is time since even when i fix selinux issues for good then idk what error will come next if none great bootable oreo if some error show up again its a problem since it will need time to solve it.:):)
[Sony Xperia P, U, Sola, Go] Haxk20:
OK had some time to spare actually what i did was i deleted the sources and saved only the device tree and kernel what i will do next is that i will download 8.1 sources with the patched repos to make sure there is no issue regarding patches.

This was only done due to the fact that i had about 2 hours to spare and well actually nothing else to do.

Also this was just preparation for next month where i will probably have a lot more time to do 8.1.

And no its still not bootable.

P.S: I finally added my Bitcoin wallet to my signature. So if anybody wants to donate and dont have paypal you can use bitcoin to do so. (Thanks).
[Sony Xperia P, U, Sola, Go] Haxk20:
And before anybody is going to ask YES im going to build it in GO configuration.

It will make our devices faster so thats only bonus.

Also if it boots up it will support microG.

Well thats a lot of work for next month but as i see it now 8.1 will be a huge update for this device it will bring a lot of new stuff to it.
[Sony Xperia P, U, Sola, Go] Fenixx2304:
Yeah Msn

---------- Post added at 08:09 PM ---------- Previous post was at 08:09 PM ----------

Yeah Man)
[Sony Xperia P, U, Sola, Go] Haxk20:
Here to make the day better.

Just to make the day better here i got ROM compiled LineageOS15.1:

//Not sure it will boot will test tomorrow have stuff to do today.

//If anybody notices the build time well i assure you its not that fast it just failed at the end almost just because of my typo.
[Sony Xperia P, U, Sola, Go] Haxk20:
Hello guys so in few days i will test the LOS15.1 to see if it boots.

But i would wanna to talk to one person but i cant get his email i wrote him at youtube but this is just in case he doesnt read it.

So what going on you may ask ? Well while its cool to see some forums of lineageOS roms that still post updates about development of roms on their sites.

There is cool site called www.lineageosroms.org i found out about it and i like it but i got email asking for zip file for lineageOS15.0 well i responded that he should check my xda thread and that its unbootable.

About week ago i posted lineageOS15.0 zip file at hosting im using for another dev to see if anything is wrong with the zip file or the system itself and creator of this site probably found the link and posted a tutorial about it which is very cool but sadly the rom is unbootable and it could brick users phone if you dont know how to unbrick it.

So www.lineageosroms.org if you are reading this please delete that tutorial from your site because the rom could damage users phone if user is unable to unbrick it.

Also please follow this thread to see when will be the rom out and bootable.

I have also wrote a small txt file inside LineageOS15.0 folder at hosting that explains how to recover device from that state.

Thank you.
[Sony Xperia P, U, Sola, Go] Haxk20:
Ok tested the first ever 15.1 on our phones and still it doesnt boot.

Lokking at the last_kmsg again it is again the Selinux causing permissions issues.

Now i know why fedora users hate Selinux.

If you dont understand let me explain what happens at boot now:

Kernel boots up and after checks it tells system to boot.

But Selinux tells system what it can do and what it cannot do.

Well here is the problem for some unknown reason Selinux tells that system functions are not OK and therefor will not be runned.

That resoults in kernel panic and then reboot to bootloader.

This is totally weird because im running SElinux permissive which should allow everything but will just throw an message saying that we should not do that and blah blah blah.

But even while in permissive mode it doesnt allow them and it blocks them totally.

What i will probably do as [MENTION=5695278]ChronoMonochrome[/MENTION] already did on his ROM to disable Selinux completly.

Its a huge hack around android but its probably the only way to boot now.

If this doesnt help well then IDK what i will do.

Going to update my local Linegae repos and will build again.

Hmmmm i found out about audit2allow which may help me a lot now if it would work then i can make SElinux policy files and not spend all day making them from scratch

EDIT: OHHHHH audit2allow will save me loooooooooooooot of time i mean like a really looot of time.

i would have to write sepolicy for each denied message but well when i passed it to audit2allow it was done in a second.

If it even boots i will be totally happy.

Need to redownload entire source since update broke it. Well thats not good but will be fixed in few hours.

Really need to get bigger HDD or even SSD cause im out of space again.