yashsingh1/xdaforums huggingface dataset:
[OnePlus 9 Pro] JonasHS:
You can find full firmware of all partition in your phones ssd. Go to this website https://onepluscommunityserver.com/list/Unbrick_Tools/ and select your phone model and version. Download file. After download finished unpack zip and delete all file without the ops file. You can use this tool to decrypt ops file and extract partitions from it. https://github.com/bkerler/oppo_decrypt

After you have decrypted.

In your extract folder, will you get many non partition file. You can open settings.xml and see who file is partition, on program tags.
[T-Mobile LG G4] drinking3000:
helló

h818p (bootloader lock) is there a chance to reset ntcode?

I put several ruins in several Hungarian regions but it doesn't change back to the original!

original ntcode 1 "," 216,30F, FFFFFFFF, FFFFFFFF, FF "

current 1 "," FFF, FFF, FFFFFFFF, FFFFFFFF, 11 "

factory recovery doesn't help!

thankyou!
[Moto G40 / G60] Raghu varma:
LineageOS for Moto G60 & G40

About LineageOS

LineageOS is a free and open-source operating system for set-top boxes, smartphones and tablet computers, based on the Android mobile platform. It is the successor to the custom ROM CyanogenMod, from which it was forked in December 2016 when Cyanogen Inc. announced it was discontinuing development and shut down the infrastructure behind the project. Since Cyanogen Inc. retained the rights to the Cyanogen name, the project rebranded its fork as LineageOS.

LineageOS was officially launched on December 24, 2016, with the source code available on GitHub. Since that time, LineageOS development builds now cover more than 185 phone models with over 1.9 million active installs,having doubled its user base in the month February–March 2017 And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

Whats working?

Wi-Fi

RIL

Volte

Mobile data

GPS

Camera

Flashlight

Camcorder

Bluetooth

NFC

Fingerprint

FM radio

Sound

vibration

Bugs

Double tap to wake

Installation process

Click Here for Installation process

Credits

* LineageOS Team for rom source

* Motorola for kernel source​

Download Rom

Download TWRP

Join Community Group

Android OS version: 13.0

Security patch level: 2023-05

Build author: Raghu varma

Kernel source code :

android_kernel_motorola_sm6150

Source code: https://github.com/LineageOS
[Moto G40 / G60] Raghu varma:
Note - please take your data backup and do clean flash as per the instructions linked in the main thread. On top of it, my builds will boot on any stock firmware as base. So there is no special recommendation towards which stock rom you need to be on.

Changelog - Thu Sep 29 17:17:54 UTC 2022

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

• Initial Android 13 Lineage 20.0 build

• Based on android-13.0.0_r6

• Improved system stability

• User interface enhancements

• Google security patch 2022-09

• Selinux enforced

• Vendor built from Source

Reminder - for reporting bugs please mention the issue and attach the logcat.

Thank you!
[Moto G40 / G60] Sagarking:
Hats off excellent work ! appreciated
[Moto G40 / G60] Mineplayerminer:
Would it be possible to bring back the "Hello moto" startup?
[Moto G40 / G60] aveemashfaq:
Thanks a ton. I'm using it and already loving it. I wanted to build the ROM myself but could not gather enough courage or time to do so.

Please try to share the source code somewhere so that more ROMs can be developed

Also donated to your UPI link;)
[Moto G40 / G60] srinidroid:
We are happy to see new custom roms coming out for g60 ...great work bro..
[Moto G40 / G60] X.lord:
Great word dev @Raghu varma, I am surprised to see a custom rom for this device. I'm gonna try this rom. Thanks for your hard work.
[Moto G40 / G60] Purplegunpowder:
Sir, if you're on this ROM Can you please test something specific?
[Moto G40 / G60] X.lord:
I haven't tried this rom yet, but i think gyroscope should work fine as this rom is using stock kernel.
[Moto G40 / G60] Purplegunpowder:
What i wanted to check was if gyroscope is working in New state mobile/ Apex legends Mobile (gyroscope always on setting). As in stock ROM it doesn't work in those two games and some others. It works in Call of duty mobile/ Battle prime/ BGMI etc.

I don't know why it doesn't work in some games but that's what i wanted to know. It'll be a great help if you could possibly test this out.
[Moto G40 / G60] X.lord:
Hey dev @Raghu varma is it possible to add moto camera is this rom and the pixel experience rom?

Then it's a bug in the game itself because "gyroscope always on" works fine in COD. Try sending bug report to the game dev. Although I'll let you know if it works in this rom or not when I'll install it but honestly I don't think its an OS related issue at all.
[Moto G40 / G60] Purplegunpowder:
The gyroscope worked fine on New state mobile on my previous device. It's just on thus device I'm facing this problem. Same isse with Apex legends Mobile. Worked fine on the other device. It doesn't on MOTO G40 Fusion.
[Moto G40 / G60] Deleted member 3281329:
is this tested with g60s? thnks
[Moto G40 / G60] Raghu varma:
Note - installation procedure changed to TWRP now. please read the main thread installation guide before proceeding.

Moreover please flash the recommended MindtheGApps package from my downloads page.

Changelog Thu Jun 9 13:05:59 UTC 2022

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

• added OTA ( over the air ) support

• device code identification changed from hanoip to raven

( this change won't be reflected on the rom but it will show the impact for safety net pass without root from the minute you boot the rom )

• device name identification changed from Moto G60 to Pixel 6 pro ( this change won't be reflected on the rom but it will show the impact for safety net pass without root from the minute you boot the rom )

• build signed with new private keys specially generated for Moto G60/G40 Projects. this will reflect for security reasons and on top of it OTA update verification as well.

• fixed slot switch while flashing rom from recovery mode.

• initiated stock retail build fingerprint

• extended reserved space for every partition to 800 MB ( this helps for flashing Google apps seperately )

• fixed flashing GApps zip from TWRP.
[Moto G40 / G60] gopinaidu77:
Hi @Raghu varma , I tried all your builds (LineageOs, Pixel Exp, CherishOs) and found that double tap to wake doesn't work in any of them. Also lineageOs doesn't have face I'd under security settings. Apart from these, these Roms give better battery backup than stock ROM. I am loving these, hopefully I would like to see official lineage builds, but I know it doesn't matter if it is official or unofficial. Good work bro, keep going.
[Moto G40 / G60] Raghu varma:
Hi ,

Thanks for your feedback & gentle comments.

Sure ! I will definitely try to fix and release in next round.

Thank you!
[Moto G40 / G60] Luhelena:
Noob question: to install arrow os is the same procedure? Or I flash with twrp? (Sorry my bad english)
[Moto G40 / G60] marwanjaber888:
is this work with g60s?
[Moto G40 / G60] rolandcr:
Hey @Raghu varma , thanks a lot for your work. Decided to buy the Moto G60 after finding your ROM on this forum. I' m using your LineageOS rom (without the gapps...) and it works well. The battery life is just insane, no need to recharge since friday or so when I flashed it. Also the Gcam is working well, very good images. Very happy with it. I just cannot find the accent color change in the Wallpaper & Style screen, it just the background+darktheme switch+app raster, nothing else. Maybe there' s another way to do that?

Very good work 🙃 👍
[Moto G40 / G60] Purplegunpowder:
Hello sir, are you currently using the ROM? if yes, would you be willing to check something simple for me?
[Moto G40 / G60] liman17:
hey, i currently using this ROM, what do you wanna me to check?
[Moto G40 / G60] Purplegunpowder:
Do you play any games on the device, if you do would you be able to check if "New state mobile" or "Apex legends Mobile" have the gyroscope working on "always on" settings? Other games have working gyroscope. Only these two games have faulty Gyroscope. I'm wondering if it's a software issue.
[Moto G40 / G60] Coziness2847:
Im so happy to see LineageOS rom for G60, maybe am test out this rom, but am preffer to install in official state :D so thanks for u work
[Moto G40 / G60] liman17:
in Apex Gyro dont work, i tested
[Moto G40 / G60] liman17:
is there any way to make NFC work on this ROM?
[Moto G40 / G60] Purplegunpowder:
Ah that's sad. I guess it's a kernel issue then. Or i don't know, firmware? But anyway! Thanks.
[Moto G40 / G60] Luhelena:
Can I flash a GSI?
[Moto G40 / G60] streetu:
@Raghu varma First of all your Rom is great, especially battery life. However after latest update through OTA i lost fingerprint option. And is it possible to add NFC support?
[Moto G40 / G60] WienerSchlitz:
>>> Make a backup before update! <<<<

This update broke my root (Magisk v25.1) and my OrangeFox ([UNOFFICIAL][RECOVERY] [TOUCH FIXED] OrangeFox Recovery Project (OFRP) | Moto G40 Fusion/G60 [R11.1]).

Now I have to redo everything.
[Moto G40 / G60] Raghu varma:
Yup ! It will definitely break your root and 3rd party recovery because of ota update contains the original rom files example accordingly to your issue i will pick boot.img So whenever you update your phone via OTA it will override your older modified boot.img which contains root and custom recovery with new boot.img contains no root and original recovery. So just do flash again if needed.
[Moto G40 / G60] WienerSchlitz:
The old patched boot.img didn't work for some reason so I reflashed the last image cleanly with OF. I entered adb shell (the phone must be booted into OF or TWRP to have root access), browsed to /dev/block/by-name/ and copyed the boot_a file (boot_b is the same) to /sdcard. I exited the adb shell and I did adb pull /sdcard/boot_a. I patched the file with Magisk before I flashed it with fastboot. To enter the phone in fastboot mode just restart to bootloader and simply switch the menu with the volume keys until you reach "BOOTLOADER LOGS". You are in fastboot mode now.

I did this after I messed up everything because I didn't know how to do it propperly. Now everything works. Good phone, best rom. Thank you!
[Moto G40 / G60] Harsha137253:
During first time custom rom installation, do i have to wipe internal storage as well in twrp?
[Moto G40 / G60] ragstoriches:
is auto call recording there in this rom?

Google dialer or something else?
[Moto G40 / G60] WienerSchlitz:
I use cube call recorder but I belive others work just as fine. (I'm using it to defeat the badass Alzheimer.)
[Moto G40 / G60] Raghu varma:
Thank you !

Hahahah , say no to OEM features.

it works with no issues.

Thank you ! but for Wallpaper & Style Trebuchet won't offer much . Make sure to use any pixel launcher mod to get monet features or NikGapps

As of now we integrated NFC functionality from source level to make it work. But we have to debug the feature anyway.

Default Google dialer has call recording option and working fine with no issues.
[Moto G40 / G60] Xplo!t_A:
I got an update today for lineageos, after updating i restarted my device and a message pops up "com.android.launcher3 keeps stopping". i am not able to get to the home screen. Please help ☹️
[Moto G40 / G60] MikqPL14:
Can you add NFC support on Moto g60?

And OTA updates is broken. When i updated launcher started crashing.
[Moto G40 / G60] MikqPL14:
Same problem, you need re-flash rom by twrp
[Moto G40 / G60] Xplo!t_A:
I found an alternate fix for it, I downloaded the trebuchet.apk (the launcher) file manually from here https://www.apkmirror.com/apk/linea...10-release/trebuchet-10-android-apk-download/

and put it inside the /system/app directory and renamed the apk to com.android.launcher3. And after a restart, the problem was fixed👍🏼😁
[Moto G40 / G60] Fockyermom:
Hi can u please explain a bit more , i tried but it didn't work
[Moto G40 / G60] MikqPL14:
I have a question, can i do OTA update when i have magisk installed?
[Moto G40 / G60] WienerSchlitz:
https://xdaforums.com/t/rom-12l-hanoip-lineageos-19-1-aosp-g60-g40.4450789/page-2#post-87088577

... and continue reading the following posts! Take care!..
[Moto G40 / G60] Badger50:
Thread opened at OP's request.
[Moto G40 / G60] xindefenggan:
Are bluetooth and android auto normal?
[Moto G40 / G60] xindefenggan:
aosp13 没有OTA
[Moto G40 / G60] notaspam:
After flashing the Lineage 20.0 build I have lost the EMEI numbers on my Indian G40 fusion.

Can anybody direct to the modem/radio files that will help me solve this issue?
[Moto G40 / G60] arsradu:
I'm not sure how this would happen. But anyway...

1. You can download stock ROM using LMSA's Rescue feature (phone connected, in fastboot mode).

Alternatively, you can download a somewhat newer version from here. Not sure why there's only Android 11 for this model, but that's beside the point.

In case the mirror site doesn't have the latest versions uploaded, my main recommendation would be to use LMSA! That should give you the correct firmware for your device.

2. After the ROM has been downloaded, open the folder, see if you have radio.img.

3. If you do, you're gonna need Platform Tools from here (in case you don't have it already).

4. Copy radio.img file from stock ROM folder to the platform-tools folder.

5. Open a cmd prompt into that platform-tools folder, then check if fastboot is working, with command:

fastboot devices

It should show your serial number followed by the word "fastboot".

6. To flash radio, you need to do this command:

fastboot flash radio radio.img

This assumes that your radio.img file is present inside the platform-tools folder (step 4).

That's about it.

You can now do a

fastboot reboot

to reboot the phone.

Or you can manually reboot it by selecting Reboot (with Volume Up/Down keys) and pressing the Power button.

I'm not gonna go into details of what is LMSA, how to install that, how to install platform-tools, how to open cmd prompt to a specific folder, how to add platform-tools to PATH and all that. Please, use google for that. Or you can go through the last pages from this thread. I'm not going through that again.
[Moto G40 / G60] Raghu varma:
Absolutely ridiculous. But anyway get back to stock firmware and install lineage 20.0 from scratch. That's the reason for safer side we ( our internal team tested on couple of old firmwares/new firmwares so no point of worrying about stock rom or may be something went wrong with your hardware level ) last we don't bother about any assurance on what went wrong because we don't release unless we use by our own hands.

Cheers 🥂
[Moto G40 / G60] arsradu:
That's a very good policy!
[Moto G40 / G60] notaspam:
Thanks. This is what I needed.

I am now able to use the SIM after flashing the radio img file

I did not meant to question the quality of ROM. I might have fiddled around something while installing the previous ROM and may not have noticed at that time as this is my backup phone.

Anyways great work on the rom! I hope you keep on to do such quality work.

Cheers. 🥃
[Moto G40 / G60] dhinesh_cool:
This happens because firmware mis matched with modem common problem with moto devices fix is easy everytime when u unlocked bootloader on moto device take your persist and modem backup,if this symptoms occurs just restore backup it will save and this things is serious if you flash wrong modem or persist it will brick persist you cannot recover from that
[Moto G40 / G60] dhinesh_cool:
@raghuvarma this happens because of firmware mismatch ,this can be avoided by

Using latest firmware,then flash copy-partition.zip which flashes latest firmware on both slots then flash rom

Adjust instructions like this it will reduce this kind of things
[Moto G40 / G60] arsradu:
I see... Thank you very much for the explanation! I never had this issue on any of my devices. And I had a couple of devices from different brands. Never had this issue. But good to know! Thank you for the info!
[Moto G40 / G60] dhinesh_cool:
This why wrong if your small team cannot find then it is not a bug?

First of all it is common bug on most of moto phone that why everyone using copy-partition.zip just don't avoid If it is not happen to you
[Moto G40 / G60] dhinesh_cool:
I brick my moto g5plus by this same issue

Fortunately when working on x4 I took backup of persist , i lost imei but luckly i fixed by restoring backup, i found out this issue happen mostly when moto update major Android version
[Moto G40 / G60] dhinesh_cool:
So i recommend every rom user and dev to use updated firmware and blobs from moto this will prevent those issue
[Moto G40 / G60] Raghu varma:
For positive points i always support. sure why not , i will definitely implement once i test from my end.
[Moto G40 / G60] dhinesh_cool:
Well i affected by this lot and seen lot of moto device broken so kindly add to prevent that
[Moto G40 / G60] dhinesh_cool:
And one more things remove ipa stuffs from your vendor that will brick moto devices we recently found out
[Moto G40 / G60] reejuu:
@Raghu varma can i flash this rom over my pixel experience 12 rom with existing recovery without using laptop or computer.....or any process to flash this rom without the help of laptop or computer....i want to badly use this rom...i cant wait more..pls help..

@arsradu pls comment
[Moto G40 / G60] Raghu varma:
Always proceed with computer with proper steps linked in the main thread. so don't take risk through recovery
[Moto G40 / G60] reejuu:
So no way without computer?
[Moto G40 / G60] arsradu:
You could, if you were using an SD card.

Otherwise, you need adb, which means a computer with data cable.

But I'm not sure if you can just flash this ROM on top of the other without wiping anything.i mean, you can. But I'm not sure if would be recommended.
[Moto G40 / G60] reejuu:
I am not using sd card.....so can i flash it over the existing rom with existing recovery of pixel experience rom
[Moto G40 / G60] arsradu:
No
[Moto G40 / G60] jhonatann989:
You could. You can flash the ROM and wipe your data partition at the end of the flashing process. BUT BE CAREFUL. Be prepared if something goes wrong. You are going to need a PC to recover your phone if the device gets soft bricked.

It is better to wait until you have a trustable computer to do the corresponding procedure.
[Moto G40 / G60] reejuu:
I will flash now without a computer...god hopes nothing happens....
[Moto G40 / G60] reejuu:
Not possible without a computer....its always going into adb sideload for applying packacge....do not allow to install package from directly internal storage
[Moto G40 / G60] reejuu:
Is there any way to have permanent twrp recovery without computer? If yes tell me the process or tell me the application name?

@Raghu varma

@arsradu

@jhonatann989
[Moto G40 / G60] reejuu:
There is a twrp app available is playstore is it of any help in moto g60...and btw how to root moto g60? Is there any proper guidelines?
[Moto G40 / G60] jhonatann989:
No, because our device does not use dynamic partitions, so recovery is inside BOOT image. I don't remember if when you flash a ROM using TWRP, you see an option to flash recovery in the BOOT.img of the new room. You can try and see if that's possible.

In case that you do that successfully, TWRP will be available directly on the device.
[Moto G40 / G60] arsradu:
You can try...but probably not. We're not using official TWRP (it's developed by Raghu Varma), so I'm not sure the app would work. I also tried it on another Moto phone a while ago and didn't work.

For root, you need to flash magisk.zip from recovery. You can use the attached one, if you want.

To uninstall (remove root), just rename the zip into "uninstall.zip" and flash again.
[Moto G40 / G60] reejuu:
To flash twrp via twrp app from play store root access required or not? Becauze hanoip twrp image is showing there
[Moto G40 / G60] arsradu:
Hello,

No, you shouldn't need root to flash twrp. However, the app seems to only download the zip for flashing. Doesn't seem to have any actual flashing capabilities. So, basically, the same thing you can do if you just download the zip on your phone without the app. The problem is flashing it.
[Moto G40 / G60] reejuu:
So for flashing computer is mandatory?right?
[Moto G40 / G60] arsradu:
For as far as I know, yes. It used to be possible a while ago, with apps like Flashify, but there is no Flashify anymore for newer operating systems.

So, to sum up, yes, a PC is mandatory.
[Moto G40 / G60] reejuu:
So there is no slightest chance of twrp flashing without computer? Or custom rom flashing without computer? I tried flashify but it forced stop everytime after installing when i tried to open it
[Moto G40 / G60] arsradu:
Well, I did mention Flashify does not work on newer operating systems. :)

I don't know of any way to install TWRP without a PC. But what happened to your PC? Why can't you use that to flash either TWRP or the ROM itself?

Flashing ROMs without a PC is possible, either with TWRP (but you have to either boot into it or flash it permanently; and you can't do either one of them without a computer), or with an SD Card and existing PE Recovery. Your device doesn't have an SD Card slot? Or you just don't have any laying around?
[Moto G40 / G60] reejuu:
I dont have twrp installed...i have pixel rom recovery...i do have sd card slot but i dont have a sd card right now...my pc is given to my fiance for some days ...so whats the solution tell me pls...i want to flash the rom or twrp right now badly pls
[Moto G40 / G60] reejuu:
If i manage a sd card tomorrow is it possible to flash it without computer right?then i will arrange sd card tomorrow positively
[Moto G40 / G60] arsradu:
From the PE Recovery, you can easily flash the ROM. But only from an SD card. I don't know why there's no option to do it from the internal storage. But...there isn't.
[Moto G40 / G60] reejuu:
How from a sd card ...i am arranging a sd card now!
[Moto G40 / G60] arsradu:
Boot into PE recovery > navigate with volume buttons, select with Power button > Apply update > Choose from sdcard1 > browse to the location where you downloaded the ROM > select zip > wait for it to flash > back arrow > Reboot system now
[Moto G40 / G60] reejuu:
Okay...will do it
[Moto G40 / G60] LeoMiami:
tho phone need to by oem unlock in dev op?
[Moto G40 / G60] arsradu:
If the question is whether or not you need to have bootloader unlocked in order to install this ROM, the answer is yes.
[Moto G40 / G60] LeoMiami:
G60 128-4 rom working 10/10
[Moto G40 / G60] LeoMiami:
G60 128-4 after a week working 9/10 found some bluetooth glitches, i have like 8 different things, only a credit card posnet wont connect.
[Moto G40 / G60] Mystic Knight:
Can you let me know if upi apps and banking apps are working fine by any means??

If yes i'm ready to test the other features
[Moto G40 / G60] LeoMiami:
4 of 5 banking app working ok on my phone, all digital wallets working fine.
[Moto G40 / G60] vatsalc:
Does any of the LineageOS rom have unlimited google photos backup? As in the updates, it's written that the device name is changed to Pixel 6 Pro, but does that give us the unlimited backup thing?
[Moto G40 / G60] AddictedA1:
how do i turn off second sim it only says remove ur sim card.

Vowifi not working.

why its still on kernel 4 will it get 5.x update ?
[Moto G40 / G60] Lemonshadow:
The CTS profile match is showing failed . But I haven't installed magisk or root. Is it already with the rom? Any solution to fix?
[Moto G40 / G60] Raghu varma:
To be honest CTS profile match is actually belongs to verified build fingerprint by google. ultimately for that we need proper patches to spoof bootloader status to locked state. but lineage os won't offer those patches by default. but in pixel experience offer everything and it can do the job for you. don't worry the basic integrity should pass the test because your rom is completely selinux enforced. so with the help of magisk install any pixel fingerprint and it should do the job.
[Moto G40 / G60] Lemonshadow:
Ok I will try it thank you for the response