yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Tablet Original Android Development] hoktar83:
Hello!

I tried to install "ROM official AICP 14.0 - p9.0 - castor (Sony Z2 Tablet) ROM'"but thrown Recovery error "e3004 this package is for device ..."

I know this suggests that the TWRP Recovery type is not right for my device. Where can I download the latest TWRP Recovery? My device. I can't find it on the official TWRP site. My Device Type: Sony Xperia Z2 Tab LTE SGP521 castor.

Please help! Thanks!
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
I recommend the TWRP linked from the CarbonROM thread.

I guess I should put that link in the first post...
[Xperia Z2 Tablet Original Android Development] hoktar83:
Thank you for your help! The "twrp_3.2.1-c" works!

Have a nice day!
[Xperia Z2 Tablet Original Android Development] Br4no:
Hi,

Thank you for the update :)

I dirty-flashed the update and camera behaves the same. So it allows me to do one shot and after that it crashes. I wanted to grab the logs but realized that magisk stopped working. Flashing of magisk 18.1 goes well, but I dont have root after reboot. Weird... I should probably go for clean flash....
[Xperia Z2 Tablet Original Android Development] pitors:
Camera do not work in newest rom
[Xperia Z2 Tablet Original Android Development] churchner420:
Has anyone tried porting the Pixel 2/ Pixel 3 bootanimation to the Sony devices. The normal bootanimation does not work because of the different sizes of the PNGs and the trim.txt files. I'd really like to use that bootanimation though but I can't figure out a way to port the animation to the Z2 Tablet or my XZ2 Device. I would really appreciate any help ;)
[Xperia Z2 Tablet Original Android Development] solved:
i'm using xperia bootanimation .. like the feeling that the software is still a part of xperia, so i switched a couple of apps, bootanimation, keyboard .. to stock sony xperia things :P
[Xperia Z2 Tablet Original Android Development] pixbuf:
I was going to try flashing the 5/3 release but I can't get my tablet into recovery anymore. I tried the volume up button, the simple reboot app, and adb reboot recovery. I get the SONY xperia screen, the screen goes black and then the SONY xperia screen again, and then system boot. I reflashed twrp in bootloader with fastboot twice but it doesn't help. Any ideas?
[Xperia Z2 Tablet Original Android Development] flipside101:
I've just hit the same issue, the only significant thing I did recently was update magisk
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
I got similar reports considering Magisk 19.1 for my z1 compact, so I'd recommend staying on Magisk < 19 for now.

To get back to a working setup, please try:

- Boot to fastboot

- Run 'fastboot boot twrp.img' with the TWRP for your device

- Wipe system, this should remove Magisk (and GApps)

- Flash AICP

- Optional: flash GApps + older Magisk
[Xperia Z2 Tablet Original Android Development] pixbuf:
I did that but TWRP doesn't run right. Here's what I did:

# fastboot devices
CB5126WCC1 fastboot
# fastboot boot twrp_3.2.1-cw.img
Downloading 'boot.img'
OKAY [ 0.412s]
booting
OKAY [ 0.054s]
Finished. Total time: 0.479s

The green LED went out, the screen went blank, and that's all. Then I tried this:

# adb devices
List of devices attached
CB5126WCC1 recovery

So, it looks like it worked as expected up to a point but there's nothing on the screen. :(
[Xperia Z2 Tablet Original Android Development] pixbuf:
Now I really screwed the pooch. I tried booting an earlier TWRP (3.0.5?) That worked, I wiped system, and then tried to flash AICP, but it told me it was the wrong ROM version for my device. Then I remembered why we don't use that version of TWRP anymore. Now I can't get it to boot into bootloader again. I hold the power button until it turns off but it starts up again immediately before I can hold down the Volume down button and plug in the USB cable. No matter what I do it's stuck at the SONY xperia splash screen. Can't get it into bootloader or recovery. I think I proper killed my tablet. :crying::crying::crying:
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
Magisk rescue

I upgraded Magisk today to see how I can restore a working system in that scenario.

To remove Magisk 19.1 in order to be able to access recovery again, do the following:

- Power off your device

- Hold volume up while connecting to to your PC with USB to enter fastboot mode (blue LED lights up)

- `fastboot flash boot boot.img` with the correct boot.img for your device: castor_windy, castor

- `fastboot reboot`

After that, Magisk Manager should say "Magisk is not installed" and boot to recovery should work again.

Press and hold power button and volume up to force power-off the device. Then you should be able to access fastboot mode again.
[Xperia Z2 Tablet Original Android Development] schnuff*1:
These steps are successful for me (same problem with "no recovery")

But now-how to install magisk 18.1 again? Installation wit twrp is done, but magisc manager says " not installed".

What should I do?

Thanks.
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
I had that too, Magisk actually was flashed but crashed doing boot, so Magisk Manager reports it's not installed. I haven't figured out why yet, but restored a backup from a working setup instead.

Maybe a clean flash could work...

If anybody finds another way, please share
[Xperia Z2 Tablet Original Android Development] schnuff*1:
O.K., thanks.
[Xperia Z2 Tablet Original Android Development] pixbuf:
Great! That fixed it. Now I'm going to try and flash Magisk 18. :fingerscrossed:

I flashed Magisk 18, then installed Magisk Manager 7.1.2. When I run it, it tells me Magisk is not installed. Oh, well. At least I've got a functioning tablet again.
[Xperia Z2 Tablet Original Android Development] randyradar:
I went back to Magisk Manager 6.1.0 APK and Magisk 17.3 from https://www.androidblog.gs/download-magisk-18-0-apk-magisk-manager-6-1-0/. It works, I have root (Root Checker, Busybox, etc.) and TWRP recovery. Hope this is a short term approach for now.
[Xperia Z2 Tablet Original Android Development] pixbuf:
I'm happy for you, but it doesn't work for me. I flashed Magisk-v17.1, and then tried to install MagiskManager-v6.1.0 but I got a triangle with a ! and a message saying Not installed. :confused:

Fixed it! I ran the Magisk-uninstaller, flashed Magisk-17.1, and installed MagiskManager-v6.1, and everything is cool (except Magisk keeps nagging me to upgrade).

Wow! When you don't have root and can't install an ad blocker, you realize how amazingly full of annoying ads the internet is!
[Xperia Z2 Tablet Original Android Development] schnuff*1:
Magisk uninstaller is the key-yes!

I don't know this tool before.

I#ve installed Magisk 18.1 for now and it works perfekt :o
[Xperia Z2 Tablet Original Android Development] randyradar:
Thanks. I've installed Magisk 18.1 with Magisk Manager v7.1.2 too...root and TWRP are functioning. But, again Magisk 19.1 still causes loss of TWRP at this time.
[Xperia Z2 Tablet Original Android Development] Godecki:
Guys, on my tablet Netflix works! Have you heard about Netflix-enabler? There is a thread about it on XDA. You can download a specific zip and modified version of Netflix so it's able to work. This modified version is not the latest, but it's still not too old. Netflix works like a charm now, the content is in HD. Go check is out guys :D
[Xperia Z2 Tablet Original Android Development] L3ibnitZ:
Since the developer has fixed it Netflix works for me without any mods.
[Xperia Z2 Tablet Original Android Development] randyradar:
Per this URL: https://www.xda-developers.com/twrp-3-3-0-release/ a new TWRP 3.3.0 is available. Might that solve the Magisk 19.1 compatibility issue? I haven't been able to find a TWRP 3.3.0 download for the Xperia Z2 Tablet (Castor-Windy). Does anyone know if a TWRP 3.3.0 will be available for this device?
[Xperia Z2 Tablet Original Android Development] Godecki:
Oh, it works for me now. However, when I was on a previous build Netflix and notification LED while charging didn't work. I performed the update through the in-built interface and despite the update being successful, Netflix and LED were still not working. This time I performed a clean flash using TWRP and both of those problems are now fixed :)
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
I don't see how this should solve it. You can check out the Magisk issue on github for more information.

I don't think so, I haven't really seen any active development by others for z2 tablet recently, and as long as there's a working recovery already out, I don't see the need for building one myself
[Xperia Z2 Tablet Original Android Development] randyradar:
Thanks for the feedback. I'll follow the URL you supplied to track what's potentially happening. :)
[Xperia Z2 Tablet Original Android Development] flymetothemoon:
I am afraid you are right. Changed from Carbon ROM to AICP as the Carbon dev stopped working on it.

First: I am impressed. Everything I tested worked and the tablet runs stable since one week now. Even tried encryption and it seems to work.

But as there is no up-to-date TWRP, you can't install updates when your device is encrypted. The TWRP version is still based on Oreo and the encryption method changed apparently. Had the same issue with my Xiaomi phone.

So... how shall I put it... If you are able to compile a new TWRP, I would be grateful. :)
[Xperia Z2 Tablet Original Android Development] Br4no:
Hi,

I'm just a little playing with kernel adiutor and got my old z2 quite snappy with intelliplug and some adjustments. Will see what it does with battery and temperature, though :D

Any tips??
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
From what I remember, even recoveries built from newer sources for z1 family don't support encryption out of the box, so I fear it's a little more than just "compiling a new TWRP" to get encryption working.

I'm putting it on my TODO list for now, but I probably won't spend much time on it soon
[Xperia Z2 Tablet Original Android Development] Godecki:
I've got another issue. After installing the system, I am no longer to boot into recovery. Auto-updates fail and when trying to manually enter recovery via pushing volume up button at the start-up, nothing happens and the tablet starts booting from the beginning. Why is that? I was indeed flashing TWRP via Flashtool and tried the same via ADB commands.
[Xperia Z2 Tablet Original Android Development] _Sherrif:
About 5 post back this is discussed. It is MAGISK 19.x causing this. Not sure exactly which version of 19 but 18.1 has no issues.

Flash the ROMS boot.img in fastboot then reboot to TWRP and install MAGISK 18.1 for the fix.
[Xperia Z2 Tablet Original Android Development] pitors:
Miracast does not work. Could You fix it?
[Xperia Z2 Tablet Original Android Development] randyradar:
For what it's worth Magisk 19.0 is successfully installed but not Magisk 19.1.
[Xperia Z2 Tablet Original Android Development] churchner420:
Has anyone tried Magisk 19.2 yet? It has officially been released.
[Xperia Z2 Tablet Original Android Development] randyradar:
Yes I tried 19.2 and it produces the same result as 19.1 does. I had to reinstall 19.0 after flashing boot.img to get access to TWRP.
[Xperia Z2 Tablet Original Android Development] xrenoix:
Hello yes me too i have problem with magisk 19.2

1 clean flash ROM ZIP + gapps first boot

2 reboot in recovery install 19.2 succesfull !

3 no boot to twrp after
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
The next builds should work fine with Magisk 19.1+
[Xperia Z2 Tablet Original Android Development] xrenoix:
Hello [MENTION=6425591]SpiritCroc[/MENTION] for boot in recovery:

1 tablet power off

2 just push vol down + power Button release at vibration and twrp 3.2.1-1 work with magisk 19.2

3 work on my LTE model but not work on my wifi only

I use this recovery https://xdaforums.com/xperia-z2-tablet/development/7-x-x-carbonrom-cr-5-1-t3654983

Thank you for your work bro
[Xperia Z2 Tablet Original Android Development] randyradar:
It all works... Thanks

I just installed the latest build and everything works. Thanks for the update to everyone who had a hand in solving this issue. :D
[Xperia Z2 Tablet Original Android Development] Br4no:
Hello [MENTION=6425591]SpiritCroc[/MENTION],

Are you going to need people to test next test builds or should I go for official builds? I noticed that those are more recent according to the release date.

Thanks!
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
Better to go for official builds, there shouldn't be anything open for testing in the latest test builds right now.

There are some commits open that supposedly fix camera issues on z2 that I could build to let you test, but they break camera on the z1 line unfortunately, so I'm not really happy with those yet
[Xperia Z2 Tablet Original Android Development] bastard79:
hello [MENTION=6425591]SpiritCroc[/MENTION], from last 2-3 builds i have the same issue with battery, first turnoff on 15%, now go from 70% to 1% and turn off.

im thinking this is something with rom couse it it start after upgrage
[Xperia Z2 Tablet Original Android Development] eazrael:
My old Z2 Tablet is currently dying slowly so I finally switched to my spare one, completly pristine. I installed the TWRP 3.2.1 from the first post and the most recent weekly from the "stable" link in the first post. Took me a couple of tries, and wiped everything after each try. It's working now and I installed gapp-pico and Magisk 18.1. Fresh install with no backup restored. For a five year old model with this great ROM it's really impressive.

But... I have a couple of BSC10 docking stations and when I put the tablet into the dock and power off the screen, after a few minutes it will reboot at random. I collected the logs from the AICP app, but it seems that the kernel log cannot be collected. Anything I can do to make this work?

I uploaded the logs to https://haste.aicp-rom.com/owugixetil . Hope that's okay.

Oh, it's a SGP512 (castor_windy, 32GB)
[Xperia Z2 Tablet Original Android Development] -kOS-:
Hmm i second that, I have exactly the same issue, when my Z2 tablet reach 70% it go to 1% and them shutdown :rolleyes:, I was believing it could be the battery, with it appears it won't be.... :confused:

I gonna try with an older build to see if this happens :good:
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
Can you check e.g. with a root explorer if after the crash+reboot, the file /proc/last_kmsg exists, and if it does, share its content?

Logcat and dmesg won't help much here when taken after the reboot unfortunately, it might be possible to watch them with a computer using adb over network to get the log just before/during the crash which could help
[Xperia Z2 Tablet Original Android Development] bastard79:
do you change charger? my problems start when change to new ugreen chargen, even fast charing will start :D now app aqqubattery shows only 1860ma health battery is about 30% of factory 6000ma.

im to lazy to back carbon 8.1 oreo but im still think it may be software rom problem.

if try other rom please write hows battery life change.
[Xperia Z2 Tablet Original Android Development] PVL_93_RU:
I don't think the ROM is an issue, not anymore. I've long rolled back to a stock Marshmallow ROM yet the quick discharge issue remained

It's probably just my tablet showing its age with a near-dead battery, as I did own it for almost 4 years by now

I do wonder why the issue only appeared after an upgrade to this particular ROM, but perhaps that was merely a coincidence
[Xperia Z2 Tablet Original Android Development] eazrael:
https://evilazrael.net/tmp/last_kmsg

But nothing of interest in there.

Can you give me some hints regarding logging over ADB? Need some keywords to do this.

My guess is that something happens when the battery is charged completely as it takes longer the lower the battery charge was.
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
To get a log over adb over network:

- Install adb on your PC

- Connect your tablet to a trustworthy wlan that has access to the same local network like your PC

- Go to developer options, enable "ADB over network" and check the address it displays then in the summary for that preference

- On your PC, run "adb connect <addr>", where <addr> is the address you found out in the step before

- In case you get "Connection refused": Connect your device using usb, run "adb tcpip 5555", then redo the "adb connect" thing, unplug usb

- Then you can run "adb logcat > logcat_file" to capture logcat and "adb shell dmesg -w > dmesg_file" to get dmesg

- If you get "Permission denied" for dmesg, run "adb root" and redo the "adb connect" thing

- While logs are being recorded, you can try to reproduce the crash and hope logs contain useful information
[Xperia Z2 Tablet Original Android Development] eazrael:
Thanks for the instructions. Unfortunately I was not able to get the root shell, but I found a workaround by setting the android shell to root in the Magisk Manager and then I was able to run adb shell su -c dmesg -wT

I uploaded the logs to https://evilazrael.net/tmp/xperia/dmesg.txt and https://evilazrael.net/tmp/xperia/logcat.txt but I haven't seen anything of interest and the tablet ran over the night before rebooting this morning.

I will make additional tests over the weekend:

- Testing if that happens without the docking station

- Log over USB if that is possible as my WLAN is a bit flakey

- Test with my old xperia.

Edit: Yes it does this without the docking station. Maybe I just got a faulty device :(
[Xperia Z2 Tablet Original Android Development] eazrael:
More testing.

- With USB connected it does not restart

- It happens independent of the docking station and with any battery charge level. Sometimes it reboots within one minute of the previous reboot

- I tried to narrow it down by not using WLAN, without magisk root and GApps, same result.

- TWRP runs stable, no issues at all

- When powered off, instead of the charging screen, this android ghost is shown, followed by a reboot after a few seconds

- I tried CarbonRom and it has the same issue.

- I flashed it back to the original sony image and hat no single unexpected reboot since then. The original sony image did at a least one special firmware update, to the NFC. I've never seen this before.

- I flashed my old Z2 to the latest weekly release and it runs stable. Also the display issues (loosing some colors, turning to grey and fading off to black) haven't happened sofar. Battery Life is great, but I haven't used it much.

I will flash AICP back on the new one when I have time.
[Xperia Z2 Tablet Original Android Development] pitors:
When the miracast will be repaired?
[Xperia Z2 Tablet Original Android Development] N_L:
I upgraded to 14 from 13.1 and immediately on boot google apps and services started crashing. Since I've had older version of opengapps (8) I downloaded new one from here and installed it. Services stopped crashing but besides chrome and maybe calendar most other apps keep crashing like drive, news, keep, gmail. Any advice besides factory resetting and starting from 0?

Edit: found an older post that said you should do a clean flash between new versions so that's what i did and seems to be working now. I'll update if something breaks and this post can lead people to solution like the other did for me, guess dirty flash doesnt work for 13 to 14
[Xperia Z2 Tablet Original Android Development] eazrael:
After running the Sony stock image and letting it fully upgrade seems to have fixed the reboots. Yesterday I flashed the latest weekly on the tablet and had no reboots since then. Everything works and nothing is missing.

The BSC10 dock works, power and Bluetooth are working. battery life is great. Night mode works, WiFi is stable :)

One question I still have. I accidently flashed TWRP into the emergency partition instead of the recovery partition. What are the implications of this? Should I flash something else into the emergency partition?
[Xperia Z2 Tablet Original Android Development] bam80:
Thanks for the info!

Is there any fix for Magisk 19.x for boot to recovery?

UPDATE: apparently, there is no such problem on latest CarbonROM
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
It has already been fixed in latest builds, I just forgot to remove the warning from the post, so thanks for the reminder.

For more details, please read back a few posts.
[Xperia Z2 Tablet Original Android Development] Br4no:
Hello,

Is there a way to enable quick charge? I don't care much most of the time, but it would be usable in case of driving with navigation when the tablet discharges even if connected to the charger.

Thank you ☺️
[Xperia Z2 Tablet Original Android Development] Godecki:
Yeah I miss the QC as well, as this device has big and power hungry LCD screen and charging with screen on is really sluggish. Nonetheless, great ROM :D
[Xperia Z2 Tablet Original Android Development] nicky-xda:
sorry, wrong posting
[Xperia Z2 Tablet Original Android Development] solved:
i'm really happy to see that OTA is working (atleast for me with TWRP 3.2.1-1) but anyone else experience a slowdown / laggy behavior after todays patch?
[Xperia Z2 Tablet Original Android Development] Dior DNA:
Great ROM!. I never even dreamed that my Z2 LTE would one day run Pie (latest ROM I ran was 7.1 lineageos).
[Xperia Z2 Tablet Original Android Development] Dior DNA:
OTA update went just fine! Magisk kept root.

about Magisk: for now I stay on 18.1 but I wonder ... is the problem reported for 19.x to be fixed in Magisk or in AICP?

Thanks
[Xperia Z2 Tablet Original Android Development] SpiritCroc:
The boot to recovery issue with Magisk 19.1+ has been fixed in the latest AICP builds.
[Xperia Z2 Tablet Original Android Development] Dior DNA:
ACK! Great news
[Xperia Z2 Tablet Original Android Development] damwafu_08:
Im Newbie

Hi. Can I apply this rom to sgp561 z2 tablet? Thanks in advance.
[Xperia Z2 Tablet Original Android Development] Dior DNA:
I find not much recent Verizon SGP561 Z2 Tablet XDA info. There used to be a recovery (2015). I find no custom ROM mentioned, but I may not search well. You may be on a niche branch of users for custom ROM development. Unless someone raises a hand and witnesses custom ROM usage, perhaps even this one. What ROM do you run now on SGP561? Sometimes latest stock firmware to start from is recommended, but SGP561 may not be castor (or windy) stock firmware compatible. In short: unless someone did so before, you are first to try (and in worst case need to unbrick).
[Xperia Z2 Tablet Original Android Development] damwafu_08:
Im in stock rom only but rooted tab
[Xperia Z2 Tablet Original Android Development] lorisino:
Thanks for nice ROM.

I installed twrp_3.2.1-c.img, but it doesn't read external microsd. Any suggest to solve this issue?
[Xperia Z2 Tablet Original Android Development] k303:
Thanks for this really outstanding ROM which is like a breath of fresh air for my z2. LOVE IT ! Haven't had a single issue with it after two days of intense use.

i also just made my first OTA Update with the build from today. worked like charm incl. magisk !

Thank you so much for supporting this old but still gold device!
[Xperia Z2 Tablet Original Android Development] gurupak:
Difference between caster_windy (wifi) and caster (lte)

Hello,

I want to upgrade my Xperia Z2 tablet with 9.0 custom rom. I was going through different posts and ended up here.

Can someone tell me whats the different between caster_windy (wifi) and caster (lte). Do I have to download both and flash both of them after copying it on phone through twarp recovery?

I am a bit novice here in flashing the phone or tablet. Hope someone can help me out with easy instructions to follow and install this new pie rom in the tablet.

Best regards,
[Xperia Z2 Tablet Original Android Development] L3ibnitZ:
There are two different versions of the Xperia Z2 tablet. One with WiFi only and another one with WiFi and LTE. Depending on which version u have u have to choose the corresponding ROM.