yashsingh1/xdaforums huggingface dataset:
[Xperia Z General] pietrucci:
Installing gapps

Excuse me, I'm a noob installing gapps.

I installed 4.3, everthing ok.

But the install instructions in the OP don't install gapps on my device:

- Download my gapps package from http://android.eqmx.net/android/xper...ga43_shaky.tgz (If you are installing 1.5, use the android 4.2.2 gapps package) -> OK

- Run 'adb push gapps.yuga43_shaky.tgz /sdcard/' -> OK, after a while I get the cmd-prompt back, the .tgz is on my internal sdcard

- adb reboot -> OK, my device restarts (once)

- Your phone will now reboot twice: 1x to install gapps and Superuser and 1x to finish the installation. -> NOT OK, no reboot, no install!

Should I run an extra script to really install the gapps?

Thnx!
[Xperia Z General] elinho:
Cant anyone make a flashble zip? :eek:
[Xperia Z General] pabx:
You probably did a mistake:

Log in to the device via adb and run:

busybox md5sum /sdcard/gapps.yuga43_shaky.tgz

and then post the output.

(Note that /sdcard is the INTERNAL phone storage - not the physical sdcard mounted at /storage/sdcard1)
[Xperia Z General] gm007:
up and running,couldn't wait till the evening :)

no bugs so far,little bit slow and hot but maybe need time to settle.will use it for couple of days.

Thanks pabx.
[Xperia Z General] ajbattaglia83:
busy box is nopt recognized as internal or external command, operable program or batch file?
[Xperia Z General] pabx:
As i said: you should log in to your phone via 'adb shell'. You are trying to run it on your workstation, this is obviously wrong.
[Xperia Z General] gm007:
Sorry but how to use superuser app in this rom to give access for apps?
[Xperia Z General] ajbattaglia83:
md5sum: can't open /sdcard/gapps.yuga43_shaky.tgz No such file or directory
[Xperia Z General] pabx:
The gapps package includes CM's Superuser app and should work out of the box.

So you did not copy the file to /sdcard/
[Xperia Z General] pietrucci:
hi pabx, you are answering to another person, I was the one who asked the question about gapps...

I logged in and the result is: 156256f9257e9cea9e0f9bdbcd898135

I put the .tgz on external card myself before and your script put it on the internal card also, so now both cards have the tgz. But as I said, no install.

Tried three times. I can unpack the tgz so I think it's not corrupt.

EDIT: Seems the gapps are installed after all (I can find them in system/app and Superuser is present). Only it seems it's not rooted (Root Explorer and Titanium backup give errors). Any solution for that?
[Xperia Z General] PNuT.:
I assume you are having the same problem as me & cannot get root access event though super user app is installed?
[Xperia Z General] Rajeev:
Is the " Google Experience Launcher " in the gapps packages is same as this ROM ?
[Xperia Z General] shoey63:
.tgz file needs to be on INTERNAL sd Card (Not the removable one). Copy and paste to that location, then reboot and let device automatically reboot again to install gapps:good:
[Xperia Z General] :
Am I seriously the only one with this problem..? :x
[Xperia Z General] Guanaco77:
No, you're not the only one. I have the same issue.

Envoyé de mon C6603 en utilisant Tapatalk
[Xperia Z General] matique:
Experiencing it too on both Dalvik and ART. Slight annoyance but everything else runs smoothly.
[Xperia Z General] Hellscythe:
this was also an issue with early cm10.2 builds for the Z
[Xperia Z General] richwright1:
confused

I'm sorry for sounding a bit stupid but I'm a novice when it comes to Sony. Have always stuck with the nexus devices in the past.

Can someone point me in the direction to do everything that needs to be done to get to the point of installing this ROM from completely stock/factory phone. So haven't tampered with it in any way. Also I think it has the latest update from Sony if that makes any difference.

Tried this once before and broke my phone and had to turn to you guys for advice to recover so want to get it right this time!
[Xperia Z General] zai89:
First backup your TA partition.., 2nd unlock your bootloader.. And follow OP instructions how to flash this rom..
[Xperia Z General] venky716:
Unlock bootloader : http://unlockbootloader.sonymobile.com/

This will wipe all ur data.

Flash the boot.img (extract zip to find it) from this ROM using fastboot: http://androidlegend.com/how-to-use-adb-fastboot-commands-with-your-android-device/

Go into recovery (Volume up when led turns on) and flash the ROM.

EDIT : Sorry forgot to mention, as said above first backup TA if you ever plan to going back to stock and need BRAVIA engine etc

http://xdaforums.com/showthread.php?t=2234627
[Xperia Z General] richwright1:
---------------------------------

Thanks for this. on the flash boot.img bit i cant for the life of me get it to work. i do the fastboot flast boot boot.img bit and is just says 'waiting for device'. Drivers are installed and im in fastboot(?) mode on the phone (blue LED). Any ideas?
[Xperia Z General] venky716:
That means something is missing, most probably drivers.

Install Android SDK : https://developer.android.com/sdk/index.html#download (download SDK tools only in .exe format)

And from the installation path try to fastboot from '/platform tools' folder.

Also are you running Win8 ? then install drivers after disabling signature check. Link
[Xperia Z General] richwright1:
------------

I think i figured this bit out again. Think i had it a bit messy, stuff being unzipped all over my pc so redone it in C: and managed to get it to finish in cmd.

(I am really sorry for the millions of questions by the way)

So, lastly... 'Go in to recovery and flash the ROM' I can get in to recovery but am i meant to put the 'pabx_aosp_yuga-3_3' zip on to the phone beforehand and then 'install ZIP' from recovery?
[Xperia Z General] golfgtiedition30:
If you don't know something as simple as installing a ROM zip file , my advice would be before you do anything to your phone go and read some of the very helpful guides posted on our XZ forum.
[Xperia Z General] richwright1:
Thanks for the advice. All i have been doing is reading but confidence comes with success, something that i haven't had very much of with Android. Hence sticking to the Nexus devices previously so that i didnt have to tamper with anything.

I would assume that as im able to get to CWM recovery that i could just put the ZIP on the phone and install from there but a similar assumption caused the mess in the first place for me so just wanted a confirmation from somebody.
[Xperia Z General] jdjta:
Did you install the drivers for fastboot? You have to install drivers seperatly when you have your device connected in fastboot. You can find a guide here: http://xdaforums.com/showpost.php?p=39856834&postcount=3 .
[Xperia Z General] lhurtado:
Follow OP instructions, you don't need cwm recovery for any other than install superSU...
[Xperia Z General] pabx:
Note: This thread will be deleted by XDA admins in the next few hours.

I've been told that i'm violating the site rules by linking to my personal homepage in the OP.
[Xperia Z General] ApriliaM3:
Just to be clear, you were the one to request that this thread be deleted.

In the OP of this thread, you have even posted this: NOTE: DEVELOPMENT ON XDA STOPPED - FOR UP-TO-DATE BUILDS PLEASE GO TO http://www.blinkenlights.ch/ccms/android/yuga.html

However this is an Original Development thread on XDA and there's no point in it remaining open in Original Development if there is no further development happening here.

You were then given the opportunity to keep it open and continue with development or alternatively, to have the thread closed if your only intention was to draw people offsite from XDA

Rather than continue with development here, your request was for the thread to be deleted completely from XDA

But how does that help or benefit all your supporters and users of your ROM?

So, what I have done is moved this thread to the General forum and closed it for now until we can reach an agreement on what you want to do with it.

If you're happy to have this thread remain open in the General forum as a support thread for your ROM, we can certainly arrange that... just send me a PM.
[Xperia Z General] 5worthington:
Can I unpack the system.img and place the gapps in system/app repack it and flash that?
[Xperia Z General] ajbattaglia83:
Thank you
[Xperia Z General] gm007:
I think so,and i tried to install supersu from playstore but nothing.
[Xperia Z General] pietrucci:
I managed to install superuser from playstore but it's a different version than the one from gapps. Now I have two superuser icons.

But apps that need root don't work (Titanium, root explorer). Tried to install different versions of busybox from playstore, always an error and advise to reinstall superuser. No success till now.
[Xperia Z General] gm007:
I also noticed that the upload and download arrows in 3g icon is missing, is it a bug or something new?

And the icons for H and H+ is not showing only stay 3g.
[Xperia Z General] pabx:
Something is strange:

well: #1 i messed up the su permissions in my new gapps: fixing this causes adb_root -> app -> su to work (with the expected pop-up-dialog)

but su'ing from apps still fails:

[pid 3197] setpgid(3959, 3959) = 0

[pid 3959] setpgid(3959, 3959) = 0

[pid 3959] set_tls(0x68a30, 0x689f4, 0, 0x40, 0x689f4) = 0

[pid 3959] setresuid32(-1, 0, -1) = -1 EPERM (Operation not permitted)

[pid 3960] set_tls(0x4015cefc, 0x4015cefc, 0, 0xffffffbc, 0x4015cffc) = 0

[pid 3962] execve("/system/bin/log", ["/system/bin/log", "-p", "e", "-t", "su", "seteuid (root) failed with 1: Op"...], [/* 24 vars */] <unfinished ...>

No idea what's going on.. but android probably sets some CAP_ flags :-/

Update

ok, patching out the new pctl() calls in dalvikvm are not a solution, but looks like Android 4.3 root-breakage is to be expected:

https://plus.google.com/+Chainfire/posts/WqS2E9kkN1L

I'm not going to include Chainfires closed-source su, so i'll wait until koush updates his opensource su version.

So for now you'll have to stick with 'adb shell' if you want to get root.
[Xperia Z General] sangreal:
Hi,

Bluetooth smart/LE does not work on this build which is a shame - is this something you are working on currently or in a position to fix or something we need Sony to provide?

Thanks

Sangreal
[Xperia Z General] gm007:
Warning: offline charging is not working, if the battery get empty there is no way to recover.
[Xperia Z General] 5worthington:
Surely it will still charge but just boot up the phone?
[Xperia Z General] gm007:
It boot the phone that mean its not charging and if the battery went to 0% the phone wont boot.
[Xperia Z General] pabx:
bt_le was not enabled in the 2.0 build, i'll include it in version 2.1.

But i will be unable to test it as i do not own any bt_le devices. But AFAIK, BT_LE requires support from the firmware and i have no idea if the sony firmware already has support for it.

No: This is not true. The phone will simply charge until it reaches ~4% and turn itself ON.

The 'offline charging' mode is snake oil anyway: All it does is to boot the the linux kernel (remember: it's called 'offline charging' - yeah), enable the 'powersave' governor and display a fancy 'charging' animation. You can get the same behaviour by putting the phone into airplane mode and play 'charging_animation.mp4' in the gallery ;)

I may add the nexus-like charging animation in some later release, but this is a low-prio task (feel free to send me a pull request on github)
[Xperia Z General] fards:
This looks and sounds damn impressive pabx.

when I'm near enough a PC(next week ) I'll unlock the bootloader and flash it, and See if there's anything I can contribute, as I prefer asop to cm.
[Xperia Z General] pabx:
I've uploaded 2.1 with bt_le enabled in the framework config - would be great if you could give it a try.

If it doesn't work, it's probably a firmware issue :-/

About root and gapps

The main issue with Superuser & co seems to be that zygote remounts all partitions with 'nosuid' in its own namespace:

Android/Dalvik applications will therefore not be able to su - but su will still work on adb as it was not launched by 'zygote' but 'init'.

I will not simply disable this (useful) security feature but i'm willing to give people a choice: My current idea is (unless someone from CM figures out something smarter) to have dalvik check if /system/xbin/su exists and is setuid root.

In this case, dalvik would skip the remount (and roll 4.2.2 style). If the file does not exist, dalvik would do the remount (as expected in 4.3)
[Xperia Z General] pulser_g2:
Chainfire has a workaround which I have made work on CM - this is SuperSU flashable zip from him, and it will give you root access on CM for now. http://goo.im/devs/pulser/TabletZSGP311/CM10.2/cm-ified-UPDATE-SuperSU-v1.45.zip

You're right, this is a security feature, but until people sort it out, this daemon method is a possible workaround which Chainfire has used.
[Xperia Z General] sangreal:
Thanks for having a go, it doesn't detect the BT_LE device. Appreciate you enabling in the framework so looks like going to have to wait for Sony?
[Xperia Z General] Upy3r:
This ROM Will work on C6602 versión? I neeeeed The 1900 baseband.. Or is there any way to get out The radio files from my stock and then flash in this one, like samsung style.
[Xperia Z General] pabx:
Koush also went the daemon route:

http://review.cyanogenmod.org/#/c/46211/

Maybe i'm blind, but i fail to see what prevents an (evil) application to directly connect to the daemon, without even requesting root permissions.

Thanks for testing this. So yeah: We probably have to wait for a firmware upgrade: Seems that the Xperia Z really is not supposed to have full BTLE support: http://developer.sonymobile.com/201...deo-camera-video/comment-page-2/#comment-5039
[Xperia Z General] zirado:
pabx can you check this (GAPPS) (4.3)

http://xdaforums.com/showthread.php?t=2378992
[Xperia Z General] pabx:
As i said: i will wait for an official gapps - no need to hurry as the existing 4.2 gapps works well enough.

The linked gapps is a mess btw: it even includes osx resource forks. *d'oh*
[Xperia Z General] nycbjr:
As a fellow dev on the ZL, and Tablet Z I'm curious what you did to get modem working?
[Xperia Z General] pabx:
I assume that they are also using a qcom modem and therefore libril-qc-qmi-1.so:

First, make sure that ril getst started with the correct arguments: in system.prop:

ril.subscription.types=NV,RUIM
rild.libargs=-d /dev/smd0
rild.libpath=/system/lib/libril-qc-qmi-1.so

Verify that it startsup - if not: you are probably missing some libraries (logcat -d | grep library, or strace init)

You must also place the required firmware files in /system/etc/firmware (eg. on yuga: https://github.com/adrian-bl-yuga/y...1e3a816b11c86d8e8d1e8aaca#system/etc/firmware)

You may also need this patches to avoid crashes of rild:

https://github.com/adrian-bl-yuga/a...mmit/b300d70fb88b7690ce3a5bc1220dc7321ff636e8

https://github.com/adrian-bl-yuga/a...mmit/880a63b9122d687f67467add305ec554d01304f9

https://github.com/adrian-bl-yuga/a...mmit/cf3c47e9ab7f51fa5051080927937b9a99637499

..and this to fixup the network selection:

https://github.com/adrian-bl-yuga/a...mmit/a5bbc10fe60973869f99de8602ecc29ffa153b1c
[Xperia Z General] gm007:
I managed to root this rom using shoey63's zip file http://d-h.st/MVy

Just flash cm boot.img to get recovery, install the zip and flash back to the original boot.img.
[Xperia Z General] pabx:
The ROM already is rooted: Run 'adb shell' and voilà.

I'll create an installable 'root-apk' after the people agreed on how root on 4.3 should look like (all current solutions are VERY hacky).

And OTOH i agree with Cyanogen: I see no reason for root-apps anyway. Most (if not all) of them are bad hacks.
[Xperia Z General] gm007:
Ah ok thanx for all your work :)

Between, the default governor is ondemand not interactive i think that's why the phone is little slow and mpdecision should be on to conserve the battery and less heat.

I know all this not important for you now but just to let you know.
[Xperia Z General] pabx:
I dropped mpdecision long ago and replaced it with my own daemon: qc-fqd (fully opensource)

https://github.com/adrian-bl-yuga/yuga-tools/blob/master/qc-fqd/qc-fqd.c

mpdecision is a piece of crap: It really was designed for benchmarks and tries to bump your CPU to 1.5ghz + enable all cores as soon as possible. qc-fqd is very conservative.

Anyway: You can re-enable mpdecision if you don't care about battery life :)
[Xperia Z General] gm007:
What i know if mpdecision is on than one core will be online and the others will be online when needed.

Is it the opposite?
[Xperia Z General] PNuT.:
is that a different zip to the one that was lurking yesterday? I tried what you did but it didn't work for me
[Xperia Z General] gm007:
No idea why,maybe try with fresh install?

Or like what pabx say.
[Xperia Z General] PNuT.:
It was fresh.... will have another play later :good:
[Xperia Z General] pabx:
mpdecision does the same as qc-fqd: It checks the run queue and activates new cores if it exceeds a hardcoded threshold.

This threshold value seems to be VERY low in mpdecision: I've seen it activating 2 cores while using the webrowser on websites without a complex structure.

qc-fqd is much more conservative. But as i said: if you want mpdesicion: Just replace the qc-fqd with mpdecisiond and reboot your phone.

About the governor: Switching to interactive shouldn't be an issue but this will break thermald (so don't be surprised if your phone suddenly turns itself off). Someone should probably also write a replacement for this - it's not rocket science
[Xperia Z General] BoneMo:
4.3 gapps http://goo.im/devs/BaNkS/Gapps 4.3 Alpha Testing/GApps Core 4.3.zip

taken from pulser_g2 thread
[Xperia Z General] nycbjr:
wow man, that is very detailed, and very kindly of you, most other devs are very cryptic (sometimes still helpful!), I will look at all this, yes the ZL is a qcom modem, and the tab z lte has one too.

Rock on and good luck with this, sounds like you have quite the following!
[Xperia Z General] adamsweeting:
pabx...

I know we can get a root adb shell (which is great) - but the FS is read only.

Is there a command I can issue to mount the FS as r/w?
[Xperia Z General] Carceri:
mount -o remount,rw /system
[Xperia Z General] adamsweeting:
Cheers Carceri!
[Xperia Z General] Alhaddad:
SuperSU 1.51 has been released, can someone who have 4.3 confirm if root is fixed?
[Xperia Z General] heubergen:
I've make a little how-to for people that can't (because it will not work) or not wan't use adb.

1) Download a kernel with a recovery (you can use any kernel, you boot just in the recovery) for example => http://d-h.st/CB4

2) Copy this flashable GAPPS 4.3 package on your sd card => http://xdaforums.com/showthread.php?t=2378992

3) Flash the kernel from step 1 with fastboot

fastboot flash boot boot.img

4) Flash the system and userdata from this ROM

fastboot flash system system.img && fastboot flash userdata.img

5) Boot into the recovery

6) Flash the GAPPS

7) Boot into the Bootloader (so fastboot mode)

8) Flash the boot.img from this ROM.

fastboot flash boot boot.img

9) Enjoy
[Xperia Z General] imna357:
Thanks a lot mate you made my life easier and very gratefull to PABX:good:
[Xperia Z General] pabx:
The next release will include CWM - but building it will take some time as my btrfs (with my build-chroot) just died :-/

Patching fsck.c isn't fun.
[Xperia Z General] heubergen:
No problem, we have no a how-to :)

Can you say when the LTE should work?

With the Orginal FW I have LTE but so, it not work.
[Xperia Z General] imna357:
I'll be patient
[Xperia Z General] Alhaddad:
Why not twrp? It's much better and faster
[Xperia Z General] imna357:
+1000:thumbup:
[Xperia Z General] Carceri:
Why not this one? https://github.com/Dees-Troy/extract_elf_ramdisk

It allows one to store a recovery image in the fota partition, so one can change or upgrade recovery without having to flash a new boot image.
[Xperia Z General] pabx:
Could you give us more details? How and why is it much better and faster?

Last time i checked TWRP was because they claimed to have encryption support - well: Turns out that they didn't and looking at the source made my eyes bleed.

Uhm, no idea: Are you sure that it does *not* work? Did you test your download speed? (AOSP probably doesn't have an 'lte' icon - so the phone might use it even if it is not indicated in the status bar)

LTE will be hard to debug for me: I life in a lte-blind-spot

..and btw: 2.2 is out. horray.
[Xperia Z General] ckyy:
It's better as it uses touch navigation instead of the physical buttons. And the file manager is kind of nice too. But that's just my opinion
[Xperia Z General] imna357:
Gee wizzz, freaking fast update just like the ROM:)
[Xperia Z General] Alhaddad:
I don't know about the encryption, but judging from an average use of recovery, backup and restore process are much faster on twrp, the touch GUI makes it a lot easier and faster to do things.. Anyway, I can unpack the boot.img, replace recovery and pack it

---------- Post added at 12:27 AM ---------- Previous post was at 12:25 AM ----------

Thanks, I already know this :)
[Xperia Z General] Upy3r:
[MENTION=3911109]pabx[/MENTION] sorry men can i use this rom on C6602 debices? Without loose my 1900mhz radio modem band?

When i try taylor swift ROM my phone show C6603 and only works EDGE..
[Xperia Z General] pabx:
I don't know, give it a try. At least with my C6603 i get HSDPA speeds.

In this case it will probably be the same as his 4.3 ROM is based on my 2.1 build.

But if it doesn't work you could try to simply replace the radio firmware with a version found on a C6002 device:

- backup /system/etc/firmware/* from your existing ROM

- flash this ROM and if it doesn't work, copy...

- apps.mbn rpm.mbn sbl* efs* from the c6602 version to /system/etc/firmware and reboot

Edit IF this works i could include both firmware versions in the ROM and make it automatically load the correct version.
[Xperia Z General] gm007:
Nice edit ;)

Me too that's what i though ;)
[Xperia Z General] spacelordmf:
Wich GAPPs need for 4.3?
[Xperia Z General] gm007:
The one in the op if you read it.
[Xperia Z General] Upy3r:
Kinda Weird no one has made a video review of this ROM.. I would flash in a couple of days I'm out of the town... But I'm going crazy.
[Xperia Z General] heubergen:
[MENTION=2564323]spacelordmf[/MENTION]:

Or you use that easy flashable ZIP => http://xdaforums.com/showthread.php?t=2378992
[Xperia Z General] lzyllp:
Do you know what 4.2.2 AOSP branch without SElinux patch？
[Xperia Z General] pabx:
I do not understand your question, but Android 4.2 never had SE Linux. SE-Linux is an Android >= 4.3 feature
[Xperia Z General] Carceri:
Does the compass work for others? It doesn't seem to work for me. Both Google Maps and GPS status always says that I face straight north no matter which direction I face.
[Xperia Z General] Bairei:
compass doesn't work for me too

EDIT: do you guys have bugged time in recovery and at the very beginning after boot? maybe it isn't very serious bug, but a bit frustrating (especially whenever i want to check which backup was earlier)
[Xperia Z General] schaggo:
Thank you, excellent work. I'm having troubles with the external storage as some others as well, my card is regular fat not ext4 though.

The storage does get mounted, but as a directory instead of a "drive" and several apps fail on my end, because they tell me that no external storage is mounted. Is there a way to circumvent this and get the card recognized as an external storage device?
[Xperia Z General] pabx:
I got the compass working with some strange patching: Either i am stupid or DASH is doing something silly.

Does someone know if the compass works on CM10?

Sorry, but i have no idea what you are talking about: Mounting storage as a 'directory' ?!

Please log in to your phone via 'adb shell' and post the output of:

cat /proc/mounts

..and...

hexdump -C /dev/block/mmcblk1 |head -20

I've been told that LTE works - but you have to select it manually, this can be done via: https://play.google.com/store/apps/details?id=de.mangelow.network -- maybe LTE should be the default - or maybe not (Battery hog?) .. hmm....