yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
tried to flash v4 again and open_gapps-arm-7.1-nano-20170308 as i sideload.

The lineagos has ben showed for 10 minutes.... So i am afraid that something is wrong.

I have tried to restore my v3 backup and that didn´t work either, after restoring the tablet booted up sowed the sony logo and nothing happend.

When i try to turn the tablet off it boots into recovery....

So i did a full wipe and flashed the v4 and open_gapps-arm-7.1-nano-20170308 and did a restore of the data partition from v3.

I was hoping that i didn´t had to reinstall all my apps. but that gave lineageos logo for 20 minutes.

Finally i did a full wipe and flashed the v4 and open_gapps-arm-7.1-nano-20170308 and that worked very well.

Thank you lowtraxx and sorry for all the questions from me.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
No problem, that is what I am here for. I am sorry to hear, that the upgrade did not work in the end. It's very strange indeed.
[Xperia Z3 Tablet Compact Original Android Developm] baristaman:
I had exactly the same result when I tried to dirty flash v4. I had pretty good luck with dirty flashes with this rom until now. A clean flash fixed everything right up. I hadn't reported it until now because I thought it was the convention to not complain that dirty flashes don't work, unless the developer explicitly says that they do.

On a related note, when I clean flashed I restored my apps from my Google account. I don't find Titanium Backup restores to work very well on this or any of the other Lineage 14.1 roms I've tried (on other devices). Typically TiBu freezes after restoring a few apps with a batch restore.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
I am really baffled here :( I don't know whats different then... I always try dirty flashing from the previous version to make sure it works before I upload the build. If a dirty flash is considered risky I normally warn for it in the Changelog reply. But with v4 it worked okay both times I tested it now.

But from the logcats I got from you guys where it failed it always involved Google Apps permissions in some way.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Here you go guys. Coming in v5...

03-08 17:24:33.445 1943 2081 I bt_btif_media: btif_a2dp_encoder_init Selected Codec aptX
03-08 17:24:33.523 1943 6085 W bt_osi_thread: run_thread: thread id 6085, thread name aptx_media_worke started
03-08 17:24:58.709 1943 6085 W bt_osi_thread: run_thread: thread id 6085, thread name aptx_media_worke exited
[Xperia Z3 Tablet Compact Original Android Developm] ccgx:
It didnt work. After trying to flash the newest gapps, I wiped system to get a clean slate on the partition and flashed v4 and opengapps again. Still have crashing play services. So probably something on /data is borked and the only solution do a full wipe and start over?
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Could you check in privacy guard, if any permissions for play services are set to deny?
[Xperia Z3 Tablet Compact Original Android Developm] ccgx:
Just activated all permissions for play services, still the same problem.
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
I'm also having problems with Google apps after dirty flashing and wiping cache/dalvik cache. For instance, trying to open Maps brings up "Maps has stopped".

I tried flashing the latest Gapps nano and it made no difference. I then dirty flashed back to v3 and it's still broken. No privacy guard.

My device is Scorpion Windy.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
To all guys with problems on upgrading (force closes). Could you please reset all permissions in privacy guard. Then go to Settings->Apps->SettingWheel->AppPermissions and (especially in location) allow everything. And tell me via PM or here if it helps. Don't forget to click on the menu in the upper right and enable show system apps before checking the permissions.

Update: if you have installed Google+, please remove it. And make sure, the GoogleLocationProvider has ALL permissions especially FINE_LOCATION

Could you please try the following:

adb shell pm grant com.google.android.gms.persistent android.permission.ACCESS_FINE_LOCATION
adb shell pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
adb shell pm grant com.google.android.gms.persistent android.permission.ACCESS_COARSE_LOCATION
adb shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION

It is normal that one ore more of these fail, but afterwards the FCs should be gone.
[Xperia Z3 Tablet Compact Original Android Developm] noname2no:
Ofc. I did it without hassles. V4 is even more stable than V3.
[Xperia Z3 Tablet Compact Original Android Developm] SteveJobt:
Great ROM thanks to lowtraxx and his team. No issues at all on my SGP 621.
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
Yes it was Strange that my dirty flash didn`t worked.

Only thing that i have thought could be the reason was that i didn`t flashed the gapps before first booting.

But after clean install no issues at all!

Thanks to lowtraxx
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
Interestingly, AudioFX v2.2.0 is actually included in this ROM and is running in the background - not sure what is does though, there doesn't seem to be any UI for it...
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
The two .presistent commads fail with "Bad argument: java.lang.IllegalArgumentException: Unknown package: com.google.android.gms.persistent".

The other two seem to execute successfully. Seems to have made no difference. I then rebooted and no difference.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Could you attach me a logcat so I can see what's wrong still?
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
I've had to truncate to meed the forum file size limit. It adds a lot of lines fast.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
For some strange reason most of the permissions are broken (or forgotten). As you can see at the top of the log you attached, most permissions of your installed applications are denied. Maps for example:

03-09 12:38:26.159 W/PackageManager( 870): Not granting permission com.google.android.providers.gsf.permission.READ_GSERVICES to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission android.permission.WRITE_EXTERNAL_STORAGE to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission android.permission.ACCESS_COARSE_LOCATION to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission android.permission.ACCESS_FINE_LOCATION to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission com.google.android.c2dm.permission.RECEIVE to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission com.google.android.gms.permission.CAR_SPEED to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission android.permission.READ_CONTACTS to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission android.permission.CAMERA to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.159 W/PackageManager( 870): Not granting permission android.permission.CALL_PHONE to package com.google.android.apps.maps because it was previously installed without
03-09 12:38:26.160 W/PackageManager( 870): Not granting permission android.permission.READ_EXTERNAL_STORAGE to package com.google.android.apps.maps because it was previously installed without

You should be able to regrant them in privacy guard and Settings->Apps->SettingWheel->App permissions. The ones you can not, you should be able to grant via adb like:

adb shell pm grant com.google.android.apps.maps com.google.android.providers.gsf.permission.READ_GSERVICES

But I guess it is a lot of hassle to do this for all Apps.
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
As far as I know privacy guard isn't enabled and never as been. I've never changed anything fro the default. I have attached some screenshots if that helps.

Edit: I just tried that command and got: ">adb shell pm grant com.google.android.apps.maps com.google.android.providers.gsf.permission.READ_GSERVICES

Operation not allowed: java.lang.SecurityException: Permission com.google.android.providers.gsf.permission.READ_GSERVICES is not a changeable permission type". Maps still FCs.

Edit2: If it makes any difference, all other apps that don't depend on gapps seem to work fine.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Okay, I am running out of ideas here :( One last thing you could try -> delete your Google account -> Reboot into recovery -> Flash latest GApps -> Reboot -> Try Maps without account -> If it works Add Google Account, if not, remove it, add Google Account and reinstall it.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Guys, look forward to v5 :D not only will you get AptX, but also ClearAudio (partly) and fixes for the volume bug as well as some other great audio enhancements. Props to [MENTION=4170892]dontbelive[/MENTION] and his awesome StereoMod which gave me pointers in the right direction.
[Xperia Z3 Tablet Compact Original Android Developm] prefect472:
This may be a stupid question, but how would I go about trying to build this myself? Are there sources, gits, instructions somewhere? Since I can't get the boot (kernel?) to work on my SGP621 I though I could tinker with it to see what could be wrong in my case.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
The sources are at https://github.com/lowtraxx. There is the local manifest you need. Basically you need to follow the LineageOS build instructions up until the point where you should do a repo sync. Before you do that, you get the local manifest from github and copy the local_manifest_scorpion.xml to .repo/local_manifests/default.xml, then continue with the tutorial. To build it then you issue

breakfast scorpion
mka -j8 bacon

But be ware, building takes time, patience and lots of disk space.
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
Removed Google accounts, booted to TWRP, flashed latest GApps and rebooted. No good, still FCs.

Uninstalled Maps, added Google Account, installed Maps. Seems to work :). Have just done the same with Gmail and that now seems to work. Think I'll probably have to do the same with all Google apps.
[Xperia Z3 Tablet Compact Original Android Developm] wulfiss:
oh thank for you hard work, that gonna be great. I'm wondering, can you bring the rom "unroot" and let us choose what we want?

Sorry for my bad english. I'm still learning it and i have a lot for learn.
[Xperia Z3 Tablet Compact Original Android Developm] ravle:
This took me a while, but I finally got it to work! Many thanks!

My bootloader wasn't properly updated. But the latest TWRP (multirom) didn't work though: it detected my device as 'scorpion' instead of 'scorpion_windy'.
[Xperia Z3 Tablet Compact Original Android Developm] belrik:
Had similar problems with a Samsung S1 many years ago, only fix was to remove Google account plus affected apps and reinstall as you've done. Got very messy. Seemed to have been caused by first boot without gapps, enabling privacy guard for new apps and then when flashing gapps afterwards they end up being locked down and FC everywhere.
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
This ROM includes GApps though. Either way, it seems to be working now :).

Edit: My mistake, it doesn't include GApps.
[Xperia Z3 Tablet Compact Original Android Developm] belrik:
The ROM includes gapps??? As long as it's working.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
No, this ROM does NOT include GApps, otherwise I would be in big trouble with Google :)
[Xperia Z3 Tablet Compact Original Android Developm] Nick-W:
You're right, my bad. I was confused as I have been using an AOSP ROM on a different device for a long time which includes it.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
V5 is live!

V5 is here. Go get it :D

Changelog (LineageOS):

11.03.2017 - V5:

- Newest Lineage, Sony and Android Sources

- Android February security patches (addendum)

- Audio volume fixes (finally) thx to [MENTION=4170892]dontbelive[/MENTION]

- Lots of Audio enhancements (but still lots to do)

- Support for AptX and AptXHD

- More FM fixes (should be mostly stable now)

- Sleep improvements and kernel simplification (less log clutter and removal of unneeded drivers)
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
Thanks. Will try today. Did you dirty install over v4 OK?
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Yes, worked ok for me. Would suggest to backup anyway if you have sensitive data on the tab.
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
Quick question on partition sizes ...

Coming from stock, my system partition is currently 2.5gb, and is less than 50% utilized with this ROM. With only 16gb on board, I would like to re-partition to free up some more space for /data.

What are other folks experiences?

What are your partition sizes?

How much room should I leave for /system growth?

Thanks.
[Xperia Z3 Tablet Compact Original Android Developm] ccgx:
Just dirty flashed v5 without problems (but I did flash new gapps before rebooting, since that was a problem with my last dirty flash from v3 to v4)

Why not just pop in a microsd card an use adoptable storage? Would be far easier.
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
Just dirty flashed v5 over v4, no problems.

For aptX and audio enhancements, are there any settings or are they automatic?
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
They are all automatic. Enhancements are applied to all audio. AptX is enabled if the headset supports it.
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
OK, Thanks - a really useful future enhancement would be if the BT connection knows the headset supports aptX and they are connected with it enabled, some brief toast or notification appears stating the connection type. This would really help in troubleshooting and also confirming the audio connection.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
That's not as easy as it sounds, as the AptX support is a binary library ported from Lenovo. If you want to see that AptX is active for your headset, play music on it and afterwards do a adb logcat | grep -i aptx (for now ;))
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
OK, understood. Will try the log at option.

On the volume control, when using the tablet for a phone call, the volume is not adjustable when on speaker mode. I can't remember how stock handled it ...

Bluetooth is fine.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Sounds like a bug. Will investigate.
[Xperia Z3 Tablet Compact Original Android Developm] tommes_d:
I´m on V5 with my SGP611 and have a problem connecting a Bluetooth keyboard. It is recognized but requires a 6 digit keycode to pare. In stock rom the keystrokes are recognized, on V5 nothing happens. So I can´t use the keyboard. Any idea please?

Beside this I like this ROM very much. Especially switching the GPS on from a homescreen widget, which was at last possible with KitKat, is great!
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Hi, just paired my Microsoft Universal Mobile Keyboard for the first time without a problem. Entered the numbers and pressed enter. Works like a charm. Please provide a logcat from the failed attempt.
[Xperia Z3 Tablet Compact Original Android Developm] tommes_d:
Looked up how to get a logcat, installed CatLog, started recording, started pairing my Periboard 805-LII - and now it works :mad:

Ok - I don´t know what was going wrong in my first attempt, but now it´s fine.
[Xperia Z3 Tablet Compact Original Android Developm] ccgx:
I also needed 2 attempts for pairing my logitech illuminated something keyboard. Maybe just mistyped the numbers...
[Xperia Z3 Tablet Compact Original Android Developm] sebarkh:
my god, you are so amazing lowtraxx.

It's like getting a new device....

ty
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
Sorry guy´s for theese noob questions.

But this rom is amazing and i want to figure out how to dirty flash when upgrades are coming.

I dirty flashed v5 over v4 and flashed gapps, i ended up with the lineage os logo just keep on showing for 20 minutes.

I had to use the yellow button beside the sd card to turn it off.

Then a had to delete everything using twrp wipe.

And in twrp flash the v5 zip file and gapps.

Tablet booted up and works fine but i have to install all my app´s.

I can´t figure out what i am doing wrong.

I have flashed the boot.img from lineage os v5.

The twrp is the 3.0.3.0. and i can easily boot into twrp. Sp twrp is working fine.

I am not sure if the twrp is flashed to the FOTApartion, but i dont think that it is giving me the dirty flash issues.

One other thing i might have done wrong is that i flash the v5 zip using "install" in twrp i might have to use adb sideload instead of flashing it directly in twrp??

Any suggestions would be very much appriciated.

Thanks in advance

torben5247
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
I used TWRP to install v5 over v4, cleared cache & dalvik and rebooted.

No re-install of gapps.

All works fine.
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
Thanks for your reply!

I am the only one having these issues.... it´s driving me crazy.

Did you use the "install" or the "adb sideload" function in twrp?
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
I used zip install...
[Xperia Z3 Tablet Compact Original Android Developm] michael_hamada:
I've dirty flashed over old version without wiping anything 'cause Android N automatically rebuiled cache.

Of course, you don't need to reinstall Gapps with dirty flash method, or should I say, reinstalling Gapps will make things more complicate sometime.

Anyway I have no issue with this method and I rarely use 'sideload' .
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
I installed the v5 zip file in twrp "install" and the gapps.

next update i wont install gapps.

I don´t get any errors when installing the zip files.

Maybe i have to look into if my twrp are installed properly.

It seems like it is working and it has ben working when i had mm installed.

But maybe there are something wrong.

I can see in the install instructions that i should flash the twrp into the fotapartiton.

I tried that in fastboot using this command:

"fastboot flash FOTAkernel TWRP_multirom_scorpion_windy_3.0.3.0_3.10_201701.img"

i got this error message:

"writing fotakernel.....

failed (remote: command not allowed)"

So i did not succeed with that.

How did you install twrp?

I have used custom recovery for years on my sony phone´s and tablet´s i have never had any isuues like the ones i have on my tablet...... it is driving me crazy! And sorry for all my questions i just have to get this working.
[Xperia Z3 Tablet Compact Original Android Developm] michael_hamada:
Well, I think you are smart enough, but just for the case, have you unlocked bootloader?
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
Yes bootloader are unlocked... ;)
[Xperia Z3 Tablet Compact Original Android Developm] michael_hamada:
Yep, I'm so stupid, I haven't read your post all.

You couldn't install previous version unless you unlocked bootloader, sorry.

So .... I can't figure out the error occurred while installing TWRP...

---------- Post added at 07:12 PM ---------- Previous post was at 07:04 PM ----------

I wonder the command you typed might be typo.

Lowtraxx mentioned it several days ago.

See the post #161.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
It is FOTAKernel, big K ;)
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Please guys, do not flash GApps if you do not need to. If you dirty flash a release let the GApps be. They are getting updated while you run the system, there is no need to flash them. It only causes you pain. Flashing them is only needed on the initial install. I haven't flashed them since cm 14 and successfully dirty flashed all releases since then without a hitch.

Edit: I will add this as disclaimer to the main post.
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
i have read Lowtraxx thread on this issue and i got it wrong...... :eek:

uuups my mistake... thanks guys!
[Xperia Z3 Tablet Compact Original Android Developm] b8drf:
I fell into this trap and had the same message, It's case sensitive, see my post in this thread on the 7th March.. It should be "fastboot flash FOTAKernel ..."
[Xperia Z3 Tablet Compact Original Android Developm] torben5247:
The big "K" did it. fastboot did it without any errors.
[Xperia Z3 Tablet Compact Original Android Developm] jacktheriefla:
For every Lower Case "k" a Beer for Lowtraxx :DDD
[Xperia Z3 Tablet Compact Original Android Developm] Dodolom:
Guys, I know it is not the right place to ask this but I am rooted/bootloader unlocked/on stock 5.0.2. I keep on flashing twrp but can't boot into it. Tried every which way. Device just does a normal reboot instead.

What am I missing? I want to enjoy all this and get in on the fun.
[Xperia Z3 Tablet Compact Original Android Developm] lowtraxx:
Only flashing TWRP is not enough. You also need to flash a boot image that supports booting into TWRP. Also you should upgrade to the latest stock (6.x.x) before installing a custom ROM.
[Xperia Z3 Tablet Compact Original Android Developm] KuLakow:
Audio-fix doesn't works for me. When I start music on 0% volume and then raise it, volume become maximum on 30-50%.

UPD:

There's also auto-changing volume, that regulates very strange. On second degree it's loud, then suddenly become quiet, then loud again and etc. Maybe this promlem exist on another degrees.
[Xperia Z3 Tablet Compact Original Android Developm] belrik:
I installed CM almost instantly after purchasing the tablet 2 years ago, do I need a bootloader upgrade for proper TWRP functioning? I am aware that the newer Z4 bootloaders are more permissive with respect to recovery/FOTAkernel loading than older ones, is the Z3 similar?

So far I have no problems but would like to know best practice, and if a slimmed down FTF with just bootloader is available?
[Xperia Z3 Tablet Compact Original Android Developm] noname2no:
Flash Sony latest official ROM using Emma. https://software.sonymobile.com/emma/emma_setup

Then flash the latest TWRP. Reboot to recovery, perform a full wipe and install the lineage build corresponding to your hardware + latest nano opengapps
[Xperia Z3 Tablet Compact Original Android Developm] belrik:
You've described the process (which i already know) but haven't answered my questions. ;) Is the new bootloader required and is a lightened FTF containing only the bootloader available?

Also, if someone can tell me their bootloader version (adb bugreport) then i can see if Sony have even changed it in Android 6.x