Development [ROM][OFFICIAL] LineageOS 20 (Android 13) for the Motorola Edge 30 (dubai)

Search This thread

ballin_

New member
May 19, 2022
3
3
Hey @lmeu,

I'm assuming that you have attempted to do the necessary research yourself. With this in mind:

1) LineageOS publishes a charter that specifies in detail the requirements for an official release. It clearly states: "All devices MUST NOT alter SafetyNet validation responses." This means that further steps are necessary if your device does not pass this validation on its own, which will most likely be the case. At the time of posting, this charter was last updated on Jul 12, 2022 and can be found here.

2) While third party tutorials can be useful, it's important to remember to always seek out official instructions from the tool provider. These instructions are often the most up-to-date and accurate. In this particular case, you can find the official instructions here (scroll down to the "Useful Links" section).

3) You should begin by updating the stock firmware to the latest version. The proprietary firmware blobs are located in the vendor partition. It is up to the device maintainers to update these in future releases. Upgrade instructions between LineageOS versions should point to the required steps for ensuring compatibility.

4 & 5) I don't know. The likelihood of a TWRP version for this device becoming available in the near future is low. It may be best to not hold out hope and find different ways to achieve this functionality.

6) As previously stated, the charter specifies the requirements. Luckily it states "All devices MUST be configured for SELinux Enforcing."
 
Last edited:

ThE_MarD

Recognized Developer
Dec 10, 2014
3,400
3,872
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @lmeu , so LineageOS official does not allow tampering with SafetyNet so on official builds it will fail and you would need to use Magisk and SafetyNet mods. I haven't done that stuff but on our Telegram community there has been a few people mentioning how to do it so it is possible.

As for why SafetyNet used to work fine? Back in the day it was just software attestation for checking it, which could easily pass with the device's stock ROM build fingerprint alone, but these days on newer chipsets there is hardware attestation too which requires more workarounds and spoofing and LOS team has decided to not risk pissing off Google so they don't allow haxxs on official builds.

Another thing of note is unfortunately on bootloader unlock the DRM keys get wiped, so Widevine L1 won't work. Maybe in the future a way to backup the DRM keys while the bootloader is locked can be found but so far no luck...

For firmware updates, you can always download them on lolinet and then flash the device firmware only via TinyFastbootScript but so far the only issue in the past was an audio one we were able to fix in the kernel so any device firmware version will currently work for us.

TWRP has been a pain for devices with vendor_boot so tbh before I gave up lol but I see some workarounds so I will probably try it again.

Selinux is definitely enforcing as it is required for official builds on LOS. (y)

File-based encryption is also set up because keeping data safe is important too
 
  • Like
Reactions: crubbish

Daedroza

Inactive Recognized Developer
Jun 16, 2014
570
1,051
github.com
I think about buying an Edge 30 smartphone and use it with LineageOS (same as my current phone). Maybe someone can comment on a few remaining concers/questions I have:

SafetyNet: I need to be sure that the device runs my banking app (ING DiBA) and Netflix/Disney+. Otherwise, the smartphone will be useless for me. I don't need/don't want root access. I only need these apps.
With my current phone (osprey with official LineageOS 17.1), I never had to mess around with any additional software like Magisk. Banking and streaming apps worked out of the box and the yasnac app shows on my old phone that it passes SafetyNet.

1) Why do I need Magisk and the patches on this phone to pass SafetyNet (and why does it work with no additional software on my old phone)?

2) When do I install Magisk and how? I read so many different tutorials that I'm completely confused. Some say that I flash it right after the LinageOS image (before the first boot), some want me to install the apk after the installation in the running LinageOS, some say I need root, some say the opposite. Maybe someone can bring some light into the darkness.


Firmware updates: For my old osprey, I had to flash Android the stock image to update the firmware (baseband, etc.) to fix security issues, and then I could install LineageOS. From Xioami, I heared that there's a tool which extracts the relevant files from the stock rom and creates a file that you flash to update the firmware for the latest security fixes the vendor publishes every month.

3) How do I update the firmware on dubai?


TWRP: I like this recovery because it allows me to backup and restore everything without root access. Unfortunately, LinageOS recovery doesn't have this funtionality (at least the last time I tried it).

4) Does anyone know if someone works on TWRP for dubai?

5) Is there another way to backup the whole device without root in a similar way? I don't need a daily or automated backup. I just want to create one from time to time manually to be able to reset my device to this state if needed.


SELinux:

6) Is it enabled?


Thanks for taking the time to answer my questions. If I can overcome my concerns and buy the Edge 30, I'll share my experiences of course, report bugs, etc.

And thanks to the maintainer for making LineageOS work on this phone.

1. Modern devices have hardware attested verification for boot loader status which causes software verification to fail. On older devices this could be faked because we'd no hardware attestation. Regarding your concern for bank app, some bank apps detect custom OS (without root requirement). My recommendation? Use browser to operate your bank account. Regarding Netflix, most modern devices don't allow to play HD+ content. I don't use Netflix so I don't know correct answer to your question but you can play 480p for sure.

2. First flash Lineage recovery and boot into it. Side load your lineage-20 firmware. Reboot into recovery again. Side load Magisk. Reboot to system.

3. Well, official firmware has Updater which downloads and installs updates to different slots. You need to re-flash Magisk again as we don't have TWRP because of modern vendor_boot architecture.

4. No, it doesn't. TWRP project is developing to support vendor_boot partition.

5. No, we don't. Your best best is some third-party application or Google Restore.

6. Yes, all official Lineage builds have SELinux enabled and enforcing.

Regarding SafetyNet, I'm maintaing a version of Lineage that has 200+ optimizations and SafetyNet fixes. However, SafetyNet work is still WIP as I need to reverse engineer and figure out what that app is calling. You can find it here, https://forum.xda-developers.com/t/rom-13-0-optimized-lineageos-20-for-motorola-edge-30.4545951/
 

ballin_

New member
May 19, 2022
3
3
Hey, i've installed the 26.01 Build on my Phone yesterday. The Battery lasts like a Tank. I know that there are GCAM mods but it would be great to have a working default with the new LOS camera. There is a bug tho, when the camera attempts to fight low light situations with a few seconds open shutter, it just results in a black image. Overall the experience is great, thanks again!
 
  • Like
Reactions: mxz55 and ThE_MarD

JorgeTone

Member
Jul 21, 2016
9
7
@ThE_MarD

I don't post here but I just wanted to thank you for the ROM. :)

It has been a while since I flashed devices, but I could not stand google crap so I just wiped and run Lineage. I just wanted to ask if it is possible to recover some Motorola apps like Dolby Atmos? :)
Thanks
Jorge
 
  • Like
Reactions: ThE_MarD

ThE_MarD

Recognized Developer
Dec 10, 2014
3,400
3,872
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @JorgeTone you're welcome my friend :)

As for your question? I haven't flashed any mods like that in a long time but if you check our Telegram group others might have information on it

 

JorgeTone

Member
Jul 21, 2016
9
7
Heyyo @JorgeTone you're welcome my friend :)

As for your question? I haven't flashed any mods like that in a long time but if you check our Telegram group others might have information on it


Thanks, boss.
 
  • Like
Reactions: ThE_MarD

JorgeTone

Member
Jul 21, 2016
9
7
Question, sorry but I have been far away from the scene. I see that TWRP is no longer recommended, but I want to do full back up of the image like the old days you could just backup/restore the whole partition without losing any data, experiment with other ROMs, restore everything without losing data to the new ROM etc. What is the new way to do this, if any? I kinda miss some original Moto apps and I want to compare some stuff.

Is it also possible to add some pwd to the bootloader/recovery?

Thanks
 

lmeu

Member
Oct 15, 2019
21
7
@ThE_MarD thanks for providing the answers to my questions. I have meanwhile bought the phone and sucessfully installed the official LineageOS 20 image and everything works (including my banking app, Netflix, Disney+, and no Magisk was necessary). Great work!


I want to provide some feedback, and with two small enhancements in the Wiki, you can help preventing that other users run into the same frustrating problems as I did:

1) Step 4 of "Unlocking the bootloader" on the Wiki install page refers to the Motorola Support for details on unlocking. That's good, but their instructions miss an important bit. If you follow their instructions, you might discover that you can't immediately unlock the bootloader after you received the unlock ID:

# fastboot oem unlock <unlock_ID> (bootloader) Check 'OEM unlocking' in Android Settings > Developer (bootloader) Options FAILED (remote: '') fastboot: error: Command failed

You have to enable "OEM unlocking" in the developer options to run this command. However, this setting is greyed out and, after you requested the unlock ID, you have to wait up to one week until the option is available. This information is mentioned nowhere in the unlock instructions on the Motorola page. There are many posts in the Motorola forums (for example this thread) where people ran into this problem and asked for help. I had luck. In my case, the option was available after 20 hours.

@ThE_MarD , I know that it's not a LineageOS doc bug, but we can help users if you add the following info to step 4 of the "Unlocking the bootloader" procedure in the Wiki:

"If the "Unlock bootloader" setting in the developer options is greyed out after you requested the unlock code from Motorola, you must wait up to one week before Motorola remotely activates this setting. During this waiting period, the smartphone must be connected to the Internet. After the setting is available, enable it and proceed with the unlock process."



2) I couldn't find some apps (for example Netflix) in the Google App Store. First I thought it is because of SafetyNet, and I wasted 4h with Magisk (I couldn't get it pass the checks in YASNC). Then I found out that the reason is that Google Play Certification is missing (in the Play store, go to your account -> Settings -> Info -> scroll to the end and you see "not certified").

The solution is easy: You have to add your device's Google Services Framework ID to your Google account. Everything is described here. After I entered the ID on the Google website, I rebooted my smartphone, and the Play Store shows "certified". All apps that were missing before, are now listed and can be installed.

EDIT: It might not always be as easy as in my case. I tried the same on a different phone yesterday and it still shows "not certified" and not all apps are available. I found some postings on the Internet that people had to wait some hours/days and in some cases it doesn't work at all. However, according to the Google web site, it seems to be the official way for custom ROMs to get Play certified.

@ThE_MarD , we can also help the users if you add the following to the "If you want the Google Apps add-on..." note on the Wiki:

"Due to the missing Google Play Certification, certain apps are not available in the Google Play Store. For details how to solve this problem, see Google Play Certification."
 
Last edited:
  • Like
Reactions: JorgeTone

alekksander

Senior Member
Nov 1, 2016
80
12
Using this ROM 2nd day. Two sim cards, reception limited to LTE – and works like a charm, no issues. Battery life seems extended, camera works better than i expected and there are plenty screen refresh rates too choose from (auto will cause gamma shift unfortunately). I'm very satisfied. Thanks for Your hard work! By the way i bought this device because of LOS support and finally finished smartphone pursue.
Two issues however:
•"Long press on fingerptint sensor to unlock phone" will break fingerprint scanner reliability completely (plus this setting is duped – exists in gestures and in screen settings – which is quite confusing at first).
•Unlock pattern grid is too big. Why force such a long stretch?
•"Show touches" interferes with UDFPS
 
Last edited:

nasdaq0

Member
Oct 10, 2009
20
0
Help. I unlocked the bootloader, flashed the lineageos recovery, but it would not start the recovery.
Boot failed. Press power key to Retry appears

please help
 

Hakosuka11

Senior Member
Aug 17, 2012
126
28
Buenos Aires
Hello I am a Samsung S20 FE user. I know this is not the place to do the question but anybody can help me to decide to jump to this phone? My main concern is updates and I'm seeing here that official LOS 20 is out and is a good way to get a nice software update close to AOSP.
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,400
3,872
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @alekksander I'm glad you're enjoying LOS on Dubai :)

I am on latest official build and screen off UDFPS I only see one toggle in the settings under Settings > System > Gestures. The way DT2W and screen off UDFPS works in the kernel was changed so that it should be slightly more battery friendly as there also wasn't a way to toggle DT2W before either.

I haven't experienced any issues with UDFPS accuracy and speed though with and without that toggle enabled. Same goes for night light.

The only thing I can think of that can affect UDFPS is the minimum refresh rate. Stock ROM doesn't support 48Hz but it was in the kernel source code so we left it in... But it seems to cause gamma flickers with anti-flicker (DC Dimming) turned on so if you are using minimum 48Hz you could try turning anti-flicker off or try using 60Hz as a minimum.

I did just notice it's not mentioned in the known bugs so I added it in there, sorry about that...

For the unlock pattern size? You can either try to modify the target screen density or just modify display size and text in the settings> Display > display size and text.

Our UDFPS is optical, so guaranteed show touches would affect it since it's rendering within the UDFPS margins. Ultrasonic ones like what Samsung use it doesn't matter what is being displayed

@nasdaq0 please ensure you are following all the instructions on the LOS Wiki for installing. You must flash vendor_boot and recovery images.

Usually dtbo is optional as I haven't seen a case where this caused issues but I'll add it to our wiki just to ensure it is the correct one our kernel expects

UPDATE: LOS wiki change was merged
Please check this link

@Hakosuka11 yeah Motorola unfortunately is still not that good for OEM software updates and especially Android version upgrades... But their kernel source code releases are great so custom ROMs usually work really good on them too.

I definitely love my Edge 30 and I definitely plan on keeping it for years and years. The Samsung S30 FE is quite the beast of a phone though. No idea how the Exynos variant is for performance but the Snapdragon 865 is a lot beefier than the Snapdragon 778G+ that Edge 30 has and then same for other specs I haven't really checked how they compare. Is there no custom ROM scene for that device?
 
Last edited:
  • Like
Reactions: nasdaq0

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Does anyone facing screen quick flickering while exposing to direct sunlight or on dark.
    1
    Heyyo @safarifox , hmm that is odd... But just to check if there's a device firmware issue, I would recommend reflashing the stock ROM and check if it works on there too
    1
    Heyyo @pandyag , unfortunately, it seems that dubai's light sensor sucks... It's tucked into the speaker grille on the left-hand side and I've even found that if the case has too thick of a front bumper to it? It'll block the light sensor and make the readings even worse and usually really dark... I have been trying to adjust it for the automatic brightness but so far I haven't had much luck.
    1
    Heyyo @mxz55 , please check the instructions again


    Booting a custom recovery using fastboot​

    1. Download Lineage Recovery. Simply download the latest recovery file, named boot.img.
  • 7
    2okPze5.png



    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 restores 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 our Gerrit Code Review.



    Code:
    #include
    
    /*
    * 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.
    */


    SUPPORTED DEVICES

    - dubai (XT2203-1)


    HOW TO INSTALL LINEAGEOS WITH LINEAGE RECOVERY

    - Make sure your phone is running firmware from at least 12-S1RD32M.55-67. If not? Please download and flash it first before installing this ROM.

    Please follow the official instructions on the LineageOS Wiki here:


    HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY

    Please follow the official instructions on the LineageOS Wiki here:

    KNOWN BUGS/ISSUES
    • Widevine L1 lost upon bootloader unlock (reverting to stock ROM and relocking bootloader does restore it)
    • Intermittent HBM flicker when you use UDFPS when screen is off (screen will flash brightly for a split second)
    • Setting 48Hz minimum refresh rate with anti-flicker (DC Dimming) can cause gamma flickering and might cause UDFPS accuracy issues. Either bump minimum refresh rate to 60Hz or disable anti-flicker. Motorola only ever intended 48Hz for peek display mode and not regular use
    • The brightness slider doesn't ramp up properly as the first third has almost no brightness shift.

    MAIN DOWNLOADS

    Lineage:
    - Official:

    - Unofficial:



    GOOGLE APPS (GAPPS) DOWNLOADS

    - MindTheGapps:
    http://downloads.codefi.re/jdcteam/javelinanddart/gapps




    GOOGLE CAMERA (GCAM) DOWNLOADS

    Google Camera:

    Please check the Telegram Edge 30 Photography group:



    DEVELOPER RESOURCES






    HOW TO CONTRIBUTE

    Send your patches up for review: https://review.lineageos.org/

    Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/

    Source Code: https://github.com/LineageOS


    DONATIONS

    5
    Heyyo! W00t! Happy new years my friends!

    Attached is pictures of LineageOS 20 on dubai
    4
    Heyyo @SaltyLobo, welcome! :)

    So if you brick? Motorola has blankflash. It's essentially their method to QFIL. It is shared on this website:


    As for reflashing stock? The safest method is Motorola Rescue and Smart Assistant tool


    And then you can try to relock your bootloader from bootloader via fastboot. I haven't tried it but most users say it works fine as long as your device is properly reflashed stock ROM which is why I say to use RSA Tool as it will reflash the proper stock variant of your device.
    3
    @ballin_ wow I'm feeling the love and I'll pass on the word to the other devs! Thanks for the kind words! :)

    Yeah I'm definitely a fan of Motorola since even before I got my Edge 30 from them since the Moto x4 is a super solid budget device so it's easy to see why they're doing so good on budget devices and the Edge 30 is a really darn good high end device as everything it does is done really well and yeah they've been quite kind to the custom ROM scene with kernel source code releases and they just released a new tag recently so we will be working on updating it too.

    I'll definitely be keeping my Edge 30 for quite a few years as well since it does everything I need. (y)

    There's also a few more custom ROMs in the works for dubai as I've seen a few test builds go up on our Telegram community and hopefully more to come too
    3
    Heyyo! Well looks like XDA gave us our own forum section! Good news indeed (y)