[Xperia Z5 Q&A, Help & Troubleshooting] AnonA2:
Rooting (super root) of this phone is complicated! :eek:

So i obtained actual root procedure from sceryavuz. Someone more experiemced please lets ask me the question:

So please tell me if i get it right. Also when I will be flashing the os I will do it from internal memory not SD card in case only fastboot could read SD card .

Goal: system rw, xposed, no sudden death

Complexity: hard

Troubleshooting : very hard (7/10)

Drm: 32.4.A.1.54, E6653

Kernel specification (stock)

Link list:

Fastboot oem unlock x(given code from site)

flashtool for sony devices 0.9.25.0 x64

patch kernel with tool

https://mirrorbits.lineageos.org/fu...neage-14.1-20190224-nightly-sumire-signed.zip

Nightly is flashable, SHA checksum where?

SHA:

https://download.lineageos.org/sumire

https://xdaforums.com/attachment.php?attachmentid=4493759&d=1525538964 (zip)

xposed-v89-sdk25-topjohnwu.zip

https://xdaforums.com/attachment.php?attachmentid=4393853&d=1516377687 (apk)

xposed installer 3.15 Magisk apk

Other links:

Link1

https://xdaforums.com/xperia-z5/general/ftf-e66xx-patched-kernels-google-drive-t3688365

https://forum.android.com.pl/topic/...5-dual-wersje-ce1-brandy-polskich-operatorów/

Root procedure

1. Ta backup

2. Backup Service menu

3.

Windows 7 : Tap F8 while booting and select required option

Windows 8, 8.1, 10 : Read This Instructions

4. Install all drivers

5. Unlock bootloader

Fastboot oem unlock x(given code from site)

?

[

1. Can be downloaded stock rom via flashtool stock (No xposed) to extract and patch kernel with tool and to patch via flashtool (format data cache etc)

flashtool for sony devices 0.9.25.0 x64

* Do not know any further *

]

6.

Fastboot boot recovery.img

7. Backup

8. Backup all partition to internal memory

8a.

If your device is encrypted (sim unlock password not lock screen) then you need to decrypt it via operator

Uptade to 32.4.A.1.54 For DRM fix via guide by sceryavuz

9. Flash twrp

9-1) adb reboot bootloader

9-2) Copy recovery image to C drive and rename recovery image to recovery.img.

Type the following command to flash recovery image.

9-3)

fastboot flash recovery c:\recovery.img

9-4) Now type the following command to reboot bootloader.

9-5)

fastboot reboot-bootloader

9-6) and then type the following command to erase cache.

9-7)

fastboot erase cache

9-8) Now type the following command to reboot your device.

fastboot reboot

10. So the files to use:

1.Lineage os 14.1 xperia z5 (nomodelname) sumire rom newest. Zip

Link:

https://mirrorbits.lineageos.org/fu...neage-14.1-20190224-nightly-sumire-signed.zip

Nightly is flashable, SHA checksum where?

SHA:

https://download.lineageos.org/sumire

Data-system-caches format (without internal?)

2. Gapps 7.1 for cm14. 1 lineageos xperia z5 nomodelname shurimi. Zip

Link:

https://opengapps.org/

(ARM64, 7.1, pico (can be also full? already downloaded))

+ Md5 checksum for android

Reboot

....

Shutdown

Recovery

3. Magisk (with built in root method (zip), modded for xposed)

a) Zip root and framework (its somehow manifest change and linked so its systemless? the light modules like xsuite, edge etc work I quess, but heavy ones like gravitybox can be highly incompatible)

Link (php):

https://xdaforums.com/attachment.php?attachmentid=4493759&d=1525538964 (zip)

xposed-v89-sdk25-topjohnwu.zip

b) GUI to enable framework

https://xdaforums.com/attachment.php?attachmentid=4393853&d=1516377687 (apk)

xposed installer 3.15 Magisk apk

Disabling xposed via magisk allow also safetynet check for Android pay? I dont need it, just curious.

Do i need special one root method for this rom?

Magisk xposed instead of systemless edxposed

4. Adaway (systemless method), adaptive Google storage instead Apps2sd etc.

5. Is this Super-Root (kernel is patched to allow r/w for root user?) or I need fix?

Busybox is present or can I just flash it?

6. Super-Root of device (???)

su

Termux

echo 0 > /sys/kernel/security/sony_ric/enable

Lastly write this

Code:

busybox mount -o rw,remount,rw /system

____________________________________________________________________

Then I can use app to move for example ogyoutube to /system/app instead of typing cp -R /sdcard/Android/Data/com.xxx.org and rm

or linking like this

ln -s (path to be linked) (to location)

ln -s /sdcard/data/hosts /data/data/hosts

I can use Titanium Backup to remove sth via recovery f.e

or I can change fonts while system is running.

____________________________________________________________________

Questions

1.Ok i parsed these links (shurimi lineageos flashable and magisk root xposed) but idk if i can use full packet of gapps or mini. I have 520 MB free on my current Rom (es file Explorer present, checked via terminal) and gapps full is 522mb (i need pfx support on my device). The lineage uncompressed weight is approximately 4gb so i can use either mini (322 MB) or full (522), if i flash too big file it either hardbrick my CMOS on Emmc or just be refused by TWRP via fastboot.

Busybox is built in, magisk root my phone, adaptive storage should work. The cyanogenmod comes also with tools to modify navbar, change volume, navigation bar, modifing strings for buttons (should not Conflict with remap), global equalizer, but it should not conflict with my xposed modules ... BTW do you know a simple app or magisk module to apply fxes like flanger globally to audio channels or sound processor?

2. If kernel is patched and included in os System should be writable? Also Recovery should be linked, so device is full root device not root device (Recovery bootable and accesible from system) , right?

Other device (super root problem)

https://github.com/Nilhcem/hosts-editor-android/issues/28

If i need to have another patched kernel then im willing to not rather replace kernel img to flash with superrooted one because it always a risk that sth will be corrupted... Or you can send me via google drive prepatched Rom if its not as dangerous as it seems for me...

https://tunecomp.net/switch-cyanoge...de-on-cm1314-and-gain-access-to-system-files/

Abbility to modify system on cyanogenmod.

I had been using Aokp kanged Rom on Another device and I was able to modify system partition.

3. I should not apply Sony ric fix as follows

echo 0 > /sys/kernel/security/sony_ric/enable

busybox mount -o rw,remount,rw /system

Or

https://dammit.nl/20160406-how-to-f...oid-devices-with-supersu-systemless-root.html

_____________________________________________________

If verified ok i will tell if its working.

Edit 22.03.19

Please help me! Basic question is CAN I INSTALL FULL GAPPS INSTEAD PICO TO LINEGE OS 14.1 via TWRP??? (currently: system weight 4gb of 5.1, lineage os weight 4gb gapps weight 500mb)

Troubleshooting

I'll try my very best to get it released at 12:51:21 GMT +2.

Glad you didn't ask for a date. Otherwise I would have needed to scream at you for being demanding and disrespectful.

That's probably because of your gapps package.

With the bigger gapps you change camera app to google's

Try a new flash of the rom with pico gapps only, that should do the trick

Thanks, but this guide is only for phones running stock ROM version 32.0.A.6 and earlier, while I'm running 32.4.A.0.160

Really don't want to brick my phone, so are there any other more up-to-date guides out there?

Here you go: https://xdaforums.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597

Afaik, there's another solution, but I did it successfully that way.

Thanks, but this guide is only for phones running stock ROM version 32.0.A.6 and earlier, while I'm running 32.4.A.0.160

Really don't want to brick my phone, so are there any other more up-to-date guides out there?

Here you go: https://xdaforums.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597

Afaik, there's another solution, but I did it successfully that way.url]https://source.android.com/security/advisory/2016-03-18[/url]

uses CVE-2015-1805

so with newer ROM versions it most probably doesn't work,

downgrade / flash a Marshmallow version or an earlier one on which this method works

The others probably can give advice with which version they were successful with that approach,

better ask in that mentioned thread (iovyroot)

20MP only works with some apps, the others are blocked by the vendor binaries (On stock, it only works with Sony Cam btw). Please use the builtin camera for the full 20MP.Hi at all,

I have installed the latest rom on my Z5 Dual and it seems to work fine. But I have the problem that flashing of SuperSU did not work. I used the search bar but I have not found an answer to my problem. So I hope that I do not ask a question which is already answered.

I flashed via TWRP and flashed the following zips:

- latest Lineage 14.1 from the first page

- GApps for Arm64

- Gsam Root Companion V1.6 (this flash has worked)

- AdAway for systemless root (because on my Nexus 7 2012 where I first installed Lineage 14 only this worked)

- SuperSU (addonsu-14.1-arm64-signed.zip; did not work)

The first two zips where system and Gapps. For the other ones I don't know the order. But I have not seen an error in TWRP.

Could anyone help me what I have to do that I can use SuperSU?

The second point (not so important): TWRP has been oberwritten after flashing so that I cannot enter without flash it via Flashtool. But then I have to reflash the zip from Lineage. Is this normal? On my Xperia M dual this was the same way.

Try only flashing system, gapps and root for now, to isolate the issue. Once that works you can still take care of the rest.

For TWRP: We do not include init_sony, as all of the newer Bootloaders (got introduced sometime in M) can boot straight to TWRP. Use fastboot to flash twrp to FOTAKernel (fastboot flash FOTAKernel twrp.img). You can then boot to twrp by powering down your phone and pressing volume down+Power (let go after the vibration).

Gotcha. I just got the latest version (9.20.961291) and it'll take the picture in HDR but it crashes each time. Which one do you use?

It's the same (same developers + maintainers)

HTC camera app can work pretty well

TWRP - fix volume

https://drive.google.com/open?id=0B5DTiLDUqHi8cTBTZU9wZHZmUEU

Gotcha. I just got the latest version (9.20.961291) and it'll take the picture in HDR but it crashes each time. Which one do you use?

No LDAC on custom ROMs,

the following audio mod promises LDAC support and also works greatly on crDroid, LineageOS and RR:

https://xdaforums.com/android/software/mod-quasaratmox-ultimate-sound-mod-t3479705

but take note that battery consumption will raise from e.g. 2-3% per hour to 6-8% per hour (net audio consumption + other battery users) due to sound processing (e.g. while listening to music via the included Sony Music app or PowerAMP)

This ROM will never pass SafetyNet, I've been following this for the last few months. It's an LOS decision (https://lineageos.org/Safetynet/) not specific to the Z5 version of the ROM.

This ROM will never pass SafetyNet, I've been following this for the last few months. It's an LOS decision (https://lineageos.org/Safetynet/) not specific to the Z5 version of the ROM.

No.

Does this ROM support microg (NoGApps) / UnifiedNlp?

Then start Boot up your phone, wait till the welcome message.

After that power down phone with power button + volume up.

Use Flashtool to flash recovery, after that boot up with power button + volume key down.

In recovery flash LineageOS, don't reboot after that, instead power off.

Now get back to Flashtool and flash the LineageOS supported boot.img

Updating partition details...

...done

Full SELinux support is present.

MTP Enabled

Installing zip file '/external_sd/ROM Things/lineage-14.1-20170720-UNOFFICIAL-sumire.zip'

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

E3004: This package is for device: E6633,E6653,sumire,sumire_dsds; this device is .

E:unknown command [log]

Updater process ended with ERROR: 7

Error installing zip file '/external_sd/ROM Things/lineage-14.1-20170720-UNOFFICIAL-sumire.zip'

How I'm going to fix it? It says: " this device is . ", I'm using an E6653.

How I'm going to fix it? It says: " this device is . ", I'm using an E6653.

Updating partition details...

...done

Full SELinux support is present.

MTP Enabled

Installing zip file '/external_sd/ROM Things/lineage-14.1-20170720-UNOFFICIAL-sumire.zip'

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

E3004: This package is for device: E6633,E6653,sumire,sumire_dsds; this device is .

E:unknown command [log]

Updater process ended with ERROR: 7

Error installing zip file '/external_sd/ROM Things/lineage-14.1-20170720-UNOFFICIAL-sumire.zip'

Thanks for your help.

One question, how I'm going to use this Updater-script?

Trying to installing it over recovery does not work.

Do I need to put the script into the ROM, or over Flash Tool?

Never mind found it here in ROM ZIP ( META-INF\com\google\android )

Hope repacking should be enough.

I am not a newbie, I had Xperia Z, Z1, Z2, Z3 Compact in past and havent meet problem like that (never)

This is what exactly am doing

Flash latest stock by Sony (7.1.1 bulid 160) in flashmode

Install TWRP recovery in fastboot by command fastboot flash recovery (path to recovery)

Ok, successfully booted to twrp by holding vol down and power when device is off

In twrp:

Wipe data, system, dalvik cache, cache, internal

Now, install zip, choose rom zip

Carbon logo in recovery, after some time it say installation is complete

Reboot phone

Stuck in bootloop

Am going creazy with that, am experienced user and I havent meet anything like that ever before, no idea how can I solve that

Tried even command

Fastboot erase boot

Fastboot erase system

Fastboot erase userdata

Fastboot erase cache

Then install boot in fastboot, flash recovery and rom in twrp....

Still the same

Really, its fu*kin creazy because i cant install any custom rom

It should work, although wiping internal memory is not needed since u flashed latest ftf (which will format internal memory)

Maybe u can try normal factory reset after flashing ftf and then flash this rom zip ?

Btw what model number do u have? E6553?

Can u boot with a modified kernel on stock ROM?I have huge problem. I cant boot this rom, no problem with installing, but when trying to boot, it results in never ending bootloop. Only way to fully boot the rom, is connect powered off phone to charger, any help...?

Try to clean the installation again?The 1207 build is very stable, been using it for 3 days and no issues so far.Hello all.

I' reduce the Ringer volume.

Source mixer_path.xml from lineage-14.1-....-UNOFFICIAL-sumire.zip

Here is FIX AUDIO download. TVRP

https://drive.google.com/open?id=0B5DTiLDUqHi8cTBTZU9wZHZmUEU

You obviously didn't search well enough :P https://xdaforums.com/showpost.php?p=72710557&postcount=670

Two questions before I flash this:

Are the patches included for Substratum to work?

Does the kernel include SafetyNet patches so that it will pass SafetyNet checks?

https://www.google.com/url?q=[url]h...FjAAegQIBBAB&usg=AOvVaw1DeaZglbLngL5ix_gv4pYg[/url]

You also can use the integrated root manager built into Lineage, just flash the zip below and when u get into dev options, there would be root access options for apps, etcc...

And yes, that's normal when you haven't flashed the addon zip attached

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post72751782

https://xdaforums.com/attachment.php?attachmentid=4189005&d=1498045807

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post72336769

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post72339685

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post72196980

https://xdaforums.com/xperia-z5/ori...pment/cm-14-1-lineageos-t3536846/post72180567[/url]

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71985952

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71991115

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71992481

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71775731

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71585204

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71526368

EDIT : Problem solved just grab any custom ROM and flash it and you ready to go I used slimX

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

I want to try stock sony nougat downloaded latest .378 but phone is not detected in flashtool I guess I keep getting this error

tried both latest Nougat .378 and MM 5.11 same error

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71239228

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post71023276

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70878437

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70827062

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70801442

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70732221

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70721560

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70678193

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70657259

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70616934

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70605394

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70606616

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70602104

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70584410

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70584450

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70584554

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70581633

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70575685

https://xdaforums.com/xperia-z5/orig-development/cm-14-1-lineageos-t3536846/post70526337