yashsingh1/xdaforums huggingface dataset:
[LeEco Le Pro3 Guides, News, & Discussion] piludovski:
Hi @tsongming , thank you very much for the countless info provided.

I have a LEX722 that I can't start in EDL mode. Tried all the methods in the OP. I have a 2nd fully functional LEX722 where I could validate that these methods work.

The problematic LEX722 died while I was playing with TWRP backup and restore, trying to restore on it a backup from the fully functional LEX722.

Are there any other options I can try? I have no problem opening the phone's case and mess around with my osciloscope and hot air station to check if indeed it's a hardware problem.

When plugged to the USB while turned off, both phones take the same amount of current, 0.05A, but the bricked LEX722 doesn't even turn on status LED.

BTW, I still think it's worth to spend some time on these phones as I use them to run Comma.ai's Openpilot. The bricked x722 in particular, has less than 2 hours of use (sealed box, just flashed TWRP and played around with restoring a backup from another x722 instead of manually installing NeOS, Openpilot, etc.

Thanks in advance.

Cheers,
[LeEco Le Pro3 Guides, News, & Discussion] Preduz7:
I did what you mentioned above, but my smartphone is in infinite loop after the process, what should I do?
[LeEco Le Pro3 Guides, News, & Discussion] blanktape:
Just want to say thank you for putting this together, I was able to use flash it all to fix my issue with x720.

My TWRP recovery was freezed and doesnt matter what I do even fastboot flash recovery still stuck. This save my day.

Thanks!
[Moto G 2014 LTE Android Development] gothicVI:
LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), 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.

#include <std/disclaimer.h>
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or the current
* economic crisis caused by you following these directions. YOU are choosing to make these
* modificiations, and if you point your finger at me for messing up your device, I will
* laugh at you.
*/

IMPORTANT NOTE:

I'm not a developer in the actual sense. I'm just compiling this ROM according to T H I S manual. I'm not able - due to time constrains - to actually alter code or provide bugfixes. This is done by the active developers or by you!

Furthermore, I try to build on a daily basis but I can not promise daily builds. Nevertheless, I hope you enjoy the effort I put into this and are able to benefit from it.

This project is designed to stop, once there are official builds for our device available H E R E.

What's working:

Boots

Wifi

Camera (Photos)

Magisk

What should be working:

RIL (Calls, SMS, Data) - and it most likely never will except if [MENTION=5075128]LuK1337[/MENTION] shares his code...

Not tested:

Bluetooth

Video Playback

Audio (Record)

Audio (Playback)

Sensors

XposedFramework

Instructions:

Download build and gapps (if wanted)

Reboot to recovery (TWRP recommended)

Flash build (and gapps, Magisk, etc.)

Reboot

Downloads:

ROM

OpenGapps

Credits:

[MENTION=5075128]LuK1337[/MENTION]

[MENTION=5778309]luca020400[/MENTION]

[MENTION=9152969]Wattsensi[/MENTION]

Source Code:

http://github.com/gothicVI

Created: 2017-01-30

XDA:DevDB Information

[ROM][UNOFFICIAL][THEA][8.1] LineageOS 15.1, ROM for the Moto G 2014 LTE

Contributors

gothicVI

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

ROM OS Version: 8.x Oreo

Based On: LineageOS

Version Information

Status: Snapshot

Created 2018-09-26

Last Updated 2019-03-16
[Moto G 2014 LTE Android Development] Eddy Stark:
The ROM is very fast, but whitout RIL (Calls, SMS, Data) i cant use :/ i will waiting for neo updates. thanks
[Moto G 2014 LTE Android Development] gothicVI:
Thanks for the feedback. I was unable to test that myself. So your sim card was not detected?

Is there a device tree with working ril I could eventually pick from?

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] mallorca:
I can confirm the lack of RIL. The Oreo Version of Luke1337 had it. I am not sure however if his github provides for a chance to pick something...
[Moto G 2014 LTE Android Development] Eddy Stark:
Me too.
[Moto G 2014 LTE Android Development] gothicVI:
I know. Sadly it doesn't. He never published the code. I also asked in his thread for him to make it available.

For the time I fear there's no obvious solution.

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] Eddy Stark:
I saw that you posted a new build, did it come with the fix on the ril? Can someone tell me? I really want to use a rom with oreo.
[Moto G 2014 LTE Android Development] gothicVI:
I fear not. Sadly our original maintainers never answered me. Thus I am not sure if we're going to see a fully working oreo ROM for thea...

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] Wattsensi:
Well done! It seems like you finally got a bootable build. And you synced the latest security patches too. Thanks for continuing our work because I can no longer develop for this device because I sold it and I no longer have time to do it because of the pressure of late senior high school. I hope LuK answers and you get a working RIL someday, or perhaps you can even port Pie.

If you check Titan device trees you will notice that there are only minor differences between the files so you could try and port Pie as a more advanced project...you can borrow most shims from Titan but wouldn't be too stable.
[Moto G 2014 LTE Android Development] gothicVI:
[MENTION=7599174]Eddy Stark[/MENTION] [MENTION=221130]mallorca[/MENTION] [MENTION=8662865]Mauro.coupe[/MENTION] [MENTION=9152969]Wattsensi[/MENTION] I tried a different approach. Could you test the following build for working RIL, please:

https://www.androidfilehost.com/?fid=11410963190603866261
[Moto G 2014 LTE Android Development] mallorca:
I am abroad. Will return Thursday and immediately test it. Thanks for not giving up!
[Moto G 2014 LTE Android Development] Natanael Alves:
I tested the last test really very fluid, but ril is not working on it

It would be nice if luk provides correction driver, its rom has good memory utilization different from the rom that works the ril more that consumes a lot of memory and still does not have the latest lineage news like trust, Focus you will get...

I am not speak inglish .... Its From Google traductor
[Moto G 2014 LTE Android Development] Eddy Stark:
I'll test tomorrow. Thank you for not giving up so easy. you are the man!
[Moto G 2014 LTE Android Development] gothicVI:
[MENTION=7599174]Eddy Stark[/MENTION] [MENTION=221130]mallorca[/MENTION] [MENTION=8662865]Mauro.coupe[/MENTION] [MENTION=9152969]Wattsensi[/MENTION] next try:

https://androidfilehost.com/?fid=11410963190603867626

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] mallorca:
In the title it says 'Potter'. Might be for a different device. Moreover the size of the file is very different from the previous test. Can you please check that, gothicVI?
[Moto G 2014 LTE Android Development] gothicVI:
Oh dang. Thanks a lot for making me aware!

Indeed that was a wrong upload. Sorry.

I removed the file.

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] gothicVI:
[MENTION=7599174]Eddy Stark[/MENTION] [MENTION=221130]mallorca[/MENTION] [MENTION=8662865]Mauro.coupe[/MENTION] [MENTION=9152969]Wattsensi[/MENTION] next try:

https://www.androidfilehost.com/?fid=11410963190603868780
[Moto G 2014 LTE Android Development] Natanael Alves:
the ril still is not working on the last test, bravo [MENTION=5895297]gothicVI[/MENTION] you're happy to continue giving life to our warriors Thea
[Moto G 2014 LTE Android Development] gothicVI:
Thanks for the feedback. I'm slowly running out of ideas...

Anyone with a hint?

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] mallorca:
Unfortunately I am no developer and neither an expert on ROMs, I just use them. The only idea I can think of is to use the RILs of the XT1078, as they seem to be close in their hardware. How you could do that however, I do not know ... :(
[Moto G 2014 LTE Android Development] gothicVI:
That's grat to hear. Did you also try one of the newer builds?
[Moto G 2014 LTE Android Development] Wattsensi:
I see that you managed to get a working RIL, if I am not wrong?

If that's the case, congratulations!

also, check init_thea.cpp in the device tree. That's where the vendor image mismatch issue lies.
[Moto G 2014 LTE Android Development] gothicVI:
[MENTION=9152969]Wattsensi[/MENTION] are you aware of what changes would be needed at the kernel level in order to get stuff working for 16.0? The device tree should be fine and I'd love to try porting the 15.1 sources ;)
[Moto G 2014 LTE Android Development] Rox5:
Hello,

I have a serious problem trying lineage-15.1-20190303-UNOFFICIAL-thea build on my thea (from LineageOS 14).

At boot, a message requests to change to vendor image MPB24.65.34.

It boots, but no mobile network (SIM not detected).

What is strange is I've tried a lineage-15 build some time ago, and did not get this message.

I have never changed the "vendor image" file which works fine with lineage-14.

adb shell getprop | grep fingerprint

[ro.bootimage.build.fingerprint]: [Motorola/omni_thea/thea:6.0.1/MOB30M/15:eng/test-keys]

[ro.build.fingerprint]: [Motorola/omni_thea/thea:6.0.1/MOB30M/15:eng/test-keys]

---> nothing for vendor image

--------------------------------

EDIT 1: There is no vendor.img file in those ROM files

XT1072_THEA_RETEU_6.0_MPB24.65-34_cid7_subsidy-EMEA_CFC.zip

lineage-15.1-20190303-UNOFFICIAL-thea.zip

--------------------------------

EDIT 2:

After installation of XT1072_THEA_RETEU_6.0_MPB24.65-34, I get:

adb shell getprop | grep fingerprint

[ro.bootimage.build.fingerprint]: [motorola/thea_reteu/thea:6.0/MPB24.65-34/28:user/release-keys]

[ro.build.fingerprint]: [motorola/thea_reteu/thea:6.0/MPB24.65-34/28:user/release-keys]

---> nothing for vendor image

And then, installing lineageOS lineage-15.1-20190303-UNOFFICIAL-thea, I get:

adb shell getprop | grep fingerprint

[ro.bootimage.build.fingerprint]: [motorola/lineage_thea/thea:8.1.0/OPM7.181205.001/59cc8fdbff:userdebug/test-keys]

[ro.build.fingerprint]: [motorola/thea_retgb/thea:6.0/MPB24.65-34/31:user/release-keys]

[ro.vendor.build.fingerprint]: [motorola/lineage_thea/thea:8.1.0/OPM7.181205.001/59cc8fdbff:userdebug/test-keys]

/!\ /system/build.prop of lineage-15.1-20190303-UNOFFICIAL-thea contains :

ro.build.description=lineage_thea-userdebug 8.1.0 OPM7.181205.001 59cc8fdbff test-keys

ro.build.fingerprint=motorola/lineage_thea/thea:8.1.0/OPM7.181205.001/59cc8fdbff:userdebug/test-keys

Then some progress, but new problem with 'OPM7' provided by lineage-15.1-20190303-UNOFFICIAL-thea, although requesting MPB24.65-34 vendor image
[Moto G 2014 LTE Android Development] Rox5:
Some update for XT1072_thea

What is clear is that 2 regressions have been introduced in LineageOS15 builds since about August 2018.

1 - No Mobile network / SIM card not detected:

Very probably a configuration bug related to radio mode which should be set to 0x3 for XT1072

if (radio == "0x3") {
/* XT1072 */
gsm_properties(false);
property_set("ro.build.description", "thea_retgb-user 6.0 MPB24.65-34 31 release-keys");
property_set("ro.build.fingerprint", "motorola/thea_retgb/thea:6.0/MPB24.65-34/31:user/release-keys");
property_set("ro.build.product", "thea");
property_set("ro.mot.build.customerid", "retgball");
property_set("ro.product.device", "thea");
}

=> https://github.com/LineageOS/androi...mmit/74a0e4b901ad09c516df951ccf6b2ea278c7ae08

2 - "MPB24.65-34 vendor.img" requested at boot

This looks totally unnecessary simply because never requested with previous releases, and this "vendor.img" does not exist !!

The problem is that without any changelog, there is no way to check when these regressions have been introduced.

In the meantime, it was an opportunity to discover that MoKee project is very active for Moto G.

https://download.mokeedev.com/?device=thea

Hope it helped at least XT1072 users.
[Moto G 2014 LTE Android Development] Wattsensi:
Not really, but you can research Google's Android website. It helped me a lot to build Oreo for thea.

Research which changes are needed, but be aware that we don't have Treble (my P9 does). So it will be a monumental effort to port a Pie ROM.

Try to port Titan's Pie ROMs. Their device trees already have most of the shims required to make our hardware blobs work.

You'll also need a Pie-ready msm8226-common.

Porting a ROM is extremely hard and time consuming, good luck fam! I am rooting for you!
[Moto G 2014 LTE Android Development] gothicVI:
Hi, [MENTION=5706262]Rox5[/MENTION] thanks for letting me know and for digging into it. However, the github commit you're referring to is for the 14.1 base and almost 3 years old. The corresponding code for this builds would be https://github.com/gothicVI/android_device_motorola_thea/blob/lineage-15.1/init/init_thea.cpp. If you're aware of an issue there, please submit a pull request.

Thanks in advance.
[Moto G 2014 LTE Android Development] gothicVI:
I just realized that in the last couple of days...

Which is the point I'm currently failing with...

==> I'll defer that project for the moment especially as it seems that there are problems with the 15.1 builds that I also don't really have the time to deeply dig into.

Any pull requests from anyone highly appreciated ;)

Sources:

https://github.com/gothicVI/android_device_motorola_msm8226-common/tree/lineage-15.1

https://github.com/gothicVI/android_device_motorola_thea/tree/lineage-15.1

https://github.com/gothicVI/android_kernel_motorola_msm8226/tree/lineage-15.1
[Moto G 2014 LTE Android Development] Rox5:
This can explain at least one regression: "property_set" has been changed to "property_override" which can explain the 'OPM7 <-> MPB24.65-34' mismatch, as long as nobody knows how to change the "vendor.img" file for Moto G.

I don't really understand why LineageOS is suddenly dropping Moto G support, so close to the final step, but it's hard to believe that a LineageOS developper who made previous LineageOS_15 builds could not help to solve the regression which might be for sure something "obvious".
[Moto G 2014 LTE Android Development] Wattsensi:
But I solved it when I was making images for Moto G! Sadly I didn't document my changes :( gothicVI needs to modify the init_thea.cpp C++ source file in the device tree and change EVERY pair of overrides to the correct strings.

Define a dual_override function and use it to save space. I don't have a thea anymore so I am no longer a reliable dev for this device.
[Moto G 2014 LTE Android Development] Rox5:
Even with a wrong build, is there any possibility to force right parameters with /system/build.prop file ?

I made some trials without any success.

The most important is to first reenable the SIM detection.

BTW, I am now back to LineagOS 14 which is fine, wondering if I have to leave LineageOS for coming weeks.
[Moto G 2014 LTE Android Development] Gilronieres:
The network isnt Works in Lineage 15.1

How to fix It?

Someone gonna start to build a pie ROM for this device?
[Moto G 2014 LTE Android Development] Rox5:
There are some LineageOS 16.0 builds available for 'titan' which is very close to 'thea'.

With some luck, it may work. To be tested.

https://androidfilehost.com/?w=files&flid=281227

https://xdaforums.com/moto-g-2014/orig-development/rom-lineageos-16-0-t3833953
[Moto G 2014 LTE Android Development] Wattsensi:
They will work on Thea... but not without Pie device tree. Perhaps this ROM's device tree might serve to port LOS 16... [MENTION=5895297]gothicVI[/MENTION] Half of the work is done, you need to step in!
[Moto G 2014 LTE Android Development] Rox5:
Why would thea need a "Pie device tree" and not titan ? What does that mean ?

The difference between thea and titan is so small I don't really understand the necessary build diversity.

TWRP Recovery Error 7 While Installing Any Custom Rom Fix | Easy Guide

https://www.youtube.com/watch?v=wed03948gcg&app=desktop

https://xdaforums.com/showpost.php?p=78861401&postcount=572
[Moto G 2014 LTE Android Development] Wattsensi:
It does. We don't have a dedicated Pie device tree. We need one from Titan, and we need to adapt it to our device. The difference between titan and thea goes beyond just having LTE or not. I've built for this device before. Trust me. We need the appropiate shims. Titan having Pie ROMs mean that we already have a msm8226 common device tree to work with. Now we need our device specific tree. Only having the msm8226-common device tree is not enough because Motorola ROMs ask for two trees. We don't have Treble so we need device specific shims which titan's tree may or may not fill. The kernel probably can be shared. I'll consider building again for this device but first I need a suitable Linux environment, and by extension, time. And no, using Oreo trees to build Pie won't work. The trees must be changed.

EDIT: Don't do anything stupid. Bypassing TWRP's protections to flash incompatible content is a very bad idea.
[Moto G 2014 LTE Android Development] Rox5:
Frankly, I don't understand this complexity between thea/titan, but I trust.

I thought that the most important part for radio was provided by NON-HLOS.bin modem, which is not provided by L-OS, but Motorola build, and in case a LTE configuration menu was missing, it would be possible to select that radio band by composing *#*#4636#*#*.

I'll then try to be patient enough to not test titan ROM on XT1072_thea....
[Moto G 2014 LTE Android Development] Wattsensi:
Don't worry, it's alright. Just don't go flashing ROMs made for other phones on your device :cyclops:

BTW that's the radio firmware image bundled with the stock ROM. Do not alter anything related to it if it's not broken.
[Moto G 2014 LTE Android Development] Rox5:
All depends on what you call "different" devices.

Moto G titan/thea are the same device, the only difference being the country where they are delivered.

It sounds crazy to have L-OS 15&16 available for Moto G titan, and nothing for thea, although there are 99.99% the same device.

I wondered if instead of creating so "huge" compilation effort and diversity for a so minor difference detail, it would not have been more clever to configure an init script able to detect those devices at installation (99.99% the same device).

XT1063	Global GSM, Single SIM

XT1064	US/Canada GSM, Single SIM

XT1068	Global GSM, Dual SIM, EU, Colombia

XT1069	GSM+DTV, Dual SIM, Brazil model supporting DTV or LTE

XT1072	LTE, Single SIM, EU model

XT1077	LTE, Dual SIM, China, 8/16 GB

XT1078	4G, Dual SIM, Brazil, 16 GB

XT1079	LTE, Dual SIM, India/China, 16GB

https://en.wikipedia.org/wiki/Moto_G_(2nd_generation)

NON-HLOS.bin file is installed by "fastboot flash modem NON-HLOS.bin" instruction, and is not an issue.

NON-HLOS.bin and fsg.mbn files are embedded in XT1072_THEA_RETEU_6.0_MPB24.65-34, and L-OS does not touch these files anyway.
[Moto G 2014 LTE Android Development] Wattsensi:
Here we go again...

Titan has a 2070 mAh battery... Thea has a 2390 mAh battery

Titan was born with 4.4 KitKat... Thea was born with . 5.0 Lollipop

Thea has a DIFFERENT radio chip capable of LTE, running a DIFFERENT firmware and a slightly different motherboard.

Thea has a DIFFERENT bootloader.

They are NOT the same device, buddy. Otherwise we would just install Titan ROMs with an alternate RIL switch but that is not feasible.

The SoC is the same, yes, but Moto G1 and Moto G1 LTE also use the MSM8226 SoC and their ROMs don't run in Titan or Thea.

Please leave this as is. ;)

If you want Pie so bad, help gothicVI to port our device tree over.

Also both devices were sold separately in the same regions. I had a Thea. A classmate had a Titan.

Also NON-HLOS.bin and fsg.mbn are pointless. Lineage is just a boot image and a system image so no need at all to do anything with those files ever.
[Moto G 2014 LTE Android Development] gothicVI:
[MENTION=5706262]Rox5[/MENTION] [MENTION=9152969]Wattsensi[/MENTION] if there's actual interest by any of you to step in (you're obviously more knowledgeable and experienced than me!) I'll happily give you access to the respective GitHub repos and we could try to takkle this together (no point in forking them once more).

As of now I most likely will not be able to. Neither fixing the ril issue on 15.1 nor porting to 16.0.

Given your expertise and my ability to build relatively quickly and regularly we might be able to get at least 15.1 fixed.

Edit: I contacted both former maintainers who are core devs for laos here and on Reddit. The main dev never responded and the second guy mentioned that the 15.1 port only required minor changes that he wouldn't share - so much for GPL...

Gesendet von meinem Moto G (5) Plus mit Tapatalk
[Moto G 2014 LTE Android Development] Rox5:
For info, I have installed lineage-16.0-20190311-UNOFFICIAL-titan build on my XT1072_thea, and it works well, and the SIM card perfectly detected.

Of course, /META-INF/com/android/metadata and /META-INF/com/google/android/updater-script files of the build needed to be modified before installation to avoid the famous "Error 7" (thea has bootloader 0x4821).

The only thing I have noticed not working is LTE configuration (only H+ available / European radio band probably missing).

Then, if RenanQueiroz is building LOS_16 for titan, I don't know which kind of agreement you have to sign to make a LOS_15 build for thea.

You should may be ask RenanQueiroz what he had to sign as GPL agreement.

ROM LineageOS 16.0 [TITAN] => https://xdaforums.com/moto-g-2014/orig-development/rom-lineageos-16-0-t3833953

Build for thea => https://wiki.lineageos.org/devices/thea/build

In summary, I understand you don't have a Moto G_thea to test your builds, because you would have immediately see that the SIM card is not detected with your build.

I don't know if just compiling only without any very basic test before sharing your build is a good idea.

Now LineageOS team has decided to stop support of many Moto G models, the question for Moto G users can be summarized like this:

* should I definitively forget LineageOS for Moto G, and find something else ?

* if LineageOS updates are still made available by someone, will it be just one shot, or something which will be updated on monthly basis, or every 2 or 3 months.
[Moto G 2014 LTE Android Development] Wattsensi:
Heh...asshole. Nevermind, I'm in for this task but you'll need to help me test.

When I find a block of free time, I will deploy a build system. Count me in [MENTION=5895297]gothicVI[/MENTION]

---------- Post added at 09:21 ---------- Previous post was at 09:14 ----------

WHAT? Really? Can you test for more incongruencies? Try using it a lot. But nice. Perhaps asking RQ is the way but I doubt he would want to maintain a device that he doesn't have.

Also, do calls SMS and emergency calls work?
[Moto G 2014 LTE Android Development] gothicVI:
I do have a thea device but no sim card (new phone has a smaller sim card that does not fit) which does indeed disable me to test RIL.

I agree that blind sharing is eventually not ideal but isn't that what a developer forum is for? Getting stuff developed - eventually in collaboration?

I take the first part as sarcasm ;)

Sure I'm here for building and testing. Let me know your GitHub username and I'll grant you access :good: