yashsingh1/xdaforums huggingface dataset:
[Xperia Tablet Z Original Android Development] tarkzim:
Alright, I think i need some commit to set Bluetooth profile, I will test it on my Xperia Z and if it's working then make a build for Tablet Z with same configs.

BTW, @petefoth can you grab GPS/GNSS logs for me?

I can't seems to reproduce it on my Xperia Z phone.
[Xperia Tablet Z Original Android Development] Mhaist:
I encountered an issue with the headphone jack connector of my tablet (SGP311). When I connect my headphones to the tablet, nothing happens, and the sound continues to come from the tablet's speakers. How can I fix this issue?
[Xperia Tablet Z Original Android Development] petefoth:
I was gong to try this and try to get some logs. But I can't find the headphone jack socket. Any clues
[Xperia Tablet Z Original Android Development] petefoth:
NVM I found the user manual online. Looking at the device overview diagram I prised off the piece of plastic where the jack socket should be to find no socket behind it. Looks like I have the version without a headphone jack
[Xperia Tablet Z Original Android Development] petefoth:
@tarkzim Which branch of `hardware/qcom-caf/wlan` should I be using to build? Using `lineage-20.0-caf` branch gives 3 compile errors

Spoiler content hidden.

Using `lineage-20.0-caf` branch gives 4 errors

Spoiler content hidden.

Thanks for any clues you can give (or for letting me see your manifests ;) )
[Xperia Tablet Z Original Android Development] macsmoo45:
Seems to go into a boot loop for me.

I am using

twrp-3.7.0_9-0-pollux

lineage-20.0-20231021-UNOFFICIAL-pollux

BiTGApps-arm-13.0.0-v2.3-MINI

Wiped the cache, system and data before I flash it.

Tried lineage-20.0-20231018-UNOFFICIAL-pollux as well

Tried without BiTGApps

same result of boot loop
[Xperia Tablet Z Original Android Development] tarkzim:
Did you FORMAT your data? (Factory Reset)

If you don't, you should try it.
[Xperia Tablet Z Original Android Development] petefoth:
Will do, but probably not until tomorrow

@tarkzim Can I clarify what logs you want?

- logging data from GPS Test app

- logcat from when I start the phone and run GPS Test

- ??

And ***please*** will you share your manifests? Trying to build los4microg and IodeOS without them is a lot ader and takes a lot more time? Thanks
[Xperia Tablet Z Original Android Development] tarkzim:
Yes, those logs is what i need.

And i don't use custom manifest myself to build them, I just clone and update my own device-related repos.

So i can't give you a manifest to sync, sorry.

Can you PM me your private contact like Telegram to discuss more development details?

Thanks
[Xperia Tablet Z Original Android Development] petefoth:
OK, I'll get them to you tomorrow

Done!
[Xperia Tablet Z Original Android Development] tarkzim:
New build released

Fixed Bluetooth Audio and connecting issues.

Removed RIL manifest entry from WiFi-only device.

Removed Vibrator HAL.
[Xperia Tablet Z Original Android Development] Mhaist:
I installed the new build on my tablet. The sound problem where the headphones don't seem to be detected is still an issue. The sound continues to come from the tablet's speakers instead the headphones when connected.
[Xperia Tablet Z Original Android Development] Ultras88:
Unfortunately, the problem with Bluetooth has not been completely resolved. Now the headphones connect without problems, their charge shows. But the sound comes only through the device's speaker :(
[Xperia Tablet Z Original Android Development] Mhaist:
I just realised that the tablet detects the headphones. When I try to watch a video, the tablet shows that the output device is "Wired headphones" instead of "This tablet".
[Xperia Tablet Z Original Android Development] justanamex:
was about to test the new build. But rebooting into bootloader seems impossible. All I see is a blue notification light and nothing on screen. Rebooting via ABD generated the same issue. Any ideas?

Edit: ok, fixed the problem. Fastboot driver in windows was corrupted somehow?
[Xperia Tablet Z Original Android Development] robjg63:
Hi, I can agree with the others above.

Bluetooth seems to connect to headphones ok and shows status of charge etc. But no sound comes out of the headphones - only the tablet.

Plugging in headphones (cable) - the sound comes out of the tablet - no sound from headphones. Didnt see any option to switch output though.

Sorry - not sure how to get log files...
[Xperia Tablet Z Original Android Development] macsmoo45:
Thanks! I tried and it is still the same.

I tried flashing lineage-16.0-20220131-UNOFFICIAL-pollux from the other thread, it works fine.

Will look forward to see any new image you guys make :D thank you!
[Xperia Tablet Z Original Android Development] hannesxda:
Great to see that there is a new ROM! Thank you!

I was a bit too quick in TRWP, when I wanted to update it to 3.7x and wiped / formatted the boot drive.

Now it's obviously not booting anymore, I just get the "Sony Xperia" screen and then it goes dark. Is there anyway I can flash it or did I just brick this device, after years of flashing it :D

When I connect it to the PC with the volume-up button pressed I get a blue light and the PC gives a "device found" sound. So there is something happening. But `adb devices` and `fastboot devices` doesn't show anything.

I hope I'm still in luck :)
[Xperia Tablet Z Original Android Development] Rootk1t:
If you have SGP311/Pollux_windy extract archive and flash twrp.img to /boot partition.

[ROM][13.0][UNOFFICIAL] LineageOS 20.0 [pollux*] [BETA]

* Your warranty is now void. * * We are not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about features included in this...

xdaforums.com
[Xperia Tablet Z Original Android Development] maggu2810:
Thanks a lot for this ROM! It works fine on my tablet for a few days now.

Does Firefox work for anyone?

I tried a 15.1 ROM before and was hit by [Bug] Firefox crashes Android on LineageOS 15 / LineageOS netlink kernel panic on versions less than 16.

Using this ROM there is no crash / reboot anymore. But Firefox does not work as expected but seems to be freezed after a few seconds. Could someone give it a try?

update: The Firefox problem I run into has been an user error. Sorry!
[Xperia Tablet Z Original Android Development] petefoth:
I will try it later today on my installation of this ROM (`lineage-20.0-20231027-UNOFFICIAL-pollux_windy`)

Later:

I have seen this happen twice:

With Fennec (a Firefox based browser installed with F-Droid. I saw a couple of messages saying 'App is not responding` with 'Close app' and 'Wait' buttons. This happened when I started Fennec immediately after powering on the device, opening Fennec, then rotating the screen. The Fennec screen ***did not** rotate, and I saw the 'App is not responding` shortly afterwards

With Firefox, the first time I started the app after installing from Aurora Store

I tried to reproduce both problems, so that could capture logs, but I have not been able to reproduce eiterh problem - both apps are depressingly stable and functional ;)

If you ***are*** able to reproduce, this thread, and in particular this post describes how to capture logs
[Xperia Tablet Z Original Android Development] Friese86:
Hello,

amazing to see support for this old device.

My main issue is that the tablet does no longer charge after successfully updating TWRP and the ROM. I even booted the ROM with no issues at all. Unfortunately I realized that the tablet is not charging until the tablet's battery was completely dead. I have tried several cables, power supplies and zero charging. Not even a LED is blinking.

I would very much appreciate any idea how to save my device?

Cheers

Christoph
[Xperia Tablet Z Original Android Development] petefoth:
Try cleaning out the usb / charging port, maybe try

with a brush with stiff bristles (eg.. toothbrush)

with a cotton bud and IsoPropyl Alcohol

a toothpick or small screwdriver

But be gentle and take care not to bend any pins
[Xperia Tablet Z Original Android Development] petefoth:
> Wait, isn't the latest version 20231025

Yes. the 20231027 build was a debug build Tarkzim shared with me to checkout a possible fix for the GPS problems. The fix didn't work, so I guess he decided not to upload to AFH
[Xperia Tablet Z Original Android Development] maggu2810:
Model: pollux_windy

booloader unlocked using the Sony's official unlocking website to generate an unlock code + fastboot oem unlock <your_unlock_code>

start Firefox

cannot press on any link on the main page or address bar - at least no reaction

Firefox UI is repaint on screen rotation

https://privatebin.at/?2b16f4666cd47525#DaiVUtPrBpjLu4HZ2qEExuEhKNipbr6328GHh27LRR1h

start Fennec F-Droid

cannot press on any link on the main page or address bar - at least no reaction

Fennec F-Droid UI is repaint on screen rotation

https://privatebin.at/?69ad5d2447e8f6d3#9oSAopMLWAa3ekkT1pukWy86z8K9UmNoUxFLkQFNWyYr

On the first start of the applications I am able to enter an address - it seems the event that trigger the freeze occurs a little bit later.

update: The Firefox problem I run into has been an user error. Sorry!
[Xperia Tablet Z Original Android Development] petefoth:
With a lot of help from @tarkzim I have managed to make LineageOS for microG builds for these device. They can be downloaded from this SourceForge folder

- for pollux lineage-20.0-20231031-4microg-UNOFFICIAL-pollux.zp This completely untested as I do not own one of these devices

- for pollux_windy lineage-20.0-20231031-4microg-UNOFFICIAL-pollux_windy.zip. I 'dirty flashed` this over @tarkzim's build on my device, and it seems to work OK, although I haven't used it a lot.

EDIT: Dirty flashing will not work if you have GApps installled: microG and GApps cannot co-exist, you have to choose one or the other.If you have GApps installed, you will need to wipe / factory reset your data partition, when youflass the microG ROM

Any feedback is welcome
[Xperia Tablet Z Original Android Development] Ultras88:
This is truly amazing. Thanks for your efforts. As I understand it, it’s better to install this assembly cleanly, with all the wipes, including system and data? Gapps in the form of microg are immediately sewn into it? Should Bluetooth audio also work?
[Xperia Tablet Z Original Android Development] petefoth:
You will need to wipe or format the data partition if you have installed GApps. flashing the RO will overwrite the system partition so you don't need to wipe that.

microG is a ***replacement*** for GApps, in that it provides alternative versions of some of Google’s proprietary libraries - in particular the Play Services - that many other apps rely on and expect / need to be present. See https://microg.org/ and the FAQs at https://lineage.microg.org/ for more information.

Not fully. The status is the same as @tarkzim's latest build: the device will pair and connect to BT speakers / headphones, and will claim that sound is being played through rhe connected speaker, but no sound is played. Note that I am only "re-packaging" @tarkzim's code, not making any changes to it, so in functional terms my builds wont be any different or better. So GPS doesn't work in my builds either :(
[Xperia Tablet Z Original Android Development] robjg63:
Just a query - Not particularly important, but....

Do you see the animated charging logo, or see the LED lighting up when charging your device?

I used to see both until recently - but now nothing.

Not saying its anything to do with this software package - Can't really see how it could be.

When the device is switched off, I plug it in.

The SONY Xperia boot logo comes up.

Then everything goes black. No LED. Nothing.

It still charges (slowly like it always did).

Used to see the LED light up and if you briefly pressed the power button, it would show the charging animation.

Any ideas?
[Xperia Tablet Z Original Android Development] miss_barfin:
I just tried this, and it works beautifully, thanks for making it happen
[Xperia Tablet Z Original Android Development] miss_barfin:
I played around with this rom but wifi doesn't seem to work

wifi 5ghz don't show up at all, wifi 2.4ghz do show up but it won't connect to them it simply says failed to connect

i use pollux (tablet z LTE) and latest version you provided without gapps or root or anything else installed
[Xperia Tablet Z Original Android Development] petefoth:
Is this the build that @tarkzim posted, or the LineageOS for microG build that I made?

I don't have an LTE device, but WiFiworked for me with no problems on both @tarkzim's build and mine for the WiFi-only device (pollux_windy)
[Xperia Tablet Z Original Android Development] Ultras88:
This is weird. Because I did not experience any problems with Wi-Fi, everything is fine with it. Only problems with Bluetooth
[Xperia Tablet Z Original Android Development] robjg63:
I checked my tablet this morning.

My SSID for 5Ghz and 2.4Ghz are the same - but it showed it was connected at 5Ghz.

I could also see my neighbors wifi SSIDs and there were a few "ssid_name" and "ssid_name_5G" so it can see the 5G just fine.
[Xperia Tablet Z Original Android Development] Ultras88:
Tell me please, is there any hope for a new build with Bluetooth sound correction?
[Xperia Tablet Z Original Android Development] miss_barfin:
looks like the issue is WPA mode

when router is set to use wpa2/wpa3 mode, it won't connect, I tried changing it from wpa2/wpa3 mode to only wpa2 mode and it worked just fine, but now the devices in my network that support wpa3 are now also using wpa2 which is a security issue
[Xperia Tablet Z Original Android Development] MikeViller:
installed the version with microG,

- but what about apps that you bought on Google Play Store? do I need to buy it again?

i installed Aurora store.

- already missing the double tap to wake but no big deal because the tablet is fast.

Bluetooth not turning on at all.
[Xperia Tablet Z Original Android Development] petefoth:
Sorry I don't know: I've never had paid apps when running LineageOS for microG. Worth asking in LineageOS for microG forum thread: someone there will have encountered this
[Xperia Tablet Z Original Android Development] MikeViller:
I use this tablet as a reader and notice the screen rotation is not working.
[Xperia Tablet Z Original Android Development] MikeViller:
ok thanks
[Xperia Tablet Z Original Android Development] MikeViller:
I think I will prefer the Gapps because I have a couple of apps that I paid for from the Google app store but the download for the Gapps on page 1 is not working for me. I tried MindTheGapps for the arm version but I had an installation error. were and how to get Gapps that will work with this update?

ok got BiTGapps mini on their site and will try this.

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

I installed the Lineageos with BitGapps, installation went fine.

the Bluetooth is turned on on this one but the sound comes out from the tablet speaker.

also at boot, the brightness stays bright, but not on the one with the MicroG.

screen rotation works on this one but not the one with MicroG.
[Xperia Tablet Z Original Android Development] MikeViller:
wonderful ROM for our old tablet but........

I flash Magisk, the error of my life, the tablet is stuck in a bootloop at the Sony logo, cannot do anything with it not even boot in recovery.

if I press the power button the tablet starts but is stuck at the Sony logo.

Cannot shut off the tablet with the power button.

The only way to shut off the tablet is to hold the volume up and the power button the white light flashes once then flashes three times.

When the tablet is off if I hold the volume up + the power button nothing is happening.

If I hold the volume down + the power button the tablet starts but stays in the Sony logo boot loop.

totally weird if I plug the USB from the charger or the PC the tablet starts but stays in the Sony logo boot loop

I get no connection to the PC. I do not see any way to reflash it.
[Xperia Tablet Z Original Android Development] Ultras88:
It was already written in the topic that the last Magisk cannot be installed. You need to put 25.2. Now to restore you need to flash the boot from the firmware via fastboot
[Xperia Tablet Z Original Android Development] MikeViller:
Yes and yes usually I do my research before flashing but this time I did not,

ok, but I can no longer boot to recovery or fastboot.

Thanks Ultras88
[Xperia Tablet Z Original Android Development] Ultras88:
I had this situation and flashing boot.img in fastboot mode helped me. Just look that when connected to a PC in fastboot mode (volume down button and power on, if I'm not mistaken, but it would be worth checking), the blue LED should blink. And flash the boot.img using platform tools.
[Xperia Tablet Z Original Android Development] gamemaster2030:
Just fetched the relevant logs for the wired headphones issue from logcat and dumpsys media.audio_policy.

Does this help? @tarkzim
[Xperia Tablet Z Original Android Development] Ultras88:
I think we are all looking forward to a decision from the dear @tarkzim.
[Xperia Tablet Z Original Android Development] MikeViller:
Thanks rcurious

the first thing is that I was not able to connect to either a PC or a Laptop, I changed my USB cable and then I was able to hear a connection was made on both, but on both of these one Win10 the other Win11 the ADB driver in device manager have a yellow triangle so cannot connect with ADB command.

I went to change the Windows signature blockage on both and it still has the yellow triangle to ADB

I tried a different ADB driver and still had that yellow triangle.

So I tried with Sony Flash tool. connect tablet in flashmode I was able to connect the tablet and was able to flash the latest original Sony firmware the flashing when all the way was asked to disconnect but now the tablet shows the Sony logo but stops after, no login.

I will try to resolve the yellow triangle on either PC or laptop to the ADB and flash from the command.

Do not understand why flashing the original Sony firmware is not working?
[Xperia Tablet Z Original Android Development] gamemaster2030:
If you're in fastboot mode you have to load the fastboot driver, not the adb driver. The generic drivers from Google should work.
[Xperia Tablet Z Original Android Development] MikeViller:
Thanks for your help.

I finally was able to flash with flashtool an old firmware 10.4.B.0.577 and the tablet works.

Jelly Bean 4.3

(I read about this solution but do not remember where).

I still do not have access to ADB commands because the driver still has the yellow triangle my computers do not recognize the tablet.

is it possible to flash TWRP (I have version 2.8.7.0 for pollux windy ) without using ADB then I could flash the lineageos 20 and be back.

I am back to 5.1.1 SOny firmware.
[Xperia Tablet Z Original Android Development] tarkzim:
Use flashtool to install driver for your device,

BUT you have to do the following steps before installing the driver:

Reboot to advanced boot mode of your Windows, and select the option number 7 (Disabled driver signature verification)
[Xperia Tablet Z Original Android Development] MikeViller:
yes, thanks tarkzim I did that on my PC and two of my laptop and ADB driver at installation is accepted by in device manager still yellow triangle.
[Xperia Tablet Z Original Android Development] tarkzim:
DELETED
[Xperia Tablet Z Original Android Development] Ultras88:
Great, it's a pity that I don't have Samsung :D. Please tell me, are there any new fixes expected for the Tablet Z?
[Xperia Tablet Z Original Android Development] MikeViller:
Thanks rcurious

the reason to use magisk is because I use Netflix, on Lineageos16 I was able to run Netflix but not with lineageos 20. will this work with magisk
[Xperia Tablet Z Original Android Development] MikeViller:
hi all,

thing work more and more. I can get into fastboot and install twrp.img but I get an error that the recovery size is 0.
[Xperia Tablet Z Original Android Development] rcurious:
Here are the drivers. Unzip. Then installing, go to that device with yellow triangle choose 'install drivers', 'have disk', ,all hardware, then android_winusb.inf, and so on.
[Xperia Tablet Z Original Android Development] tarkzim:
Oops, wrong thread LOL.
[Xperia Tablet Z Original Android Development] MikeViller:
Hi to you all,

I am back to firmware 5.1.1 rooted and bootloader unlock and ADB command works.

confusion to flash TWRP most site say to flash to recovery but

when I fastboot flash recovery twrp.img I get an error command not allowed

should I fastboot flash boot twrp.img. than fastboot reboot ?

it should boot to TWRP than I can flash lineageos 20 and bitgapps.

or else

Thanks a lot. cant wait to get back to 20
[Xperia Tablet Z Original Android Development] x52-curcuma:
Tab Z doesn't have recovery partition, and that's why you got the error. You can flash TWRP to boot, then the tab boots to TWRP but when you flash ROM you will loose TWRP. The best way is to install TWRP to FOTAKernel. On official TWRP website you can see several ways to do so. They have the latest version for Pollux/Pollux-Windy as well.

Good luck!
[Xperia Tablet Z Original Android Development] MikeViller:
Yes, that is what I read about the tabz, ok FOTAKernel I saw that somewhere.

Thanks a million.
[Xperia Tablet Z Original Android Development] rcurious:
To install TWRP to FOTA, follow these steps:

Enter fastboot mode.

Start a command prompt or terminal/console in the directory where the files 'twrp-3.7.0_9-0-pollux_windy.img' and 'boot.img' from the distro are located.

Execute the following command: fastboot flash boot twrp-3.7.0_9-0-pollux_windy.img

Reboot into TWRP.

Next, copy the required files to the SD card:

adb push twrp-3.7.0_9-0-pollux_windy.img /sdcard

adb push boot.img /sdcard

To flash TWRP to the recovery partition permanently:

Run this command: adb shell dd if=/sdcard/twrp-3.7.0_9-0-pollux_windy.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

Without rebooting from TWRP, use its graphical interface to write 'boot.img' back to the boot partition and then reboot the tablet. The tablet will boot normally, but TWRP will be permanently installed in the FOTA location.

Note: Adjust the file names in the commands if you have a different version of TWRP.

P.S. If the tablet is already rooted, there's no need to use 'boot.img' from the distro. Instead, save the existing boot partition to 'boot.img' using TWRP before proceeding, or use the file from the distro and then re-root after installing TWRP.
[Xperia Tablet Z Original Android Development] MikeViller:
Hi all yes! back to Lineageos 20,

- does anyone have any problems with the browser? mine with Brave or stuck browser it will crash from time to time.

P.S.. still cannot install TWRP but will try again sometime.

again thanks for your help to get back.
[Xperia Tablet Z Original Android Development] MikeViller:
sorry do not understand the write boot.img back to boot partition with twrp?
[Xperia Tablet Z Original Android Development] rcurious:
Alternatively, access the shell in TWRP and enter the following command on your tablet:

`adb shell`

Then type:

`dd if=/sdcard/boot.img of=/dev/block/bootdevice/by-name/boot`

However, I believe it's easier to perform this action using the GUI rather than typing commands. This step is essential; otherwise, you will boot into TWRP again, which was previously written also in the boot partition using the command `fastboot flash boot twrp-3.7.0_9-0-pollux_windy.img`."
[Xperia Tablet Z Original Android Development] MikeViller:
yes, thanks everything when ok except the last thing.
[Xperia Tablet Z Original Android Development] tarkzim:
I've uploaded a new build with audio/bluetooth experimentations, please test Bluetooth Audio and let me know if it's working.
[Xperia Tablet Z Original Android Development] MikeViller:
Hi tarkzim,

Doesn't work for me on either earphones or plug-in headphones.

Sound still comes from the tablet.

on the volume menu when plugging the devices appears in the menu and shows that the volume is coming from them but it is coming from the tablet.

Thanks.

P.S. I use BiTGApps-arm-13.00-v2.4-MINI

P.S. Did a dirty flash