yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] lost101:
Please provide any feedback you can about the ROM. I'd like to see what is in the 'app drawer' in case there are more apps to remove.
[Moto G 4G Android Development] voland34:
Don't know how to do that, but i'll list them 4 u: settings,google settings, calculator, calendar,camera,contacts, mail,downloads,gallery,messengr, play store,clock, superSU,dialer. (literally from app drawer, don't know if u meant that exactly).

Working fine so far. Only doubt is if Xposed would work here (unofficial for 5.1)...

Also: on reboot it says "DM service" has stopped and "OMA service" also...

Update: Xposed (unofficial, alpha for 5.1) is working fine, GravityBox too
[Moto G 4G Android Development] lost101:
That's all I wanted to know. Can't help you with Xposed Framework, but I suspect it will work.

TIP: Hold power button and vol down to take a screenshot.
[Moto G 4G Android Development] voland34:
Xposed working fine. Gravity too. Thanks
[Moto G 4G Android Development] Justice™:
Is there anyway to disable the lockscreen rotation in the stripped down version of the rom?
[Moto G 4G Android Development] lost101:
Yes, remove the last line in /system/build.prop
[Moto G 4G Android Development] sclcn12:
I'm on xt1039 retail EU, can i flash retail Spain ?
[Moto G 4G Android Development] lost101:
Yes, it should work - provided you have the XT1039 Lollipop Radio.
[Moto G 4G Android Development] cpvm:
Anyone can explain me what is "cid"?

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] lost101:
http://www.andromods.com/basic-how-to/identify-cid-mid-number-on-htc-htc-one-m8.html
[Moto G 4G Android Development] cpvm:
So that means that I can flash a cid 9 xt1045 firmware (when it comes) to my cid 12 xt1045

Enviado desde mi XT1045 mediante Tapatalk
[Moto G 4G Android Development] vinimdi:
Hey there,

I have a XT1039 in Brazil (retail), then I flashed the 4.4.4 from XT1040, after that installed the zip 5.1 from this thread (from XT1040 as well). All was going smooth, but something has to happen lol. I noticed that my phone is droping the wifi connection after a while with the screen turned off, and only connects again when I turn the screen on again. And of course it is set to keep the wifi always turned on in the advanced settings.

I'm still on warranty, so I don't want to unlock the bootloader. Do you guys know if when the 5.1 for XT1039 (Brazilian Retail) becomes avaible could I flash the zip on top of the 5.1 that I'm using right now without unlocking the bootloader, using the stock recovery?

Sorry for the long text and the english not so good.

Thanks in advance

Cheers
[Moto G 4G Android Development] Bobgraton200:
Hi

there is a bug now.

I can't lock the folder, nor the fonction "Protected Apps"work. Each time there is an error message ("Laucher3" stop working .....). And when I creat a folder, when I turn off the phone and open it again, the folder disappear.

I tried to empty the cache of Laucher 3, but did nothing. just erase all my icon.

does someone have a guess what I can do?
[Moto G 4G Android Development] lost101:
With the 5.1 Bootloader, you can still return to KitKat, but then the screen flicker will occur there. If you want to run Stock Marshmallow without screen flicker - you need to upgrade Bootloader.

If you are doing this in the default launcher, then change to another. It's just meant for very basic users.
[Moto G 4G Android Development] Bobgraton200:
Ok,

And I assume it is not recommended to downgrade the bootloader. so if I flash the 5.1 bootloader I should not go back to the 4.4.4 bootloader.

Is it better to flash a launcher from somewhere here or to take one on google play store? or maybe should I juste flash the laucher3 that keep not working (if it is something that I can found)?

I wonder why Launcher 3 is not working. I just intalled my app manualy and now it does not work.

Ho and Cast Screen does not work properly. it start, but juste freeze, the connection is not stable.

Am I alone with these two problem after flashing the 5.1 optimized? everything else look good and work good for now.
[Moto G 4G Android Development] lost101:
You cannot downgrade Bootloader. If you attempt it, you may destroy your phone beyond repair. If after upgrading Bootloader, you go back to Stock KitKat and accept an OTA Update - you will again completely destroy your handset.

Is it better to flash a launcher from somewhere here or to take one on google play store? or maybe should I juste flash the laucher3 that keep not working (if it is something that I can found)?

I wonder why Launcher 3 is not working. I just intalled my app manualy and now it does not work.

Ho and Cast Screen does not work properly. it start, but juste freeze, the connection is not stable.

Am I alone with these two problem after flashing the 5.1 optimized? everything else look good and work good for now.
​

I suggest you remove Launcher3 completely after installing a new launcher from Play Store. Delete the folder:

/system/priv-app/Trebuchet/
​

These ROMs are very, very old. Be prepared for issues as new versions of Google apps are being installed. You cannot expect a ROM I made years ago and have not updated since - to work perfectly.

The issue with Cast Screen may be you due to your TV. There are alternative casting apps on Google Play Store.
[Moto G 4G Android Development] mt12345:
after flashing I'm stuck with WARNING BOOTLOADER UNLOCKED screen. What am I missing?
[Moto G 4G Android Development] ahmadsamhann:
did you follow the instruction in the first post exactly? I've flashed this ROM quite a few times before and it never fails to boot.

and please be brief. you provide too little info.
[Moto G 4G Android Development] mt12345:
I flashed over AOKP and it failed to boot. Then I restored stock lollipop and flashed again, this time it worked.
[Moto G 4G Android Development] greatwhitepine:
How would I go about downgrading from this to stock 4.4.4? I have TWRP installed, bootloader is unlocked and I have xt1040 5.1 optimised Canada version installed from this thread.

First step (mfastboot flash partition 4.4.4\gpt.bin) in downgrade from this thread https://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619 fails with "(bootloader) Preflash validation failed"

I'm confused and don't want to risk a brick.
[Moto G 4G Android Development] lost101:
Why not try the instructions in first post of this thread?
[Moto G 4G Android Development] greatwhitepine:
Uhm, unless I'm blind, the first post of this thread doesn't tell you how to rollback from 5.1 to 4.4.4. I just had another look so pretty sure I'm not blind. :)
[Moto G 4G Android Development] lost101:
I created this thread to achieve what you are asking:

[ROM][PEREGRINE][4.4.4][STOCK][FLASHABLE ZIP] Stock Motorola 4G KitKat ROM

​

Don't flash the 'Untouched' ROMs unless you disable OTA Updates. Accepting a Motorola OTA Update after downgrading can be fatal. I really do mean a completely dead phone, impossible to fix.
[Moto G 4G Android Development] IganSchacht:
Hiya, am a bit lost.

I flashed the XT1040_Retail_Latin_America_51_Optimized_v1.0a version from this thread around a year ago. So far no major problems than I could remember. Happy costumer.

I was wondering if the XT1040 phone has already a Marshmallow deoxed rom like this one. I am a bit overwhelmed by the bast amount of roms.

Thanks in advance!

Ninja Edit: TLDR Basically, I'm wondering if there is a thread like this for Android 6.

Edit 2: What a blind moron I am. I found this one, which seems to be exactly what I was looking for.
[Moto G 4G Android Development] munlar:
Any reason for this? Because as the setting is called "Keep wifi on during sleep" this would mean wifi is off during sleep.
[Moto G 4G Android Development] lost101:
It's one step that can reduce battery drain.
[Moto G 4G Android Development] FrankRb:
Hotspot does not work via mobile network

Flashing was a success with all ROM's. Everything works except when I want to share my mobile (4G) internet connection. Internet sharing works when logged in via Wifi and using USB tethering or Bluetooth internet sharing but when I switch to mobile internet, it stops.

So obviously I have tried the SIM in another (even 2) phone and than it all works fine. I even have contacted my provider to see if all was setup correctly at their side and it was...

Since it has always been working on my XT1039Moto G 4G, europe retail and stopped after flashing these ROM's I suspect something is wrong.

If possible, I would like some help. Thanks in advance!
[Moto G 4G Android Development] lost101:
Did you flash ROM exactly as described in first post?
[Moto G 4G Android Development] jmsegarra:
Thx for the roms!
[Moto G 4G Android Development] Luis_D1:
I'm sorry to ask guys, i know this has been asked a lot but i cant find any info regarding it. I'm on 4.4.4 with a XT1045 from Cricket. I can't unlock bootloader because of Motorola and id like to upgrade to 5.1. Can i use this rom to flash using stock recovery? if not and you know, can you point me in the right way? The only clue i got to do it is this one:

https://xdaforums.com/showthread.php?t=2542219

Thank you!
[Moto G 4G Android Development] sdembiske:
Some users have reported success with ...

Some 1045 Cricket users have reported success with ... [Android][Unlock/S-OFF] SunShine for modern Motorola & HTC devices at https://xdaforums.com/showthread.php?t=2792487 in getting their bootloaders unlocked - It is a paid APP ($25.00). Their home website is at: http://theroot.ninja/index.html

I cannot vouch for it but you can contact them and get your questions hopefully answered there.

S.
[Moto G 4G Android Development] danibus:
Good day

My parents have both motorola G 4G with stock rom (5.1.1 I think)

Whatsapp always eat their internal space, "no space" message every 3 months, then delete everything...

Is this rom able to use SD as "internal space" to avoid whatsapp eat all free space? Reading ROM description, I think there is more space available as some moto stuff was removed, but nothing with SD.

I think 5.1.1 already has something related use SD as internal space, but I'm not sure.
[Moto G 4G Android Development] Rob...:
Sd to internal memory formatting is only possible from android 6. as far as I know. Try cm13 snapshot.
[Moto G 4G Android Development] Benfll:
Does the optimised version contain the full stagefright patch?
[Moto G 4G Android Development] lost101:
These ROMs are years old, I cannot remember anymore. It's most likely the case, if not the full patch is available in first post.

I highly suggest you consider the Android 6.0 Stock ROM available here; it is effectively a more secure and polished Lollipop:

[ROM][PEREGRINE][6.0][STOCK] Identity Crisis 6 LTE v1.5​
[Moto G 4G Android Development] Benfll:
That's the ROM I'm running now (except the previous version, 1.4b I think). Basically, I'm getting a new phone and giving this one to a family member, who won't know anything about ROMs or anything. They'll just want the phone to not reboot randomly (as it does currently), and have good battery life and performance, so I thought switching back to a version of Android the phone is supposed to run would probably be best. If you think the latest version of the 6.0 ROM is as good as/better than the ROMs here in this situation then yeah I'll just use that instead.
[Moto G 4G Android Development] lost101:
I've made sure the 6.0 ROM is stable. No random reboots. Overall the performance and battery-life is better in Marshmallow than in Lollipop.
[Moto G 4G Android Development] zukmabawls:
Do these pass safetynet?

[edit] just flashed anyway, and yes Retail EU 5.1 ROM (Untouched) does.
[Moto G 4G Android Development] Bobgraton200:
Hi lost101

I have a little question

I have 2 Moto G first generation XT1040.

One I flashed the 5.1 (the last one) from :https://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816 I did not upgrade the bootloader, I did upgrade the radio Firmware.

The other one I flashed the 6 GNL deviant version from https://xdaforums.com/moto-g/4g-development/rom-identity-crisis-6-lte-t3327995 Nothing more if I remember well or maybe a radio firmware.

I want to know if it is safe to return to a Firmware Image for both of them (to have the original version) from https://xdaforums.com/showpost.php?p=60793911&postcount=2 ?? does 4.4.4. or 5.1 matter in that case? I did nothing more.

thank
[Moto G 4G Android Development] lost101:
Flashing the 4.4.4 firmware image will result in constant notification nagging to update to 5.1. If this OTA Update is accepted, you may hard-brick your phone. You need to know what you are doing, and disable all OTA Updates if you want to return to 4.4.4.
[Moto G 4G Android Development] Bobgraton200:
if I flash the 4.4.4 firmware image I just have to disable OTA Updates and I will be safe ok.

If I flash a 5.1 firmware on my device that I flashed a 5.1 Rom is it the same thing or willl it be safer than the 4.4.4 firmware?
[Moto G 4G Android Development] lost101:
It's really personal choice here. Some people prefer 4.4.4 due to performance, however security (Android security) is an issue. If you disable OTA Updates, there is no risk of damage to your handset.
[Moto G 4G Android Development] Bobgraton200:
In fact, I need to put one of my phone on a firmware image because im seding it back to rogers to unlock it (the guy at the desk said to me that it will be less troublesome if I put back the firmware image before because of blablabla and blablabla). If I put back the 4.4.4 and disable the OTA can I return to your 5.1 Rom with no problem like the first time?
[Moto G 4G Android Development] pbda:
Hi,

I have a phone with Retail EU 5.1 ROM (Optimized) v1.1 since 6 months. It works well but an annoying thing: every time phone is booting it rebuilds dalvik cache and booting takes about 10 minutes. Do you have any idea to avoid to rebuild cache at every boot ?

Thanks for help.
[Moto G 4G Android Development] Benfll:
What method should I use when Superuser asks to update the SU binaries? Normal or TWRP?
[Moto G 4G Android Development] lost101:
I'm not sure if this is what you are *actually* experiencing, but the issue could be related to the auto-zipalign script:

system/etc/init.d/darky_zipalign​

You could try moving that script to /sdcard/ and rebooting. Ultimately, I think you are due a fresh install as issues can emerge over time simply by installing, updating and removing apps. It's important to follow the flashing instructions exactly as described in first post.

TWRP.
[Moto G 4G Android Development] pbda:
Thank you for your help.

First, I tried this without success.

Then I reinstall system and the problem disappears. But when I restored my apps (with Titanium Backup) the problem was back :(

It seems that I must live with this annoyance.
[Moto G 4G Android Development] lost101:
Most of my threads include the following in first post:

Never restore apps or settings with Titanium Backup - this will break the ROM.

​

You are effectively 'undoing' the clean install instructed in first post.
[Moto G 4G Android Development] pbda:
Have you any advice for a working alternative to save/restore system and apps settings ?
[Moto G 4G Android Development] pbda:
After several install and many reboot, it appears that the problem comes when SuperSU is upgrading itself to release 2.82. Reverting back to SuperSU 2.79 solves the problem.
[Moto G 4G Android Development] audinswfc:
Hi all. I forgot to unlock (SIM) my phone prior to installing LineageOS 14.1 so I need to go back to stock in order to unlock it. The phone is a XT1039 and it's on TWRP 3.1.1-0. Tried the XT1039 Retail EU 5.1 ROM (Untouched) and Retail EU 5.1 ROM (Optimized) v1.1 ROMs and they both result in the below errors. It was originally a UK/GB phone on EE but I can't find an exact ROM for GB that can be flashed in TWRP hence using EU instead.

Can someone help me get this phone back to stock so that I can unlock it please? Thanks.
[Moto G 4G Android Development] lost101:
[MENTION=4115492]audinswfc[/MENTION] - See 'Bugs' section in post #2 of this thread.
[Moto G 4G Android Development] audinswfc:
I read that and did what it said but sadly it didn't help. I'm on the latest TWRP so don't know what else I can do...
[Moto G 4G Android Development] lost101:
You must flash these ROMs exactly as described in first post. A 'factory reset' in TWRP is not enough.
[Moto G 4G Android Development] thedrj0nes:
System or Data may be formatted F2FS, I don't think stock supported it.

There is an option to change or reformat a filesystem in TWRP, check the filesystems for each and reformat as EXT4 if they are not already.
[Moto G 4G Android Development] lost101:
TWRP > Wipe > Advanced Wipe > Select partition > Repair or Change File System > Change File System
​

Userdata (Data) is the only partition that should be formatted F2FS. All others are EXT4.
[Moto G 4G Android Development] default_user0815:
Hi!

On my XT1039 Peregrine (condensed 5.1 Stock ROM from this thread; TWRP) I'm facing little WiFi problems. Sometimes there is no data transfer although I am connected to my WiFi. Of course, the problem could be linked to an app I'm using all the time or to some other software issue (or maybe it's because the device is getting older and aolder ;) ) but I thought I could try the EU radio firmware update. Maybe this helps.

The problem is: After entering the first command "mfastboot flash modem NON-HLOS.bin" I'm stuck with a message: "waiting for any device". What am I doing wrong there?

I'm using Win10 x64 with the Motorola device manager being installed. So, the ADB drivers should be installed, too, right?

I've installed fastboot (there isn't be a huge difference between fastboot and minimal fastboot, right? Except one has to use commands with an additional "m"...) and copied the two radio update files into the fastboot folder. With the phone being plugged in (debugging enabled; unknown sources enabled) I start the command prompt and go to the fastboot folder. Typing in "adb devices" shows the device being connected.

But after having typed in the first line ("mfastboot flash modem NON-HLOS.bin") I'm stuck with a message: "waiting for any device" and I can't proceed. I can't enter any further commands and I have to close the command prompt.

What am I doing wrong? Can you help me?

P.S.: Flashing via TWRP doesn't work either, tried that a couple of weeks ago
[Moto G 4G Android Development] lost101:
The flashing of newer radio will not solve your issue. You need to do a clean install exactly as described in first post. Do not restore apps with Titanium backup - this is known to create issues.

The fastboot problem. Have you enabled USB Debugging in 'Developer Options' on the phone?

https://www.digitaltrends.com/mobile/how-to-get-developer-options-on-android/​

You need to authorise the use of fastboot on your handset - a request window will appear.
[Moto G 4G Android Development] default_user0815:
Thanks for your reply!

Yes, I have enabled USB debugging and I've confirmed the authorisation request. I mean, when I type in "adb devices" in the Win10 command prompt my device is listed. So, generally, it should work, I guess. :D But the "flash modem" command doesn't.

Well, I've already written that I don't know exactly why I have WiFi problems and I'm aware of the fact that the chance of the update resolving all my issues is quite low. Nonetheless, I thought it would be easy to do this radio update in order to eliminate one possible source of error ...before I erase all my data. :)

Apart from that, it's not the first time I face this issue with the radio update. I've already done a clean install (TWRP using an image from the SD card) and tried to do the radio update afterwards. There, I've had the same error.
[Moto G 4G Android Development] lost101:
The usb drivers are not installed properly. See the Win10 files included in first post of the following thread:

Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)​

EDIT: Another possibility is that your USB cable is faulty.
[Moto G 4G Android Development] default_user0815:
I THINK I got it going now :)

I actually did a complete reset (which I tried not to do in the first place :) ). With the Win10 drivers being installed I updated to TWRP 3.2.0.0. Then I installed [edit:] some ROM (condensed or "original") [/edit] provided here. Aftwerwards I installed the Stagefright patch and finally SuperSU (I have issues with v.2.82 so I stay with v2.79). Finally, I enabled USB debugging and shut down the device.

I switched it on again keeping vol- pressed. Then I typed in the radio update commands and it seemed to work. Before, I didn't know I had to start to the boot options menu in order to get it working. Maybe you could add this tip to the first page?

Thank you very much!
[Moto G 4G Android Development] lost101:
You are correct. Apologies for the omission.
[Moto G 4G Android Development] Tanguy_ASM:
Hi !

Thanks for your work, stock debloated ROMs are exactly what I was looking for !

But I experience a small problem. The phone zipaligns all the apps at each boot. Do you know how to fix it ?

My phone is a XT1039, I installed the optimized EU 1.1 ROM, with the latest TWRP, and I patched Stagefright too. Thx.
[Moto G 4G Android Development] Rob...:
Can I flash the radio Firmware with TWRP? Thanks
[Moto G 4G Android Development] default_user0815:
Didn't work for me
[Moto G 4G Android Development] Sofiane omega:
how to know witch country is my moto g 4g
[Moto G 4G Android Development] Brian D:
That is the very reason why I took 5.1 off my XT1045. I searched and searched and found no solution to this problem. It happens when the phone is charging and one reboots, or not charging and one reboots. On top of that, if the bootloader was updated to support this 5.1, one cannot go back to the OEM (41.10?) bootloader. This causes the start screen to flicker, it also causes the TWRP to flicker.

Lesson learned here. A real bad lesson to leave stuff alone. Shame on me for trying to upgrade. Don't get me wrong, phone works, but not like it used to.

Hope you have better luck finding a solution to the "optimizing apps # of ###" problem.

Brian D
[Moto G 4G Android Development] lost101:
Sometimes a country code appears in Settings > About phone. For example: System Version - 173.44.9.falcon_unmts.aio.en.us - would be running US firmware. You can run any country firmware, even any model firmware - but generally stick to your own model for safety.

When you install any of these ROMs, as described in first post - this situation does not occur. The flashing instructions in first post are very specific for a reason. Over time, the performance of Android and how it behaves can become impaired due to the contents of internal and external storage - system files, app-related files etc. Stock-based ROMs appear to be even more sensitive to storage contents than AOSP ROMs.

Anyone experiencing the above problem needs to clean their phone. And by this I mean, flashing exactly as described in first post -

a factory reset in TWRP is not good enough

.

I still however recommend using Stock 6.0 over these ROMs.

[ROM][PEREGRINE][6.0][STOCK] Identity Crisis 6 LTE v1.5​
[Moto G 4G Android Development] Brian D:
Then what your are saying is that I did not follow the instructions. Not true. I fear bricking any phone. The problem is that even if the instructions are followed to the T, which I did, the issues listed were still created. So the problem did not reside in the way I did the upgrade, it resided in the combination of the ROM and the device.

Maybe some devices worked well, but the research I did all basically exhibited the same issues. And that was screen flicker due to the Bootloader, and the issue of optimizing apps after each reboot.

This is not to say you or other developers did anything wrong. But it very well maybe that the XT1045 is not designed to work well with anything except the OEM firmware that was originally installed.