yashsingh1/xdaforums huggingface dataset:
[Xperia Z4 Tablet Android Development] Cissamannenv2:
Yeah Im positive.

I remember trying this back in June aswell, no luck at all :(

Rotation is switched on, even lockscreen one. But again, no apps can read any sensors in it, so regardless if its on or off, it wouldnt work then.

What I DO think might be the issue, is if there is a DRM fix included in the custom lineage kernel. When I made my own kernel using the rootkernel tool, if I enabled drm fix in it, the touchscreen would stop work fully. If I made it without DRM fix included, everything went as normal.

Reason for this is probably because I unlocked bootloader before the whole TA partition backup came into the scene. So my TA is emptied like it gets by unlocking bootloader without backup.

I'm wondering if this can have anything to do with the reason no gyroscope or anything is working then?

Would be nice to know if there was a way to disable the DRM fix in the custom lineage kernel to be honest, to test that theory out. IF it includes the DRM fix that is.

Is is possible to use ones own kernel over lineage? Or will that cause bootloops, and even possibly battery drain or performance issues?

_________________________

EDIT: After trying yet 1 more time now, it worked out fine. Was fully loaded stock ROM with patched kernel and supersu installed... But it worked atleast haha.
[Xperia Z4 Tablet Android Development] JFK1975:
Delete pls
[Xperia Z4 Tablet Android Development] golokipok:
Has anyone tried wireless display mirroring? I cannot detect my wireless device while my other phone running LOS is able to detect it.
[Xperia Z4 Tablet Android Development] super_extreme:
Just flashed LOS instead of my self compiled AOSP from Sony sources with small modifications (LOS was not yet there back then [emoji3] ).

Now it feels like I got a new tablet, it's ways more stable and without all those random reboots, good job andralex8 and Co! [emoji106]

That's actually quite easy to fix. For me this was very annoying (I often have the situation to change quickly between two apps which don't look good in split screen mode or if two apps are not enough because arrows and enter also work to select a recent app and then this key is just so much more convenient [emoji6]) while typing and and so i looked how to: [emoji846]

1. Go to /system/usr/keylayout/.

2. Copy Generic.kl to BKB50.kl (set permissions to rw-r--r-- like the others) or whatever so you can delete BKB50.kl (which will have precedence over Generic.kl) from recovery if you messed around with it too much and hardware keys on the side stop working or so.

3. In BKB50.kl in the line with "# key 184" remove the "# " and replace that after with "APP_SWITCH" so the whole line looks like this: "key 184 APP_SWITCH".

[MENTION=6336863]andralex8[/MENTION]

You could do this in the rom source so it persists.

See also:

https://source.android.com/devices/input/key-layout-files

https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_APP_SWITCH
[Xperia Z4 Tablet Android Development] andralex8:
Great, I will try, thank you. Do you want to make the commit yourself for the ownership? If not I can make it and mention you in the description
[Xperia Z4 Tablet Android Development] andralex8:
It's effectively working well [MENTION=4548333]super_extreme[/MENTION]

I pushed this for review https://review.lineageos.org/#/c/207275/
[Xperia Z4 Tablet Android Development] super_extreme:
Cool, I see. I started syncing (is there another way using repo than syncing everything?) but you've been faster this way, lol. ?
[Xperia Z4 Tablet Android Development] andralex8:
You can still use git in the repo you want to sync to fetch and checkout. And you can also use repo sync and specify a particular repository.

You will not have this commit by repo sync since it's not on the LineageOS github. It's on gerrit which is kind of a sandbox to try the commits before pushing them to github. You need to cheery-pick it.
[Xperia Z4 Tablet Android Development] super_extreme:
No, that was not what I meant.

I didn't have LOS source in this moment.

I wanted to bring this one commit to Gerrit in this one repository, but without syncing the whole source first in a simple way.

Edit: To clarify:

In the manifest (https://github.com/LineageOS/android/blob/lineage-15.1/default.xml) is the URL to LOS' repo.

If I don't repo init first with this manifest, repo wouldn't know where to bring stuff to with repo upload.

Of course I can sync the whole source first, but if I only want a commit for one repository and don't need the source for anything else this seems like an overhead in time and space.

Only solution that comes to my mind is own manifest or syncing everything.

I wanted to know if there's a simpler way.
[Xperia Z4 Tablet Android Development] andralex8:
I understand better now (at least I think ?). You can just git clone the repository and them you can make a commit and push to gerrit like a remote git repository ("git push gerrit HEAD:refs/for/cm-14.1" for example, if you added gerrit as a remote repo using ssh). You also need to set a git hook to have a change-Id in your commits, it will not works if you don't.

Edit: the url I use for gerrit is ssh://andralex8@review.lineageos.org:29418/LineageOS/android_device_sony_karin_windy , you need to change the username with the username you registered in gerrit (and also set up your ssh key correctly to be recognized by gerrit)
[Xperia Z4 Tablet Android Development] super_extreme:
Ah, ok, good to know. [emoji106]

I'm just used to git, I've never really worked with gerrit much till now (for small groups (around 8 people) git is absolutely enough [emoji39] ).
[Xperia Z4 Tablet Android Development] andralex8:
Yes, but don't worry, gerrit is on top of git so you will not be too lost ?. Now the config is done I manage all my repository with git like usually and just push the new commit to gerrit instead of a normal git repo once I want to push them to the official github. Just tell me if you want to change something or if I can merge it to the official repo.
[Xperia Z4 Tablet Android Development] super_extreme:
Ok. [emoji57]

Currently not (lack of time and actually everything working well) but I will if I have something. [emoji846]
[Xperia Z4 Tablet Android Development] KarsteinE:
4G USB Modem driver?

I'm trying to connect a 4G usb modem of Chinese origin but the system does not recognize it, I have Linux drivers for the modem, would it be possible to incorporate the driver into this OS?
[Xperia Z4 Tablet Android Development] andralex8:
If the driver exist for Linux, usually yes. It's possible to build a kernel with a specific driver not included by default. On desktop the kernel is built with a lot more drivers (inside the kernel or modules) because we have more place. Android is embedded, choices are made to save storage.
[Xperia Z4 Tablet Android Development] andralex8:
edit : I sent same text twice, manipulation error.
[Xperia Z4 Tablet Android Development] JFK1975:
Hello z4 community. When I go straight from the last official stock update to the actual lineage built without saving any partition things, will I be able to watch HD content from Netflix or Amazon?
[Xperia Z4 Tablet Android Development] super_extreme:
Don't know about Netflix, but the Amazon Prime Video app only delivers SD but because the rom has included Widevine L1 blobs it was possible for me to stream FHD in Firefox (Chrome didn't work somehow). Maybe some graphical glitches here and there short after videos are started in fullscreen, but they'll settle and the rest of it will be played just fine.
[Xperia Z4 Tablet Android Development] zacharias.maladroit:
lolwut - Z5 only has Widevine L2 afaik

how does that work out on the tablet ?

Interesting :)
[Xperia Z4 Tablet Android Development] super_extreme:
Sry, it's L3, it was just that I remembered the commit adding those *.so s which had L1 in their name.

L1 would be nice indeed.
[Xperia Z4 Tablet Android Development] rena_:
Can someone tel me, if there are any problems with GPS / navigation apps?
[Xperia Z4 Tablet Android Development] DHGE:
I can.

Just fired up GPS-Test: 3D Position within seconds :)
[Xperia Z4 Tablet Android Development] Ogawa:
Updates?

I've got the 12/27/17 version and was thinking of upgrading to the more recent lineage updates, but am nervous about it.

Wondering if anyone has installed an update lately? Can I simply dirty flash, or should I start from scratch again?
[Xperia Z4 Tablet Android Development] DHGE:
Don't be nervous - start over if moving from LO14->15

I installed an update yesterday.

Yes you can - the worst that will happen is that you have to wipe the data partition and get some new Gapps while you are at it.

TitaniumBackup can help to restore your data and apps after such a wipe if done selectively (spare the system apps and settings from the restore).
[Xperia Z4 Tablet Android Development] GFTB:
any chance we are going to hear Lineage OS 15.1 coming ^^?
[Xperia Z4 Tablet Android Development] belrik:
What's the currently recommended TWRP for this ROM? Original links to TWRP are dated 2017 and I got an install error when trying to trigger the update from inside LOS updater.
[Xperia Z4 Tablet Android Development] DHGE:
Follow the links of the OP in #1

I just checked today if I could get a newer/up to date version: No

Those offered are way behind in version # but work.

For the Tablet Z (SGP312) I have the latest from the official website ...

Using the Lineage OS Updater only works on my SAMSUNG Galaxy S5.

For my SONY devices I have to use TWRP.

In the developer options you can enable a restart options menu. Otherwise:

fastboot boot TWRP_suitable.img
[Xperia Z4 Tablet Android Development] JFK1975:
You could try lineage downloader app(by Alessandro Paolino) works great for me for a couple of months
[Xperia Z4 Tablet Android Development] belrik:
Does this app trigger the TWRP upgrade script properly?

---------- Post added at 06:01 PM ---------- Previous post was at 05:58 PM ----------

Thanks. No problems fastbooting images, just looking for a neater solution. The upgrade script should be written to a certain partition and a reboot to recovery triggered IIRC. Unfortunately only about 1/3 of LOS devices do this correctly. Samsung works and my OnePlus I think. Just a niggle which stops me upgrading as regularly.
[Xperia Z4 Tablet Android Development] belrik:
Accidental double post
[Xperia Z4 Tablet Android Development] GFTB:
Hi, just find out the Hot Spot doesn't work on 5GHz band so it would be nice to be fixed on the next update, but i run into a problem updating the newer version, it fails to (install error) . Is this related to TWRP?:rolleyes:
[Xperia Z4 Tablet Android Development] aaa646123:
Can't boot in recovery mode

It works fine. Thanks.
[Xperia Z4 Tablet Android Development] LONGXF:
Is there any possibility updating Android 8.0？(LOS15.1)

:svetius:Thank all developers
[Xperia Z4 Tablet Android Development] aaa646123:
crash and auto reboot

I installed lineage-14.1-20180907-nightly-karin_windy-signed.zip today.

But when I started to use the tablet about 15 minutes. It will crash and reboot.

After reboot, this problem still happens.

My device is SGP712.

Has anyone encounter this problem too?
[Xperia Z4 Tablet Android Development] Random667:
What is the best way to back up the TA data before unlocking the bootloader.

I tried this but it said my device was incompatible when I ran it:

https://xdaforums.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597/
[Xperia Z4 Tablet Android Development] DHGE:
You need an older ROM that is "vulnerable".

See my [Guide]. Or read the instructions on the first page of the tool thread you quote.
[Xperia Z4 Tablet Android Development] Random667:
Thanks this one worked for me:

https://xdaforums.com/z4-tablet/general/guide-safe-bootloader-unlock-restore-t3362391

But now I'm hitting an error when following sonys bootloader unlock instructions, and I dont have oem unlock in my developer options.
[Xperia Z4 Tablet Android Development] DHGE:
I can not help you with that.

Maybe this old ROM you are now using does NOT have this option. IIRR they introduced it in 2016 for their devices.

Just unlock as if this option was set.

I do not have it on a current LineageOS ROM also.

Go Lineage since SONY seem to have abandoned the Tablet.
[Xperia Z4 Tablet Android Development] belrik:
Kinda love that I rarely need to check this thread cos the official builds just work! Thanks for keeping this great tablet alive!
[Xperia Z4 Tablet Android Development] RoKr7:
Will all of this work for tab Xperia z4(model number SO-05g)?
[Xperia Z4 Tablet Android Development] odicamillo:
I just installed the 14.1 over a 7.0 stock version plus Magisk and everything works fine.

However, I am a bit confused about restoring the DRM keys that I backed up before unlocking. In particular:

1. The service menu (*#*#7378423#*#*) does not appear in Lineage. So, how do you check whether you DRM keys are in place?

2. Do you really need with Lineage to restore the keys to get the full Sony functionality? In fact, Widevine seems integrated in the OS, for example. What else is missing without the keys?

3. If you want to restore the keys can you use rootkernel (as it is described here https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605)?

Thank you in advance to whoever can answer.
[Xperia Z4 Tablet Android Development] DHGE:
:cowboy:

2) no

1) it is gone

3) do not mess with the Lineage kernel

Instead relax and enjoy the smooth updates.

When I buy a new device I check before buying if I can root it or if their is a LineageOS available or to be expected.

I saved my money instead of buying a Huawei for 450 EUR I got a Moto Z2 Force for 240EUR. The Moto runs on Lineage 15.1 from the day I unwrapped it.

SONY do a very good job since they provide the binaries through their "open Devices" program and provide bootloader unlock codes.

Check

https://developer.sony.com/develop/open-devices/get-started/supported-devices-and-functionality/

though since not every SONY device is easily "lineaged".
[Xperia Z4 Tablet Android Development] belrik:
<Edit - quoted the poster for continuity>

The DRM keys seem to be mostly related to Sony's DSP technology licensing. For instance, the stock camera includes software DSP to change contrast/noise on images captured. Nothing that cannot be done with OpenCamera or one of the GCmod packages tho. Then there is the software DSP to make the screen more vivid, again this is a pure software change and IMHO it's only use is the "shop floor scenario" when manufacturers want their TV/tablet/phone to have the most over-saturated colours possible to catch the eye of prospective buyers. Personally I find this fatiguing to watch and a little weird when people's skin is orange.

Widevine libs are indeed included in LOS ROM, so this isn't required for DRM to playback or store content; instead it seems related to Sony's DSP technology.
[Xperia Z4 Tablet Android Development] gladroger:
Hello,

I have installed this rom, nightly 2018-11-09 and nano gapps with twrp recovery.

Went to check Widevine CDM and it was only Level 3, wondering if I did something wrong or if it's possible to get it up to Level 1, mostly because of Netflix?

Thanks for all the hard work!
[Xperia Z4 Tablet Android Development] DHGE:
Maybe Lineage does not support DRM-crippled media.

This might help:

https://www.google.com/search?q=magisk+Widevine
[Xperia Z4 Tablet Android Development] gladroger:
Thanks for the suggestion. Don't I have to use my own TA.img to get the keys working on LineageOS in order to get the DRM working?
[Xperia Z4 Tablet Android Development] DHGE:
No - Lineage is generic for many devices.

This TA.img/key stuff only works for SONY kernels.

Do not even think about mixing this with Lineage.

It is XOR.

Some Magisk modules can help to enable "lost" functions or hide your evil deeds from Android/apps.
[Xperia Z4 Tablet Android Development] jelbo:
So, I'm on the previous official Sony ROM, debloated, rooted and having fantastic deep sleep and battery usage. Is Lineage OS the same in that regard? Or is it less than optimal?
[Xperia Z4 Tablet Android Development] torben5247:
Lineage os is much better in standby with wifi switched off, 1% in 15 hours standby. That is amazing!

Stock is 0,3% pr. hour standby and wifi off.

But i think that lineage os use more battery when the tablet are in use, compared to stock. It also get´s warmer.

I think it has something to do with the wifi. Because if you turn wifi off (reading ebook) it uses cignificant less battery.

But i have choosen lineage os instead of stock, because of the standby battery drain is almost nothing. :)
[Xperia Z4 Tablet Android Development] jelbo:
Thanks! I'll stick to stock then, because battery life when in use is more important for me than battery life when not in use.
[Xperia Z4 Tablet Android Development] DHGE:
How about DAYS of usage?

and swift security updates?
[Xperia Z4 Tablet Android Development] jelbo:
I don't care much for security updates on my tablet. I'm tempted to try LineageOS, but a voice is telling me 'if it ain't broken, don't fix it'. So, convince me in a few sentences if you want :)
[Xperia Z4 Tablet Android Development] belrik:
Try waiting a year or so until you start seeing apps that don't run on your older Sony Android build, then come back ;)
[Xperia Z4 Tablet Android Development] jelbo:
Yeah, that's a good incentive. But for now, I'm happy with how things are, especially the great battery life when actually using the tablet ;)
[Xperia Z4 Tablet Android Development] venki5star:
Is it possible to get Lineage OS 16.x for Tablet Z4?
[Xperia Z4 Tablet Android Development] DHGE:
SONY release binaries that are OS-version specific. I doubt they will update their offering to Pie since they did not bother with Oreo.

The rest is open source and some guys have figured out to get the hardware drivers working on the devices you list in your footer. HTC and SAMSUNG are worse than SONY in supporting open source or updating older devices.

So - give it a try!
[Xperia Z4 Tablet Android Development] jelbo:
I'm still on Marshmallow and if I won't like LineageOS, I want to return to Marshmallow. Is this possible? In other words, can I downgrade official Sony ROMs?
[Xperia Z4 Tablet Android Development] DHGE:
Yes

caveat: needs a factory reset like most changes of Android versions
[Xperia Z4 Tablet Android Development] jelbo:
Ok, I've made the switch. Happy so far, but I'm seeing the battery drain as well. I found out there is an incorrect battery capacity value being reported to apps, the source being a wrong value (2930 instead of 6000) in power_profile.xml in framework-res.apk. I've created an issue at GitLab. Maybe that has something to do with it.

<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">24.95</item>
<item name="bluetooth.active">48.64</item>
<item name="bluetooth.on">1.09</item>
<item name="bluetooth.at">39.93</item>
<item name="screen.full">380.19</item>
<item name="wifi.on">0.97</item>
<item name="wifi.active">329.74</item>
<item name="wifi.scan">49.42</item>
<item name="dsp.audio">38.79</item>
<item name="dsp.video">230.86</item>
<item name="camera.avg">813.49</item>
<item name="camera.flashlight">22.17</item>
<item name="radio.active">160.51</item>
<item name="radio.scanning">9.37</item>
<item name="gps.on">48.81</item>
<array name="radio.on">
<value>9.01</value>
<value>8.28</value>
<value>7.53</value>
<value>6.78</value>
<value>6.04</value>
</array>
<array name="cpu.speeds.cluster0">
<value>384000</value>
<value>460800</value>
<value>600000</value>
<value>672000</value>
<value>768000</value>
<value>864000</value>
<value>960000</value>
<value>1248000</value>
<value>1344000</value>
<value>1478400</value>
<value>1555200</value>
</array>
<array name="cpu.speeds.cluster1">
<value>384000</value>
<value>480000</value>
<value>633600</value>
<value>768000</value>
<value>864000</value>
<value>960000</value>
<value>1248000</value>
<value>1344000</value>
<value>1440000</value>
<value>1536000</value>
<value>1632000</value>
<value>1728000</value>
<value>1824000</value>
<value>1958400</value>
</array>
<item name="cpu.idle">4.66</item>
<array name="cpu.active.cluster0">
<value>59.17</value>
<value>59.34</value>
<value>59.04</value>
<value>60.75</value>
<value>61.27</value>
<value>64.09</value>
<value>64.42</value>
<value>69.11</value>
<value>71.12</value>
<value>73.89</value>
<value>75.06</value>
</array>
<array name="cpu.active.cluster1">
<value>86.18</value>
<value>86.13</value>
<value>88.03</value>
<value>90.52</value>
<value>94.17</value>
<value>96.69</value>
<value>104.51</value>
<value>107.54</value>
<value>110.88</value>
<value>115.25</value>
<value>119.88</value>
<value>123.32</value>
<value>130.85</value>
<value>206.31</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<item name="cpu.awake">40.36</item>
<item name="battery.capacity">2930</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
</device>

Currently monitoring kernel/partial wakelocks with BetterBatteryStats.

/edit: yep, it's the power_profile from ivy, not karin(_windy). I've made my first ever pull request for at least the mAh change.
[Xperia Z4 Tablet Android Development] torben5247:
Good stuff [MENTION=1847079]jelbo[/MENTION] that is very interesting what you have discovered.

Is it possible to Edit the power profile.xml?

Thanks ?
[Xperia Z4 Tablet Android Development] jelbo:
It should be possible to decompile and recompile framework-res.apk and use that, but I got errors twice with different methods, that I could not fix.
[Xperia Z4 Tablet Android Development] zzcool:
I literally can't live without super vivid mode, can it be ported to the tablet z4? I mean the most up to date one that works for the entire ui, screens are dull without it.
[Xperia Z4 Tablet Android Development] j3p4nt:
z4 docomo version

is this firmware support with z4 docomo version (SO-05G)? please letme know is this is supported. thankyou.
[Xperia Z4 Tablet Android Development] venki5star:
Is it just me or anyone else having trouble maintaining stable WiFi connection? Sleep mode for WiFi is turned off but, still disconnects often. Annoying when casting and downloading.
[Xperia Z4 Tablet Android Development] belrik:
Have this on many Android devices, my fix is to attach usb power when I want device to stay awake, otherwise power-saving sleep mode always happens.
[Xperia Z4 Tablet Android Development] jelbo:
Yes, there is a Magisk module for that. Magisk is running great on this LineageOS ROM. There's even an Xposed module.
[Xperia Z4 Tablet Android Development] zzcool:
Link please all I can find is from 2015 which only applies to photos I want the latest mode for oreo and later i already tried the ones i found there was no difference i want the one from 2017 and up
[Xperia Z4 Tablet Android Development] poppy2:
That sounds perfect,good job
[Xperia Z4 Tablet Android Development] jelbo:
https://github.com/enggarsulistyo/BraviaEngine (this is 2 months old).

You may need the Sony Gallery app, you can try downloading that via the xmlpak Magisk module. Or try this Sony Applications Magisk module.
[Xperia Z4 Tablet Android Development] e-ghost:
Is there any chance I can use this LineageOS?

After a whole week of try, I finally cross flash ROM and backup TA. But the I found in service menu that "bootloader unlock allow: no". Is there anyway I can remove this limited to unlock the bootloader? (I input the IMEI onto Sony unlock bootloader page and then got the unlock code, but fast boot unlock command not allowed.)

Thanks a lot!
[Xperia Z4 Tablet Android Development] max_work:
Hey guys, i would like to put lineage on my tablet, but since i use my tablet from time to time to use the ps4 remote play feature, i would like to ask you if it is still possible to use this with the lineage rom?

kind regards
[Xperia Z4 Tablet Android Development] venki5star:
You should able to
[Xperia Z4 Tablet Android Development] 5t0rmr1d3r:
Never tried that, what do i need to do to test remote play?