yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] Haxk20:
Downloading sources right now.

Hopefully will build today or tommorow.

Also you may think why dont i just disable SElinux alltogether and well no issues then.

Well i tried to but it failed and kernel havent booted at all also if i have done that then the device would be vulnerable.
[Sony Xperia P, U, Sola, Go] Haxk20:
Dev Day

Well how beautifly spend day:

Wake up turn on PC.

Start compiling.

See errors i have leaved for today.

Go to XDA.

Fix errors thanks to [MENTION=5695278]ChronoMonochrome[/MENTION].

Start build.

Wait 4 hours.

See errors from wpa_supplicant8.

Add support for our device to it.

Feel good about it.

And well now just wait until it finish building (I estimate it to anothe 4 hours or more)

I will probably finish the build tomorrow and well test it.

Add the SElinux stuff build and test.

I have this week kinda free since im sick (Again. Ohhh i hate snow).

And this is the only thing i can do that is real fun.

Wathing YT for entire day almost can be boring i mean really boring.

Well eating is never boring.

And learning is not boring too.

But still its waisting time that i could be debugging the build while im sitting and waiting for it to build.)

Yeah i could use dev friend server to build it but its showing errors all the time so i cant do that.

But well you cant have great PC with 16GB ram and new ryzen CPU and VEGA GPU as student.

With that PC the build would take maybe hour or even less probably like 15minutes.

The build is at 21% after 5hours.:(:(:(

Well this is basically how my day looks like when i have the day free from stuff.

If i have school well then instead of sitting at PC waiting for the build i learn and do my homeworks and prepare.

If its hard day well no luck building then.

Ok that will be it for today.

Im stopping the build for today and will finish it tomorrow since my eyes cant take it anymore and i feel tired.

And for those that think that you cant feel tired while sitting at PC allday and wathing YT and fixing code.

Well i would give them to try it.

I know its not physical job but its psychical job and trust me its really tirring.
[Sony Xperia P, U, Sola, Go] Haxk20:
Ok so new build failed because some sources are outdated and some are uptodate and well what happens in situation like this is that i get loooot of errors that would take long time to fix because you dont know which repo is outdated and needs update.

If you think that i just update them well its not that simple because those repos are modified for our devices and i need to have those patches so i needed to fork all the sources i used and well i will probably have to update each one to lineage while remaining patches (You can do that by merging them).

i have forked all the repos on my github but need to update them by merging the lates staging/lineage-15.1 branch to each one of them.

This will take fw hours to do and well if anybody knows how to use git and github you can help me and update few repos and then make pull request

This would realllllly help me.

So until that i cant build because it would throw looooooooot of errors at me.
[Sony Xperia P, U, Sola, Go] hari crow:
please help for pixcom andromixx
[Sony Xperia P, U, Sola, Go] Haxk20:
If you havent noticed you are in Nypon thread and not adromixx.

Im only developing for Nypon and not any other phone.

If thread for your phone doesnt exist then post it in general thread.
[Sony Xperia P, U, Sola, Go] Haxk20:
Ok little update.

Im building 8.1 now again.

Thanks to [MENTION=5695278]ChronoMonochrome[/MENTION] i have buildable sources.

Now just have to make it boot up.

Which isnt easy.

The sources have SElinux disabled but kernel doesnt.

So i need to build kernel in different sources since ninja build system broke my kernel.

Also i will publish My Neutrino_Kernel which is kernel based on the old kernel i used but kinda edited and will support it.

This will save me time and will make it easier for me.

But number 1 pririty is making the rom to boot.

Will see what happens if i disable SElinux in kernel too maybe it will boot up.

From what i think disabling SElinux will make the device faster and easier for me to develop on it but once i make it boot i surely want to have it enabled since security is important.
[Sony Xperia P, U, Sola, Go] Haxk20:
So a little update the build is built but i need kernel with disabled SElinux but im feeling sick (Common cold and headaches) so i cant stay on PC for very long also my tablet where i build my kernel is broken :((((((( (Dont worry will be fixed in few days) then i can build kernel then flash it on device and test the rom. If it boots you will surely hear from me and probably see a new thread even that day. But thats unlikely sadly cause there is still lot of issues in it. But lets hope for the best right ??

But i promise once i feel better (That i can get out of bad for long time) i will build kernel and start working on it surely.

For now i must rest and drink that good tea.
[Sony Xperia P, U, Sola, Go] Haxk20:
Removed since issue fixed. Moderators please remove this.

Thank you.
[Sony Xperia P, U, Sola, Go] Haxk20:
Problem fixed!

I would love to say HUGE Thank you to [MENTION=5695278]ChronoMonochrome[/MENTION] who sent me an invite to one of the best free ssh servers. Also Thanks to insomnia247 for their server.

//This is not sponsored or anything i did not get money by saying this i just really love what their are doing.

ROM will be compiled on my PC but i got a server now where i can build a kernel which is great !!!!!!

That means i can start working on FOTA today or tomorrow. You know what since i have a great day today (No sarcasm i really have great day today) lets download the sources.
[Sony Xperia P, U, Sola, Go] Haxk20:
Please respond to this message

Question for users.

Do you want:

1. Latest TWRP but maybe with some bugs (All partitions may show up in it)

2. 3.1.1 but without bugs. Probably :laugh:
[Sony Xperia P, U, Sola, Go] 1Leo9:
If bugs are not critical, than I would choose the latest version.
[Sony Xperia P, U, Sola, Go] HiR3x:
i don't know my nypon is broken (the charging port ) but i don't know if worth to repair the phone im still in love with the nypon but now i got a brand new MOTO 2 2nd gen

for 52$ and shold i fix the nypon or hel him die ???

(edit)

A bugles version is batter and the 3.1.1 and 3.2.1 don't have s o much difference
[Sony Xperia P, U, Sola, Go] Haxk20:
Difference is that 8.1 install sometimes fail on 3.1.1

I will go with latest and if there are too many bugs I will switch back.

Also its up to you if you want to fix nypon but charging port is the worst. Since its hard to repair without board replacment

Its decided then. Latest TWRP and if there will be too much bugs i will switch to 3.1.1
[Sony Xperia P, U, Sola, Go] Haxk20:
OK I'm going with 3.2.1 since if I cannot fix those bugs I can easily switch back.

I'm almost done with init_sony.

I can finally build kernel in the sources.

I had to download different custombootimg.mk and port it to work with our device. I modified montblanc-common repo to make init_sony.

It isn't done yet but I'm getting very close. Also I had some time so I patched the kernel to disable SElinux. Its not permanent as I will revert it once I implement SEpolicy. But sadly I will not release disabled SElinux. This is a huge security issue and is not recommended by anybody to do when they are not devs. That is the reason. But since I have access to server I will port init_sony in cm12.1 sources and will try if its possible to show you my work sooner. But idk about cm12.1 since it was implemented in 6.0 so well I will try. Have a nice day.

Huge thank you goes to AdrianDC.
[Sony Xperia P, U, Sola, Go] Haxk20:
Weirdly i implemented but i still have the same issue the resoulting boot.img cannot boot at all (Black screem from start).

I think problem is not in custombootimg.mk file anymore since that one is only ported to work with our devices.

Maybe the build system is doing something wrong.

Well only one way to find out.

Make the boot image in cm13 sources (I have those on server for kernel building).

Will keep you updated.

Update1: boot.IMG created in cm13 sources but haven't tested yet. Will do once I get back from school.

Update2: Cannot test today. Too much stuff to do today. maybe if i found 1 hour by some MAGIC i will test and update this post.

Also since this is ROM thread im thinking of creating new thread in general stuff as my Dev diary. I will write there stuff of development so this thread doesnt get full of messages for no reason. But i need YOU to decide if its good idea and if you would like it to see this kind of stuff.

So write a comment here and tell me what do you think about it.

Update3: OK idk what is wrong but even in cm13.0 sources it doesnt boot up to sony screen. I found about 2 hours of time and idk how to solve this issue. custombootimg.mk file is the issue probably. Will replace it with old one and if it boots up then we know where is the issue.

Update(Again): without explaining I took original custombootimg.mk file and will firstly implement init_Sony in cm13 sources. Once that's working I will compile cm12.1 boot.img and also then I can work on lineageOS.
[Sony Xperia P, U, Sola, Go] rob9900:
I am on TWRP 3.1.1 and no working wifi.
[Sony Xperia P, U, Sola, Go] Haxk20:
Twrp have nothing to do with WiFi at all. WiFi is surely working. Do a factory reset and reflash kernel.

Also did you read the first post on this thread at all ? There is "Do not post bugs without logcat". I'm not a wizard and tell you whats wrong without logs. So if factory reset and reflash doesn't help then post here logcat.

But I'm pretty sure factory reset and reflash will help.
[Sony Xperia P, U, Sola, Go] Haxk20:
Still working on init_Sony guys but I'm getting closer to it. I hope to have init_Sony ported in 2 weeks hopefully sooner.
[Sony Xperia P, U, Sola, Go] Haxk20:
OK today for me start 7 free time days. What does that mean ? Well I will probably not sleep at all, be really mad sometimes and I will be asking myself the question "why it doesn't work ?" All the time.

On the bright side I will make some progress with init_sony. It is really weird since custombootimg.mk should be OK now but when IMG is created it doesn't work. Sadly I know 0 ways how to debug phone in this state. When the phone at least boots to logo and recovery I can debug it with last_kmsg.

Well let's get to work.
[Sony Xperia P, U, Sola, Go] asvetl:
Very, very big thanks for Your work and interest for this phone! :) For my wife lt22i is a love from first view and most usable phone (small hands and photography hobby :) ) Have another phone, but Xperia P always in bag. And i, if need, have free phone for tests - think, we can use our old phone for install any Your module or firmware.
[Sony Xperia P, U, Sola, Go] Haxk20:
That would be surely great but you need to know how to repair not booting phone and even soft-brick since sometimes even kernel doesnt boot and you will have black creen when you turn the phone on.

In this case just hold power and volume UP until you get 3 fast vibrations and then just reflash working kernel trough fastboot.

I will not be releasing the work to public very soon since lot of work is still needed to be done but im happy for your interest. :):)

And once i reeach a state where its fairly stable to use i will release. Testers will get it of course sooner but there is the risk of soft brick..
[Sony Xperia P, U, Sola, Go] Haxk20:
DONE

Today i fixed init-sony issues and now i can say: Welcome init_sony on Xperia P.

Yes that is right i have it ported and working on my device but its cm-13.0 sources so still waiting for it to boot the ROM(If it actually will even boot it).

I sadly cannot build it for cm-12.1 (And i want to) because the server im using have java 8 instead of 7 and android 5.1.1 cannot use java 8 sadly.

But now to fun stuff:

To get to recovery(Need to still test if its actually working HAHA) you dont press power button like crazy as we used to do. Now we press volume UP for FOTA recovery and Volume DOWN for boot.img recovery.

Device will boot and show the logo. But then the notification light will do Greed-Red-Green pattern if normal boot. and Green-Red-Blue pattern if recovery boot is selected.

OK but you may ask what was the issue why it didnt booted ?

Well im not sure it might be the los-15.1 sources as i was having issues with them before (This is the reason probably)

Or that logo.rle was not in recovery ramdisk.

Will try to build it in los-15.1 sources to see if that one boots too. if no we have the reason why it didnt boot. if it does we have the reason too.

Will not release it still due to few issues i have:

Need to make a flashable FOTA.zip to make it easy for everyone to go for init_sony.

And still need to test recovery boot. (Update: boot.img recovery is working, FOTA is working too.)

Booting issues due to cm-13.0 sources.(cm-13.0 boot works perfectly.)

Also HUGE HUGE HUGE thanks to [MENTION=2233641]AdrianDC[/MENTION] for helping me all the time. Thank you.
[Sony Xperia P, U, Sola, Go] Haxk20:
Sources on my github are finally updated acording to my local changes and are properly implemented. Going to build init_sony boot.img on my local sources and will see if those boot.

if that is the case then i can work on lineage-15.1

Update: Sadly it doesn't work but I probably know what's the issue but again sadly its not easy to fix.

What I can do at least is to to replace ramdisk in working boot.img and use that to work on los15.1
[Sony Xperia P, U, Sola, Go] asvetl:
I think, it's no fear for me :) Have mind, hand and expirience :)
[Sony Xperia P, U, Sola, Go] Haxk20:
Well OK if you are OK with soft brick and know how to repair it then OK.

I will post files somewhere once I get them to boot for me.
[Sony Xperia P, U, Sola, Go] Haxk20:
I was thinking and since I have cm13.0 sources on server as my sources for boot.IMG building I might use them and patch them and build them too while I get los15.1 image.

But I'm not sure if it is possible to build the ROM as build system is doing some weird things.

I probably found the issue in los15.1 boot image.

If I can fix it is questionable.

For now I can fix the image by replacing kernel in it.

I will patch latest TWRP and add here FOTA zip which you will flash in twrp.

This will get you prepared for boot.img jump since I'm not using old init system anymore in any of my sources

Also If I have the time I will edit sources for other NXP devices to include init_sony so P is not the only device from that series to get that ported.

Also I'm thinking of porting multirom properly this time.

I have also wrote to HardLight about porting los15.1 to NXP devices so far no response.

That's all for now.
[Sony Xperia P, U, Sola, Go] Haxk20:
Got all my sources on server finally and I can start building hopefully.

As I'm using patches for same CPU but different phone I need to revert a looot of them. But that's OK. As I'm at it I might just enable SElinux and just give it permissive. If I get it to boot by end of this month I will release it as pre-alpha. It will sadly have last year security patches since I want to get it working and then updating it.

But that's only if the sources actually compile.(I hope they do).

Having sources on server will save days of work probably since I won't need to be home to work on it. I could just work on it in school.

Yesterday was 1st April and I had a great joke prepared for XDA but I had work to do still and didn't find the time :(

But next year its going to be bigggggg.
[Sony Xperia P, U, Sola, Go] rasecpc:
Stuck at boot

Hey man, I have installed the rom and it works well, but as soon as I flash the gapps it keeps rebooting by itself over and over again, I don't know what to do, can you please help me out?
[Sony Xperia P, U, Sola, Go] Haxk20:
Try reflasing and wiping things I said in first post. It must work without an issue.

If it doesn't work after wiping and reflasing do a logcat and post it here(if you don't know how to do that then use google.
[Sony Xperia P, U, Sola, Go] UmairSaifullah:
why not build android go oreo
[Sony Xperia P, U, Sola, Go] Haxk20:
I have built GO edition. But as with other built of Oreo it doesn't boot. And I don't have the time yet to built another one. I hope to find some time to build it this week.
[Sony Xperia P, U, Sola, Go] Haxk20:
Project paused for few weeks. I hope to get back to it as soon as possible.
[Sony Xperia P, U, Sola, Go] samuel.caldas:
I am programmer, but I have not practice with android porting. how can I help you?
[Sony Xperia P, U, Sola, Go] Haxk20:
Sorry but if you never did android porting before then sadly you can't help. You could learn it fast but still it wouldn't be enough.

Still project is paused for unknown time since I have to work on project for school and that takes even the last free time I have and trust me I had little of it even before this project. When I'm not working on anything I occasionally look at the sources and fix few things but that is extremely rare that I found some free time.

I have cm13.0 sources on server and well I have access to the patches so I could just build it really fast but well I don't have the time right now. But if I find some of that precious time I will surely do.

Also the school project is project that I have to do for 1 year and work on it.

As always sources are on my github but I do not recommend doing anything with lineage-15.1 branch since its WIP and not ready at all.
[Sony Xperia P, U, Sola, Go] Haxk20:
I think its time for news.

As you have seen i havent said much for few weeks now and that will be the case for the next few months sadly.

I have no time for Lineage15.1 development now.

I have a school project that im working on and thats just because its from school so they give us more free time.

Im happy that i was able to choose my own projects since what t-ey gave us was just too easy and i would have been done in 5 days but i like challenge so i choosed my own project. Sadly i coudlnt choose android porting since this was already taken.

Im very excited about the project since its my project and its all new technology and if you happen to know geek and nerd you would know that new tech gets them excited.

So i will be working on that and another project on my own.

I cant say anything about the first project and also i dont want to but on the second one i can say that its based about privacy messaging.:)

But all of that doesnt mean that my github will be left sad in corner. No no.

If i find the time i will try to do as much things as i can in android.

But instead of trying to port directly Lineage15.1 i will do it the proper way and try to port older versions first and progress that way and again update and so on until we reach 15.1

This will take much less time to port but also will help to eliminate bugs. But since of my limited time it would take long time even for first update to 6.0

Ok thats all.

Wish me luck on my projects and well good day to you all.
[Sony Xperia P, U, Sola, Go] asvetl:
Happy luck for You! :)
[Sony Xperia P, U, Sola, Go] Haxk20:
I guess it time for update on what is going on.

As time gets closer to heat death of universe and my summer holiday i get more active on our lovely phone.

Also i have found a friend that kindly helps me with my issues in development.

If you have followed my github then you may have noticed that i have reopened MultiROM development and init_sony.

Only issue with init_sony is TWRP not booting up and Android not booting up.

While MultiROM is fine and working totally the only thing that keeps me from releasing it all is init_sony TWRP issues since i want to release init_sony and MultiROM at the same time.

I have asked for VPS from the free shell provider(insomnia247). (Not paid ad but they are just very good and stable and the server is powerfull but cant run heavy CPU intense processes since it would heavily impact other users experience).

The VPS would speed the development a loooooooooot and would allow me for much faster updates to ROMs. (Possibly even Lineage-12.1, 13.0 is WIP and not bootable for now).

So just lets hope for the best.

That would be all for now.
[Sony Xperia P, U, Sola, Go] Haxk20:
Well i will just say it without any stuff around it.

I got a full blown VPS.

For 2 months at least until i build my own.

The specs are amazing(16GB RAM, Intel Xeon CPU E5-2686 v4 @ 3GHz, 475GB SSD).

And if this wasnt good i got access to it totally free.

Yeah some people are really kind.

This will speed the development soooooooo much.

I have Lineage-13.0 sources downloaded there and RR6.1 sources.

RR6.1 sources are only for Huashan. (Releasing vere very soon)

Lineage13.0 sources will be usefull for MultiROM and Init_sony development. (IDK if i talked about that. If not then SUPRISE !!!!).

And maybe but just really maybe i will give Lineage13.0 another try.

Lineage15.1 or even 14.0 is out of reach for now as i need to get 13.0 to boot first of all.

Thanks to [MENTION=5695278]ChronoMonochrome[/MENTION] i have all the patches for our CPU and the rest. Also kadabra10 got it to work back in 2016 that way.

Thats just about it.

You wont hear from me for another long time again.

Well thats about it.
[Sony Xperia P, U, Sola, Go] Haxk20:
Supriseeeeeeee

Well.

Here is a huge suprise for you guys.

It took me 2 days with help of my friend.

But we managed to boot it up.

Its almost the same as kadabra10 build but totally newer and latest security patches.

Its in pre-alpha state but we are fixing what we can.
[Sony Xperia P, U, Sola, Go] Haxk20:
So i guess a little update on whats going on.

First of all me and my friend are trying to fix wifi but its very hard since the module doesnt load and if we try to bake it into kernel then we get errors all over the place.

Next on the list is BT.

Well i guess list of what is working and what is not may be usefull.

Working:

Boot

UI

RIL

Buttons

Wifi

Not working:

Bt

Camera (working on that too)

Audio

Sensors

Brightness control

Actually everything not listed in working.

Bt might be easy since we have 2 options

1: use bluedroid and have BT working in new versions of android too but requires lot of work.

2: use bluez ported but cant be used in newer versions of android but its easy to do.
[Sony Xperia P, U, Sola, Go] Haxk20:
A little update ?

Hmm yeah.

As of writing this I'm slowly cleaning up the kernel.

Wifi modules are finally loaded but still not working wifi but I'm on it.

BT is going to use bluez sadly since native implementation of bt in android isn't supported for our chip. Actually just libbt-vendor isnt yet created for our chip. (If anybody wants and have the experience to do that just PM me.)

Almost all sensors fixed.

Also i have fixed almost all issues related to init_sony and we have fully working FOTA recovery. Just one issue is not working reboot to recovery.
[Sony Xperia P, U, Sola, Go] HiR3x:
thanks for your work on the nypon ?? ,can be a taster for the fota recovery ?
[Sony Xperia P, U, Sola, Go] Haxk20:
I cant give one user something and left others waiting. Not fair.

And it isnt ready for public testing yet. I need to test it totally
[Sony Xperia P, U, Sola, Go] HiR3x:
No i don't think this is unfair (most of the developers in wip have always some testers. but you are the developer ,its you work, you decide ;)
[Sony Xperia P, U, Sola, Go] Haxk20:
Well i guess i have nothing to say to this. :D:D:D:D:D
[Sony Xperia P, U, Sola, Go] HiR3x:
waaawwww ?????

now wat other things dont work ?
[Sony Xperia P, U, Sola, Go] Haxk20:
BT not working, Camera, Audio. and things not working on cm12.1
[Sony Xperia P, U, Sola, Go] 1Leo9:
Impressive)
[Sony Xperia P, U, Sola, Go] Haxk20:
The server i used to build roms is off now and im going to build at PC again. It will take 1week hopefully to get it to the state it was on server. I have limited time due to job for summer. But i can build my server and buy notebook finally so i can work outside too.

Well thats all for this and next week
[Sony Xperia P, U, Sola, Go] Haxk20:
Hi. Its long time since i posted here and i have very good reason which i cant tell yet.

But i have created telegram group for us to talk.

https://t.me/joinchat/Dg8q4hGbYAAtbcgSlOhGng