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

[ROM][OFFICIAL] LineageOS 18.1 for Galaxy S10e/S10/S10+/S10 5G Exynos

Search This thread

Linux4

Senior Member
Any way around it? I like this rom but if updater is gonna get stuck because I'm using magisk I had to change back kraken rom 🥲 not that I prefer aoskp

You could join the telegram group to find some early access build of some magisk fork that has addon.d working with FBE (topjohnwu is not even willing to merge an already existing fix as seen here: https://github.com/topjohnwu/Magisk/pull/3037)
Other than that you could install magisk by just patching boot.img in the app instead of sideloading it in recovery (for now) which should make it not install addon.d.
 

fil3s

Senior Member
Aug 30, 2014
1,329
194
42
bendigo
www.mobiledevices.cc
You could join the telegram group to find some early access build of some magisk fork that has addon.d working with FBE (topjohnwu is not even willing to merge an already existing fix as seen here: https://github.com/topjohnwu/Magisk/pull/3037)
Other than that you could install magisk by just patching boot.img in the app instead of sideloading it in recovery (for now) which should make it not install addon.d.

Awesome 👍 I will try Lygisk later today.

Cheers
 

kwtf

Member
Dec 21, 2010
47
4
Updated a few days ago, today the info view (where you can set permissions, see useage etc.) was working intermittently and after a reboot i am stuck at the animated bootlogo.
- Going back to older builds only yields the "Wipe data if reboot does not work"
- Reflashing just the rom or rom+magisk yields being stuck at the logo too.

Any of you know a good, in depth guide how to debug the boot sequence/fix errors?
Got /proc/last_kmsg file, see appended.

Edit: Screw it, reflashed everything
 
Last edited:

raggatip

Member
Dec 13, 2007
15
3
There are a couple of ways to make complete image backups of the phone. The simplest is to use adb.

On my phone the following files are the actual partitions:

a) /dev/block/sda25 - system
b) /dev/block/sda31 - userdata

First check your phone to see where your partitions are mapped. i.e.:

Navigate to: /dev/block/platform

Open each folder in the platform folder till you find a folder named "by-name" (There may be only one folder)

On my phone it's "13d60000.ufs". Thus I issue this command from a terminal or adb shell:

ls -al /dev/block/platform/13d60000.ufs/by-name

This will give you list of all the partitions and the files they are mapped to. (make sure you use those mappings not mine)

Thus, to backup my phone:
a) Boot into recovery
b) enable adb
c) I run these commands:

adb pull -z any /dev/block/sda25 system.img
adb pull -z any /dev/block/sda31 userdata.img

This creates two image files on my computer (system.img & userdata.img)

To restore:
a) Boot into recovery
b) enable adb
c) I run these commands:

adb push -z any system.img /dev/block/sda25
adb push -z any userdata.img /dev/block/sda31

Note: The userdata image backup contains the data on your sdcard (internal storage). So restoring that will delete (overwrite) all your data too. (copy that separately)

p.s. Make sure you check the partition mapping on your phone or it could be disastrous.
p.p.s You can obviously backup any of the other partitions too (e.g. recovery, boot, etc.).
Thanks for this tip.

Could you explain what -z and any do please?

My userdata.img had reached over 50GB before I pulled the plug due to limited hdd space. Is there anyway this command can select only written data within the partition or is the only option to copy the entire userdata partition?
 
Jun 9, 2012
43
17
-z: enable compression with a specified algorithm (any, none, brotli)

i.e. It compresses the data before sending it to reduce network backup time. Does not compress the final userdata image stored on the disk.

There is no way to separate out the data because the partition is encrypted.

The userdata.img will be big because it makes a complete clone of the userdata partition including internal storage.

What I do to reduce backup size is to set the backup target folder flag (in Windows) to compress. This makes a massive difference to the file size and even the backup time. In my case the uncompressed userdata.img is 110GB, but the space used on the hard drive is 2.1 GB. Total backup time is around 12 mins.

You can also use "dd" with "gzip" to make the backup and compress the data too.
 
Last edited:

raggatip

Member
Dec 13, 2007
15
3
-z: enable compression with a specified algorithm (any, none, brotli)

i.e. It compresses the data before sending it to reduce network backup time. Does not compress the final userdata image stored on the disk.

There is no way to separate out the data because the partition is encrypted.

The userdata.img will be big because it makes a complete clone of the userdata partition including internal storage.

What I do to reduce backup size is to set the backup target folder flag (in Windows) to compress. This makes a massive difference to the file size and even the backup time. In my case the uncompressed userdata.img is 110GB, but the space used on the hard drive is 2.1 GB. Total backup time is around 12 mins.

You can also use "dd" with "gzip" to make the backup and compress the data too.
So, I tried using dd using these commands (same partition no.s as you)

adb shell dd if=/dev/block/sda25 | gzip -c > /path/to/file/system.img.gz

-Outputs a 5.6GiB partition to a compressed file 680MiB in size @ 26M/s (Just under 4mins), adb pull was @ 70M/s uncompressed.

adb shell dd if=/dev/block/sda31 | gzip -c > /path/to/file/userdata.img.gz

-Outputs a ~120GiB partition to a compressed file 3.4GiB in size @ 34M/s (Just over 55mins)

To restore I think it's the following though I haven't tested this yet:

adb shell gzip -dc /path/to/file/system.img.gz | dd of=/dev/block/sda25

adb shell gzip -dc /path/to/file/userdata.img.gz | dd of=/dev/block/sda31
 
Last edited:
  • Like
Reactions: starbright_
Jun 9, 2012
43
17
You will see a massive improvement in backup speed (up to 10 times) if you increase the block size of the dd command. e.g.

adb shell dd if=/dev/block/sda25 /bs=65536 | gzip -c > /path/to/file/system.img.gz
 

raggatip

Member
Dec 13, 2007
15
3
You will see a massive improvement in backup speed (up to 10 times) if you increase the block size of the dd command. e.g.

adb shell dd if=/dev/block/sda25 /bs=65536 | gzip -c > /path/to/file/system.img.gz
Yes I increased it albeit to 1000 with only a minute time saving on the larger partition. I read somewhere that there's an increased chance of introducing errors with larger block sizes, though it is tempting. Are my restore commands correct?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hi guys,

    i'm preparing to install this official version and i'm wondering which vbmeta file should i use, if any? There is no mention of a vbmeta file in the instructions but i remember needing one when installing the unofficial version of this rom.

    I'm currently running the unofficial version of this exact same rom on S10 so i believe i need to do a complete clean install to get this official rom into use, meaning installing the latest custom recovery including a vbmeta file, doing a complete factory reset and data wipe and then installing the official rom. Please correct me if i have misunderstood something.
    It's because you do not need vbmeta
    2
    Im new to here (but not so new with installing roms for androids) and readed many pages about this topic, interessing! And appreciated the work!

    Well, had S5 for long time with lineageos and its such antic thing (many thanks to Lineageos, that why using for long time). So time for a new phone and bought an second hand S10 exynos. Shocked again about such Samsung and Google bloatware, immediatly went into this topic and Lineageos wiki to install this rom into.

    One thing im stucked with is, succesfully flashed with Heimdall (have to unlock bootloader within download mode, otherwise, not flashable) with lineageos recovery image file. But i cant get into Lineageos Recovery mode after its flashed. So first while at download mode, pressing volume down and power button, when screen goes black, immediatly volume up + bixty + power button while cable is connected to my laptop, but it will pass every time to Samsung stock rom. Looked whole internet and youtubes videos and do it same. When going to recovery mode without flashing (from samsung itself), it works. Probaly new update (wich previous owner installed?) of samsung blocks, to get into Lineageos recovery mode? I mean, it does looks something is blocking me from to get into Lineage recovery mode from download mode.

    I am following this guide: https://wiki.lineageos.org/devices/beyond1lte/install

    Like this video, i did extactly (only the buttons part, to get into Lineage recovery mode) but it passing and going to Starting samsung stock rom:


    Cheers


    Unbelieveable, its working now. Found an solution by myself. At download mode, after flashing lineage recovery with heimdall, press power button + volume DOWN + bixby and with this way phone will be turned off. And then press power button + volume UP + Bixby and got into Lineage recovery. Pfff working whole day about this and no one came with this solution on internet.. Anyways, appreciated can help anybody with my solution if have same problem.

    Keep up the good work guys! Cheers Flux
    1
    Hi @Linux4 :)

    I want to move to this rom but everytime I flash it ;

    1. Flash lineage recovery
    2. Format data
    3. Flash rom.zip , gapps.zip and lygisk.zip

    I have a lot of trouble with my Microsoft account. Like I'll go to sign into outlook etc but the screen just goes blank. Also 2FA doesn't work for me.

    I'm currently using evolution x that also uses lineage recovery

    However, I accidentally installed lygisk on it and the phone obviously wouldn't work properly, until I flashed magisk after a clean wipe, I Couldn't sign into Microsoft, XDA etc

    It now works ok after flashing magisk

    Am I missing something?

    Best regards

    This has nothing to do with the ROM at all.
    Note this thread is not a support thread for Lygisk ... however the issues you're having are most likely caused by using Lygisk stable and having Zygisk enabled.
    1
    Hello everyone,

    First, thank you @Linux4 for bringing this amazing ROM to the S10 lineup :)

    I own a S10e and as far as I understand, it comes in two versions:
    • SM-G970U with a Snapdragon that is not supported by LineageOS
    • SM-G970F with an Exynos that is supported as per the list of devices page

    Unfortunately, I have a SM-G970F/DS version of that phone. There isn't much information about this one on internet apart from the fact that DS stands for Dual SIM.

    So here comes my question: are SM-G970F and SM-G970F/DS totally different versions or the DS is just an insignificant variation that will run LineageOS perfectly fine?

    I remember that years ago when I was flashing CyanogenMod to my Galaxy SII, I had to be extra careful with the model I had.

    Thank you,
    Best
    1
    Hi,

    In fact except for S10 5G and Note10+ 5G all Exynos 9820 devices don't even have a single SIM variant anyway (and as you said DS means Dual SIM - that's all about it already).
    So yes it will work just fine.
    Thank you very much for the quick reply!
    I'll definitely give it a go then ;)
  • 33
    1607247455067.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Instructions:
    Only the provided lineage recovery will be supported, using TWRP might result in a possible data loss!
    Note: You may use Odin instead of Heimdall, for this you will need to rename the recovery image to recovery.img and pack it into a tar archive.

    Downloads:

    Reporting Bugs
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
    
    Did you--
    wipe:
    restore with titanium backup:
    reboot after having the issue:
    
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
    
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:


    Support
    Telegram group

    Contributors
    Linux4
    Source Code: https://github.com/LineageOS
    Kernel source: https://github.com/LineageOS/android_kernel_samsung_exynos9820
    6
    my safetynet fails, is there any way to make it pass? s10 exynos

    First you need to install magisk and then:


    1) Enable settings MagiskHide
    2) install MagiskHide Props Config(Magisk module)
    3) Open the terminal
    4) su
    5) Type "props"
    6) Edit 1 fingerprint of the device
    7) Choose a certified fingerprint
    8) 21 Oneplus
    9) Find an Android 11 device (OnePlus 8T global 44)
    10) Follow the instructions
    11) Restart
    12) Clear Google Play Store Data
    13) Check SafetyNet (should pass)
    14) Open MagiskHide (Magisk -> Tap on the Shield symbol)
    15) Check all apps that do not require root privileges
    5
    Any way around it? I like this rom but if updater is gonna get stuck because I'm using magisk I had to change back kraken rom 🥲 not that I prefer aoskp

    You could join the telegram group to find some early access build of some magisk fork that has addon.d working with FBE (topjohnwu is not even willing to merge an already existing fix as seen here: https://github.com/topjohnwu/Magisk/pull/3037)
    Other than that you could install magisk by just patching boot.img in the app instead of sideloading it in recovery (for now) which should make it not install addon.d.
    5
    First of all, I appreciate your work a lot. I've been waiting quite a long time for an official lineageos build for the s10, and you nailed it, you're even fixing the few bugs remained.
    Anyway, why are you saying TWRP would brick a device? I followed your suggestions of installing lineageos recovery and it works great, but I had TWRP in my previous device for about 2 years and I never had a problem

    Hi Linux4,
    Just a bit curious about you thoughts on TWRP. Indeed, it has been around for a while, has many features and is very popular, and your statement looked quite strong for me, but probably for good reasons. Is it simply not adapted to your ROM, or is it not adapted to the s10 phones, or has it gone bad generally? I am still using TWRP for all the added features that the Lineage recovery doesn't have, but will switch based on your advice.
    TWRP is way too bloated for a recovery IMO - it's more likely to break something than help you nowadays
    Especially that it's heavily touching /data isn't good on devices with FBE, like on this ROM, TWRP randomly messes up FBE policy (especially on OTAs it seems) rendering the device unbootable without wiping (which is why OP says using TWRP = data loss) which is what I referred to with (soft)"brick"
    Not to talk about that crap not even properly formatting data on standard "factory reset" which makes it not boot on this ROM.
    Also applies to other devices using FBE encryption including Tab S6 Lite and S20 series.
    Older devices that use legacy FDE instead don't seem to have similar issues afaik.

    PS: TWRP looses most of it's "features" with encrypted userdata.
    4
    I do the same with every OTA: let the system install it, seeing that it does not finish in 2-3 or so minutes, reboot (but not to recovery, just a simple reboot via holding power&vol- for >7s) - and there's the viola! A hack for sure, but it works.

    Being stuck is caused by magisk's broken addon.d just in case you wonder why it happens