yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 General] acabreram:
maybe could you do this for Z% Compact too?

Thanksss!!!

---------- Post added at 03:49 PM ---------- Previous post was at 03:46 PM ----------

wow bro you are fast!! Thanks!

maybe could yo do this for Z5 Compact too!
[Xperia Z5 General] celderic:
Great work,

With my kernel I can't seem to get the screen brightness adjustment working. I think I may of mistyped something, is yours okay?
[Xperia Z5 General] CTXz:
can't really tell since the recovery doesn't have a option for it
[Xperia Z5 General] CTXz:
OK, I tried to boot CM with the new kernel, unfortunately upon outs:

exec '/system/bin/sh' failed: No such file or directory (2)

working on it guys!
[Xperia Z5 General] CTXz:
Ok, I've added some missing dependencies/products that are required (Silly me still not used to QCOM and Sony). I'll try it tomorrow morning. I really hope it will reach the boot animation at least!
[Xperia Z5 General] CTXz:
TWRP 3.0.0.0 has successfully booted, i'll be releasing it soon, however for now it's only meant to flash CM (because of the fstab)
[Xperia Z5 General] CTXz:
Wonderfull, adb is now working!

First log, should be a easy fix

http://hastebin.com/oyugecaroz.cmake

Some vendor blobs are missing
[Xperia Z5 General] CLShortFuse:
Make sure you have the graphics blobs in vendor\qcom\prebuilt\proprietary\adreno\a4xx\vendor

The Z5 series use an Adreno430
[Xperia Z5 General] CTXz:
Crap, I literally pulled so many blobs that I don't need but of course I forgot those :silly:

Will pull them tomorrow. Thanks!

Other than that, my SSD arrived today. I'm re downloading the sources now and they should be done by tomorrow. Can't wait for that super fast compiling speed!! :good:
[Xperia Z5 General] CTXz:
ditto of post below

XDA app, why u do this!
[Xperia Z5 General] CTXz:
ok, I need some sony help on this one. TWRP 3.0.0 from me used to boot up after installing [MENTION=273310]monx®[/MENTION] 's TWRP 2.8 kernel. However after installing the 3.0.0 kernel by [MENTION=273310]monx®[/MENTION] , running fastboot boot into my twrp no longer boots :( This means that I am unable to flash CM due the fstab diffs

EDIT: Looks like I found the problem
[Xperia Z5 General] CTXz:
Some great news

My super kind friend will borrow me his Z5 for an entire day tomorrow. I'll try to get as much work done as possible!
[Xperia Z5 General] CTXz:
Oh hell yeah
[Xperia Z5 General] uripiruli:
[/QUOTE]

Booting the kernel or the rom???

Enviado desde mi LG-D802 mediante Tapatalk
[Xperia Z5 General] CTXz:
Obviously the ROM. But it's still bootlooping.
[Xperia Z5 General] uripiruli:
I hope you get it!!

Enviado desde mi LG-D802 mediante Tapatalk
[Xperia Z5 General] celderic:
Did you get graphical glitches on the boot animation on the bottom half of the screen?

The bottom half goes fuzzy and bootloops on my build, I think I did something wrong with the graphics blobs.
[Xperia Z5 General] CTXz:
Yes. most likely kernel related
[Xperia Z5 General] zacharias.maladroit:
Just a quick question before proceeding & saving some headaches

the architecture for lunch is

aosp_arm64-eng

correct ?
[Xperia Z5 General] CTXz:
Can't tell. Remember I'm building CM not aosp.
[Xperia Z5 General] celderic:
http://developer.sonymobile.com/downloads/tool/software-binaries-for-aosp-m-android-6-0/

"2016-02-02: AOSP Marshmallow binaries for Android 6.0 updated with stability improvements for the camera, updates for Adreno, ril and second ril as well as sensor fixes. For devices based on the Qualcomm MSM8994 platform, there are also additional updates to sensors, including GPS, and basic implementation of the front-facing camera."
[Xperia Z5 General] CTXz:
I'm using stock binaries, most of them work quite well. If some don't work, I can easily replace them with those
[Xperia Z5 General] CTXz:
Here is a little status update : I've ironed out most of the logcat errors but rild and/or media crashes on init call, meaning that all child processes get killed (Zygote etc). I've been quite ill the last few days, getting better, however I'm on vacation next week and obviously won't be able to test my friends device. However I do have some good news, especially for the Z5 compact owners here. In about 3 weeks I will get myself a Z5 compact, meaning full time development. If CM boots on it, it WILL boot on the Z5 too
[Xperia Z5 General] zacharias.maladroit:
[MENTION=6584695]CTXz[/MENTION]

Thanks a lot for the status update !

get well soon and enjoy your week off :)
[Xperia Z5 General] acabreram:
Oh Men you did my Day! Thanks!! I am waiting cm forma Z5c!
[Xperia Z5 General] CTXz:
A little update again : Ordered my Z5 compact today :victory: Should arrive in two days!
[Xperia Z5 General] beggar23:
Oh, now I am superexcited! :D
[Xperia Z5 General] ongjingxian:
How? Does z5 and z5c run on same firmware?
[Xperia Z5 General] CTXz:
They share the same platform called Kitakami (msm8944)
[Xperia Z5 General] PlasmaX1:
[MENTION=6584695]CTXz[/MENTION]

Any luck with the Z5c?

The suspense is just killing mee
[Xperia Z5 General] CTXz:
Arriving in two days
[Xperia Z5 General] zacharias.maladroit:
you have a really bad postal service :(

anyway - the basics are all working - so it should be easier to get CyanogenMod (or any other enhanced AOSP ROM) running

http://xdaforums.com/showpost.php?p=65804332&postcount=36
[Xperia Z5 General] CTXz:
Well not bad postal service but out of units here ;)
[Xperia Z5 General] CTXz:
1st day with z5 compact and I absolutely love it!!!!
[Xperia Z5 General] celderic:
Glad to hear it :)

Just curious, what Linux distro do you build with? I've been using arch for a few years but recently I've been trying out Linux mint and have had good results.
[Xperia Z5 General] CTXz:
Good question, I've been jumping from distro to dristro. I started at ubuntu, going trough fedora, arch, deepin, debian and guess what, I eventually ended back at ubuntu. See ubuntu 'just works". Fedora has a nice packaging system but tends to get unstable and shoot itself into the head. Arch was great, but wasn't optimal for android building (ex python), it also took a hell of a lot of time to set up. Then deepin was quite OK until it began crashing and eventually killed itself. Then comes debian, sooo good until grub just didn't want to show windows, after two days of arguing with my PC I lost and went back to good old ubuntu with a own compiled desktop.
[Xperia Z5 General] albertobom:
Can't wait for cyanogen ?

Enviado desde mi E6653 mediante Tapatalk
[Xperia Z5 General] celderic:
I had the same experience with fedora, think I used v19 and it's at v23 now.

I've heard deepin is good maybe I'll give it a try in a VM in the next few days.

Just got my new motherboard and cpu (mini itx dev machine) currently downloading sources and will try to build soon :)

Think I may change over to xubuntu/lubuntu instead of Linux mint.
[Xperia Z5 General] CTXz:
FTW mITX!!!
[Xperia Z5 General] zacharias.maladroit:
Gentoo and Arch all the way - lol :p

I'm running the AOSP-build for some time (6.0.1_r17),

and it took some effort to get it in a usable state:

mainly depending on the kernel because the out of the box google compiled built are always kind of laggy - also the hotplug framework (cpuquiet) isn't that great,

I replaced it with a multi-hotplug framework used by the guys of the Nexus 6. Intelliplug is just great !

It took quite long because there were some compilation issues (ipv6 config and the RNG showed errors due to fips stuff),

so if you've trouble to build a custom kernel you can take a look at the following branch:

https://github.com/zachariasmaladro...A.BF64.1.2.2_rb4.7_12.03.2016_no-fips_frandom

where I reverted the fips HW RNG stuff and added frandom - that should get you a workable base fast,

without frandom the entropy might be too low with the MSM RNG removed.

The main bad thing right now is the camera having horrible quality,

could be related to upsteam (sonyxperiadev) removing additional sony cam v4l2 driver stuff and/or that not working on opensource, haven't taken an in-depth look at it yet.

Phone-calling works, surfing (data), microSD, wifi, etc.

and all the other things to use it as a daily driver,

only the camera being in a sorry state hurts if you're using it,

also there's a FM radio driver (silabs) but of course on AOSP there's no app,

I hope that the FM app on CyanogenMod is usable with it.

If you're interested I've written some more experience at http://xdaforums.com/xperia-z5/development/aosp-marshmallow-build-t3275953
[Xperia Z5 General] CTXz:
Are you actually using the proprietary blobs provided by sony developers or from your own device?
[Xperia Z5 General] xdakusi:
How are you going to handle the DRM-/device key loss during unlocking the bootloader? Will you use the approach of Tobias Waldvogel , come up with a new approach or just ignore the DRM keys and accept bad camera quality etc...?

BTW thanks for your porting effort!
[Xperia Z5 General] CTXz:
DRM will be a late priority, first we need to get it booting
[Xperia Z5 General] zacharias.maladroit:
yeah, the binaries provided by sony like indicated at

http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/

http://developer.sonymobile.com/kno...e/open-devices/list-of-devices-and-resources/

http://developer.sonymobile.com/downloads/tool/software-binaries-for-aosp-m-android-6-0/

(currently v3)

except for the venus* files, those are from the lollipop rom, those appeared to work - the errors went away (wrong firmware)

but there are 2 additional errors for non-matching firmwares,

no idea which files they point to :confused:
[Xperia Z5 General] zacharias.maladroit:
You probably already know this,

it's nevertheless pretty useful - thus posting as reference in case anybody wants to port to other ROMs, also:

http://xda-university.com/as-a-developer/porting-aosp-roms-using-source-code
[Xperia Z5 General] CTXz:
Mind checking the op ;)

*Inserts your signature gif here*
[Xperia Z5 General] zacharias.maladroit:
well, it IS related,

found it pretty useful in relation to the default cyanogenmod porting guide ;)

so perhaps if someone feels like supporting the port - there's more background info
[Xperia Z5 General] CTXz:
Ahh, I will most likely write a guide separately specificity for the Z5 series since it's quite a big device but lacks allot of development :)
[Xperia Z5 General] CTXz:
Brilliant news! Z5c booted CM recovery after first try
[Xperia Z5 General] zacharias.maladroit:
Congrats ! :D

Next step:

boot of the ROM with the GUI being stuck (only bootanimation showing) or similar :p

or even skipping that
[Xperia Z5 General] CTXz:
Here's the status : I got to bootanimation (this time without screen flicker) and was hoping that the device will boot, unfortunately we still got the same problem like on the Z5. Kernel starts, kernel dies (services just start crashing)...

For anyone interested in the log

I believe this is the important part : http://hastebin.com/eqameqapab.vhdl

However a full dmesg from boot to 198 seconds after boot is located here : http://hastebin.com/unulahaweh.vhdl

From what I could find it looks like audio can't route correctly, meaning rild is crashing. This triggers a chain reaction and causes every child process to crash and die. I'll try to exclude rild in my next build or at least the init call
[Xperia Z5 General] zacharias.maladroit:
thanks,

yeah, looks that way,

I had some trouble with selinux on AOSP, so I wanted to suggest to check that but you already got it disabled on the kernel command line (androidboot.selinux=permissive)
[Xperia Z5 General] CTXz:
Wow, so I switched the blobs with the sony AOSP ones and it showed me optimizing apps for a few seconds, unfortunately it then rebooted but way better than before!
[Xperia Z5 General] CTXz:
Looks like memory crashing is caused by dex2opt. Building without dex2opt thread limits at the moment. Let's hope it will work, else i'll have to build with dex2oat completely shut off,
[Xperia Z5 General] CTXz:
Appologies for the rotated pics, I was very close on time when I uploaded them. Cheers guys!

Expect a new thread on the Z5 compact forum soon
[Xperia Z5 General] uripiruli:
WOW!!!

Congratulations, you've got it !!
[Xperia Z5 General] Flummi.FFM:
[MENTION=6584695]CTXz[/MENTION] my best congrats to your work!!!! I wish some more people were interested in developing for Z5 like you.

But unfortunally the phone seems not to be "old enough" that good Devs focus on it......

Go on man :good:
[Xperia Z5 General] Dockyy:
very nice :) hope to see release soon ;)

ps: http://www.cyanogenmod.org/blog/cm-13-0-release-1
[Xperia Z5 General] beggar23:
Yay!
[Xperia Z5 General] CTXz:
Hey,

First of all thanks, it's nice to see people apriciate my work :D

Here is what I believe to be the reason why this device lacks development. I was surprised to see that there is barely any development going on. However what most likely is the reason is that many good developers live in the US and as you guys probably already know, when the device came out Sony wasn't doing very good financially. When the phone DID arrive in the US it was too late. Most devs already went for a different cheaper and maybe even better device (ex. One Plus 2 or One Plus X).
[Xperia Z5 General] Flummi.FFM:
Lets hope that our little community gets back some good guys when the z5 gets cheaper.......

I am very sad that i dont have the knowledge nor the ability (because of Device guarantee) to help as long as we dont have lb root......
[Xperia Z5 General] uripiruli:
I hope if your cm 13 build will work fine in the future, some people-devs will could use your efforts and they will buid diferents roms using your base [MENTION=6584695]CTXz[/MENTION] and build roms unnoficials like dirty unicorns, Blisspop etc.... Dreaming is free....
[Xperia Z5 General] xdakusi:
great!! thanks alot man! Your work is absolutely appreciated!
[Xperia Z5 General] zacharias.maladroit:
Definitely !

Yeah, with the first custom AOSP-based ROM and outlying of the steps it should get easier and easier and the diversity might grows exponentially :)

There's already an "official" base we can use to port other ROMs which should help in getting an overview what repositories are needed for the kitakami device base:

https://github.com/SonyAosp/platform_manifest

I'm however curious what steps [MENTION=6584695]CTXz[/MENTION] did take to get the CM recovery to work,

since currently I'm relying on the TWRP image provided by [MENTION=5169444]AndroPlus[/MENTION] , admittedly - I haven't really taken a deeper look at it, my focus is more on the kernel and its (potential) issues
[Xperia Z5 General] CTXz:
Here it is guys, CM13 for the Z5 Compact : http://xdaforums.com/z5-compact/development/rom-cyanogenmod-13-sony-xperia-z5c-t3339930

Apologies for the delay
[Xperia Z5 General] albertobom:
Does it work for Z5?

Enviado desde mi E6653 mediante Tapatalk
[Xperia Z5 General] CTXz:
Z5C only
[Xperia Z5 General] albertobom:
Z5 will be next? ?

Enviado desde mi E6653 mediante Tapatalk
[Xperia Z5 General] CTXz:
I'm sorry but this is a development related thread, not a Q&A

Don't get me wrong but there are rules set up here
[Xperia Z5 General] albertobom:
OK. Sorry.

All the best,

Enviado desde mi E6653 mediante Tapatalk
[Xperia Z5 General] gm007:
This thread should be closed since it's not for z5.
[Xperia Z5 General] CTXz:
Read the OP, my friend owns a Z5 and I will be making my way torwards it when I'm back from vacation

Anything more to say?
[Xperia Z5 General] CTXz:
Just to make it more clear guys, our objective is still to support all Z5 devices and just because I work mainly for the Z5 compact (Because I own the device) doesn't mean that this entire thread is z5c related now.

I have updated the OP to make it more clear, sorry for the confusion
[Xperia Z5 General] zacharias.maladroit:
Yeah, have a great holiday :)

Sure,

why would you post it on the Z5 forum in the first place when you could have posted it on the Z5 compact forum ?

Stroking ego ? Seeking attention ? :D

Come on folks, don't be so fast to judge :(
[Xperia Z5 General] zippy01:
I could be wrong but I believe he started working on his friends Z5 before he got his Z5c
[Xperia Z5 General] CTXz:
It was irony mate ;)

Anyways, to be honest, at the time of making this thread I wasn't even sure if my future phone would be a Z5C. The Kitakami/Z5 development project had a huge impact on what device I wanted to buy. I was looking for a good performing but still small and not too expensive phone with a decent dev platform. It was either a go for the Honor 5x (Cause of it's price) or Z5C. When my friend bought the Z5 and let me work on it, I knew what my decision was :)
[Xperia Z5 General] zippy01:
Lol well I'm glad anyway might give development another go when I have some time seems there is plenty of people willing to test
[Xperia Z5 General] Uclydde:
So since CM is now booting on your Z5 compact, shouldn't it boot on the standard Z5 too? Seeing as this is a development thread, you could make a new build for the Z5 and post it here for testing. I'm sure there would be people who would be more than willing to test it out for you.
[Xperia Z5 General] CTXz:
I will probably do this when I'm done fixing some of the bigger bugs on the Z5 Compact. Building for the Z5 premium at the moment (so [MENTION=5864662]moonbutt74[/MENTION] can finally stop whining since all of his builds don't boot :D) and a build with (hopefully) some fixed bugs for the Z5 Compact.
[Xperia Z5 General] :
Whine, complain, xD
[Xperia Z5 General] zacharias.maladroit:
Hm,

now with thermal regulation and other stuff added - not sure how much use it still is:

I made a few preliminary steps towards Resurrection Remix and realized that it's based on CyanogenMod :silly:

So I figure I might as well see if there's things here that I can help with - spare time is getting shorter already and I'm glad I got the basics on the stock and AOSP-based kernel figured out so far to have it working,

Care to share your modified manifest.xml so that I can get to the same state as you ?

Attached is the modified manifest.xml from RR - some things are redundant but perhaps you'll spot something that you left out in yours:
[Xperia Z5 General] CTXz:
Thermal regulation definitely helped, no more random reboots and the device runs way cooler than on stock

Anyways, there is still a hell lot of stuff to fix and that combined with all my other ROMs is quite stressfull.

Here are the manifests for suzuran (latest) https://github.com/Sony-Kitakami/android_.repo_local_manifests/tree/cm-13.0-suzuran
[Xperia Z5 General] CTXz:
I have good news for all the Z5 premium users. [MENTION=5864662]moonbutt74[/MENTION] could confirm that CM is now booting on the Z5 Premium, however it's up to moonbutt when it will be released. For all Z5 users patience is the key. CM will be ready soon
[Xperia Z5 General] sandoliv:
hello, I'm really looking forward to arriving on our CM13 XEPERIA Z5.

Thank you for taking your time for our pleasure. :)
[Xperia Z5 General] paulle:
Same here from my side.
[Xperia Z5 General] CTXz:
I'm meeting my friend today again, development for Z5 coming up
[Xperia Z5 General] zacharias.maladroit:
All files should be in place for sumire to build now,

haven't triple and quadruple checked, however :D

There's some packages missing for it to build (e.g. mvn :confused: == maven , "Project Management and Comprehension Tool for Java")

so it's not exactly that straight forward to build

---------- Post added at 10:56 PM ---------- Previous post was at 10:04 PM ----------

@CTXz , [MENTION=5864662]moonbutt74[/MENTION]

There's potential instability with using MSM Performance and CPU Quiet - both address hotplugging,

[MENTION=5169444]AndroPlus[/MENTION] ' because of that has disabled CPUQuiet in the kernel

there's potential performance improvements to gain and perhaps some minor battery runtime reduction (in minutes from what I read across the web) but with most of the cores being always on

and with efficient power management (e.g. LPM, normally working L2 and L3 low power mode) it shouldn't be too bad.

On the other hand: my experience with CPUQuiet has been that the device noticably runs colder but also has access to its full potential,

it might need some careful tweaking however (e.g. cpufreq interactive governor) and disabling of MSM Performance's control over hotplugging in favor of CPU Quiet - it that was the decision ...

MSM Performance would be the easier route ...

There's also other mechanisms such as MPDecision which is used in certain CyanogenMod devices ...

well, this is probably a mid-term decision since this is port is just at the beginning.

However I wanted to mention this beforehand in case some users report instabilities, random reboots or other issues and there were no clear causes to be found
[Xperia Z5 General] :
[MENTION=6584695]CTXz[/MENTION] ,

[MENTION=5410058]KbaB.BroS[/MENTION] has been testing for me, current state/build is:

Opengapps functional.

Mac address will randomize every reboot, not my personal fav, but ppl seems to want that. Mentioning it in case you use mac filters on your router. I am working/re-working kernel to "get rid" of that feature.

The kernel itself has been patched for usb gadget support, see pelya/android-keyboard-gadget

I am working on getting uvc support functional and correct, uvc is for webcams and the like, currently you would need a powered otg cable and a specialized app like legitdashcam.

Still trying to sort out storage issues, build has exfat support, kernel has exfat support but somethings porky with vold see here and here.

as per KbaB.BroS current report:

[MENTION=3037651]zacharias.maladroit[/MENTION] ,

hi for mvn fubar apt-get install maven

if jack server issues in boardconfig

ANDROID_COMPILE_WITH_JACK := false

i definitely recommend building non block based ota

BLOCK_BASED_OTA := false

i'm jumping back and forth between krabby's aosp build and my current cm13 build adn haven't noticed anything particualrly crashy/laggy or impressive

my current kernel commandline is

BOARD_KERNEL_CMDLINE := androidboot.hardware=satsuki console=ttyHSL0,115200,n8 user_debug=31 androidboot.selinux=permissive msm_rtb.filter=0x3F ehci-hcd.park=3 lpm_levels.sleep_disabled=1 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y dwc3_msm.hvdcp_max_current=1500 coherent_pool=2M boot_cpus=0-5 enforcing=0

-------------------------------------------------------------------------

I am not on the repo kernel source ATM, my current working source is here.

I am additionally working things in my current working source towards nethunter and other useful things.

With the repo kernel source the build is at the same state.

m