yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] dweller88:
Native android apps2sd not working for me on this build. Link2sd says cannot find partition as there is an emulated external SD. apps in settings just says "no available space" when I press "move to SD"
[Moto G 4G Android Development] CsR0501:
With the 2.8.3.0 twrp I can't wipe data... Any ideas?
[Moto G 4G Android Development] spartan-117-mc:
can you update to 2.8.6.0, i think all of the changes worth it, or how to try to build it, thanks
[Moto G 4G Android Development] sirxdroid:
I just got the XT1045 peregrine (LTE), does TWRP 2.8.3 support encryption on this device? I like to keep my phones encrypted. Thanks.
[Moto G 4G Android Development] Somcom3X:
Uploaded a cm-12.1 build for all you guys/gals.

I was playing with it, but with encryption the device is unbearingly slow. It doesn't work with the recoveries I currently have posted.
[Moto G 4G Android Development] sirxdroid:
I encrypted mine and I don't notice any slowdowns, but unfortunately that renders custom recoveries less useful in particular for TWRP backups, /data is empty. I assume flashing things like SuperSU should still work though, as far as I know /system is not encrypted, only user data.
[Moto G 4G Android Development] Sn0wdune:
Great work!

Just flashed. Great upload! :)

Loving the new changes in 5.1 so far! :p

Got 18272 in Antutu, so far so good! :)

Thanks!
[Moto G 4G Android Development] Somcom3X:
Uploaded a v2 with some new changes.

Encryption isn't working on custom roms with the recoveries I posted, are you perhaps using a different recovery?
[Moto G 4G Android Development] EternalFlame:
hey man,

just flashed yawr cm12.1 build...

first impression ... holy *

- this feels very smooth... even the "animation lags" in some particular situations/apps are gone from what i can tell, i like it, let see how the memory issues work out, big thanks :D
[Moto G 4G Android Development] mikel10k:
i flashed new rom and right away after booting up i have sms app FC and flickering, is this normal? i wiped everything, flashed it again and same thing happened
[Moto G 4G Android Development] triovi:
This is the answer i'm looking for. It has "Stock SMS app can't send messages" bug like AOSP http://xdaforums.com/moto-g/development/rom-android-source-project-t3060704.

So, It is normal sms app FC... until Google fix it
[Moto G 4G Android Development] TheFixItMan:
Flickering will occur as lollipop kernel is being used with KitKat bootloader - Just turn screen off & on again

This should be fixed when Motorola release official lollipop 5.1 for this device which is currently being tested
[Moto G 4G Android Development] mikel10k:
the sms app crashed only one time after boot, after dealing with flickering by turning the screen off and on, everything is smooth and perfect, almost because i'm occasionaly noticing some not quite 60fps animations, more like 15fps, especially when screen is rotating :P
[Moto G 4G Android Development] sirxdroid:
I'm using TWRP 2.8.3.0 from your first post, stock 4.4.4 ROM, rooted. I can boot into TWRP just fine, but /data is empty but that's expected as I never get prompted for the encryption passphrase like I do with my Nexus 5 and 7 devices. I was hoping TWRP would support encryption by now, the device has been around for a while :( Hopefully some day soon. I'm used to TWRP backups. Meanwhile any recommendations for backups? TiBu, Helium, anything else?
[Moto G 4G Android Development] scattoit:
This release is great! Thanks a lot
[Moto G 4G Android Development] Ketcchup:
How is video/audio playback? Camera full working? ty!
[Moto G 4G Android Development] ebol94:
So far, I've found a very common problem in CyanogenMod which is the intensity (lumen) of the flashlight application way too low

I'm using Google Camera. 720p rec and 5.0 Mpx photos work great!
[Moto G 4G Android Development] Travisholt92:
Running 4-4 v2 on xt1045 retus, it's running great, no issues. Thank you !
[Moto G 4G Android Development] sillycat98:
5.1 is working great so far. Thanks for posting, tried to build it myself but my internet sucks and I gave up after downloading for three days straight after I used repo sync -c. Thank you very much for posting.

Sillycat98
[Moto G 4G Android Development] Breezyz:
Everything works great , no more problem with ram and it looks faster.

The only issue that I have is that Google messenger app can't show conversations and I can't send sms with it while stock sms app can.
[Moto G 4G Android Development] Travisholt92:
any chance that you could hook us up with some f2fs love?
[Moto G 4G Android Development] Ketcchup:
I'm getting a bootloop (can't pass from bootanimation). I tried formatting /system and doing multiple factory resets. Any ideas?
[Moto G 4G Android Development] Travisholt92:
i had some issue with this as well, however mine was caused by incorrect filesystem format (i had my filesystem set as f2fs and failed to boot). your best bet is to factory reset, make sure to wipe data, cache, system, dalvik cache. (wiping data will make you lose all files saved on internal storage). after doing that flash v2 and gapps for 5.1 and it should boot without issue. (key word should). it took about 4 hours for me to get mine working again (i however didn't have the power of the internet at my disposal at the time)
[Moto G 4G Android Development] Ketcchup:
I wiped internal storage and it worked!!
[Moto G 4G Android Development] sillycat98:
Got two little bugs so far, clicking a Bluetooth device in the quick settings menu causes a systemui crash. Second is Bluetooth is still being a turd, g watch randomly connects and disconnects every 15min to 2 hours. Seems totally random, can be using the phone or have the phone on charge and the watch too and I hear it buzz. I'll test by audio out on the way to work and let you know.
[Moto G 4G Android Development] mikel10k:
guys, on this rom and official cm12 game called Kingdom Rush is crashing after couple minutes of playing, on for example latest crdroid rom i didn't had this problem :( i really love this game, somcom's rom is amazing but mixed, ain't working at this moment :( i know this is silly issue but i'm just pointing it out :)
[Moto G 4G Android Development] ebol94:
I've been very busy lately because of the University's schedule. Anyway, this is the first time i see such battery life.

[IMG="battery"]http://i.imgur.com/ADMfSXT.jpg[/IMG]
[Moto G 4G Android Development] Ketcchup:
I want to add 2 bugs I noticed, and start making a list.

Serious Bugs

-

A little bit important bugs

- Selecting a bluetooth device in quick settings crashes systemui [MENTION=6188187]sillycat98[/MENTION]

- Bluetooth randomly connects disconnects [MENTION=6188187]sillycat98[/MENTION]

Minor bugs

- AOSP Keyboard force close often (this is mine)

- Videos sometimes are played slowly, but if you pause them or start from the begining it is fixed. (this is also mine)

- "Kingdom Rush" game crashes [MENTION=5537288]mikel10k[/MENTION]
[Moto G 4G Android Development] sillycat98:
Ok after using this today UI bug is still there but unpairing and resetting my watch seems to have fixed that. Haven't noticed video problems but I don't watch any videos but. I only watch a few YouTube video's a day. Bt audio worked fine on the way to work and home with no disconnects.
[Moto G 4G Android Development] tijuanacartel:
bug in twrp 2.3.8.0

~ # mkfs.f2fs /dev/block/mmcblk0p36 11583168

F2FS-tools: mkfs.f2fs Ver: 1.2.0 (2013-10-25)

Segmentation fault

~ # mkfs.f2fs -l data /dev/block/mmcblk0p36 11583168

F2FS-tools: mkfs.f2fs Ver: 1.2.0 (2013-10-25)

Info: Label = data

Segmentation fault

^^ i think formatting is nescessary to be able to encrypt the /data partition from Cyanogenmod, but it is not working, so I tried following the instructions from http://forum.cyanogenmod.com/topic/...lash-screen/page__hl__+encryption#entry460839 but I get a segfault as above.

can you please compile latest twrp for perigrene? :D
[Moto G 4G Android Development] Somcom3X:
Ha ha, extremely busy.

This caught my eye for what its worth.

Look at these comments: http://review.cyanogenmod.org/#/c/86683/

I've already got the new recoveries padded with 16kb of less data.
[Moto G 4G Android Development] tijuanacartel:
cool i cant wait :D
[Moto G 4G Android Development] spiritflare:
latest twrp recognizes SD card but CM 04-08 auto update fails

Thanks. On Moto G XT1040 (peregrine) the previous twrp worked but didn't recognize the external SD card. This 2.8.3.0 does, thanks SocomX!

On the last CM12 peregrine the updater failed the automatic update to 04-08. It reboots into twrp 2.8.3.0 but doesn't auto install like previous CM builds. I had to manually flash it.
[Moto G 4G Android Development] Travisholt92:
I also have had issues with auto flashing. It's kind of a hit and miss for me. (Using flashify)
[Moto G 4G Android Development] mikel10k:
is gps working ?
[Moto G 4G Android Development] Ketcchup:
yes
[Moto G 4G Android Development] Pumpino:
Thanks for providing TWRP for this model. I was surprised to find it's not officially supported.

Would you consider updating it to 2.8.6.0?

Thanks.
[Moto G 4G Android Development] mbnaeem:
I try to flash the twrp recovery using the mototool aio while the phone is on the bootloader and it appears to work unitl it says "Mismatched partition size (recovery)".

Can anyone advise on how to overcome this. Any help would be greatly appreciated.
[Moto G 4G Android Development] sirxdroid:
I think everyone gets the same message. Did you try to boot into recovery? It should work, in spite of the message.
[Moto G 4G Android Development] drakohla:
Hi, I had the same problem.

Flashed Stock 4.4.4 from the " Stock Firmware" Thread, then applied the small OTA Bugfix Update.

This has overwritten my TWRP Recovery i used before.

So I tried to flash TWRP 2.8.3.0 from Somcom3X but with no success.

Fastboot says "Success" but Phone(recovery) says "Mismatched partition size"

The Original Recovery was still installed, tried several times with several Versions!

Also fastboot

boot

recovery didnt work with TWRP, my phone just rebootet to normal mode.

Yes, my bootloader is unlocked.

What helped me:

Use this tool to root your phone: http://xdaforums.com/moto-g/4g-development/root-xt1039-cf-auto-root-peregrine-t2942406

Then install the App "Flashify" from Play Store, and install TWRP straight out from this ap (you need to copy TWRP.img to your phone first).

Finally TWRP was successfully installed.

Maybe this helps someone else.
[Moto G 4G Android Development] razlack:
Does this work with the recent lollipop OTA?
[Moto G 4G Android Development] razlack:
I of course mean the latest twrp recovery. I rooted the lollipop OTA using CF Audition and still have official recovery. I need to get a good recovery installed that is compatible with official lollipop release for Moto G 4g.

Cheers for any advise
[Moto G 4G Android Development] TheFixItMan:
Yes it works with the following notes

1- you will get a line running down the screen whilst in recovery

2- you can't flash a zip from internal storage if encrypted

3- you can't flash to data partition if encrypted
[Moto G 4G Android Development] gartzen:
So, is it safe to flash twrp 2.8.3.0 and then cm12.1, coming from stock 5.1?

I tried stock 5.1, and it's good, but can't live without some cm12.1 features!!
[Moto G 4G Android Development] TheFixItMan:
Not used cm12.1 so can't answer that

I'm on official stock 5.1
[Moto G 4G Android Development] Somcom3X:
F2fs on data was broken the last time I tried getting it running. Don't really have the resources to build them as fast as I used to anymore.

I won't be able to fix any of this without an update to the xt1045. Whenever that happens.
[Moto G 4G Android Development] TheFixItMan:
I posted the recovery & kernel for lollipop if you need it but it's from my XT1039

http://xdaforums.com/showpost.php?p=61257176&postcount=549
[Moto G 4G Android Development] gartzen:
Ok. I can confirm flashing CM12.1 after the 5.1 stock update works. And the screen flickering is gone.
[Moto G 4G Android Development] Travisholt92:
It's good to see that I'm not the only one around here using the xt1045. I'm assuming you don't have the screen bugs caused by the outdated bootloader either?

I know I've never experienced it, just a bit of flickering when the screen dims.
[Moto G 4G Android Development] martinisok:
Would be good to get an update to twrp to get rid of that annoying line.
[Moto G 4G Android Development] st3rox:
He has a 1045 model, which doesn't have lollipop officially yet. He needs the bootloader from official lollipop to fix that.
[Moto G 4G Android Development] Somcom3X:
The wait is ridiculous at this point [emoji20]. I've honestly given up on waiting. My lack of activeness on xda is a good indicator of this.

A lot of devices now have buggy radios with the 5.0.x/5.1.x update and some don't even work. A revert had to be made for it to work on devices stuck on with bootloaders under 5.0, as an attempt to minimize the damage.

Recovery work is difficult to do with ensuring no issues overall. Black screens all around with the new kernel and blobs.

It's unfortunate to have the least cared for model as my development phone.
[Moto G 4G Android Development] jdegreef:
I have this problem too on my Moto G 4G (peregrine, xt1039).

But the line disappears after a locking of the screen.
[Moto G 4G Android Development] Travisholt92:
5.1 in Retail US (xt1045, specifically my model) is starting to roll out in waves now.

So hopefully you can get your boot loader updated soon
[Moto G 4G Android Development] st3rox:
Source? Haven't heard anything
[Moto G 4G Android Development] Travisholt92:
https://forums.motorola.com/posts/edc7501cc4?page=1

The only credible source... Lol. This post has information on all first gen moto g lollipop updates

You're welcome :P
[Moto G 4G Android Development] st3rox:
Alright, cool, can't wait for the kernel source to work its way into cm12!
[Moto G 4G Android Development] Somcom3X:
Guess what I got working!

Coming soon to a mirror near you. To all of you stuck on the 4.4.4 bootloader, there is a screen flickering present. Turning the display on/off will remove the issue. To those on the 5.0 bootloader, this is significantly untested, and currently unsupported.

Edit: 2.8.7.0 build is now uploaded. Go get em!
[Moto G 4G Android Development] Pupet_Master:
I'm using the Lollipop Bootloader with the prev build.

It work fine but the screen flicker (not this new that you just post).

Is it safe to flash your new TWRP?

Sorry about such a noob question but i haven't find clear if it wont work or if it is "just" a risk
[Moto G 4G Android Development] Somcom3X:
I'm not sure as I can't test it, hopefully someone else will post results of it.
[Moto G 4G Android Development] Pupet_Master:
Thanks, i'm about to go to bed so tomorrow i'll test is as i'm sure that the old version do work (so it will be just flash the old back if the new wont work)
[Moto G 4G Android Development] cvamoose:
Just tested the new recovery on my XT1039 running the lollipop bootloader, all seems to be working. :good:

So far I've tested:

Backup of system, boot and data

Restore of system, boot and data

Wipe of System, dalvik cache, cache, data

Flashing zips (rom, gapps, supersu)

MTP mount and copy files to and from internal and external SD

So awesome work [MENTION=4802051]Somcom3X[/MENTION] :highfive:
[Moto G 4G Android Development] wurstel:
I'm on 5.0 bootloader too, and flashed the latest twrp, everything seems fine, didnt test it much tough. I will report back once i run into problems :)
[Moto G 4G Android Development] merlinolillo:
I've tested the new recovery too on lollipop bootloader. So far everything is working without any problem. Good job!
[Moto G 4G Android Development] droident:
Quick question... is using the 2.8.3.0 recovery after OTA 5.1 updated my XT1039's bootloader like.... really bad?

Since I kinda had a small brick lastnight updating Blisspop with update script enabled. I got to a 'device encryption failed' screen (odd, since I don't use that) and TWRP didn't want to mount/wipe anything so I pushed the factory images via mfastboot. Couldn't push 4.4.4's motoboot or gpt.bin because of the newer bootloader, I now have the 5.1 OTA files (so I could flash these) but I'm back on Blisspop and things are working fine so I don't want to fiddle too much.

Another oddity was screen-flickering and those TWRP scanlines when I booted into stock 4.4.4 temporarily. Even when cold-booting I think, locking the screen sorted it. Guessing TWRP and stock don't play nice? o_O

I r learning :cool:
[Moto G 4G Android Development] RLNTLSS:
I'm having the same problem with TWRP 2.8.7 I had to 2.8.3 . After encryption has failed in nightly CM 04-07 , I can not flashiar any other rom , can only return to the Stock ROM with the command prompt.

Whenever I give a flash in any rom , the following message appears on TWRP , " Patching system image unconditionally ... " and never goes out of it :(
[Moto G 4G Android Development] dog121:
Nice just flashed using flashify twrp2.8.7.0 all working no issues with bootloader 5.0 xt1039 :):)
[Moto G 4G Android Development] droident:
In that case I think it's likely been something in the CM nightly which has been carried over to the Blisspop ROM - as they use CM to compile. Could be wrong though.

Marco, try mfastboot. Get the latest OTA you can of your ROM, unzip it and push each file individually with the phone in fastboot mode. I booted up stock after that and did a factory reset but you'll probably be good to push TWRP immediately. Not sure what's going on but it's getting a little towards brick territory.

mfastboot flash partition gpt.bin

mfastboot flash motoboot motoboot.img

mfastboot flash logo logo.bin

mfastboot flash boot boot.img

mfastboot flash recovery recovery.img

mfastboot flash system system.img_sparsechunk.0

mfastboot flash system system.img_sparsechunk.1

mfastboot flash system system.img_sparsechunk.2

mfastboot flash system system.img_sparsechunk.3

mfastboot flash modem NON-HLOS.bin

mfastboot erase modemst1

mfastboot erase modemst2

mfastboot flash fsg fsg.mbn

mfastboot erase cache

mfastboot erase userdata --> THIS WILL ERASE YOUR DATA (SD CARD IS UNTOUCHED). NOT REQUIRED IF ALREADY ON STOCK

mfastboot reboot

Lemme know how it goes but don't go back to the latest nightly :|

*edit* according to;

You just need the boot.img I think.

I wonder what went wrong o_O. So many errors happened lastnight in my own horror movie which was "The Bricking" (2015). I'm hoping a large part of those errors weren't to do with partition tables and simply TWRP not being in a state where it could mount/wipe/etc. (make changes).
[Moto G 4G Android Development] martinisok:
Don't know what all you people are saying and red warning on first page. Simple question, can I use this on xt1039 stock 5.1 and get rid of the flicker?
[Moto G 4G Android Development] Travisholt92:
The issue with the flickering is that you were running 4.4.4 on the 5.1 boot loader. (The exact same issue as running 5.1 on a 4.4.4 bootloader). That is a bootloader incompatibility issue. Just flash some 5.1+ software and that issue will go away.
[Moto G 4G Android Development] mcastagnaa:
Getting a 5.1 bootloader serves some other purpose other than the avoidance of the above mentioned flickering?

If not I guess the vast majority will do without.
[Moto G 4G Android Development] martinisok:
I had stock rom 4.4 I did not have the flicker in twrp. Did the ota update to 5.1 now I have flicker in twrp.
[Moto G 4G Android Development] Travisholt92:
That's because the twrp was based on 4.4.4 bootloader. You would have better luck with the new version.
[Moto G 4G Android Development] Somcom3X:
When's the release date? ;)

My guess is there was an issue with the newer f2fs source and an older fstab flag. Essentially, it would lock off the /userdata partitions thinking it was an encryption.
[Moto G 4G Android Development] Lurker-Observer:
I have a question. Doest this new TWRP works with encryption?
[Moto G 4G Android Development] Somcom3X:
I believe the guys on the thea/titan got it working. Haven't tested it yet, but your welcome to.
[Moto G 4G Android Development] Lurker-Observer:
Thanks! I'm gonna try that now
[Moto G 4G Android Development] RLNTLSS:
I can go to the stock and to flash in Supersu , but I can not give any flash rom . When I go to stock recovery appears the robot with an exclamation point in the belly. My model is XT1039 .

What can I do to get back with the CM ?
[Moto G 4G Android Development] mieru:
Flashed new 2.8.7 over 5.1 bootloader, now i have flickering in TWRP. With version 2.8.3 i had no flickering screen.
[Moto G 4G Android Development] Lurker-Observer:
Nope, can't access to /data on encrypted phone .
[Moto G 4G Android Development] Blkdrgn415:
Has anyone had any luck reinstalling root onto their 1045 with the recent Lolipop release? The latest version of TWRP was installed successfully, but when I try to install SuperSU.zip, it says it's successful, but I check and I still have no root access.
[Moto G 4G Android Development] camdecoster:
I was able to get root with 2.8.7 on 5.1 with SuperSU. I'm using SuperSU 2.46.
[Moto G 4G Android Development] Blkdrgn415:
Weird. I resinstalled a factory 4.4 firmware which should of wiped my recovery and root. Installed Lolipop, installed the latest recovery here, and tried to flash that version onto my phone. It says it's installed it properly, but the app says there are no binaries. Maybe I did it wrong?
[Moto G 4G Android Development] nikobadboy:
on my XT1039 with lollipop 5.1 uk ota update, i can t install any custom recovery. i get this error :

"mismatched partition size" and no recovery is installed. i still have stock recovery(that droid with red triangle and no command), nothing changed.

target reported max download size of 5368 kb and sending recovery have 8258 kb.

What to do? THX
[Moto G 4G Android Development] Somcom3X:
My encryption worked fine.

There's a bootimage you need to flash that I made. Still working with selinux.

An issue I'm facing is TWRP not asking for the pin.
[Moto G 4G Android Development] russtyd:
Just done the same today on my wife's XT1039 - after install I re-ran Chainfire's AutoRoot and then booted into bootloader and "fastboot flash recovery xxx.img" (I used Somcom3x's 2.8.3) and recovery did flash (I did get a mismatched size error, but that seems normal!) - apart from TWRP seems to have screen flicker now on 5.1 bootloader (not a biggie - I did try 2.7.1.0 and that flickered too, not yet tried 2.8.7 to see if that's OK). Not sure if you re-rooted also, as don't think just pushing TWRP alone works without root?
[Moto G 4G Android Development] gartzen:
It should work. Recovery doesn't care if rom is rooted or not.

I flashed twrp 2.8.3.0 just after trying and not liking stock 5.1 rom, and had no issues.

I used mfastboot, in case you're trying it with standard fastboot.
[Moto G 4G Android Development] nikobadboy:
problem solved. i used "mfastboot boot recoverytwrp2-8-7.img" command and i installed "UPDATE-SuperSU-v2.46.zip", then i flashed again recoverytwrp2-8-7.img, and now it works. i just needed a rooted device to install a custom recovery. THX all for help.
[Moto G 4G Android Development] russtyd:
Good point, I did use mfastboot also....
[Moto G 4G Android Development] TadMSTR:
I just flashed TWRP 2.8.7.0 using fastboot on my XT1045 and it appears to work. Had the screen flicker with 2.8.3.0 so gave this a try. Left the phone stock and non-rooted as this is not my daily driver and might be selling it.
[Moto G 4G Android Development] Somcom3X:
See the original post for encryption support. New recovery has encryption support built in.
[Moto G 4G Android Development] sirxdroid:
Wow, encryption support? Awesome! I've lived without TWRP backups for so long because my Moto G is encrypted.
[Moto G 4G Android Development] CptGia:
Normal recovery (no encryption) working fine for me, bootloader v41.1A
[Moto G 4G Android Development] Lurker-Observer:
Awesome, thanks!

But I didn't understand, why the boot image? flash it after the encryption, right?
[Moto G 4G Android Development] Somcom3X:
I've updated the instructions. Apologies for the general instructions.

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

Has anyone tried encryption?