Clarification needed regarding rooting and bootloader for installing LineageOS 17.1 - Xperia Z1 Compact Q&A, Help & Troubleshooting

Hi all,
so my current smartphone died for good and instead of getting a new one, I thought I'd revive my old Sony Xperia Z1 Compact. It's been a while since I switched it on so the battery is dead but I'm planning to buy a new battery and replace it. Then I plan to install LineageOS (which is based on Android 10 I believe?)
However I've never done rooting or anything more than basic end user stuff so I've searched the internet and thought I needed to root my phone and then flash the LineageOS. I've read some beginner guides on this forum and other places. However, I've ran into some conflicting/confusing(?) info and need some clarification before starting out. Hope someone can help with my admittedly-very-noobie questions:
1) Can I install LineageOS WITHOUT rooting my phone?
I believe that the bootloader needs to be unlocked first but is rooting necessary? The reason being is that I just want to get rid of the current stock ROM (I think it was Lollipop - can't know for sure because the new battery hasn't arrived yet) and install LineageOS. I don't want a rooted phone because it might conflict with banking apps and such (I know there are workarounds i.e. masking/reflashing/unrooting but as I am not that familiar with the development systems I will just be exposing myself to unknown vulnerabilities) so is it possible to just have the custom ROM and not completely root the phone?
2) Unlocking the bootloader
So I read I have to do a backup first before unlocking the bootloader. Is an SD card necessary or only for rooting? Since unlocking the bootloader will format the SD card anyway? Where should the backup be stored then?
I'd really appreciate some guidance. Thanks!!
Cheers,
traegr

LineageOS or most other roms aren't rooted by default. You will have to install solutions like magisk.
If you install twrp https://forum.xda-developers.com/sony-xperia-z1-compact/development/recovery-twrp-3-3-1-t3960699 make sure you are on latest stock firmware as you need the latest bootloader which allows booting into recovery. Flash firmware with Xperia Flashtool which has inbuilt firmware downloader. http://www.flashtool.net/index.php
If you can't boot into TWRP, you can try flashing attached file with xperia flashtool.
Instead of unofficial lineage I recommend AICP forum.xda-developers.com/sony-xperia-z1-compact/orig-development/rom-aicp-15-0-q10-0-amami-t4005457 . It's got good battery life and nice inbuilt tweaks and customization options..
Hope this helps

Also you need to flash Gapps if you want to use certain apps. Important point for AICP is that you can use microg instead. https://microg.org/

drater2 said:
LineageOS or most other roms aren't rooted by default. You will have to install solutions like magisk.
If you install twrp https://forum.xda-developers.com/sony-xperia-z1-compact/development/recovery-twrp-3-3-1-t3960699 make sure you are on latest stock firmware as you need the latest bootloader which allows booting into recovery. Flash firmware with Xperia Flashtool which has inbuilt firmware downloader. http://www.flashtool.net/index.php
If you can't boot into TWRP, you can try flashing attached file with xperia flashtool.
Instead of unofficial lineage I recommend AICP forum.xda-developers.com/sony-xperia-z1-compact/orig-development/rom-aicp-15-0-q10-0-amami-t4005457 . It's got good battery life and nice inbuilt tweaks and customization options..
Hope this helps
Click to expand...
Click to collapse
Hi, thanks for replying.
What's the difference between the lineage and AICP?

traegr said:
Hi, thanks for replying.
What's the difference between the lineage and AICP?
Click to expand...
Click to collapse
AICP provides more customizations while lineage is a "cleaner" approach. In the end AICP builds on top of lineage sources and adds several features. It totally depends on your personal taste. I consider it to be a bit overloaded. But that's my opinion. Which may be a bit influenced as I build the lineage version. Hehe
But once you have a recovery set up you can easily flash one, test it, and try the other one afterwards.
Hardware functionality should be same as AICP (SpiritCroc) and lineage (mse and me) share the same device tree sources. If one of us repairs something the other one will also get the fixes.
Both AICP and lineage have OTA update support. If you need microg you can either go with AICP 15 (Android 10) or Lineage 16 (Android 9).

Also you can easily backup your entire system with twrp if something goes wrong when flashing or whatever.
And when "hopping" roms you can make backups with Titatnium (root needed)

Related

Newbie Looking For Help

Hello everybody!
I am fairly new to the modding world of android, all I know is that you need an unlocked bootloader to install a custom recovery to then root or install a custom rom. I have a specific set of questions to upgrading my phone software (Lenovo P2a42 on android 7.0):
1) Do you do anything after waiting for 14 days on the OEM unlock screen? Does it auto reset the phone, will a pop up appear, etc? Does it automatically unlock the bootloader or do I need to do adb fastboot oem unlock to finalize unlock?
2) Is there a complete all-in-one guide to installing a custom rom (bootloader unlock, TWRP, flashing, dealing with problems (encryption, fingerprint, wifi, safetynet, etc), etc) from scratch (stock rom)?
3) Is there a way I can back everything up (and recover of course, stock image and recovery, and anything else I might need to go back to factory defaults) in case I screw anything up?
4) What is the least buggiest / most popular / most supported android pie rom available for my phone (Lenovo P2a42)?
5) Anything I should know before proceeding? For example, I know it voids warranty and official support, potentially loosing google playstore, but is there anything else I should know?
I might require further assistance, as I have absolutely no experience. But hey, I gotta start somewhere right?
Thank you for your time.
1.on day 14 the option to unlock is shown in the settings menu.
2. I used this
https://forum.xda-developers.com/lenovo-p2/development/lenovo-p2-root-tool-t3800838
3.TWRP has a backup option in the Recovery menu.
Read the TWRP threads to understand better.
4.for me I like 8.1
https://forum.xda-developers.com/lenovo-p2/development/rom-aospextended-rom-v5-4-t3774641
But am currently using 9.0
https://forum.xda-developers.com/lenovo-p2/development/rom-arrowos-9-x-t3862818
5.anything else to know?
Just make sure you read the thread for whichever ROM you use.
And then enjoy
Treboeth said:
1.on day 14 the option to unlock is shown in the settings menu.
2. I used this
https://forum.xda-developers.com/lenovo-p2/development/lenovo-p2-root-tool-t3800838
3.TWRP has a backup option in the Recovery menu.
Read the TWRP threads to understand better.
4.for me I like 8.1
https://forum.xda-developers.com/lenovo-p2/development/rom-aospextended-rom-v5-4-t3774641
But am currently using 9.0
https://forum.xda-developers.com/lenovo-p2/development/rom-arrowos-9-x-t3862818
5.anything else to know?
Just make sure you read the thread for whichever ROM you use.
And then enjoy
Click to expand...
Click to collapse
The 8.1 rom you provided is AOSPExtended, is there a 9.0 version of it for the P2a42?
Thank you for your time.
404 Name Not Found said:
The 8.1 rom you provided is AOSPExtended, is there a 9.0 version of it for the P2a42?
Thank you for your time.
Click to expand...
Click to collapse
I believe 9.0 is being worked on,it has been released for other phones.
Glad to help

H8324 Rooted Android 9, how to update to latest Android 10 rooted version ?

Hello,
I currently have a XZ2 compact H8324 rooted
Build number : 52.0.A.3.126
I rooted it some years ago and to be honest I don't remember well what I used to do it. I just remember DRM are safe.
The bootloader is unlocked if I remember well (warning message at boot)
Could someone please tell me how to update to latest Android version still rooted ?
I don't care about format it, but I would like it to work as usual (camera stuff) with root.
Is there some kind of precautions ? tools ?
Thank you.
Edit : downloading 52.1.A..3.49 with XperiFirm currently
Xperifirm might work. You can also try Emma (Sony's official flashing tool) which is easier to use but will wipe your device and uninstall any custom recovery you have installed. Your bootloader will remain ulocked, and your DRM keys intact, so you can always reinstall custom recovery after that.
You can also install LineageOS. They have an official 17.1 (Android 10) build for the XZ2 Compact, so it should be very stable and have minimal issues. I'd recommend installing LineageOS after flashing the latest firmware with Xperifirm/Emma because the stock ROM doesn't play nice if you have root or TWRP installed.
Thanks @dankcuddlybear for your answer.
I don't care about custom recovery and data as long as I'm able to flash back custom recovery and root after flash.
If your current Pie variant is fast, stable and is fulfilling its mission, be happy and leave it be.
Q is using cpu cycle wasting scope storage and is a downgrade in many ways from Pie.
Being rooted means you could (?) overcome many of these limitations but how much is your time worth?
Android 10,11(Apple) woke, go broke
blackhawk said:
If your current Pie variant is fast, stable and is fulfilling its mission, be happy and leave it be.
Q is using cpu cycle wasting scope storage and is a downgrade in many ways from Pie.
Being rooted means you could (?) overcome many of these limitations but how much is your time worth?
Android 10,11(Apple) woke, go broke
Click to expand...
Click to collapse
It is not... screen hangs for no reason and needs to switch it off and on
And last week i had to force hardware button reboot as it was stuck
Orphee said:
It is not... screen hangs for no reason and needs to switch it off and on
And last week i had to force hardware button reboot as it was stuck
Click to expand...
Click to collapse
Not good. Pie should be rock solid stable.
It sounds like it's fixing to crash and burn.
Look at the launcher and other 3rd party apps you're using. That load maybe corrupted or the original firmware was flawed.

[SOLVED] I want to update/change my rom to LineageOS 17(Android 10), coming from LineageOS 14.1(Android 7.1.2)

Hi there fellow Moto G5 users. I've been fiddling some time now with the 14.1 version and I want to try out the new 17 version with nightly's. Normally I've have no problems with upgrading or downgrading rom's for my devices, but since newer versions are now 64-bit it's throwing me off.
Since there are so many topics around with tips and procedures I'm a bit confused how to get started to migrate/change to LineageOS 17.
So could anybody help me on how to upgrade to LineageOS 17? As far as I know my phone has: a unlocked bootloader, TWRP with 64-bit support and LineageOS 14.1. What would the first step for me do?
As far as I understand it would be something like this:
(0. Backup up everything + written down both imei's) - done this in advance
1. Lock the bootloader again (whilst LineageOS 14.1 is still installed?)
2. Erase everything (with commands)
3. Flash an official Moto G EU rom (with commands)
4. Update it using OTA to the latest supported version to get a 64-bit rom/kernel/bootloader installed
5. Unlock bootloader again
6. Flash custom recovery again
7. Flash LineageOS 17?
That is what I'm thinking for me to do, is it correct? Or do I miss some stuff?
Any help will be appreciated.
Never lock the bootloader once you have unlocked it - if anything goes wrong in the future you will never be able to fix it without specialist hardware or a motherboard replacement
There is no need to lock the bootloader to change roms
See my post below that is basically answering the same question for full instructions on how to upgrade
Basically update stock firmware to latest retail then format data with latest offical twrp, wipe system data cache & flash rom
[SOLVED] LineageOS stuck at first boot (moto G5 xt1676)
Hello everyone, I just got a Moto G5 (on a refurbishment store) that works perfectly fine with stock OS. My goal is to install lineageOS on it. I managed easily to : - unlock bootloader - install TWRP (3.5.2_9.0) or the lineageOS recovery -...
forum.xda-developers.com
Thanks for the warning, I will try your instructions and see what I can manage. Will post any updates.
I've just updated the rom to 8.1 official. Thanks for the help. @TheFixItMan
And now i'm on Lineage 18.1/Android 11 working great so far.

Question Is it safe to flash any custom ROM and unlock bootloader on the recent MIU 13 release ?

Hi everyone,
I would like to know if it is safe to unlock bootloader and flash a custom ROM under MIU 13.0.3 SKHEUXM ?
I've seen people having bugs, hence why I'm asking if anyone has given this a try ?
Furthermore, I was going to do this update in order for the firmware to be updated then switch to a custom ROM, but I could go for custom ROM first then flash the newest firmware (even if I'm more confident on the first option which should work out of the box, and preserve warranty in case something goes wrong during flashing firmware, always gotta keep fingers crossed).
Thanks for any help on this matter.
If you updated to the latest ROM, your firmware is updated along with it, there's no need to flash the firmware again seperately. Flash the ROM of your choosing, Magisk if you absolutely need it, and enjoy. Most ROMs these days also pass SafetyNet if you do not root your phone.
AkechiShiro said:
Hi everyone,
I would like to know if it is safe to unlock bootloader and flash a custom ROM under MIU 13.0.3 SKHEUXM ?
I've seen people having bugs, hence why I'm asking if anyone has given this a try ?
Furthermore, I was going to do this update in order for the firmware to be updated then switch to a custom ROM, but I could go for custom ROM first then flash the newest firmware (even if I'm more confident on the first option which should work out of the box, and preserve warranty in case something goes wrong during flashing firmware, always gotta keep fingers crossed).
Thanks for any help on this matter.
Click to expand...
Click to collapse
It's not very safe, you need to be careful.
Make sure your PC wouldn't crash or that your USB connection may be unstable.
Take your time in setting everything up and reading up some resources on the internet.
If the Flash-process aborts for whatever reason, do not reboot phone. Your phone may not be able to reboot back into Fastboot and turn black.
As for good resources of information, I recommend the YouTube Channel "Munchy". He covers Xiaomi Flashing very well. You can trust him.
https://www.youtube.com/channel/UCDSfvwvAsKE4Nrosu7bTbJw
You might also want to use a Custom ROM with passing SafetyNet, or to use Magisk Root. If SafetyNet fails, you can't use some apps.
I personally use Xiaomi.eu Weekly Android 12 with Magisk Root + SafetyNet Fix Module. No bugs, I'm happy
My only wish was that I had Over-The-Air updates. With most Custom ROMs, you unfortunately still have to download & flash the ZIP-file manually in TWRP Recovery.

Which firmware version is best for XZ2C ? Oreo vs Pie vs A10

Hi, a have recently purchased the XZ2 Compact single Sim model, it should arrive later this week. While waiting, I would appreciate everyone's opinion on which stock firmware version is best in terms of performance and battery life:
• Android 8 Oreo
• Android 9 Pie
• Android 10
Or if you guys haven't found a any difference, between firmware versions at all, then please comment below !
Thanks in advance.
David-538 said:
Hi, a have recently purchased the XZ2 Compact single Sim model, it should arrive later this week. While waiting, I would appreciate everyone's opinion on which stock firmware version is best in terms of performance and battery life:
• Android 8 Oreo
• Android 9 Pie
• Android 10
Or if you guys haven't found a any difference, between firmware versions at all, then please comment below !
Thanks in advance.
Click to expand...
Click to collapse
Latest 10 with eXistenZ patch - https://forum.xda-developers.com/t/rom-stock-xz2-xz2c-xz2p-existenz-quindim-v1-0-0-06-05-20.4095403/
levone1 said:
Latest 10 with eXistenZ patch - https://forum.xda-developers.com/t/rom-stock-xz2-xz2c-xz2p-existenz-quindim-v1-0-0-06-05-20.4095403/
Click to expand...
Click to collapse
Thanks for your suggestion, I just meant stock, without rooting, or installing any mods. Like has Sony made it worse with a9/a10 official update, or is there no major performance loss when upgrading ?
David-538 said:
Thanks for your suggestion, I just meant stock, without rooting, or installing any mods. Like has Sony made it worse with a9/a10 official update, or is there no major performance loss when upgrading ?
Click to expand...
Click to collapse
I have never used stock as-is, because of Sony bloatware, restrictions, etc, but I typically prefer stock UI over most custom ROM UIs, so if I can get eXistenZ, I will always go with it. @niaboc79 has been the master of Sony roms going back to at least 4.4. Between UI customization and under the hood type stuff, there's no better option I have found. With root and eXistenZ, the whole firmware is at your control...
If you're only interested in straight-stock vs. custom ROM, then custom ROM is by far better, but not sure why you would limit yourself to straight stock if that's the case, because you have to unlock bootloader and root to use custom ROM. The only advantage of straight stock is official support/security, which is arguably n/a in this case, since the last official update was 2 years ago...
levone1 said:
I have never used stock as-is, because of Sony bloatware, restrictions, etc, but I typically prefer stock UI over most custom ROM UIs, so if I can get eXistenZ, I will always go with it. @niaboc79 has been the master of Sony roms going back to at least 4.4. Between UI customization and under the hood type stuff, there's no better option I have found. With root and eXistenZ, the whole firmware is at your control...
If you're only interested in straight-stock vs. custom ROM, then custom ROM is by far better, but not sure why you would limit yourself to straight stock if that's the case, because you have to unlock bootloader and root to use custom ROM. The only advantage of straight stock is official support/security, which is arguably n/a in this case, since the last official update was 2 years ago...
Click to expand...
Click to collapse
Hi, ah yes, I also prefer rooting and custom roms, but there's chance the device won't be in unlocked, because I ordered it from Aliexpress, and it's the Japanese Docomo version. Anyway I also heard that some features and good photo quality, get lost when unlocking ? Is there a work around if the DRM keys get lost ?
David-538 said:
Hi, ah yes, I also prefer rooting and custom roms, but there's chance the device won't be in unlocked, because I ordered it from Aliexpress, and it's the Japanese Docomo version. Anyway I also heard that some features and good photo quality, get lost when unlocking ? Is there a work around if the DRM keys get lost ?
Click to expand...
Click to collapse
I don't think there's any such thing for this phone. Some have found a way to dump ta, but not to restore it, so not much use...
I upgraded to 10 to start with, then unlocked bl, etc. I think that's the best way. There's much discussion in the forums about camera function and drm in regards to 8 and 9, (ask @MartinX3 or @Pandemic), and seems like there may be different things you can do...
I'm not so hung up on the finer aspects of camera functionality. I think the difference is pretty subtle. Camera is good for me, (probably better on stock with unlocked bl than on custom/AOSP).
levone1 said:
I don't think there's any such thing for this phone. Some have found a way to dump ta, but not to restore it, so not much use...
I upgraded to 10 to start with, then unlocked bl, etc. I think that's the best way. There's much discussion in the forums about camera function and drm in regards to 8 and 9, (ask @MartinX3 or @Pandemic), and seems like there may be different things you can do...
I'm not so hung up on the finer aspects of camera functionality. I think the difference is pretty subtle. Camera is good for me, (probably better on stock with unlocked bl than on custom/AOSP).
Click to expand...
Click to collapse
Okay, thanks for the info. I'm new to Sony devices lol. Well I always wanted to try out a sony device. Anyway is 960fps video recording still there ? After unlocking your bootloader ?
levone1 said:
I have never used stock as-is, because of Sony bloatware, restrictions, etc, but I typically prefer stock UI over most custom ROM UIs, so if I can get eXistenZ, I will always go with it. @niaboc79 has been the master of Sony roms going back to at least 4.4. Between UI customization and under the hood type stuff, there's no better option I have found. With root and eXistenZ, the whole firmware is at your control...
If you're only interested in straight-stock vs. custom ROM, then custom ROM is by far better, but not sure why you would limit yourself to straight stock if that's the case, because you have to unlock bootloader and root to use custom ROM. The only advantage of straight stock is official support/security, which is arguably n/a in this case, since the last official update was 2 years ago...
Click to expand...
Click to collapse
Just flashed eXistenZ after seeing your opinion. But help me out... How do i know the flash is properly done if there is no kernel brand on device stats... Weird
Purplearyes said:
Just flashed eXistenZ after seeing your opinion. But help me out... How do i know the flash is properly done if there is no kernel brand on device stats... Weird
Click to expand...
Click to collapse
...
Purplearyes said:
Just flashed eXistenZ after seeing your opinion. But help me out... How do i know the flash is properly done if there is no kernel brand on device stats... Weird
Click to expand...
Click to collapse
Not sure what you mean by kernel brand, but you know if flashed properly because the ui and options will be drastically different with eXistenZ compared to stock. If everything's the same, then it's not flashed.
levone1 said:
Not sure what you mean by kernel brand, but you know if flashed properly because the ui and options will be drastically different with eXistenZ compared to stock. If everything's the same, then it's not flashed.
Click to expand...
Click to collapse
Yes i just realized the flash didn't went through. im experiencing many issues. Firstly twrp is not flashing anything always some error of storage access or something. then i try to flash on los recovery, and it works for lineage perfect flash, but for existenz stock zip it flashes everything no errors but doesn't change anything on the stock rom (.618 clean install) i can't seem to figure it out...
levone1 said:
Not sure what you mean by kernel brand, but you know if flashed properly because the ui and options will be drastically different with eXistenZ compared to stock. If everything's the same, then it's not flashedalso
levone1 said:
I have never used stock as-is, because of Sony bloatware, restrictions, etc, but I typically prefer stock UI over most custom ROM UIs, so if I can get eXistenZ, I will always go with it. @niaboc79 has been the master of Sony roms going back to at least 4.4. Between UI customization and under the hood type stuff, there's no better option I have found. With root and eXistenZ, the whole firmware is at your control...
If you're only interested in straight-stock vs. custom ROM, then custom ROM is by far better, but not sure why you would limit yourself to straight stock if that's the case, because you have to unlock bootloader and root to use custom ROM. The only advantage of straight stock is official support/security, which is arguably n/a in this case, since the last official update was 2 years ago...
Click to expand...
Click to collapse
I did some research and from what is logged on existenz page it includes nothing more than UI customizations? Am i missing something. How can this stock patch be the best for you if it only does UI changes..?
Click to expand...
Click to collapse
Purplearyes said:
Yes i just realized the flash didn't went through. im experiencing many issues. Firstly twrp is not flashing anything always some error of storage access or something. then i try to flash on los recovery, and it works for lineage perfect flash, but for existenz stock zip it flashes everything no errors but doesn't change anything on the stock rom (.618 clean install) i can't seem to figure it out..
Click to expand...
Click to collapse
- Which version of TWRP? Make sure you are using the right one. Should be this one - https://forum.xda-developers.com/xperia-xz2/development/recovery-twrp-3-3-1-0-t4074305
- Did you follow this, (from eXistenZ thread):
Flash latest android 10 firmware with Newflasher and boot it once.
Reboot in bootloader mode with adb (adb reboot boolloader) and boot TWRP (see TWRP thread for instructions).
Inside TWRP, go in settings and uncheck unmount system before flashing.
Mount system partition and Flash eXistenZ Quidim cleaner.
Boot once, it shouldn't reach pin code screen, reboot in bootloader mode with adb.
Boot TWRP, mount system partition and flash the rom.
Flash Magisk.
(e.g. - make sure to boot once before flashing, use adb for bootloader mode, check system in TWRP, etc...)
levone1 said:
- Which version of TWRP? Make sure you are using the right one. Should be this one - https://forum.xda-developers.com/xperia-xz2/development/recovery-twrp-3-3-1-0-t4074305
- Did you follow this, (from eXistenZ thread):
Flash latest android 10 firmware with Newflasher and boot it once.
Reboot in bootloader mode with adb (adb reboot boolloader) and boot TWRP (see TWRP thread for instructions).
Inside TWRP, go in settings and uncheck unmount system before flashing.
Mount system partition and Flash eXistenZ Quidim cleaner.
Boot once, it shouldn't reach pin code screen, reboot in bootloader mode with adb.
Boot TWRP, mount system partition and flash the rom.
Flash Magisk.
(e.g. - make sure to boot once before flashing, use adb for bootloader mode, check system in TWRP, etc...)
Click to expand...
Click to collapse
I used 3.4.00 twrp, maybe should try 3.3.10. Also i flashed .618 which is 10 though not the latest but it should be the same thing.
The rom seems to flash, because i get the existenz custom settings on phone settings, idk if that is all it does.

Categories

Resources