yashsingh1/xdaforums huggingface dataset:
[Xperia Z General] pabx:
http://xdaforums.com/showpost.php?p=45091699&postcount=258
[Xperia Z General] Supersaiyan.IV:
Could you please clarify that when you mean:

You actually mean the internal SD card.
[Xperia Z General] gm007:
Yes this will wipe your internal sd.
[Xperia Z General] Supersaiyan.IV:
Thank you very much, it's already been wiped though - whilst thinking /data was the actual /data partition, and not the internal sd card.

I'm not asking for help, but requesting an addition to OP.

EDIT: All I'm asking is that you add a note about it and add it to OP so that nobody has to make this mistake.
[Xperia Z General] alex3305:
I also thought it would only wipe my /data partition.. But luckily I backed up everything before I flashed.

pabx, did you look at the issue I posted?
[Xperia Z General] Carceri:
The "internal sdcard" is actually stored on the data partition, so the OP is correct.
[Xperia Z General] pabx:
Version 2.6 is now available: No dramatic changes, just some updates: Android was upgraded to JLS36G (4.3_r3.1) and the linux kernel has been upgraded to 3.4.62
[Xperia Z General] Hellscythe:
Do earphones work in calls? Cm had that bug last time I checked :S
[Xperia Z General] nihalvm:
For some reason my external sd card only has read permission. It doesn't have write permission. I can only write to it when I enable root explorer. Can you tell me what is wrong please? Here is a pic
[Xperia Z General] nihalvm:
Yes they do. Didn't notice any bug apart from the sdcard issue that I am having.
[Xperia Z General] alex3305:
Yes, that's a CM bug, not an AOSP bug.
[Xperia Z General] pabx:
That's not really a bug: This is a standard AOSP behaviour (Samsung and CM are both using a sledgehammer to 'work around this' issue).

Also see: http://www.chainfire.eu/articles/113

But to make a long story short: Google does not want non-system apps to be able to write to the *external* sdcard.

Edit ...and just a note about UNDERCLOCKING (as i happened to get quite a few PMs from people that want to run fancy kernels):

The CPU in your Xperia Z can NOT run on anything below 384mhz. PERIOD.

Want proof? Here it is:

I patched my own kernel to include 192mhz in the frequency table and ran a netlib's 'whetstone' benchmark at 3 frequencies:

[MENTION=788113]486[/MENTION]mhz:

./whetstone.arm 60000

Loops: 60000, Iterations: 1, Duration: 22 sec.

C Converted Double Precision Whetstones: 272.7 MIPS

[MENTION=1089301]384[/MENTION]mhz:

./whetstone.arm 60000

Loops: 60000, Iterations: 1, Duration: 28 sec.

C Converted Double Precision Whetstones: 214.3 MIPS

[MENTION=3296700]192[/MENTION]mhz:

root@c6603:/data/misc # ./whetstone.arm 60000

Loops: 60000, Iterations: 1, Duration: 28 sec.

C Converted Double Precision Whetstones: 214.3 MIPS

So as you can see: 192mhz are as fast as running at 384mhz - why is that? Simple: Because the CPU can not go below 384mhz (thats a hardware limitation) - even if the cpustats tell you that the core is running at 192mhz, it isn't.

So keep in mind: If you are running a Kernel from someone who claims to have the CPU underclocked [MENTION=3296700]192[/MENTION]mhz, chances are that the guy has no idea on what he is doing (or how CPUs work)
[Xperia Z General] alnikki25k:
Finally someone who understands this! Thank you! Also, you seemed to have "mentioned" a user named 192 :p:p
[Xperia Z General] fards:
Not had a chance to look yet, but did you pull in the .67 patches from the new sony kernel source drop?

Not seen a lot of difference testing on cm with them.
[Xperia Z General] pabx:
I pushed them to git a few seconds ago (didn't notice the new source drop, thanks for the hint!).

Nothing exciting: Just a few minor bugfixes: https://github.com/adrian-bl-yuga/kernel_a806/commit/98439bde5055530a863575e98440188eee04ca95
[Xperia Z General] fards:
no problem, what with the recent news with cm I'm going back to playing with aosp, was only really using it to play with focal (cm not needed for that anymore ) :D

Will see if I can patch in auto-hide/fullscreen swipe status bar to this, that is a feature I like.
[Xperia Z General] fards:
According to chainfire the google engineers didn't know why that was set.

couldn't you adopt the CM approach and set vold/volume.cpp @ Volume::mountVol(): as the correct group id ?

// Originally, non-primary storage was set to MEDIA_RW group which

// prevented users from writing to it. We don't want that.

gid = AID_SDCARD_RW;

(see Update #3 in his article)
[Xperia Z General] pabx:
So he just didn't ask the right people: I'm pretty sure that the guy who wrote 'Vold' would know (or at least have fixed it if it really was a bug).

..but if it's a pressing issue, i'm willing to fork vold for this. The CM way is at least better than Samsungs 'lets give the application additional system-permissions!' approach.
[Xperia Z General] fards:
Been playing with a kernel with the latest patches from Sony (.67)

it's here if anyone wants to try it, changes are minimal as pabx said.

need to push the wlan.ko to lib/modules/

https://dl.dropboxusercontent.com/u/29656352/XZ/boot.img

https://dl.dropboxusercontent.com/u/29656352/XZ/wlan.ko
[Xperia Z General] nihalvm:
Can you please check what method Sony uses? I just installed the latest firmware and in that it has default write access for external sd card.

I am just wondering if sony's method is any better?
[Xperia Z General] pabx:
It doesn't matter: That's not device/hardware specific.

Anyway: I forked vold: The -git version will now mount the sdcard with gid=sdcard_rw (like CM does it)
[Xperia Z General] iKillCypher:
[MENTION=3911109]pabx[/MENTION]

I cant thank you enough well I used to come from a cm rom I think as of today after learning about their greedy motivation about being.. Im very happy you made this fork which is official sony aosp you have done something that people would love you one day. :) AOSP FTW
[Xperia Z General] Supersaiyan.IV:
Great rom!

Had to edit build.prop qemu.hw.mainkeys=1 to access the camera menu, but otherwise kickass!

Keep it coming!
[Xperia Z General] pabx:
Why would this be required?! The stock camera app already has a soft-button (the cirle on the right side) to open the settings

Well.. i never liked CM myself and never-ever saw a really stable CM 10.x build (even builds for Nexus devices are FAR from being stable - but CM7 was great on my HTC Legend).

I have to admit that i'm amused by people who switch to AOKP or PA after the CyanogenMod 'scandal':

Seems that most of them do not realize that AOKP and PA are based on CM ;) (Ok: PA is AFAIK based on AOSP, but MOST of the device-trees/bringups are 1:1 copies from the CM)
[Xperia Z General] Supersaiyan.IV:
Well It's just that I prefer the real camera menu where I can actually specify Internal/SD Card storage. Nothing else.

Sent from my Full Android on C6603
[Xperia Z General] fards:
disabling soft keys does make gmd auto hide soft keys work better ;)
[Xperia Z General] gm007:
Does it mean if we are in 2G coverage the phone will show 3G?can you explain more please cause i am having a bad connection on stock Rom.

In places that i used to have 2G now i am having 3G but the internet is very slow,i thought my operator did some enhancements,so is it fake?
[Xperia Z General] pabx:
Not in my build - the 'feature' is disabled
[Xperia Z General] gm007:
Thanks but I am asking about the stock rom if you have an idea.
[Xperia Z General] fards:
been playing with lowered voltage kernel the last couple of days, and also one with sysfs based voltage on faux123s interface.

My XZ definitely works better undervolted, noticeably cooler, and an extra couple of hours of usage.
[Xperia Z General] shoey63:
Can you post your latest boot.img please?
[Xperia Z General] fards:
yeah no worries,

boot.img and wlan.ko are in here

https://www.dropbox.com/sh/7gb6i6h46rb5lmj/BYcRgl8fzu
[Xperia Z General] nivarp:
Nice to find this thread, great job pabx!

I am building using the AOSP 4.3 with local manifest from https://github.com/sonyxperiadev/device-sony-c6603. This builds perfect and am able to flash it and it seems to be working.

However when I build the kernel https://github.com/sonyxperiadev/kernel and copied the binary as

cp arch/arm/boot/zImage $XPERIABUILD/device/sony/c6603/kernel

and flash it, it goes into bootloop.

After further investigation, I found that there is a separate kernel branch (https://github.com/sonyxperiadev/kernel/tree/aosp/A8064AAAAANLYA161333) that corresponds to binaries that we use in the build. So I checked out that branch and was trying to build the kernel with it. The problem is that specific branch does not have the correct defconfig and I get the following error.

$ CROSS_COMPILE="ccache arm-eabi-" ARCH=arm make fusion3_yuga_defconfig
***
*** Can't find default configuration "arch/arm/configs/fusion3_yuga_defconfig"!
***
make[1]: *** [fusion3_yuga_defconfig] Error 1
make: *** [fusion3_yuga_defconfig] Error 2
]

Any help here would be appreciated.
[Xperia Z General] fards:
You are building a boot.Img combining ramdisk and zImage aren't you?

Why not use the defconfig out of the other branch?

/edit hmm there is the correct defconfig in that branch

https://github.com/sonyxperiadev/ke...61333/arch/arm/configs/fusion3_yuga_defconfig
[Xperia Z General] nivarp:
Thanks fards.

It is interesting that git checkout <branch> removed that file, I added it manually now and the build is in progress. I will later try to clone this specific branch and hopefully have the file in place.

I am not sure what you mean by combining ramdisk and zImage? I am building kernel separately which makes zImage and then copying over that binary as device/c6603/kernel and then rebuilding c6603. This create boot.img not sure if that is combination you are talking about.

-- UPDATE --

It seems to run successfully but does not create arch/arm/boot/zImage, I am already cloning the branch fresh to make sure i am on right repo.

-- UPDATE 2 --

Fresh checkout of the branch seems to have done the trick. I am able to build the zImage correctly and size is also closer to the kernel library that SONY AOSP provides. Now rebuilding and will update after flashing.
[Xperia Z General] fards:
Ok I don't usually build a boot image with the full script, I usually do it with mkbootimg .

So wasn't sure which method you were using.

Hopefully it'll be sorted for you know.
[Xperia Z General] pabx:
I would strongly recommend to not use the sony AOSP sources but to stick to my kernel:

https://github.com/adrian-bl-yuga/kernel_a806/tree/v3_4_LTS

It's based on sonys aosp/A8064AAAAANLYA161333 branch, but includes quite a few improvements (better wlan sources, uhid support, security patches & upgraded to linux 3.4.62)
[Xperia Z General] nivarp:
The build works now, i flashed with the kernel I built and it works fine.

Thanks pabx, my intention is to fork and make changes in couple of modules including vold and just wanted to get the build running on stock before I do that. I will use your kernel moving forward.

Query about build system:

Do you build kernel separately and use mkbootimg or have you integrated the kernel build using AndroidKernel.mk aka CM style?
[Xperia Z General] pabx:
The kernel is built by the '_build.sh' script in the kernel-source directory.
[Xperia Z General] shoey63:
del.
[Xperia Z General] ItalDiamond2008:
Root?

Sorry for the naive question, but isn't it possible to root this boombastic ROM. It runs like a charm, actually! :victory:

However, how about "rooting"? No way to get root on an AOSP ROM?

Thank you in advance! :confused:
[Xperia Z General] shoey63:
Rooting is easy. Just boot into recovery, then reboot system, and when you get the message asking if you want to root the phone- select "yes"
[Xperia Z General] ItalDiamond2008:
I tried that but the phone just rebooted without getting any similar message! Any suggestion?

Thank you so much! :good:
[Xperia Z General] shoey63:
Flash this in recovery
[Xperia Z General] ItalDiamond2008:
Thanks my friend!

It worked flawlessly! Thank you so much! :good:
[Xperia Z General] OCmylife:
Xposed is the perfect addon for this rom! :highfive:

http://xdaforums.com/showthread.php?t=1574401

http://xdaforums.com/showthread.php?t=2327541

Now there`s nothing I could miss on AOSP :victory:
[Xperia Z General] heorung:
hi fards , can I use this kernel with PAC rom?
[Xperia Z General] fards:
Don't know, I've not used pac. I presume they use cm as a base so it's unlikely.

Might need to split and repack the bootimg with the ram disk from pac.
[Xperia Z General] heorung:
Yes , PAC is a cm based rom. I'm currently use the default CM kernel on PAC. It'll be awesome if you release your undervoltage kernel for cm-rom. Thanks a million ^^
[Xperia Z General] Hellscythe:
"If this is an initial installation, also run: fastboot flash userdata userdata.img # NOTE: THIS WILL WIPE YOUR /data - only do this on first-install"

That does not wipe my internal SD card right?
[Xperia Z General] fards:
there are plenty of kernels for that already though that support undervolting.
[Xperia Z General] heorung:
It does wipe your internal SD , i already tried that
[Xperia Z General] fards:
yes it will wipe the internal sdcard.
[Xperia Z General] Hellscythe:
hmm, after installing the rom, i attempt to install gapps, but it tells me my device is offline when i type in adb devices

EDIT: gonna try updating the sdk and see if that fixes it
[Xperia Z General] alex3305:
Update the SDK or ADB binary. Since Android 4.2 ADB uses encryption.
[Xperia Z General] pabx:
s/encryption/authentication/;

The contents of sdcard0 is stored on /data, so yes: everything there will be gone.

The 'real' sdcard (plugged into the slot) is not affected
[Xperia Z General] Hellscythe:
Do I enter that on terminal emulator or on my computer?
[Xperia Z General] pabx:
Version 2.7 has beeen released.

This release includes the Linux 3.4.65 Kernel and is based on Android 4.3.1.

Applications with write permissions to the internal sd-card are now automatically granted write permission to the external sd-card
[Xperia Z General] shoey63:
This build works perfectly:thumbup:
[Xperia Z General] zomer331:
Hey, can You provide a flash pack of actual kernel? May You ? :)
[Xperia Z General] Nuddelsalat:
Camera App

Hey there.

This build works great for me. But I just have one question. Hope you can help me. I used CM 10.2 and there was the possibility to store the images on my external card. Is there any way to do it with this ROM? Any work around or something like that. I really like to store my images on my external SD card.

EDIT: I mean inside the camera app. When I take pictures, that they are stored directly on my external SD card
[Xperia Z General] alex3305:
With the new update reboot to recovery is not working anymore.
[Xperia Z General] pabx:
Uhm, this feature was never working ;)
[Xperia Z General] fards:
here's the 2.7 kernel with voltage sysfs for anyone interested, although the latest 2.7 kernel seems to work very nicely without it!
[Xperia Z General] fards:
I'm seeing quite a lot of

E/qc-fqd ( 406): Error opening /sys/devices/system/cpu/cpu3/online: Permission denied

in logcat using my version of the kernel, only real change is the sysfs for the voltages though.

will check the original kernel in a bit

EDIT:

Nope happening in original 2.7 kernel as well.

Edit 2:

Looks like its related to me playing with kernel tuner, will investigate some more.
[Xperia Z General] pabx:
No - it doesn't happen on my unmodified ROM.

Also note that qc-fqd runs as root, so you probably broke something in sysfs itself.
[Xperia Z General] fards:
No it's definitely happening on yours as well.

It is only popping up when using kernel tuner that I've noticed so far.But as I said I'll investigate more
[Xperia Z General] Lemagex:
Any way to make it 3G instead of LTE again?

I found only ONE app that'll switch it back to 3G but it gets switched to LTE every boot. :crying:

I'm not sure how to switch it back to 3G, any help would be appreciated. :fingers-crossed:
[Xperia Z General] fards:
have you tried ?

does that one reset on reboot?
[Xperia Z General] Lemagex:
Nope. It did for about 3 seconds but then when wifi is turned off mobile data resets itself and goes back to 4G :rolleyes:
[Xperia Z General] pabx:
It doesn't happen on a clean installation - the 'kernel tuner' you used probably messed up things badly.

* Open 'system.prop' and DELETE the line reading 'ro.telephony.default_network=9'

* Reboot

* Go to settings and toggle the '2G only' option on -> off

Afterwards your phone will never try to use LTE.
[Xperia Z General] fards:
yup that is my conclusion.

not had a chance to see why it was causing it (it was a quick way of observing changes to governors and voltages when I don't have adb nearby) but removing it cleared the errors. A curious one.
[Xperia Z General] exekias:
Hi guys, the Gapps process is really not working for me,

I can fast-boot flash everything, except when im in Fastboot mode, my phone isnt recognized as an ADB attached device, is their a specific ADB mode I should be going into?

I also tried the method mentioned about 10 pages ago about flashing a kernel and installing gapps.zip but that installs 2 clocks :(

So how do I access ADB when I am in Fastboot?

Thanks in advance
[Xperia Z General] ckyy:
[MENTION=1618138]exekias[/MENTION] uhm... Delete the clocks then ?

Gesendet von meinem Full Android on C6603 mit Tapatalk-4 now Free
[Xperia Z General] OCmylife:
You have no adb access, while you're in the bootloader. Boot in recovery or in your rom, to push the file to your sdcard

Gesendet von meinem C6603 mit Tapatalk
[Xperia Z General] pabx:
The OP clearly describes the process:

Installation / Upgrade

* Extract the archive (unzip pabx_aosp_yuga*.zip)

* adb reboot-bootloader

* fastboot flash boot boot.img ; fastboot flash system system.img

* If this is an initial installation, also run: fastboot flash userdata userdata.img # NOTE: THIS WILL WIPE YOUR /data - only do this on first-install

* fastboot reboot

* Download my gapps package from http://android.eqmx.net/android/xperia/gapps_43_yuga_1.tgz

* Run 'adb push gapps_43_yuga_1.tgz /sdcard/'

* adb reboot

As OCmylife already told you: You have to upload the gapps package while android is running (Note the 'fastboot reboot' step!)
[Xperia Z General] exekias:
Yea sorry guys, reading the outline in a logical manner makes sense but for some strange reason i thought the gapps had to be flashed during fastboot mode as the following sentence says the phone will reboot twice...

Now this should all work and Ill give it a try tonight.
[Xperia Z General] Lemagex:
Thank you so very much. :o
[Xperia Z General] exekias:
Expressing my gratitude

I just had to come back and pay my dues.

I have not been this impressed with a ROM in a very very very long time.

The simple and stable approach to this ROM is exactly what I like, I dont want or use all the other features loaded into other roms and I like how you have just aimed at a simple from-source build.

Thank you
[Xperia Z General] davibs:
Full butter is here and working?

Sorry for those asks but..what about kernel?

There isn't a .zip to flash from cwm?

And if i want to go back to a stock based rom?

Thank you a lot
[Xperia Z General] ckyy:
Everything you need is in the OP. If you want to go back to Stock then simply flash a ftf.

Gesendet von meinem C6603 mit Tapatalk-4
[Xperia Z General] davibs:
And what about butter?
[Xperia Z General] ckyy:
Not so much for me. But you should check for yourself.

Gesendet von meinem C6603 mit Tapatalk-4
[Xperia Z General] pabx:
What are you exactly talking about? full butter?!
[Xperia Z General] Bairei:
He probably meant "project butter" (or somethin' like that)
[Xperia Z General] fards:
probably someone elses name for using interactive governor then claiming they've got their rom running smoother.
[Xperia Z General] lhurtado:
Love this Rom + gravity box = perfect!

Thanks!
[Xperia Z General] Lemagex:
I wonder does this rom support DualShock 3 Connectivity? I'm torn between this and stock for that one silly reason. I can't try because my controller is still being sent to me. Would very much appreciate if someone else would test for me :D Otherwise do not worry, this rom is the only non-stock rom I use now. Very nice work and thank you very much for your dedication.

Edit: Also, "Full Butter" Refers to the "Project butter" google went on about ages ago, how jellybean was meant to be "buttery smooth" so basically just the smoothness of the rom, it's very smooth for me though. so I guess you could say it is. I use Interactive and Ondemand though
[Xperia Z General] exekias:
I seriously cannot convey how impressed I am with this ROM. Using battery guru and this ROM is getting me amazing battery life with moderate usage.
[Xperia Z General] exekias:
I would say no the dual shock support. That requires Sony proprietary code found only within the stock ROM
[Xperia Z General] matique:
My friend, who's overseas is keen on this rom but it's almost impossible to teach him to use ADB. Is there anyone who can compile it into a zip and just let him flash it?
[Xperia Z General] ckyy:
How did this friend unlock his bl in the first place if he has No idea about adb? all there is to do is copy three lines into cmd.

Gesendet von meinem C6603 mit Tapatalk-4
[Xperia Z General] matique:
He bought it 2nd hand rooted and unlocked. Anyway I made a video and guided him through.

Quick note: loving how light and smooth this rom is.
[Xperia Z General] exekias:
Not a ***** or a moan. In fact I'm very happy with this ROM. But I want to know why in some Roms notifications etc play over other audio. While some Roms like this one stop all other audio to play a notification
[Xperia Z General] pabx:
Because that's how AOSP does it.

The 'continue playing but decrease the volume' method is a CM feature
[Xperia Z General] heorung:
[MENTION=265575]fards[/MENTION] : can you share your undervolt kernel?
[Xperia Z General] fards:
I've posted uv kernels for 2.6 and 2.7 already.

I'm not using this Rom at the moment. Experimenting with something on stock 74
[Xperia Z General] heorung:
Yes you did , but i saw that you talk about something wrong in the log makes me wait for a new version from you :laugh:
[Xperia Z General] fards:
you should also read further down, where I said it happened on pabx kernel, and was down to something odd with the way kernel tuner handled his pabxs great replacement for mp-decision. :cowboy:

it's not the kernel per se that's the issue, it's kernel tuner not coping.
[Xperia Z General] nivarp:
Encryption of /data

Have been breaking head over trying to get encryption working for /data and it seemed to be broken on AOSP. Saw that you have done changes to fstab file with encryptable=footer, it seems it should get it to work. Did you try to push through this change to SONY AOSP branch?
[Xperia Z General] pabx:
Well, it's broken in the sony AOSP branch (as almost EVERYTHING ELSE) but encryption works fine with my build (i'm using it myself)

There are two broken things in sonys branch: The broken fstab & the retarded modem driver (the driver will, by default, reboot the phone during the initial encryption)
[Xperia Z General] nivarp:
Yep fixed the fstab and found validation with in your repo for it. As far as reboot is concerned, IMHO it is the standard process. As soon as you initiate encryption, phone will reboot to a something which I call safe mode which has minimum drivers loaded and partitions not mounted. This is how it does the encryption in place and show a minimalistic UI with encryption progress percentage. The behavior is same on other Nexus devices as well, tried N4 and N7 with stock and also N7 with CM10-1.

Let me know if you think otherwise.
[Xperia Z General] pabx:
That is not what i was talking about:

The sony AOSP kernel (+ the CM fork) will reboot the phone DURING ENCRYPTION, causing data loss.

The reboot gets triggered by the modem driver because it fails to bring up the modem (while encrypting), times out and triggers a panic.
[Xperia Z General] nivarp:
Interesting, let me try this.
[Xperia Z General] Zorua:
The zip's broken, CWM keeps aborting the installation.

EDIT: I feel retarded for not having read the OP now, sorry.