yashsingh1/xdaforums huggingface dataset:
[Xperia Z4 Tablet Android Development] alex009988:
I haven't used stock for years, but some days I've gone back to it just to see and find out what about root here. The last nougat there has no way to get the root, so I've downgraded to marchmallow. I also uploaded some stock ftp to my cloud.

Now I used aicp. Kernel panic are possible here but over two days I havent faced a one.

And yes, big games like war robots and call of duty are impossible to install with all nik, bit and flame gapps. There is some storage permission problem even though that I gave the neccesary ones. But you can find the games on 4pda.ru download and install them. The other bug is that vanced root YouTube doesn't work with all three gapps too. Maybe the reason of two problems there is still no opengapps for android 11.
[Xperia Z4 Tablet Android Development] alex009988:
I found some info about YouTube bug https://github.com/YTVanced/Vanced/issues/201
[Xperia Z4 Tablet Android Development] alex009988:
There is the error when downloading war robots.

01-07 18:15:19.260 E/Finsky:download_service(10456): java.io.IOException: Can't create file:///storage/emulated/0/Android/obb/com.android.vending/com.pixonic.wwr/temp.main.106419.com.pixonic.wwr.obb

So I decided to check storage/emulated/0. I tried ES file manager and root explorer. And find that emulated folder is empty. But it should be not. Maybe be its a clue.
[Xperia Z4 Tablet Android Development] torben5247:
So in order to install this new version is it just to dirty flash it on the version before This?

Thanks for the good work👍
[Xperia Z4 Tablet Android Development] alex009988:
Yes. No wipes needed. Just flash rom and gapps. Today I built the new version with selinux changes https://github.com/Alex009988/android_device_sony_kitakami-common/tree/lineage-18.1
[Xperia Z4 Tablet Android Development] fishman8:
Thanks for your efforts! now I am using SGP712 with your build karin_windy 20210807, would you please build a up-to-date version for SGP712?
[Xperia Z4 Tablet Android Development] JKWR:
Absolutrely brilliant latest rom thank you, I have just one problem, ive reflashed and wiped a few times. Anyone ever had a problem with bluetooth not switching on at all?

cheers.
[Xperia Z4 Tablet Android Development] alex009988:
rootdir: fstab.qcom adapted to other msm8994 devices. · Alex009988/android_device_sony_kitakami-common@e813b34

For Z4. Contribute to Alex009988/android_device_sony_kitakami-common development by creating an account on GitHub.

github.com

Made some changes for common tree (last changes), uploaded the rom from 30122022. Now Ill made some changes for karin tree and vendor.

Are you sure that bluetooth doesn't work? I'm listening music with bleutooth headphone now with my tablet.

If I would make for karin_windy, I make it when I make all changes for karin.
[Xperia Z4 Tablet Android Development] born2bkilled:
have you tried building any a13 roms for this device yet?

i had a go at arrowOS and it builds but doesnt boot past the sony logo.

any advice?
[Xperia Z4 Tablet Android Development] alex009988:
I haven't build any 12 or 13 roms yet but this year I'll try. First I build some other android 11 roms, second I need to build new twrp for 12/13. Now I built new version of 020120234. of los18 There are some vendor changes. https://github.com/Alex009988/propr...mmit/fa4999ff0f9e5f139635fbaad2d7b484496dde7b

I think it's the final version. The only thing that doesn't work is nfc, but it also wasn't working in 2021 roms. I have no idea how to fix it.
[Xperia Z4 Tablet Android Development] alex009988:
I'm building the rom for karin_windy as an exception. Be ready to test it tommorow.
[Xperia Z4 Tablet Android Development] alex009988:
I've built version for karin_windy. Test it.
[Xperia Z4 Tablet Android Development] alex009988:
Give feedback today. Tomorrow I'll remove los sources and start making crdroid.
[Xperia Z4 Tablet Android Development] fishman8:
Thank you. I just flash it. Works smoothly! Not found any new issue on this fw. :D

It seems cannot stable connect my WIFI6 Mesh access point ( also previous fw) but it is okay, I create a guest access point for the device and then works good.

Device now works smoothly, amazing!
[Xperia Z4 Tablet Android Development] DarkDV:
Thanks for the update to karin_windy! Everything but Bluetooth seems to be working. It won't turn on for me.
[Xperia Z4 Tablet Android Development] alex009988:
Take boot.img from sabar 2021 rom and flash it. I cant test it as I have no karin_windy. For karin it works. So it would be clear is it kernel problem or not.
[Xperia Z4 Tablet Android Development] jacko69210:
Hi Alex,

Just updated this newest version with clean flash on my Karin : Runs smooth and more very responsive (y). Not found any new issue on this FW (NFC not needed :)) : The best Rom ever made :cool:. THX for the job and your enormous efforts :love:.

Just a thing ; Android Security path is only from august 2022... :oops: Is it a way to update this ? :unsure:

Have a wonderfull Happy New Year :cowboy:

;)✌️🌈💝
[Xperia Z4 Tablet Android Development] DarkDV:
Sadly no luck. I tried boot.img from 20210807, 20210617 and the one uploaded 20210530.
[Xperia Z4 Tablet Android Development] alex009988:
with 2021 whole rom zip was it working?
[Xperia Z4 Tablet Android Development] DarkDV:
Yes. I just tried it now again to make sure. It is working in both 20210617 and 20210807.
[Xperia Z4 Tablet Android Development] alex009988:
Flash sabar rom and my boot.img, say weather it works.
[Xperia Z4 Tablet Android Development] DarkDV:
Yes, it is working.
[Xperia Z4 Tablet Android Development] alex009988:
Take logcat either with syslog or adb while tring to activate bluetooth.
[Xperia Z4 Tablet Android Development] fishman8:
I uploaded the log for BT failed to enable.

(seems I cannot attach file? then look here )

I also found there are lots of log like this:

2023-01-11 11:58:41.208 15828-15883 qti_sensors_hal pid-15828 W timestampCalc: Adjusting timestamp for rollover: 726874979867889, -1
[Xperia Z4 Tablet Android Development] alex009988:
I tried to build crdroid. In this rom bluetooth doesn't work even for me. For los18, perhaps bt doesn't work for karin windy as I made it without removing karin compiled out files. For android q and oreo bt also won't working in many roms. Next I try to build dotos rom.
[Xperia Z4 Tablet Android Development] torben5247:
Is it only karin_windy that has bt issue?
[Xperia Z4 Tablet Android Development] Retro68k:
Hello guys. i am new to this thread. And i would like to update my SGP771 to latest build from my Android 7.

What exactly do i need to download from the first page beside the GAPPS and boot.img?

From here https://cloud.mail.ru/public/WuyG/5Lg5rEefa i have the boot.img.

When i click this link: https://github.com/Alex009988/propr...mmit/fa4999ff0f9e5f139635fbaad2d7b484496dde7b

i have to sign up on github to see a download link?
[Xperia Z4 Tablet Android Development] alex009988:
For karin bluetooth worked for sure for los18, I was using bt headphones. I want someone to configm it too for karin. For crdroid bt doesn't works for both devices.

You need to unlock the tablet, flash twrp, download my rom as zip file, flash my rom, majisk, gapps.
[Xperia Z4 Tablet Android Development] Retro68k:
By the way thank you for your effort. So i can use my beloved Xperia Tablet Z4 some years longer.

What is majisk?

And can you provide me a direct link to the rom zip file? Because when i open the link i see the github page but no download link.

Or should i get it from here: https://cloud.mail.ru/public/WuyG/5Lg5rEefa/Android 11 ROMs/LineageOS 18_18.1 (11)

and then this one? : lineage-18.0-20201206-UNOFFICIl-karin.zip
[Xperia Z4 Tablet Android Development] alex009988:
Find last version. It is from 2023. Don't go for gitlab, it is sources for rom makers/developers.

https://4pda.to/forum/index.php?showtopic=774072 majisk is for root acces.
[Xperia Z4 Tablet Android Development] kenichioshima:
Hello，can you build Android 12 roms for Xperia Z4 tablet？😁
[Xperia Z4 Tablet Android Development] alex009988:
At least I'll try for sure. Seems I have the assumption why bt doesn't work for karin_windy. I need to check it.
[Xperia Z4 Tablet Android Development] alex009988:
So news about bt. Karin device has the same problem as karin_windy. After fresh install with all wipes bt indeed doesn't work for both karin and karin_windy. But, at least for karin, if you flash rom from 2021, use sometime, and flash the rom from 2023 over without wipes bt works there. I catch this situation for two times.

I also rebuilt the rom with original sabar source without my changes and got the same result - bt doesn't work after fresh install. Now I'm building new rom with some changes of common tree. and try to fix the bt problem. I also asked to Sabar for his help, he may give me some clue.
[Xperia Z4 Tablet Android Development] alter.daemon:
maybe you can also look at the device storage encryption issue?

frankly I can't imagine using ROM without encryption capability ;-)
[Xperia Z4 Tablet Android Development] alex009988:
I afraid I can't fix it as even no one of kitakami developers fix this for z5, z5 compact. The maximum I can do is to fix bt and nfc and I already did the kernel more stable and fixed livedisplay. So encryption is only available for nougat roms.

Building the rom consists of three parts, kernel, device and vendor. Vendor is closed-sorces binary files. from nougat. The higher version of android, the more bugs come out. That is why encryption is almost imposible to fix. Closed source, it's kinda port ios for our device.
[Xperia Z4 Tablet Android Development] alex009988:
Good news about bluetooth. I found a crutch way on how to fix bluetooth in my last rom.

1) if you use rom from 2021 wipe all except internal storage.

2) extract and put attached file to the /data/vendor/bluetooth/bluetooth_bdaddr

3) reboot device and check.

If it doesn't work, write bt mac addres from 2021 rom and put it in the file.

Please test it and tell me the results.
[Xperia Z4 Tablet Android Development] alex009988:
Seems I've found a way how to include this fix in the rom. Tommorow I'll build new rom.
[Xperia Z4 Tablet Android Development] alex009988:
I now updated lineage source. Nothing changed at device tree at all, and bluetooth doesn't work even with my crunch fix. Maybe something changed at system bt. Now I'm building new rom with packages/app/bluetooth and system/bt from 2021.

Before, the mistake was "no bluetooth address", now it is FATAL:hci_layer_android.cc(102)] Check failed: status == Status::SUCCESS. More mysterios error. But bdaddr is accepted.

The last hope to try to fix the bug properly is to build from device and vendor from Q rom. Where bt worked well.

I'm still investigating the problem.
[Xperia Z4 Tablet Android Development] alex009988:
I compiled aicp16 for karin and karin_windy. I checked that bluetooth works there out of the box. Check that karin_windy please. Use bitgapps. I found only for aicp that it has the error "Device is not Certified by Google".
[Xperia Z4 Tablet Android Development] alex009988:
I released new los version for karin and karin_windy with fixed bt. Tested karin, bt works there.
[Xperia Z4 Tablet Android Development] fishman8:
I already do a clean flashing with karin_windy ROM lineage-18.1-20230205-UNOFFICIAL-karin_windy, everything is fine and BT is working now! Thanks alex!
[Xperia Z4 Tablet Android Development] alex009988:
I also released new version of havocos with bt fix for karin and karin_windy.
[Xperia Z4 Tablet Android Development] fishman8:
I flashed havocos for karin_windy, interesting to me, especially the system integrated battery charge limit function. BT is also working.

Unfortunately, the system with magisk (and some setup I done before with LOS) cannot pass the CTS profile match, that's mean I cannot install Netflix with Google Play store, what a pity.
[Xperia Z4 Tablet Android Development] alex009988:
We have here selinux permessive, so that is one of the reason. But you can install magisk universal safetynet fix, I had cte test passed with that fix.
[Xperia Z4 Tablet Android Development] fishman8:
with LOS, I install safetynet-fix and MagiskHidePropsConf can pass the check, but HavocOS does not pass the check, which basic integrity is pass but CTS profile match is fail.

Edit: I passed CTS profile after I disabled adb debug function 😅
[Xperia Z4 Tablet Android Development] blau77:
Much thanks for making this. I'd love to breathe new life into my drearily slow Z4. But is there like a newbie guide for how to install?

I get stuck on the first step. I follow the Laar builds mirror link, looking for TWRP 3.5.0 and see there's four options to choose from, looking the same albeit with different dates. Is it just to pick a random of them?
[Xperia Z4 Tablet Android Development] alex009988:
See twrp folder at my cloud along with all other roms.
[Xperia Z4 Tablet Android Development] blau77:
Yeah, I checked it. I looked for "TWRP 3.5.0" and found four different files that matched the description, so is like a random of those four okay? I have attached a screenshot to show what I mean.
[Xperia Z4 Tablet Android Development] alex009988:
Take the last one. I lalso need to cook new twrp for android 12/13 roms.
[Xperia Z4 Tablet Android Development] knoxploration:
This firmware is so close to working perfectly for me, other than one significant issue. (I'm using the latest versions of TWRP and the LineageOS rom from alex009988's links.)

My sole problem is that the touch screen randomly either stops responding or, less frequently, seems to generate touches by itself in the wrong place on the screen. In either case, simply hitting the power button twice to cycle the screen off and back on again instantly fixes the problem and the screen returns to its normal functionality. (Note: I'm not rebooting the device, only toggling the screen off and on.)

The screen itself is a replacement and not the original one that shipped with the tablet, but it was taken from another brand-new tablet that I accidentally locked myself out of years ago and then held onto for spare parts, and the screen was tested extensively on Sony's stock firmware so I know for certain it exhibited no issues post-replacement on the stock firmware.

Has anybody else experienced anything like this with this ROM, and if so have you been able to fix it or found another ROM which resolves this issue? Failing that, does anyone have any advice for what I can try, or is there any log I can enable / check which might indicate why the touch screen becomes unresponsive?
[Xperia Z4 Tablet Android Development] alex009988:
I had this problem before. Screen replacemnt fixed it, it's hardware problem 99%.

By the way I decided to finished development 11 roms and will try to build android 12 roms. Before that I need to build new compatible twrp.
[Xperia Z4 Tablet Android Development] knoxploration:
Hmm, thing is that it was tested extensively and working fine *after* the screen replacement on the original ROM. (Plus it's a known-good, genuine Sony screen taken from my own second tablet, which I accidentally locked myself out of with Sony's blasted protection.)

Good luck with the Android 12 rom!
[Xperia Z4 Tablet Android Development] Retro68k:
Ok i am back. Now i have finaly time to do the install.

But i am totaly out of the rooting and custom thing.

And now looking for a good and easy guide on how to root and unlock my device and setup TWRP.

All i find in google are outdated guides with broken links.

So mybe you guys could help me?

So far i have downloaded:

TWRP-3.5.0_9-0-karin-20210122.img

lineage-18.0-20201206-UNOFFICIAL-karin.zip

lineage-18.1-20230102-UNOFFICIAL-karin.zip

and

boot.img
[Xperia Z4 Tablet Android Development] Retro68k:
I try.

I found that Guide: https://www.getdroidtips.com/android-11-sony-xperia-z4-tablet/

On this page https://www.getdroidtips.com/unlock-bootloader-xperia-device/

But i got stuck here.

After i type fastboot oem unlock 0x<insert your unlock code in the CMD nothing happens.

CMD says: < waiting for any device >
[Xperia Z4 Tablet Android Development] kkc1945:
Hello guys,

i try to follow the steps, but how can I get into the fastboot mode? The instruction says press power button + volume button up for fews seconds. If I do yo the tablet starts to vibrate but after that nothing happens. There is also not light shining.
[Xperia Z4 Tablet Android Development] alex009988:
No. Tablet should be switched off you should connect to usb while only volume + is pressed and wait a few seconds.
[Xperia Z4 Tablet Android Development] kkc1945:
Thanks for your reply. Yes, you are right, my mistake was that my tablet was on.

In the meantime I was able to get into fastbood mode via ADB, I think. The tablet is glowing blue in the corner but the screen is black, is this normal?

I followed the steps as in this guide: https://www.getdroidtips.com/download-adb/

First I typed "adb devices" and then "adb reboot bootloader". Up to this point, everything worked as described in the instructions. But when I typed "fastboot devices" the message "waiting for any device" appears.

I have attached a picture of the commands
[Xperia Z4 Tablet Android Development] alex009988:
I think you should use cmd instead of power shell. First check how the tablet is detected. Perhaps you need to install fastboot drivers.
[Xperia Z4 Tablet Android Development] kkc1945:
I have the problem that I can not install drivers for the device to get into fastboot mode to load TWRP on it. Under Device Manager is written "S1Boot Fastboot" with exclamation mark and also "Android ADB Interface" (see picture).

Now I tried the following things to load the driver on it:

1) There is an ADB installer on the website:

[OFFICIAL][TOOL][WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.3

15 seconds ADB Installer v1.4.3 ADB, Fastboot and Drivers What is this? This is All-in-One installer for 3 most needed PC tools for Android. No need to download big SDK for 3 small things. I originaly made it for my Kurdish friend AnGrY DuDe in...

xdaforums.com

2) Flashtool. But here I don't get further after the installation, a window opens, where I should enter a directory, but the message comes again and again although I set the given path (see picture).

Home

flashtool.net

3) Via Android Studio - SDK Master - SDK Tools - Google USB Driver.

4) Manually loading the drivers via Device Manager, as described here:

Sony Xperia Z4 Tablet USB Driver, ADB Driver and Fastboot Driver [DOWNLOAD] - Android ADB Driver

Download Sony Xperia Z4 Tablet USB Driver, Android ADB Driver, and Android Fastboot Driver for Windows 10/8.1/8/7 and XP PC or Laptop Computer.

androidadbdriver.com

But none of these methods worked for me, I don't know what I'm doing wrong.

One thing I do know is that I had rooted the device before and loaded LineageOS 14.1-20170804 unofficial-karin on it. How I did that with the drivers back then, I don't remember, because its been a while.
[Xperia Z4 Tablet Android Development] TheSanteriAT:
Hey I have a slight problem with the ROM. Everything else seems to work correctly but Wifi won’t work. I tried to install the Android 10 version of Pixel Experience Plus first but that caused USB not to work so I installed Android 11 following your instructions. I’ve now tried Android 11 Pixel Experience and am currently on LineageOS 18.1 with neither having working wifi.

Do you know if this is a problem with firmware and if there’s a way to fix this?
[Xperia Z4 Tablet Android Development] jacko69210:
Hi,

- No worry with Wifi ...

- You don't say what king of Z4 you have ??? SGP712_windy ??? SGP771_karin ???

- Trying to do a clean reinstall a second time ???
[Xperia Z4 Tablet Android Development] TheSanteriAT:
SGP771_karin is the model I have. Also, multiple installs did nothing. After downgrading to a previous version of LineageOS which in changelog stated that wifi had been fixed it worked. Haven’t flashed the later versions yet as it doesn’t really matter how old the security update is as long as wifi and usb work.

What I tried already was clean install multiple times with switching roms when one wasn’t working. The first one I tried was Android 10 Pixel Experience Plus which didn’t have working USB and when installing Android 11 the USB worked but PC didn’t recognize the device or have drivers for it. After trying to install the rom multiple times I decided to check if there’s a vendor image or something else that would fix it as there are devices that require vendor to be flashed with the rom. Apparently the solution was just to find a version with working wifi. Probably now the later ones will work too.

Of course it can also be that after formatting data the first rom didn’t work but I’m pretty sure it needed to be rebooted to recovery for it to have any meaningful effect as next time TWRP asked to allow system modification.
[Xperia Z4 Tablet Android Development] jacko69210:
Hi,

So, If your Bootloader is unlock, All you need is :

-- in Developer options, turn on USB debugging...

-- Official ADB Tools ...

https://dl.google.com/android/repository/platform-tools-latest-windows.zip

or

SDK Platform Tools release notes | Android Studio | Android Developers

Android SDK Platform-Tools is a component for the Android SDK.

developer.android.com

-- Official Fastboot Drivers .... (but Xiaomi fastboot drivers works as well for me)

Xperia Z4 Tablet driver | Developer World

developer.sony.com

-- Official NikGapps if needed...

NikGapps - Browse /Releases at SourceForge.net

A Custom Google Apps Package that Suits Everyone Needs!

sourceforge.net

-- find Official Help....

Install LineageOS on karin | LineageOS Wiki

wiki.lineageos.org

-- Use TWRP 3.5.0 or latest TWRP-3.7.0_9-0-karin-20230430 for flashing Rom + Gapps + ....

-- ........ And incidentally, read all Mr Alex's Z4 Threads from page 1 ;)

:)
[Xperia Z4 Tablet Android Development] jacko69210:
Have also a Karin Z4....

Never had any problem with Wifi or USB with each versions of Alex's Roms...

(apart from worries about USB old cords or port on the PC 😟 🤯)

I always do a Wipe of all partitions at each version change (except SDcard with backup and useful files🙃 ;))....

Yes, laborious :eek: :sleep:...

The latest LineageOS 18.1 is perfect 😎🤩👍
[Xperia Z4 Tablet Android Development] TheSanteriAT:
I’ll need to try dirty flashing the newer updates on top of the current one. But yeah, I tested on multiple cables and everything. Pretty weird problem but apparently solvable by just installing an older version first.
[Xperia Z4 Tablet Android Development] bingo20:
Hello community,

I'm hoping to get my Sony Xperia Z4 (SGP712) to be usable again with LineOS18.1.

With Last official Android 7 it is to slow and important apps are not available.

I stuck in getting TWRP working. I'm able to flash it but it will not start.

What I did so far (starting from a original untouched Image):

1. Unlock Bootloader (howto link)

2. get Fastboot Driver working on Virtual WinXP (fastboot working, ADB not working!)

3. enable bootmode via Power+Vol buttons

4. flash:

TWRP-3.7.0_9-0-karin_windy-20230430.img

boot.img

Seems to me that flashing is working but TWRP is not starting.

Screen is solid black or with last command in screenshot I see the Sony Logo but no more.

Please give me some advice how to continue.
[Xperia Z4 Tablet Android Development] bingo20:
I flashed many times only line 1&2 afterwards I just tried something.

I just noticed that the reported partition size is same for both commands.

That looks wrong to me as I would expect different partitons and therefore different sizes. Or do I misunderstand the meaning of the commands (flash recovery vs flash boot)?
[Xperia Z4 Tablet Android Development] mishaham:
Try to use only commands ,, fastboot flash boot boot. img" and ,, fastboot flash recovery twrp.img" (they lead to a positive result). After that - just take out the power cord and go into TWRP to install the system.
[Xperia Z4 Tablet Android Development] bingo20:
this is the command to install TWRP on my SGP712 !

Now it is running and I can continue to install LineageOS 18.1 :)