• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][10] LineageOS 17.1 [OFFICIAL]

Search This thread

faroit

Member
May 28, 2018
22
7
Do the instructions for adding the original Sony camera app also apply to the xz2 compact? Also is there any Problem adding this magisk patch later after installation?
 

Minhdh9

New member
Mar 2, 2021
1
0
I using latest update from official site. Everything work fine except micophone is not work during video/voice call with Skype, Zalo.
Permissions grant already. Fb messager, viber still work well all functions.
Go back to stock rom then problem resolved.
Any one have any idea to fix?
 

andreux481

Member
Sep 30, 2014
9
0
Good morning.
I flashed the rom and everything works fine.
But even though I got root with magisk I can't uninstall system apps as the system folder doesn't have RW permissions.
I can't even install TWRP because at every boot it always enters the lineage recovery.
Can someone help me?
I'm sorry for my english
 

Klaus N.

Senior Member
Oct 14, 2012
1,290
689
Nuremberg
Good morning.
I flashed the rom and everything works fine.
But even though I got root with magisk I can't uninstall system apps as the system folder doesn't have RW permissions.
I can't even install TWRP because at every boot it always enters the lineage recovery.
Can someone help me?
I'm sorry for my english

It seems you've installed Magisk with dm-verity set to on. Have you installed a recovery (TWRP)? If yes, reboot to recovery and open the terminal there. Then enter the following command:
echo KEEPVERITY=false>>/data/.magisk
and press <enter>.
Right after that, flash the Magisk zip again and reboot.
After rebooting, you should be able now to modify /system.

Note: All credits must go to @Didgeridoohan for his excellent Magisk and MagiskHide Installation and Troubleshooting guide (y)
 
  • Like
Reactions: Didgeridoohan

andreux481

Member
Sep 30, 2014
9
0
It seems you've installed Magisk with dm-verity set to on. Have you installed a recovery (TWRP)? If yes, reboot to recovery and open the terminal there. Then enter the following command:
echo KEEPVERITY=false>>/data/.magisk
and press <enter>.
Right after that, flash the Magisk zip again and reboot.
After rebooting, you should be able now to modify /system.

Note: All credits must go to @Didgeridoohan for his excellent Magisk and MagiskHide Installation and Troubleshooting guide (y)




thanks klaus.
unfortunately it didn't work as I still can't uninstall system applications.
 

Attachments

  • 1615388173748.png
    1615388173748.png
    312 bytes · Views: 9

Klaus N.

Senior Member
Oct 14, 2012
1,290
689
Nuremberg
thanks klaus.
unfortunately it didn't work as I still can't uninstall system applications.
thanks klaus.
unfortunately it didn't work as I still can't uninstall system applications.

Ok, so please do the following steps:

1. Download the attached vbmeta.img (it's the one of the latest XZ2 stock fw) and place it somewhere on your pc.
2. Copy the Magisk patched kernel (magisk_patched.img) from your device to the same place on your pc.
3. Shut down your device and connect it in fastboot mode with your pc
4. Open a command line from the place you've saved the two files from 1. and 2.
5. Enter the following commands (file by file):

fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
fastboot reboot

(the name of your "magisk_patched.img" could differ, so please use the exact name of yours [mandatory]!)
 

Attachments

  • vbmeta.img
    4 KB · Views: 4

patomovil

Member
Dec 29, 2017
10
1
Moto X4
Google Pixel 2
Can someone explain exactly what I will loose if I unlock the bootloader and install LineageOS? I see these posts, but I would like more specific details, and if possible, example photos and videos comparing with vs without DRM keys.

What I've already read:
I have read the Sony bootloaderunlock page that says "For example, noise reduction algorithms might be removed, and performance when taking photos in low-light conditions might be affected." I see a blog post by Andres Gomez saying "Without these DRM keys, several audio and video proprietary functionality provided by Sony won’t be available including some camera post-processing features, color gamut profiles, white balance, noise reduction, X-Reality Video Enhancement, DSEE HX, ClearAudio+, and Widevine L1 support for HD Netflix."

I don't care about Netflix (or anyone else's private content), and I don't know what some of the other things mean. I care about taking high-quality photos and videos in low-light conditions, and recording nice quality audio. Listening to audio is also important, but not quite as important as recording.
 

BENETNATH

Senior Member
Jan 7, 2011
1,572
861
Can someone explain exactly what I will loose if I unlock the bootloader and install LineageOS? I see these posts, but I would like more specific details, and if possible, example photos and videos comparing with vs without DRM keys.

What I've already read:
I have read the Sony bootloaderunlock page that says "For example, noise reduction algorithms might be removed, and performance when taking photos in low-light conditions might be affected." I see a blog post by Andres Gomez saying "Without these DRM keys, several audio and video proprietary functionality provided by Sony won’t be available including some camera post-processing features, color gamut profiles, white balance, noise reduction, X-Reality Video Enhancement, DSEE HX, ClearAudio+, and Widevine L1 support for HD Netflix."

I don't care about Netflix (or anyone else's private content), and I don't know what some of the other things mean. I care about taking high-quality photos and videos in low-light conditions, and recording nice quality audio. Listening to audio is also important, but not quite as important as recording.

Interested as well.
I'm still running a custom Android 9 rom, don't remember which one.
Does it worth the upgrade to Lineage (except security fixes of course) ?
 

wasMitNetzen

New member
Feb 24, 2016
2
0
I am running LineageOS 17.1 on my XZ2c Dual after upgrading from Stock 52.1.A.3.49, and no sensors (brightness, accelerometer, gyroscope) work. I googled around a bit and it seems like I accidentally erased the vendor partition and the fix is to go back to stock and then restore a LineageOS backup above it. Can someone confirm that this works on an XZ2c or if there is an easier way?
 

joska59

Senior Member
Oct 20, 2007
61
7
Xperia XZ2
Hello
I'd installed LOS 17.1 as described here (https://wiki.lineageos.org/devices/akari/install).

After I've finished, can't login to playstore. In every case, there's swiping in a big white border from left side, containes 5 lines with:

Einstellungen
Play Ptotect
Hilfe&Feedback
Leitfaden für Eltern
Impressum

Login for playstore with e-mail and password had filled in correct.

Can't find any hint, to solve this.

Joska
 

joska59

Senior Member
Oct 20, 2007
61
7
Xperia XZ2
Hello
Now I have spent various days to install a recory system and ROM on my Sony XZ2 (single SIM).

On the first try I managed to install the TWRP 3.4 from MartinX3 first temporarily, then definitely. From there, although not intended, I installed a LOS 17.1 directly via install, which of course did not boot. After a factory reset incl. data reset LOS booted then through.
After installing the GAPPS I have then set up an account, but then had no access to the Playstore and activities on the web / browser were always only possible in level 1, asi first search term was found and listed, a click on a link then usually led to ERROR_Name not resolved....

It seems as if the account data is not saved.

After that I ran everything again as described on the Lineageos intallation page, starting from the recovery I already had on it from the Lineageos installation. (the TWRP had been overwritten with the LOS installation).
I tried this with LOS 17.1 and also with LOS 18 from XDA, always the same result.

Searching in various forums I can not find a for me understandable Anpack.

Now I tried again to install the TWRP (SODP), starting from LOS 18. I can flash via fastboot, but the reboot screen remains black and starts via a new reboot into LOS 18.

In between, the drivers for fastboot keep getting lost in W10's device manager and have to be installed manually via the device list.

Now my questions:
Is there an explanation for the driver problem?
Can I install a TWRP, which also survives the installation of LOS or SODP ROMs? Do I need currently (26.03.2021) for the untersciedlichen ROMs also different Recoverys?
Should I start again via a stock ROM at this point?

I'm pretty clueless, even if I'm already a few steps further.


Translated with www.DeepL.com/Translator (free version)
 

jontis

Member
Jul 1, 2015
7
0
I'm using LineageOS and have added the stock camera. To make stock camera work, I've added SELinucModeChanger from fdroid.
I also have google play services.
My issue now is that google play protect is frequently nagging about selinuxmodechanger being a harmful app and I can't make it stop.
I have disabled anything I can in play protect and turned it "off" but it's still nagging.
I don't want to uninstall either selinuxmodechanger, or google play services.

Advice will be appreciated :)

=============================

So I figured this one out.
Instead of using selinuxmodechanger, this can be done through a Magisk module.
It is not in the current magisk modeul repo, but has to be downloaded as a zip from https://github.com/evdenis/selinux_permissive
then install in Magisk manager from downloaded zip.
Lineageos trust checker (settings -> privacy) will complain until you tell it to ignore.
Stock camera now works.
 
Last edited:

joska59

Senior Member
Oct 20, 2007
61
7
Xperia XZ2
Hello

Some problems, I could solve. The login-problem has dealed with PiHole. After using a hotspot, login an updates run through without a problem.
Afer that, I tried to install TWRP from first post, but that faild with Error getting bootctrl module. Maybe I did that wrong. Loaded by fastbbot boot twrp.img and after that, flashed it by /TWRP/advanced/TWRP.IMG.

Now, it run into a freezed TWRP 3.4.0.0. splash.

Any idea, what i should do now?

Joska
 

joska59

Senior Member
Oct 20, 2007
61
7
Xperia XZ2
Hello
In the meantime, I got LOS 17.1 on the XZ2 again after what felt like 30 attempts. It works with the recovery of LOS. The problems described above have disappeared after I did the setup once via a G4 HOTSPOT. Using various browsers as well as the Play Store work fine.

What is not really clear to me so far is if the installation of LOS was only done in one slot, as well as the installation of the recovery?

Does it make sense to do this in the other slot? Is there an OTA for LOS 17.1? If so, is this then automatically incl. recovery in another SLOT?

Another question: Is it now quiet around LOS 17.1, are still patches security fixes incorporated? Even if it is the wrong thread, switched the development to LOS 18.1?

Thanks for all the effort to the developers.

Joska

Translated with www.DeepL.com/Translator (free version)
 

crazyox

Member
Apr 1, 2016
18
0
sorry, to come back to stcok rom and recovery i just have to flash it with sony flash tool?
also to make the startup message disapper i have to lock the bootloader?
 

EzawaTami

New member
Nov 23, 2020
2
0
Hello guys
I am having random reboots after mounting an Samsung 256gb SD card, which works fine in my laptop. Any ideas? The log file is below.
Thx
 

Attachments

  • console-ramoops-0.txt
    227.5 KB · Views: 3

trinhloivn

Member
Apr 18, 2021
20
2
http%3A%2F%2Fi.imgur.com%2F2okPze5.png
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
which is designed to increase performance and reliability over stock Android for your device.

All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/

Important Information
1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
2. This ROM will never work with any versions of Google Camera (GCam)!
3. You need to flash Stock Android 10 before flashing this ROM.
4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!


Downloads Links
LineageOS 17.1:
Lineage Official Link
Unofficial-build:
Link

Google Applications (optional):
OpenGapps:
http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash

Make sure you are upgrade to Official Android 10.0 from Sony
Unlock bootloader is necessary.
To disable AVB 2.0 using fastboot:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
For vbmeta.img, you can download it anywhere you found.
More steps see wiki

Never flash oem from SODP!!
If you flashed oem and meet any issues, I could only say you are a hanhan.

Root access:
Flash Magisk in recovery.

Twrp:
You could download it here: Link
Code:
fastboot boot twrp.img

Sony Camera:
1. Flash Magisk.
2. Install selinux_permissive in Magisk.
3. Install SemcCamera in Lineage rec.
All files here

Issues and reports

Report issues only if you are using the ROM kernel
If an additional mod is installed, make sure it's unrelated, and mention it
Make sure the issue wasn't discussed earlier in the threads
Share a log of the error with CatLog for example

Also thanks to:
Olivier
Luk1337
The LineageOS Team
The CyanogenMod Team
Everyone involved in working and testing

XDA:DevDB Information
Lineage 17.1 for Xperia XZ2, ROM for the Xperia XZ2

Contributors
Sjll, Olivier
Source Code: https://github.com/LineageOS

ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Official Android 10.0 firmware
Based On: LineageOS

Version Information
Status:
Stable

Created 2020-04-27
Last Updated 2020-10-14
sir,please make Sony Camera Magisk Module
currently it doesn't work on aosp10,11 always exits
 

LineArc

Senior Member
Apr 26, 2013
320
33
Good morning.
I flashed the rom and everything works fine.
But even though I got root with magisk I can't uninstall system apps as the system folder doesn't have RW permissions.
I can't even install TWRP because at every boot it always enters the lineage recovery.
Can someone help me?
I'm sorry for my english
can you provide the guide how you flashed the rom. currently i am at Sodp 11 beta. what am I supposed to be doing if I am comin from that rom.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png
    Code:
    #include <std_disclaimer.h>
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */
    About LineageOS
    LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
    which is designed to increase performance and reliability over stock Android for your device.

    All the source code for LineageOS is available in the LineageOS GitHub repo.
    And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website : http://lineageos.org
    About LineageOS Legal : http://lineageos.org/legal/

    Important Information
    1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
    2. This ROM will never work with any versions of Google Camera (GCam)!
    3. You need to flash Stock Android 10 before flashing this ROM.
    4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!


    Downloads Links
    LineageOS 17.1:
    Lineage Official Link
    Unofficial-build:
    Link

    Google Applications (optional):
    OpenGapps:
    http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating

    How to flash
    Make sure you are upgrade to Official Android 10.0 from Sony
    Unlock bootloader is necessary.
    To disable AVB 2.0 using fastboot:
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    For vbmeta.img, you can download it anywhere you found.
    More steps see wiki

    Never flash oem from SODP!!
    If you flashed oem and meet any issues, I could only say you are a hanhan.

    Root access:
    Flash Magisk in recovery.

    Twrp:
    You could download it here: Link
    Code:
    fastboot boot twrp.img

    Sony Camera:
    1. Flash Magisk.
    2. Install selinux_permissive in Magisk.
    3. Install SemcCamera in Lineage rec.
    All files here

    Issues and reports

    Report issues only if you are using the ROM kernel
    If an additional mod is installed, make sure it's unrelated, and mention it
    Make sure the issue wasn't discussed earlier in the threads
    Share a log of the error with CatLog for example

    Also thanks to:
    Olivier
    Luk1337
    The LineageOS Team
    The CyanogenMod Team
    Everyone involved in working and testing

    XDA:DevDB Information
    Lineage 17.1 for Xperia XZ2, ROM for the Xperia XZ2

    Contributors
    Sjll, Olivier
    Source Code: https://github.com/LineageOS

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Official Android 10.0 firmware
    Based On: LineageOS

    Version Information
    Status: Stable

    Created 2020-04-27
    Last Updated 2020-10-14
    6
    FEATURES AND ISSUES
    Code:
    - Boot: Ok
    - Bluetooth: Ok
    - WiFi: Ok
    - WiFi Hotspot: Ok
    - Wireless display: Ok
    - RIL - Phone - Data: Ok
    - VoLTE: Ok
    - GPS: Ok
    - Camera: Ok
    - Camcorder: Ok
    - Lights: Ok
    - MicroSD: Ok
    - Accelerometer: Ok
    - Compass: Ok
    - Gyroscope: Ok
    - QTI sensors: Ok
    - Touchscreen: Ok
    - FM Radio: NA
    - Fingerprint: Ok
    - Vibrator: Ok
    - Microphone: Ok
    - Audio & music: Ok
    - Bluetooth audio: Ok
    - NFC: Ok
    - Kernel: Ok
    - Graphics: Ok
    - 3D Rendering: Ok
    - Clock: Ok
    - DRM: Widewine L3
    - Offline Charging: Ok
    - USB: Ok
    - USB Tethering:  Ok
    - USB OTG: Ok
    - Encryption: Ok
    - SEPolicies: Enforce
    5
    The first official build is up, please check the OP.
    NOTE: Since the official builds are signed, you shouldn't upgrade from my unofficial builds -- you can either migrate to an official build using a script or do a clean install.
    4
    So the stock camera should work?
    The stock camera (SemcCamera) works now, I've been testing it. Will be released soon I guess ;)
    4
    For official release of LineageOS, we need to wait for the first build, about next Wendesday.