yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] paulomario77:
Am I missing something? Please bear with me, I'm not a developer. I went to http://xdaforums.com/showthread.php?t=2469191 and downloaded 3 FTF's:

C6943 14.2.A.0.290 Generic BR 1276-7099_R2B, which is for my Brazilian model;

C6902 14.2.A.0.290 Generic IN 1277-2364

C6903 14.2.A.0.290 Central Europe 1276-4314_R1B

I extracted the kernel.sin file from each FTF and all 3 kernel.sin files are different from each other. Even the file sizes don't match.
[Xperia Z1 Original Android Development] RHBH:
The kernel sources are the same for all of them, look at Sony Developer World, also you can look at the build time.

But if you're not happy with the kernels provided here, you can always download the kernel sources from Sony Developer World and compile your own kernel.
[Xperia Z1 Original Android Development] paulomario77:
(deleted)
[Xperia Z1 Original Android Development] B1nny:
I really have no clue what performance issues you're speaking of. I am running the stock kernel with TWRP baked in and I have no problems whatsoever. Everything works super smooth, just as smooth as it did when I had a locked bootloader, thus was running the stock Sony kernel.

What and where is the proof for the performance issues you're talking about?
[Xperia Z1 Original Android Development] paulomario77:
My device is a Brazilian C6943. Other people from Brazil are also reporting terrible performance when using one of the .img files from the OP. You don't even need a benchmark app to assert the poor performance. For instance just try to install an app from the Play Store, it takes ages. Intall the Xposed framework, takes ages. Apps that require root take a very long time just to trigger SU prompt. Etc. Oh, and now and then the phone produces an inexplainable short vibration.

The C6943 has digital TV support, wchich is something that sets it asside from other Z1 models.
[Xperia Z1 Original Android Development] Nagato Yuki:
1) boot.img = zImage of Kernel (board related) + RAM Disk + dt.img (board related)

kernel.sin would include the these directly with Sony digital signature for flashmode

2) You could extract out these files directly from Kernel.sin

But you cannot combine non-official's ones back to kernel.sin for xperia 2012/2013 phone, since you cannot signature the files. Then your Q3 would be never accomplished.

However, it should be easy to create the boot images for C6943. It may be done with just replacing RAM Disk to one with recovery.

Then the remaining issue is that, if I just wanna fix the remount /system in OS issue, would just comment out these in init.sony-platform.rc:

# Enable Sony RIC
mount securityfs securityfs /sys/kernel/security nosuid nodev noexec
write /sys/kernel/security/sony_ric/enable 1

what about the remaining RIC service part? Should it be commented out also?

service ric /sbin/ric
user root
group root
oneshot
class main
[Xperia Z1 Original Android Development] B1nny:
I see, would it be possible to provide both a logcat and a dmesg from the kernel in the OP and the stock kernel while trying to install an app for example? If those logs show any unusual behaviour the kernel devs might be able to fix it. As of right now they would just have to do random guesses.

You can obtain a logcat by turning on USB debugging in the developer options in the settings application. Once that is done you can use these 2 commands to get a logcat and a dmesg.

adb logcat
adb shell dmesg

Then post the output here, as an attachment or on pastebin/pastie for example.
[Xperia Z1 Original Android Development] Nagato Yuki:
I'm not a developer, too :laugh:

I just managed to modify (without recompiling Kernel source code) the Ramdisk to disable RIC.

But you still need to know how to unpack and repack boot images :eek:

Since I am not a developer, I wanna anyone to correct my steps:

You could use FlashTool to extract out these files of your kernal.sin

Tool > SIN editor > select kernel.sin (you should just un-zip FTF to get kernel.sin)

Extract data, you could get kernel.elf

Then Extractors > ELF

you could get these files:

kernel.elf.Image (zImage of Kernel, you could rename it to zImage)

kernel.elf.ramdisk.gz (RAM Disk)

kernel.elf.3 ( you should rename it to dt.img)

replace the the RAM Disk with one include recovery and remount fix one.

(NOT the img in OP, you should get the RAM Disk image from these files)

then you pack them into boot.img with mkbootimg which mention in krabappel2548's work: Xperia Z1 kernel building instructions

the command for packaging boot image with Z1 4.3 would be

./mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x37 ehci-hcd.park=3 lpj=192598 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y vmalloc=400M" \
--base 0x00000000 --kernel [B]zImage[/B] --ramdisk [B]ramdisk.img[/B] \
--ramdisk_offset 0x02000000 -o boot.img --dt [B]dt.img[/B] --tags_offset 0x01E00000

The bold part would be the filename of parts.
[Xperia Z1 Original Android Development] RHBH:
Here you go: http://xdaforums.com/showpost.php?p=48711068&postcount=3
[Xperia Z1 Original Android Development] B1nny:
Ah sorry.

By typing "adb logcat > text.txt" your screen won't say anything until you press ctrl + c. What it does in the background is create a file called "text.txt" and writes the output of "adb logcat" to that file. So you enter the command "adb logcat > text.txt" (you can name this file anything you want) and then try to install an app for example. When you're done you press ctrl + c and open the "text.txt" file. Now you see the output of the "adb logcat" command there, that is what we need.

As for dmesg, you should run adb as root. You can do this with the following command "adb root", that should restart the adb daemon on your phone as root. You do have to be rooted for this to work though. After that it should work fine. Also note that again you have you write the output of dmesg to a file as follows "adb shell dmesg > text.txt". I hope it helps!

Edit:

Don't forget to search through the outputs of either your logcats or dmesg files for personal information, email addresses, passwords, pins, names, whatever might be in there. Normally it shouldn't show that information, but who knows.
[Xperia Z1 Original Android Development] paulomario77:
adb root returns "adbd cannot run as root in production builds". This is with the stock kernel. ADB shell IS on SU's whitelist.
[Xperia Z1 Original Android Development] paulomario77:
When booting up after flashing TWRP.img, Im greeted with the message: "com.android.phone has stopped".

Anyway, logcats are attached. I installed https://play.google.com/store/apps/details?id=com.gm.decolar.

When using the TWRP.img kernel, my phone vibrated several times during the Play Store installation.

I couldn't obtain a dmesg output using the stock kernel, see my earlier post. The attached dmesg file refers to the custom kernel, but was obtained after the Play Store installation had finished. Is it OK?

Thanks.
[Xperia Z1 Original Android Development] shteren:
just a quick question, i have the TWRP kernel from the op, for my understanding those kernels are stock kernels with only sony RIC disabled.

what happens if i try to relock bootloader with one of those flashed? will i soft brick it?
[Xperia Z1 Original Android Development] MohammadAG:
The zImage (actual kernel) is the same, the ramdisk has additional added files. The combined result (boot.img) is unsigned, so yes, the bootloader will refuse to boot it.

Sent from my Sony Xperia Z1 using Taptalk
[Xperia Z1 Original Android Development] shem2409:
Full root requires an unlocked bootloader. With a locked bootloader you can get root which does not allow writing to system. This means no Xposed Framework. You can still use apps such as Titanium Backup. At the moment there is no solution.
[Xperia Z1 Original Android Development] iBuzman:
^^ as posted previously, there is a "dirty" solution. Partial root (eg system no r/w) can be fixed with a startup script that fixes mount issues and allows full root. (note, partial root is required to run the script).

See --> http://xdaforums.com/showthread.php?p=48653946
[Xperia Z1 Original Android Development] iBuzman:
^^ I'm unlocked so can't confirm. If you can flash superuser186 then this is the easy bit.
[Xperia Z1 Original Android Development] monx®:
XPOSED on LOCKED BOOTLOADER chek it out here
[Xperia Z1 Original Android Development] Moscow Desire:
Keep it on topic

Ok folks, did a little thread cleaning as it's getting way too "OFF TOPIC".

As always, what starts out with good intentions, goes to pot as more people asking about root. This isn't what the thread is about.

This isn't a place for new folks to learn about compiling kernels and splitting boot.img. XDA has plenty of threads about that in the University.

So I deleted a few recent posts, if yours got caught up in it, sorry. Let the folks who have some experience discuss things without others getting involved, other wise, Moderation will have to close the thread, and they will take their discussion to G+.

No More Off Topic

Thank you

MD
[Xperia Z1 Original Android Development] mpkossen:
Thanks for this! It worked like a charm. I now have 4.3 with an unlocked boot loader and full root! Basically the way I wanted to have things from the beginning.
[Xperia Z1 Original Android Development] slonn:
I'm on unlocked bootloader. Is it still necessary to flash the superuser186 zip after installing the kernel with Philz recovery via fastboot?
[Xperia Z1 Original Android Development] ffp.:
I believe it is.

I can't write /system and i got the command lines in init.sony-platform.rc, but if i open terminal and type the comands OP posted it works. Why is that?
[Xperia Z1 Original Android Development] blakwhite:
How do we update Philz recovery version?
[Xperia Z1 Original Android Development] jmgg2k:
[MENTION=2011359]MohammadAG[/MENTION]
[MENTION=3411267]lzyllp[/MENTION]

Could you please make a kernel with CWM recovery for UB on .136 ?

Thanks!
[Xperia Z1 Original Android Development] Destroyedbeauty:
And with RIC disabled for full root access?
[Xperia Z1 Original Android Development] meetdaleet:
http://xdaforums.com/showthread.php?t=2632808

DooMLoRD released a stock Kernel with CWM and fixed RIC for full Root.

Regards

Meet

gesendet mit meinem ololol Photohandy via TapaTalk
[Xperia Z1 Original Android Development] eletricx:
Sorry for asking you a stupid question.

I installed latest xposed 2.4.1 into my z1 with 136 FW, but xposed didnot work, and the log file said the same problem with you. "java.lang.NoSuchMethodError: "

Did I do something wrong that lead this problem?
[Xperia Z1 Original Android Development] omegahanggara:
What is your Xposed Installer version? Mine is 2.4.1 Xperia Test.
[Xperia Z1 Original Android Development] eletricx:
I just found a xposed framwork apk for xperia.

And it worked in 290 FW, I'm flashing 136FW, and try to find whether it work as well.;)
[Xperia Z1 Original Android Development] ffp.:
When i was on .290 i managed to get full root using sgmanager and a script to edit the value of sys/kernel/security/sony_ric/enable every time my phone booted. Now that I updated to .136 i can't get full root this way (I do have root, just can't rw system). can someone please help me with this?

I don't want to use custom roms or kernels because my model is C6943 and if i do i will lose digital tv.
[Xperia Z1 Original Android Development] munjeni:
If you want to understand how we are lucky with RIC, look up here https://github.com/munjeni/nut_root/commits/master Mistery finaly solved after 5 days of trying to see whats hepening with RIC! There is RIC timing isue in busy mount period so with our busy time we are sooooo lucky! Probably Sony will sollve that so we maybe will have root inposible in future builds! :)
[Xperia Z1 Original Android Development] lozohcum:
[MENTION=2011359]MohammadAG[/MENTION]

disabling Sony RIC in kernel is only the matter of ramdisk or do I have to apply a patch?

We have that problem with Xperia M2 on KitKat.

I put this sctipt to init.d

#!/system/bin/sh
echo 0 > /sys/kernel/security/sony_ric/enable

But after every boot the value is always "1"
[Sony Xperia P, U, Sola, Go] Rob80:
Hi, does anyone know how to increase the in-call volume on Xperia Go? I tried apps like volume booster et similia, but they didn't work...

Thanks in advance :)
[Nexus 5 Android Development] kecinzer:
I'm member of AOKP team and I decided to share my personal builds of AOKP ROM called AOKPK.

AOKPK is unofficial AOKP ROM compiled with KECI-SM 4.8.4 toolchain (thanks to Paul Beeler and Chet Kener) and with some other stuff.

This ROM was created for my personal needs. If you don't like some major part of it, don't ask to change, just use official AOKP builds. But, If you have some tips for minor patches and features, you can ask for it. Just attach link to github/gerrit.

AOKPK is non-CAF and uses my fork of franco.Kernel with latest linux patches and O3 optimized.

So, what is inside?

All official features from AOKP (https://github.com/AOKP, http://gerrit.sudoservers.com/#/q/status:merged,n,z)

Compiled using SM 4.8.4/4.10.0 toolchain (https://github.com/kecinzer/GCC-UBER)

Included forked franco.Kernel (https://github.com/kecinzer/francoKernel_hammerhead) in-line builded with some added stuff

B&W boot animation

cLock (aka Chronus) with integration into RomControl

Removed AOSP Calendar

ART compatible

Many usefull cherry picks from AOKP gerrit (http://gerrit.sudoservers.com/#/q/status:open,n,z)

I compile ROM at daily basis so consider it as daily builds.

All builds are available on goo.im (http://goo.im/devs/kecinzer/aokpk/hammerhead) with Goo Manager OTA update compatibility.

Temporarly you can download also here (http://aokpk.no-ip.org/hammerhead).

I recommand TWRP Recovery and Goo Manager (for recieving OTAs).

Please don't ask about changelog, because I adding cherry picks often and it's very hard to keep trail with it. But I'll try to make changelog for "stable" builds.

And please don't expect much of support, because as it's been told - this ROM is primary dedicated for my own needs.

BTW. I also building for FLO and MAKO.

Gapps

I use Banks standard - http://goo.im/devs/BaNkS/GApps/4.4.2

If you like my builds you can buy me a beer by "Donate to me" button :).

Donations

mrbackdoor - $25

brandon fry - $20

tehSecret - $20

Gustave17 - $15

hazopoulis - $6

Thank you!
[Nexus 5 Android Development] kecinzer:
Reserved.
[Nexus 5 Android Development] solrac.dc:
FIRST! Love when folks share there personal builds and TY for sharing!
[Nexus 5 Android Development] !M4G3:
Nice to see you here from the N4 side! Yay
[Nexus 5 Android Development] Stoozak:
Great to see you here [MENTION=525305]kecinzer[/MENTION] . Loved your N4 rom. :D
[Nexus 5 Android Development] kecinzer:
I must notice, that this build still doesn't include ROM Control.

I added some useful stuff, like (hard to see) battery percentage, swipe to switch in notifications and easy access of quick settings :).

More features to come.

Please be patient.
[Nexus 5 Android Development] kimkrrr:
Thank you for your sharing. :good:
[Nexus 5 Android Development] kecinzer:
Can you beat me? :)

https://plus.google.com/105808719779879404361/posts/VyKoDbccCAo
[Nexus 5 Android Development] Hammer_Of_The_Gods:
Hi,

Yes? http://xdaforums.com/showpost.php?p=48500375&postcount=340 :D

And I'm not the only one, the average with optimizations (without overclock) is 35 500...

It seems a little low since you use a custom kernel and compile optimizations (Linaro for Francisco kernel and Saber Mod for the rom, with Bionic stuff if I'm not wrong)...

Just for fun since you begin the bench race :D

:)
[Nexus 5 Android Development] Empty Hand:
Are you running ART or dalvik (with or without patch). Thanks for sharing your rom!
[Nexus 5 Android Development] maumaumau:
Thanks! I've long waited for a (semi-)official build like this.
[Nexus 5 Android Development] kecinzer:
I'm running on Dalvik without those bionic/dalvik patches - just those in repo.
[Nexus 5 Android Development] jejemc:
yes here is gravitation rom stock kernel without overclock
[Nexus 5 Android Development] kecinzer:
OK ok, you got me, I surrender :))
[Nexus 5 Android Development] ranveer5289:
HALO

Any plan of adding HALO in future.?
[Nexus 5 Android Development] Meowdib:
http://i.imgur.com/P7TpHPu.png

:angel: Thanks for your ROM. :D
[Nexus 5 Android Development] ryk k:
Launcher stock is gel with KitKat icon ?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Android Development] tomzefi:
The numbers keep growing. Nice to see legacy ROMs coming
[Nexus 5 Android Development] Circaflex:
Does it work on sprint?
[Nexus 5 Android Development] chazall1:
I used AOKPK on the mako, and flo, thanks for coming to Hammerhead!

Thanks
[Nexus 5 Android Development] garduna:
I had some soft reboots as well when I restored my apps.
[Nexus 5 Android Development] mohammed510:
Really weird.. No soft reboots here when restoring accounts and user apps only..

Are you guys restoring system apps as well??
[Nexus 5 Android Development] AxelRoldos:
Hey there,

Edit 2: Never mind, figured it out lol. Ignore my earlier posts =P So fad, I'm digging the ROM. Something I thought was strange, the Google Maps voice reverted to the weird retro computer voice now that I'm experimenting with ART.
[Nexus 5 Android Development] garduna:
Nope, only user apps.
[Nexus 5 Android Development] mohammed510:
Great rom ??
[Nexus 5 Android Development] rush25:
Guys try out my Kitkat UI Theme [Now supports AOKP]

I made this as the KitkatWhite from AOKP didn't theme much and it worked good but not excellent :)

LINK
[Nexus 5 Android Development] AxelRoldos:
I been running this ROM for about a week now and I really enjoy it. Thank you ☺
[Nexus 5 Android Development] RussianBear:
Kecinzer, I'm on your 4/25 build and everything is working great except for international texting. I keep getting the same message from the other person every couple of hours (usage is not affected). I've had this issue on some other aokp builds, but it's been a while.
[Nexus 5 Android Development] kecinzer:
Did you tried Hangouts for texts? I personaly don't use MMS app.
[Nexus 5 Android Development] RussianBear:
I'm using gosms. Might need to switch to something else.
[Nexus 5 Android Development] RussianBear:
Switched to hangouts-same thing. Only international texts have done this so far.
[Nexus 5 Android Development] KimMinGwan:
Are you hover, peek plans to add this?

http://youtu.be/u_3Ik7m3z50

http://www.youtube.com/watch?v=NvjTf1owbfc&feature=youtu.be

https://gerrit.paranoidandroid.co/#/c/3946/
[Nexus 5 Android Development] kecinzer:
Notification peek can be implemented, but there is no source code for Hover yet.
[Nexus 5 Android Development] core720:
sorry, you have the options of LED notifications?
[Nexus 5 Android Development] KimMinGwan:
It sounds good
[Nexus 5 Android Development] Nickamina:
Are there any mirrors for the latest build? For some reason I always end up with broken zips that don't install when I download from Goo.im these days. ("Install failed" message in TWRP).
[Nexus 5 Android Development] RussianBear:
Goo works fine for me.
[Nexus 5 Android Development] Z1cK:
Not the custom one, just on or off.

Sent using one thumb
[Nexus 5 Android Development] KimMinGwan:
incallui fc... and reboot
[Nexus 5 Android Development] RobbieL811:
5-1-14 Build

Dev Host - http://d-h.st/kNG

Media Fire - http://www.mediafire.com/download/kz8suy6p4achq6a/aokpk_hammerhead_kitkat_daily_1405011157.zip
[Nexus 5 Android Development] DarkFantasy6:
So when hover code is published you maybe include it? :)

Good work anyway !! :)
[Nexus 5 Android Development] kecinzer:
Latest build finaly includes LED Control :).
[Nexus 5 Android Development] DarkFantasy6:
Really awesome work !

Running 01/05 build and its running very good! You'r making aokp better! There should be much more attention to aokpk ! :)

Really awesome that you included lockscreen blur like i asked :)

Maybe you can add slim recents :) its not neccassary but i would like it cause i like the look and feel of it :)

[emoji106]
[Nexus 5 Android Development] KimMinGwan:
latest rom incallui Fc..
[Nexus 5 Android Development] kecinzer:
[MENTION=5639578]KimMinGwan[/MENTION]

Its working fine for me.

Try to clear app data for Phone, IncallUI etc - everything connected to calls.

[MENTION=4911078]DarkFantasy6[/MENTION]

I will look at it :). I'm glad you like it :).
[Nexus 5 Android Development] razrlover:
Deleted. Wrong person
[Nexus 5 Android Development] kecinzer:
[MENTION=4567211]razrlover[/MENTION]

I don't know what you want to say, can you please explain it little bit? :)
[Nexus 5 Android Development] core720:
Please. Add download option pause/resume

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Android Development] mohammed510:
Maybe the option to unlink ringer volume and notification volume.. Like in CM11. I find it really useful..
[Nexus 5 Android Development] KimMinGwan:
http://plus.google.com/117962666888533781522/posts/PWopua4y2kN

look
[Nexus 5 Android Development] Gustave17:
Very nice Rom ! Smooth and fast !

Thanks for the good work !

Only bug, lockscreen wallpaper doesn't work... Anyone else ?

Can we have option for having the clock app when we click on the clock in quick settings...

Sorry for my english !

Envoyé depuis mon Nexus 5

AOKPK & Faux123
[Nexus 5 Android Development] kecinzer:
Yes, lockscreen wallpaper don't work - must be because of lockscreen blur. May be some conflict, I will look at it soon.
[Nexus 5 Android Development] jasherpowers:
Excellent job. Really fluid and has the right options. Great battery life with DER Kernel as well. Nice build.
[Nexus 5 Android Development] RussianBear:
Anyone having issues with streaming music via Bluetooth? Went for a run last night, the phone was in my pocket, and the audio was very choppy (bt headphones). I had to hold it in my hand to make it bearable. could be the kernel, I'm on franco r48. Thanks!
[Nexus 5 Android Development] kecinzer:
What do you think about this?
[Nexus 5 Android Development] garduna:
Nice!
[Nexus 5 Android Development] KimMinGwan:
very nice
[Nexus 5 Android Development] DarkFantasy6:
You did it !? Looks awesome! :)

Hey Kecinzer. Where should I send or do a pull request if i translate somethings in your rom to german? :)
[Nexus 5 Android Development] AxelRoldos:
It looks neat, but I'm not sure I know what I'm looking at lol
[Nexus 5 Android Development] DarkFantasy6:
Slim recents :)
[Nexus 5 Android Development] AxelRoldos:
Oh, cool!
[Nexus 5 Android Development] kecinzer:
New build - aokpk_hammerhead_kitkat_daily_1405120732.zip is up on goo.im :).

- Slim recents

- Possibility to pause downloads

- New theme engine

- Latest franco kernel patches
[Nexus 5 Android Development] DarkFantasy6:
Awesome work! :)
[Nexus 5 Android Development] RussianBear:
Thanks for all the builds, man! I have weird things going on in the dialer, though. "1" on the keypad during the call seldomly works. I have to toggle the dialer keypad on and off for it to work. Also noticed on the prior build, that if you turn the screen off while dialing a call, it won't recognize you moving the screen away from your ear to light up the screen, while in-call.
[Nexus 5 Android Development] tehSecret:
I've noticed this last update breaks .m4a playback. From what I've read , the CM community has already posted this bug.
[Nexus 5 Android Development] Gustave17:
Thanks for this new awesome build !

Running this Rom since 2 weeks and it's very stable and smooth !

It has all options I need !

It's perfect for me !

Just a little request if possible: Can we hide speed indicator when there is no data activity ?

Can we have a kill all buton on SlimRecent ?

Envoyé depuis mon Nexus 5

AOKPK & Faux123
[Nexus 5 Android Development] Kreateablaze:
For Slim recents just pinch your fingers in from top to bottom to kill all.