yashsingh1/xdaforums huggingface dataset:
[G4 General] Diatomix98:
Hello people, this is the new Germany V20g Marshmallow firmware. It's actually an O2 branded firmware with the security patch of March 1, 2016.

Originally found it from this site.

Just extract it and flash using LGUP.

https://www.androidfilehost.com/?fid=24572369242685442

Enjoy.
[G4 General] Al0n:
This version is branded from O2.

You are making people confused.. It is not an official Europe H815 version.

And also security patch is not for May but for March.
[G4 General] Diatomix98:
Oh my bad, should have flashed it before posting here.
[G4 General] gamzekal:
Official Version of Firmware for Germany is V20d-eur-xx and security update January 2016.I have used it until this week
[Xperia Z4/Z3+ Q&A, Help & Troubleshooting] KuroTheBang:
Hey folks, does anyone here have a deodexed 185fw? I tried to deodex and flash the system.zip afterwards several time but stucks at "SONY" logo and I have to restore TWRP backup then
[Xperia Z4 Tablet Android Development] andralex8:
File is uploading, should be online in a few minutes ;)

Edit : link temporary changed to google drive, I have problems to upload to androidfilehost. The link should work now :)
[Xperia Z4 Tablet Android Development] belrik:
Well done! Many thanks for getting this ROM started and sharing it.
[Xperia Z4 Tablet Android Development] alex009988:
Good to know that at last cyanogenmod was released for our tablet, hope it will be the same for SGP771 soon.
[Xperia Z4 Tablet Android Development] andralex8:
Audio fixed, now the tablet should have sound working properly ;)
[Xperia Z4 Tablet Android Development] belrik:
Great work! Hanging on for recovery code to be integrated after some foibles with fastboot on the sgp612.
[Xperia Z4 Tablet Android Development] andralex8:
Thank you!

In fact the current kernel/ramdisk can launch a recovery by pressing the vol+ when the led turn pink, but it cannot load the currently available TWRP recovery that need Androplus kernel.

I'm currently making a recovery that work with this kernel (it seem that it work with Androplus kernel too). It actually kinda work, it can wipe system and flash Cyanogenmod (not trying backup and restore yet). But the updater crash when trying to install Gapps, I need to fix this and it should be ok ;).
[Xperia Z4 Tablet Android Development] Charsher47:
Awesome work, thanks! It's running pretty smooth. No problem booting TWRP manually from fastboot. Good luck hammering out the small things :)
[Xperia Z4 Tablet Android Development] andralex8:
TWRP is now working with the rom ! And without the need of the fastboot trick :).

It's build to work with the kernel I used for cyanogenmod. (It work partialy with Androplus kernel too but with some limitations like adb is not working, ...)

This is the link: https://www.androidfilehost.com/?w=files&flid=67717
[Xperia Z4 Tablet Android Development] andralex8:
I forgot, but touchscreen may not work at first TWRP's boot. Just reboot the recovery and it should work again.
[Xperia Z4 Tablet Android Development] Charsher47:
Recovery works great, no touchscreen issues after flashing it. :good:
[Xperia Z4 Tablet Android Development] HotBlack77:
I would be willing to test an SGP771 version, if you can compile one?

Also, are the install instructions still correct?

Should it not be the TWRP version you have built that should be used, as opposed to the AndroPlus version?
[Xperia Z4 Tablet Android Development] andralex8:
I will check this week-end if I have the time ;). But I must make a cm device repo from Sony's AOSP repo before being able to compile anything. So I don't promise anything, I will see.

You first need to have a working recovery to flash CyanogenMod. And for the Z4 tablet (and almost all Xperia), the recovery use the same kernel as the system because the recovery is not lauched by the bootloader, but after, by using the FOTAKernel partition as a recovery partition.

It's the reason for what when coming from stock I advise to use Androplus kernel and TWRP. After flashing CyanogenMod, the kernel is cm's one, then TWRP from Androplus will not work and you will need to switch for TWRP for cm kernel.

You can try to use TWRP for cm kernel with Androplus kernel. I tried and it seem to work, but since it's not compiled with this kernel it may not work properly. I didn't make an extensive testing for this configuration (Androplus kernel + cm TWRP), so I can't advise people to use it but maybe it's not a problem.
[Xperia Z4 Tablet Android Development] andralex8:
Bluetooth should be fixed, the annoying bug with the keyboard is gone :).

Using broadcom libbt from AOSP seem to fix the problem (thanks again to Sony Kitakami Platform Developer Organization)
[Xperia Z4 Tablet Android Development] andralex8:
Sensors fixed !

Now automatic rotation work (and other sensors too).
[Xperia Z4 Tablet Android Development] calj17:
Is sgp771 going to be supported?

Enviado de meu SM-N920G usando Tapatalk
[Xperia Z4 Tablet Android Development] andralex8:
This is what I already said a few post ago:

So, you will tell me that yourself if it work or not when I'll make a test rom for SGP771 ;).

I already take a look and it have most of the device tree common with the SPG712, so I think it should not be too difficult to have a working rom for the sgp772 because it's working on the sgp712.
[Xperia Z4 Tablet Android Development] calj17:
Great to hear that. The only difference is modem blobs between sgp712 and sgp771

Enviado do meu iPad usando Tapatalk
[Xperia Z4 Tablet Android Development] andralex8:
All fresh from this night, this is a rom for the SGP771 (Karin) :

https://www.androidfilehost.com/?fid=24591000424940766

I didn't test this rom because I only have a SGP712. Then, if someone can give me a feedback if the rom install and lauch correctly it would be great :).
[Xperia Z4 Tablet Android Development] jongcruz:
I have the 771 LTE version with recovery installed. I just need to flash the ROM and google apps?

Thanks
[Xperia Z4 Tablet Android Development] andralex8:
Yes, you just need to wipe before (system, cache, Dalvik cache and data, and make a backup !), it's like most of the roms.

The only thing required is that you must have already updated to android Marshmallow (cm kernel will not boot with the old Lollipop bootloader).

And when you want to come back to stock, you need to use the recovery for cm kernel (or Androplus kernel if you want to keep your recovery), then restore your backup.
[Xperia Z4 Tablet Android Development] HotBlack77:
I just did a full wipe and install, I kept it simple flashing just the image, no apps or anything else. Unfortunately once I boot I get an endless stream of "Unfortunately, Trebuchet has stopped" errors. I tried to install side flash another launcher, but was never able to set it as default and sidestep the errors.

Has there been a change in Trebuchet in CM main lately or is this specific to this tablet? Is there a Trebuchet in the WiFi build from the same date?
[Xperia Z4 Tablet Android Development] andralex8:
This sound strange, because I used exactly the sames sources for cm for both wifi and LTE, so Trebuchet should be the same.

Did you try to make again a wipe by the advanced menu (system, data, cache, Dalvikcache) after having this issue ?
[Xperia Z4 Tablet Android Development] HotBlack77:
Yes even wiped internal data as well to be sure.
[Xperia Z4 Tablet Android Development] andralex8:
Ok, thank you for trying anyway.

I don't see an evident reason for this problem. This build should be clean as i didn't have previous builds. Maybe because I didn't remove the .ccache, I will try to make a new build after a make clobber and rm .ccache, I hope it will fix this problem.
[Xperia Z4 Tablet Android Development] HotBlack77:
Ok, I will try it when it's ready.
[Xperia Z4 Tablet Android Development] andralex8:
I did most test today. I installed this karin version on my karin_windy device (it's possible because they share the same kernel and kernel defconfig is common in AOSP/CM, just need to bypass the board verification that prevent the installation).

And it work, no trebuchet problem. The only difference is a different menu for mobile data in the parameters, that's expected because of the wifi only version. So, I don't think that rebuild the rom will change something.

Can you provide me a catlog of this problem ? What is the version of the stock android rom you use ?

Does somebody else with SGP711 tried and had this issue too ?
[Xperia Z4 Tablet Android Development] HotBlack77:
I am on stock version 32.1.A.1.163. This is the newest version available for my region (Nordic). Is there a specific recommended version?
[Xperia Z4 Tablet Android Development] andralex8:
I had a problem when installing cm over stock Lollipop rom (issue due to kernel appended dts not supported by lollipop bootloader), but I don't think it could change something between marshmallow versions because the rom is wiped and replaced by cm, and bootloader should not affect things so long after boot up. Maybe other "hiden" partition (like persist,...), but I don't realy believe in this hypothesis.

I'm just desperatly trying to find others differences between your tablet and mine that can lead to differents behaviors, except that it's LTE or wifi ;).
[Xperia Z4 Tablet Android Development] kokoras12:
I tried the rom also with 185 version of rooted stock marshmallow rom customized for Greece and I had the same problem.I installed with twrp recovery and afterwards I had to install androplus kernel and recovery again to restore previous rom.

Στάλθηκε από το SGP771 μου χρησιμοποιώντας Tapatalk
[Xperia Z4 Tablet Android Development] andralex8:
Ok, thank you for trying too.

Did you make a catlog?
[Xperia Z4 Tablet Android Development] kokoras12:
No sorry

Στάλθηκε από το SGP771 μου χρησιμοποιώντας Tapatalk
[Xperia Z4 Tablet Android Development] andralex8:
Ok, not a problem ;).

But if you, HotBlack77, or someone else have the time to try again for make a log I think/hope it could help to find what cause this problem. It's because i cannot reproduce it myself...
[Xperia Z4 Tablet Android Development] belrik:
How's it going guys, any updates to share?
[Xperia Z4 Tablet Android Development] andralex8:
Hi !

I updated cm sources and proprietary binaries last weekend.

The camera and otg still don't work, the remaining seem to work.

Otherwise, the rom is stable, I'm personally using it daily since I don't really need the camera of the tablet.

For the camera I'm waiting updates from Sony to update the camera blobs, and I'm searching fo the otg usb this weekend.

The rom is actually compiling on my computer with some changes to the kernel. I'm trying to have a working otg, but I think it will need more changes, I won't forget to share when it will work (maybe this weekend, maybe the next one, maybe another, but I hope it will work soon ;) )
[Xperia Z4 Tablet Android Development] calj17:
Any news on rom for sgp771?

Enviado de meu SM-N920G usando Tapatalk
[Xperia Z4 Tablet Android Development] andralex8:
No, because I don't have a lot of information about why it's not working. I don't have a sgp771 to test myself and I don't either have any logcat or something else to give me a clue.

I can make a new build today or tomorrow if you want to check again. Maybe it was a problem about an interference with a miss cleaned previous build from the sgp712 (I don't think because I cleaned everything, but we never know ;) ), but if the problem is still there I'll need more informations to fix this.
[Xperia Z4 Tablet Android Development] HotBlack77:
Let me know when you have a new SGP771 build and I will test and dump logs.
[Xperia Z4 Tablet Android Development] andralex8:
[MENTION=2752725]HotBlack77[/MENTION], thank you :), this is a new build :

https://www.androidfilehost.com/?fid=24591000424947877
[Xperia Z4 Tablet Android Development] alex009988:
Hi. Thanks for your work. It loaded, as usual, at first start it asked me to connect with wifi and google account. But after all, there is the error " Unfortunately, Trebuchet has stopped". If I touch ok, this window with error appears again. As the result, It makes it totally unusable((((
[Xperia Z4 Tablet Android Development] andralex8:
Thank you for trying :).

So, as expected, same problem as the previous build.

Have you thought to make a logcat when having this issue?
[Xperia Z4 Tablet Android Development] alex009988:
Thank you too for trying to help us with our device.

I haven't heard about logcat before, but no problem to find it out.

If it would give a tinest hope to sort out the problem, of course I do twrp dump and try cyanogenmod again and make dump, tomorrow.
[Xperia Z4 Tablet Android Development] HotBlack77:
[MENTION=6336863]andralex8[/MENTION]: Sorry about the delay I have been moving house, I hope to give it a try later this week and get the logcat dumps to you.
[Xperia Z4 Tablet Android Development] andralex8:
No problem, I'm not in a hurry ;). I've got things to do too, so I understand.

It's when you or alex009988 have the time and the motivation :).
[Xperia Z4 Tablet Android Development] alex009988:
Bad news((( First of all I checked my adb drivers. On stock rom of 771 tablet and xiaomi redmi note 2(Cm12.1 by the way) it works.

I flashed your cm, "adb devices" keeps silent. So I guessed I need to turn on usb debugging. "Unfortunately, Trebuchet has stopped" really hindered to touch anything at the setting. But if you have really really fast fingers you may have a chance. Thus, I was able to turn on developer options. But when this submenu opens I get black screen and no more. Searching for "Revoke USB debugging authorization" gives the same result.

In other words. it's totally 100% impossible to get logcat on this rom.

Maybe is it better to build a rom with turned in USB debugging?
[Xperia Z4 Tablet Android Development] andralex8:
[MENTION=4127195]alex009988[/MENTION], thank you for trying.

I think I will not try again to solve the trebuchet problem... Because I think I just solved this problem ! (Bad joke, I know :p )

Short story : I made a version with adb enable, with some tricks I installed the SGP771 version on my SGP712, I could reproduce this problem, got a logcat, solved the problem, done ;).

This is a new build :

https://www.androidfilehost.com/?fid=24591000424950953

[MENTION=4127195]alex009988[/MENTION] or [MENTION=2752725]HotBlack77[/MENTION], can you confirm me that it's realy ok ? So that I'll update the first post.
[Xperia Z4 Tablet Android Development] andralex8:
edit : double post, sorry
[Xperia Z4 Tablet Android Development] alex009988:
Thanks man, you really fixed it. I attached logcat with gapps.

But, twrp for cm is highly buggy. It cant install cm rom(red error), when I installed gapps I've got the same error as "trebuchet has stopped", there were "Google services has stopped, startup wizard has stopped" and black screen after it.

With androplus kernel everything is ok.

So, thank your very much for fixing cm rom for us. I hope the development will be continued.

If I find extra bugs. I write about them letter.
[Xperia Z4 Tablet Android Development] alex009988:
As to bugs of cm, I've found two at least.

1) No close all apps button, its necessary function.

2) battery persantage, regardless of inside the icon or next to the icon, it's always shown as next to the icon.

At the same time, this ROM works quite stable and fits to day to day usage. I won't recover my stoke ROM,stay with cm.
[Xperia Z4 Tablet Android Development] andralex8:
[MENTION=4127195]alex009988[/MENTION], thank you for the feedback :).

Yes, I need to work again for TWRP, I'm using and it does it job for me, but there is still bugs. It seem not to work with you, I'll check if making a separate version for karin change something.

I don't plan to stop dev for now ;). I don't have the time today, but I'll update the thread tomorow to support SGP771 too.

For the close all apps, I think you can add this in the parameters (I'm on RR now, and it's possible, I'll check for cm).

The problem with the battery is present on RR too, I didn't noticed that before. I don't know if it's device specific or a bug in cm code (and RR is based on cm).

Happy to ear that the rom please you ! I'm also don't use stock from a few weeks. But there is still the camera problem, I hope Sony will update the blobs for their last devices soon.
[Xperia Z4 Tablet Android Development] alex009988:
I found something strange with SD card, it works. But apps don't want to see apps files.

For example, golden dict doesn't see dictionaries on sdcard, but on internal storage, it's good. The same story with games.

I tested aerofly2, and the the cash(obb file) when it is on sdcard it doesn't work, on internal storage it works.

So what is that?

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

Add 1.

One more bug, when the tablet is powered off, you put the charger in, battery indicator appears.

And when you are trying to switch on the tablet, it just gives a black screen with the red led. Only power + volume up helps.
[Xperia Z4 Tablet Android Development] andralex8:
I tested golden dict, and like you it doesn't detect the folder in sd card. But it's not a general problem, my other apps can read and write on sd (with correct permissions off course).

I decompiled the golden dict apk to see what's wrong, in fact the app could access the sd card, but it don't see the sd because it search for all mounted filesystem with vfat, exfat or vfat type (and it find only /firmware). The reason why it don't see the sdcard is because it's mounted using fuseblk. In short, it's the mount configuration that is no handled by the app. I think it's possible to make a legacy support for apps like that by manualy mounting the sd with vfat or exfat.

Oh yes, it don't boot if the charger is connected. I'll add this to my todo list ;).
[Xperia Z4 Tablet Android Development] alex009988:
Hi. Thank you for your answer. The point is that not only golden duct has this problem, absolutely any app can't see its system files on sdcard. I checked it on xplane 10 as well.

When you try to extract a zip with es file manager, it thinks that sdcard is the internal storage. And SD card is kinda 3033-6530...

I tested many ROMs(cm, aosp, miui and much more)on my two phones however this problem I faced for the first time. Stock Sony's ROM doesn't have this problem too.

So,only legacy support could fix it? Format of sd card to other type of file system won't help?

Or a trick with permissions might help?:)
[Xperia Z4 Tablet Android Development] andralex8:
You're right, if you have this problem with more apps it's not normal. You tell me that extract a zip with es file manager don't work on SD ? For me I can access files on the SD with es and extract files without problem. I'll do more research if there is an additional permission problem or something else.
[Xperia Z4 Tablet Android Development] alex009988:
I'm sorry I did mistake. It turn out that when es file manager suggest to extract a file to sdcard/android/obb.

"SD card" is internal storage on any device( I thought sdcard is sdcard, but its not), and

If you move game cash(obb) file to real SD card on any device, that game won't work until you make some trick. However, in case of golden dict, I have xiaomi redmi note 2 with golden dict and cm12.1, and it doesn't have that problem.

But I think the problem with golden script can be,for example, solved by gscript for those who wants to keep dictionaries at sdcard...

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

Add 1

It seems led indicator while charging doesn't work sometimes when it',s on and never when it's off.

And didn't Sony provide any sources for FM radio?

And again, thank you for the ROM. It may not perfect but good. And I believe it will be perfect soon)))
[Xperia Z4 Tablet Android Development] andralex8:
Ok, no problem ;).

I tried again for Golden dict to mount the sd folder on internal (ln -s and mount -o don't work but it seem to be the case for all android devices). Mounting manually the sd on other folder works (I can acces with es file explorer), but it stay in fuseblk and force -t vfat doesn't work since it's busy on the other mount point. It seem to have a possibility with debbugerd to bind the folder, but I haven't tried. Or modify the apk to support fuseblk.

I don't know about the FM, I never use that so I didn't think to check. ---> to todo list ;)

You welcome, I'm happy to ear that. It's never perfect, but I hope to make it the most I can (I'm still a bit a beginer in making roms and I don't always have a lot of time, so I do my best :) ).
[Xperia Z4 Tablet Android Development] JangoF76:
Hi, thanks for bringing cm13 to us! I found an issue with Bluetooth - when connected to my BT speakers it will drop the connection every now and then and I get "unfortunately, Bluetooth share has stopped" then after a minute it reconnects and works fine for a while.
[Xperia Z4 Tablet Android Development] andralex8:
Thank you for trying :).

Could you provide me a logcat of this issue?
[Xperia Z4 Tablet Android Development] alex009988:
Hi. Seems(just seem want to know your opinion, maybe it',s a drawback of the game, not ROM) fps is low with some games, I tested Wwr(walking war robots).

Let's upload some test

Sgp771

http://browser.primatelabs.com/geekbench3/7598651

3d mark 1478

My phone Xperia Z4 Tablet by AntutuBenchMark performance test score of 66169 http://bu.antutu.net/s/?v=1.1&os=android&p=17647717

Xiaomi redmi note 2

http://browser.primatelabs.com/geekbench3/7598674

3d mark 455

My phone Xperia Z4 Tablet by AntutuBenchMark performance test score of 46443 http://bu.antutu.net/s/?v=1.1&os=android&p=17647711
[Xperia Z4 Tablet Android Development] andralex8:
I don't play games on my tablet, but I already noticed that the hw decoder seem to be a bit laggy sometimes using MX player. Maybe a problem with adreno blobs? I use the last version provided by Sony AOSP, I will check with the previous version if it's the case too.
[Xperia Z4 Tablet Android Development] andralex8:
[MENTION=4127195]alex009988[/MENTION]

I tested the stock Adreno blobs vs Sony AOSP blobs on ResurectionRemix, the benchmark results seem closes :

RR + stock Adreno

Antutu 6.2.0:

80132

3D Mark (Sling Shot opengl 3.1):

1734

RR + AOSP Adreno v05a

Antutu 6.2.0:

77939

3D Mark (Sling Shot opengl 3.1):?*

1747

But it seem that there is not the small display bugs with the stock Adreno blobs compared to AOSP blobs (like dialog box appearing small during a very short time before getting the correct size).

I'll probably use the stock Adreno blobs for next builts, I hope it will solve your problems with games :).
[Xperia Z4 Tablet Android Development] belrik:
Any likelihood on seeing a nightly CM build for this device?
[Xperia Z4 Tablet Android Development] andralex8:
Not yet, we need a fully working rom to have a chance to have an official support of CyanogenMod ( and we still don't have a working camera).

But maybe one day, new camera binaries for AOSP will be released the next week by Sony and they should make the camera functional ;). But we will probably need to use the more recent kernel sources from Sony and it's still experimental and could be unstable. I'm currently making a build with this new kernel to check the current state with Z4 tablet and prepare to new binaries.