yashsingh1/xdaforums huggingface dataset:
[Xperia Z4 Tablet Android Development] BackHol3:
After two days banging head to wall I finally manage to unlock the booloader, install twrp, root and Lineage OS! Great great rom, it's like having a new tablet alltogether! Thanks who ever made this!
[Xperia Z4 Tablet Android Development] jongcruz:
Everything is good with this Rom, is there any way to increace the audio volume?

Thanks!
[Xperia Z4 Tablet Android Development] andralex8:
You can edit the file /system/etc/mixer_paths.xml, under the section with name="speaker" you will found two lines with Rx7 Digital Volume and Rx8 Digital volume, the values are 76 and you can change the two values to 84.

I will try too and if it's ok I will change this in a next build.

I made a new build today now that the changes for the camera are merged into the LineageOS repo the default camera app is more usable (fixed preview and rotation).
[Xperia Z4 Tablet Android Development] jongcruz:
Oh thank you so much I'll try that. Good to know you planing a new build with those changes.
[Xperia Z4 Tablet Android Development] andralex8:
I mean, the build is not planned, it's here since yesterday ?
[Xperia Z4 Tablet Android Development] Hybel1507:
Awesome. I am really pleased about the ROM. It works so well although it is not official.

On a related issue: The gain of the microphone (handheld and external) is very low. I guess, this also would require some adjustments in mixer_path.xml. I am not sure though, where to change. Do you have some directions? Thanks in advance!
[Xperia Z4 Tablet Android Development] jongcruz:
Ok great, testing now....Will report later about the audio gain you told me about.

**EDIT: I found in this new build the mixer values were in 84 but I notice no difference in the speakers.
[Xperia Z4 Tablet Android Development] jongcruz:
Deleted
[Xperia Z4 Tablet Android Development] belrik:
Thanks for the new build, how is it going with getting your changes into the lineage OS repo? I'm wondering if this will have the honour of joining the short list of supported tablets. :)
[Xperia Z4 Tablet Android Development] andralex8:
I think we talk about differents things, it's the camera things that are changed in the new build, not mixer values. You can try 93 if 84 is not enought. Be sure to change the right values, they are more than one time the same names.
[Xperia Z4 Tablet Android Development] andralex8:
I merged everything for karin and karin_windy repos. The changes for the camera are in the camera app repo and were accepted too (https://review.lineageos.org/#/c/175068). The pending change is for the otg switch in the kitakami repo. I'm waiting people to try this on other Sony devices but it's already in the builds I share.

It true I should take a look at what is needed to make the builds official, since we already work with the official repos.
[Xperia Z4 Tablet Android Development] jongcruz:
Understood!
[Xperia Z4 Tablet Android Development] Phil_Libra:
bootloop after flash the 0626 build.

wipe cache/dalvik cache/system first, reboot and then flash the 0626 build, reboot, bootloop.
[Xperia Z4 Tablet Android Development] andralex8:
Karin or karin_windy ? And are you sure you choose the correct rom for your device?

Are you coming from stock / cyanogenmod / already LineageOS?
[Xperia Z4 Tablet Android Development] Phil_Libra:
My device is SGP712 so I flashed the karin_windy build from LOS 0526 which works fine for 1 month.

I tried to reflash 0526 from 0626 build, still bootloop:crying:
[Xperia Z4 Tablet Android Development] andralex8:
Ok, it's the right rom. You can try to wipe system, then resinstall LineageOS 0626 + Google apps if you had them + su addon if you use it.
[Xperia Z4 Tablet Android Development] Charsher47:
I came from an earlier build and had to clean flash.
[Xperia Z4 Tablet Android Development] RJASSI21:
[MENTION=6336863]andralex8[/MENTION] I downloaded the rom for SGP712 and tried to install it after wiping everything and it says device not karin_windy. Device is karin. I downloaded the 2606 build file and it didnt work it also says error 7 what can I do?
[Xperia Z4 Tablet Android Development] andralex8:
This is because you use a recovery made for karin. Install a recovery for karin_windy and it will be ok.
[Xperia Z4 Tablet Android Development] RJASSI21:
Ok wierd will I have to restore backup? Also im using androplus kernel twrp and touch doesnt always work ill restore and install twrp from the OP thanks.
[Xperia Z4 Tablet Android Development] andralex8:
No, you can just flash twrp for karin_windy with fastboot. Touch is a problem with the touchscreen driver. That's the reason why it take two or three seconds to have a working touchscreen on the recovery I made, but after that it's more reliable.
[Xperia Z4 Tablet Android Development] andralex8:
Also, Androplus made a unified recovery for karin and karin_windy that is in fact a recovery for karin that also work on karin_windy. That's the reason why the device is seen as karin
[Xperia Z4 Tablet Android Development] RJASSI21:
Ah ok that makes sense. I cannot boot into fastboot though the led goes red when connected to pc then blue then the device boots. I have no os installed at the moment and I can still go back to androplus twrp but I need mouse.

Edit: issue was with the pc used another one and it works now. Thanks
[Xperia Z4 Tablet Android Development] PepperAlf:
Fast battery drain

Hello,

thanks a lot for this rom!

I have a big issue though. The battery drains extremely fast. When I'm using an app like Chrome or Play Store or whatever, I think I have maybe 1% per minute or so. When the screen is off it's ok, though it's also faster than with Sony's stock nougat.

In the battery settings there is a slider for 'geraeteleistung' (I use german language), where I can adjust the cpu power. But I don't notice any significant difference even when the slider is at the far left (save energy).

The back of the tablet gets pretty warm/hot too when I'm using the tablet.

Anyone else got this problem or knows anything about it?

(I came from Sony's firmware. Had the latest version, then flashed an older one so I could unlock the bootloader, then did a lot of OTA updates to get nougat again and then flashed Lineage together with gapps (arm64 nano) and the latest supersu.)
[Xperia Z4 Tablet Android Development] nsx2brz:
I use AdAway to kill browser ads, and use Kernel Adiuator to disable 3 of the 4 big cores, both help a lot when browsing. I trend close to 10 hours of SOT when using Chrome this way.
[Xperia Z4 Tablet Android Development] RJASSI21:
How did you get adaway to work? When I used it it say it couldnt write the hosts file as if my system is set to read only and not write. Is there something I need to do in twrp or something?
[Xperia Z4 Tablet Android Development] nsx2brz:
I had to find a version of AdAway that worked, it was this one:

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

md5 sum is:

eb8d99ddd83be8fe88a46f7b910435e4

Install the APK normally, run it, and it will write your hosts correctly.

Also, to stretch your battery time, make sure you have something to your tablet into Airplane Mode when sleeping. I used Tasker to do this, but there was another post in this thread about using something else to do it.
[Xperia Z4 Tablet Android Development] RJASSI21:
Hmm OK my battery life has been terrible since stock Sony firmware. It always dies in sleep mode. When I come to use it the battery is always low. I will try that suggestion thanks. Unlike my Z2 tablet, this doesn't last as long. With my Z2 tablet I could leave it off charge for a whole day and it would only lose 1-2% perhaps because it was on lollipop at the time and greenify was awesome.
[Xperia Z4 Tablet Android Development] nsx2brz:
Yep, had the same thing. My Z2 was perfect. Turning on airplane mode on sleep made my Z4 the same as my Z2. I attached a few shots to show you it can be done. It now looses about 1.5% in 24 hours.
[Xperia Z4 Tablet Android Development] RJASSI21:
Hmmm interesting. If I just leave the tablet in aeroplane mode when on aswell and hve it turn WiFi off when the screen is off will this also work?
[Xperia Z4 Tablet Android Development] nsx2brz:
You should be able to easily test it - leave it in airplane mode with the radios all off for a few hours or the night and then see what your battery drain is. If it fixes it, then you can automate it.
[Xperia Z4 Tablet Android Development] RJASSI21:
Well id just leave it on because I only use WiFi and only have a WiFi tablet. Thanks for the info.
[Xperia Z4 Tablet Android Development] PepperAlf:
Tasker: Wifi not turning on when display is off

I have another problem with the rom.

I have the app Tasker turning on Wifi at a certain time. This mostly does not work when the screen is off, though. Only the moment I turn on the screen (even if it's an hour later) *then* Wifi is turned on, too.

- I have Tasker excluded from Android's power optimization.

- I have all power and sleep mode related settings in Tasker correctly adjusted (stay in foreground etc.)

- I have Wifi to be kept alive when in sleep mode (Android setting)

- When I add a 'Beep' to the task, the Beep *is* played back, nevertheless Wifi is not turned on.

- When I add a key press command which forces the screen to turn on, then it works: Wifi is also turned on.

So I think it's not an issue related to Tasker but to Android. It seems to me that Tasker does send the command to turn on Wifi to Android, but Android doesn't execute it when the screen is off. Instead it keeps it in the background and executes it when the screen is turned on.

Can anyone confirm the issue? I have it with a perfectly fresh installation of the rom.
[Xperia Z4 Tablet Android Development] alex009988:
Andralex please add this file to the next built to /etc to make nfc fully working with mifare cards.

Kv123 help me out with that file.

Also I noticed that when downloading torrents in the background. Others apps are lagging a bit. I dont know if it's a bug or overloading.
[Xperia Z4 Tablet Android Development] andralex8:
I will see to enable mifare card in the next built (I thought to wait the August security patch). It's not needed to change the whole file, it's just one line. It was disabled on purpose because mifare cards did not works properly with cyanogenmod (not specific to us, for all devices) but now it's fixed so we could enable it again, it's just I don't have personally the need so I don't think to do this ?.

Did you try with an other torrent app? It should not take a lot of ressources except for network.
[Xperia Z4 Tablet Android Development] andralex8:
[MENTION=4127195]alex009988[/MENTION], it seems that the changes in the file you sent me are different from thoses I thought. I will try in a build but it should be ok to merge the added lines. Can you ask Kv123 if he want to make a commit with his name that I could add to the repos (or he can push him itself to gerrit, I will merge the changes). If he don't want I can make one and mention Kv123 in the commit message. I just like to respect everyone's work and not just add the lines in my name without telling everything ;).
[Xperia Z4 Tablet Android Development] rebski:
Finally I achieved the installation, it required the purchase of another Z4 Tablet. this time I made sure that bootloader unlock was allowed.

Thanks to [MENTION=6336863]andralex8[/MENTION] for his great work.

A big shoutout too to [MENTION=5111503]Nimadroid[/MENTION] whose guide and efforts got me over the final hurdle

https://xdaforums.com/z4-tablet/development/rooted-32-4-0-160-drmfix-busybox-t3646893
[Xperia Z4 Tablet Android Development] andralex8:
I found the origin of this change. It's in review for sumire here https://review.lineageos.org/180536 . I will do the same on karin / karin_windy.
[Xperia Z4 Tablet Android Development] Random667:
how do i install playstore after installing this?
[Xperia Z4 Tablet Android Development] DHGE:
http://opengapps.org/

you want pico, flash them with TWRP
[Xperia Z4 Tablet Android Development] andralex8:
I just uploaded an update with mifare as asked by Alex009988 and also updated binaries to the last stock version.

Unfortunately the August security patch is not yet released and I'm going on a holiday, so I built the rom before ;).
[Xperia Z4 Tablet Android Development] Random667:
Got it all setup and working.

Runs great, seems to do a lot better on battery than the stock Sony 7.0 rom I had on mine.
[Xperia Z4 Tablet Android Development] RJASSI21:
Does anyone have a simple app/solution for turning WiFi off with screen and on with screen? Leaving it off with the screen saves so much battery.
[Xperia Z4 Tablet Android Development] nsx2brz:
I use Tasker. Create a task to turn airplane mode on, run shell command, make sure to set run as root:

settings put global airplane_mode_on 1; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

Create another task to turn it off:

settings put global airplane_mode_on 0; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false

Then create a profile on Display State Off to run the airplane mode on task, and a second profile to turn it off on Display State on.
[Xperia Z4 Tablet Android Development] RJASSI21:
Seems simple enough thanks.
[Xperia Z4 Tablet Android Development] AusX10:
Hi everyone. I have a couple of questions before I try this on my Z4 Tablet...

Does USB host mode work? It doesn't on the stock 7.1.1 ROM. I haven't been able to get DSLR Controller to work via USB (though I might just get a travel router to get around this anyway).

Secondly, as I'm probably going to try this anyway. Am I going to have issues using the 7.1.1 baseband? From what I can see the 7.1.1 sources aren't merged yet. Has anyone tried it with them? Not sure I want to downgrade, I'll probably just wait if it's unlikely to work.

Edit: Went ahead and tried it anyway... No USB host mode but it does work with the newer baseband/radio firmware.

Seems pretty solid so far. Why isn't this device official? There are plenty of devices getting official builds that are waaaay worse than this (e.g. hima, which is awful on Lineage).

Anyway, thanks to the maintainers! Great job.
[Xperia Z4 Tablet Android Development] andralex8:
Thank you for the review :).

The limit between official and unofficial is sometime hard to tell.

Practically it's close to official since I work directly with the official repo and merge the changes in them, sometime with a delay or minor changes so I use my repo to build ;).

Usb otg works, if you plug an usb key with the adaptator and click on the icon in the quick settings it will works. The host mode is not enabled by default because of the waterproof and the not covered usb port. So it's on demand and it can detect an usb device during a few seconds following the switch activation.

However, if you want to connect a more exotic device than something like a usb key or a mouse you need to have the driver in kernel. With what device did you try the USB host mode?
[Xperia Z4 Tablet Android Development] AusX10:
Ah, that would explain it. I was trying to connect a Canon 5D mk.III.

I ran Chainfire's USB Diagnostics app and (as you said) it showed incompatible with the kernel. If you are interested in the result I can run it again and send you the test number.
[Xperia Z4 Tablet Android Development] andralex8:
You could always send me this. Also send me logs (dmesg and logcat) after connecting the camera and enabled the USB host switch. Maybe I could do something, but without having this camera I cannot test myself so I don't promise anything.
[Xperia Z4 Tablet Android Development] torben5247:
Just flashed this very nice rom.

Anyone that know how to get xperia keyboard on this rom?

On my z3 tablet i found a flashable zip for Lineage os.

But it does not Work on the z4.
[Xperia Z4 Tablet Android Development] belrik:
Have you tried Google Gboard or Swype? Theres many options with similar look and just as much functionality plus you will get bug fixes in future too.
[Xperia Z4 Tablet Android Development] torben5247:
found this one:

https://xdaforums.com/showpost.php?p=72947258&postcount=457

Working fine on los.
[Xperia Z4 Tablet Android Development] kkc1945:
Hello guys,

could you please tell me if my xperia is ready for the rom? :)

Model Number: SGP771

Android VersioN: 7.0

Build Number 32.3.A.2.33

With best regards,

kk
[Xperia Z4 Tablet Android Development] pierro78:
Hello

Thanks for your awesome work on this very interesting rom ! :)

Can I ask how this rom plays with the bkb50 physical bluetooth keyboard ?

Is the keyboard working OK ?

Does it have an "app" (like the one in the settings of the original Sony Rom) that allows keyboard configuration and also keyboard battery level monitoring ?

Thanks for your feedback :)

(and sorry if it's a newbie question ...)

---------- Post added at 02:52 PM ---------- Previous post was at 02:50 PM ----------

@kkc1945 :

According to first post :

you don't have last Nougat version so I would say your xperia is not ready for this rom
[Xperia Z4 Tablet Android Development] kkc1945:
[MENTION=273457]pierro78[/MENTION]

thank you my friend, but could you also tell me, how I do this step, I do not understand it how to do it:

"Wipe System, Data, Cache, Dalvik cache

Install the rom (+/- gapps)"
[Xperia Z4 Tablet Android Development] pierro78:
These are actions you perform from twrp
[Xperia Z4 Tablet Android Development] kkc1945:
I appreciate you answer, thx :)
[Xperia Z4 Tablet Android Development] kkc1945:
Hello guys its me again sorry for annoying you.. but I unlocked my xperia and installed Lineage. After Lineage was installed I wanted to boot in TWRP to flash Super SU but it does not work anymore. In console appears the following message:

C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools>fastboot devices

CB5A26EQGH fastboot

C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools>adb reboot recovery

error: device not found

error: device not found

Can't get into TWRP anymore. Have anybody a solution? :(
[Xperia Z4 Tablet Android Development] super_extreme:
fastboot is not adb.

Vol down and power will get you into recovery.
[Xperia Z4 Tablet Android Development] alex009988:
Seems sony wont provide android orio for our tablet. Any chance to wait custom rom with android 8?:confused:
[Xperia Z4 Tablet Android Development] andralex8:
I have not tried to build oreo yet on z4t. It could probably needs some work to be fully functional, I hope not too much ?. I will take a look in the following days to make myself an idea.
[Xperia Z4 Tablet Android Development] andralex8:
I use bkb50 with the rom and I'm happy with it. The only stuff that don't work is the square on the keyboard for recent apps. I personally don't have the habit to use it so I did not make extensive researches to fix it (and I completely forgot). There is not a special app to manage the keyboard and see the battery level like Sony did.

Just for the precision, it's ok to flash since its Nougat (you got the bootloader with recovery access directly by key combination). When I write that there was only one version of Nougat that was just released by Sony. So I told to use the last version (Nougat), and not marshmallow. I should update it now.

Like super_extreme said, you cannot use adb in fastboot mode. You can use the key combination (vol- + power) when the device is powered off, or the adb reboot recovery command when the device is up and adb enabled.
[Xperia Z4 Tablet Android Development] pierro78:
Thanks so much @andralex8 for kindly giving this interesting information !

Unfortunately when I check configuration info (using *#*#7378423#*#* in the dialer) on my z4 and go into "config info" the Rooting status reads as "Bootloader unlock Allowed: No" (even after I toggled the "OEM Unlocking - Allow the bootloader to be unlocked" option in the Developer Options) ... so I guess I am stuck with a sony ROM :( ...
[Xperia Z4 Tablet Android Development] kkc1945:
It does not work for me. Everytime I press vol down and power and release it after Sony logo appears, the tablet restarts himself.... if I do not release vol down and power the tablet restarts all the time. When the Sony logo disappears for a sec a black screen then restarting.

Even though when tablet is up and I put the command adb reboot recovery in the cmd. Tablet restarts, Sony logo, 1 sec black screen and restart...
[Xperia Z4 Tablet Android Development] andralex8:
Witch recovery do you use? Some previous recovery does not work when directly started and need to have a kernel loaded before. like Androplus or mine on cyanogenmod, you had to press the key after the kernel load when the led change color. That's not the case here because it's loaded directly by the bootloader. If your recovery is not ok with that, flash one that can with fastboot.
[Xperia Z4 Tablet Android Development] andralex8:
You're welcome.

I'm not sure, but I remember that sony protect apps (don't remember the exact name) can cause problems too. May be search in that way?
[Xperia Z4 Tablet Android Development] kkc1945:
Thx you take time to help me! I got the "TWRP-3.1.1-lineageos-karin" for my - Z4 tablet LTE (SGP771). TWRP just works when I put the command: “fastboot flash boot TWRP-3.1.1-lineageos-karin-20170520.img” in console after that tablet starts in TWRP all the time can not go into OS till I flash Lineage in TWRP then I can go into OS.
[Xperia Z4 Tablet Android Development] andralex8:
It's normal since you just replaced the LineageOS kernel (boot partition) with twrp by using the command like this. You have to do "fastboot flash recovery TWRPfile.img" to flash the recovery partition ;).
[Xperia Z4 Tablet Android Development] kkc1945:
I can not believe it!!! You are just a hero! Lot of thanks!!! Wish you all the best in life :)

With kind regards,

kk
[Xperia Z4 Tablet Android Development] RJASSI21:
Do you have an LTE 4G SIM varient or WiFi? If its a SIM varient then unlucky your carrier you purchased it from may have locked it. Its usually the carriers fault not Sonys. One solution could be to disable my xperia as that was said to brick the device when unlocking, maybe Sony protected this by setting bootloader unlock to no on a newer firmware. If its WiFi then you really shouldnt have a problem maybe an app is causing an issue. Try a factory reset or flashing an older firmware maybe. Hope this helps :good:
[Xperia Z4 Tablet Android Development] pierro78:
Hello [MENTION=5495778]RJASSI21[/MENTION]

I have a uk O2 LTE variant. Unfortunately the sim is also locked to O2. I bought it used from uk because the price was correct.

I followed this guide https://xdaforums.com/z4-tablet/general/guide-safe-bootloader-unlock-restore-t3362391 to try to backup my ta partition with an old firmware but I had a problem : I couldn t activate the right usb protocol on the tablet to connect adb to the tablet from my PC. I didn t think about disabling my xperia though to see if it would change anything with bootloader unlockable status.

Now I am back to latest (stock sony, not O2) uk rom ...

Thanks for your insights ! Have a great day ! :)
[Xperia Z4 Tablet Android Development] RJASSI21:
Yeah unfortunately if you have a sony device purchased from a carrier and its locked theres no way of changing that satus not even if you unlock the SIM. My xperia Z2 was like this, it was locked to Vodafone and I unlocked it because it needed unlocking anyway and the status didnt change same with my xperia play but that was locked to 3UK. Your best bet is to sell the tablet and purchase an unlocked one if you care about new roms. The Z4 tablet isnt getting anymore support from Sony now so it wouldnt be a bad idea to do that.
[Xperia Z4 Tablet Android Development] sev7en:
Dear, mine is on the way :)
[Xperia Z4 Tablet Android Development] andralex8:
Update ?. No massive change, mostly update the sources to follow LineageOS changes, security updates, get the binaries from the last stock firmware.
[Xperia Z4 Tablet Android Development] torben5247:
Thanks for the update!

This rom is great!

Can we just dirty flash, without any wipe?

Thanks in advance