yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] naveen135:
No!!! mine is dual sim
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
For some devices there are still problems with sim not detecting... The issues are being worked on... You can try to fastboot erase modemst1 and modemst2, for some this did help... Otherwise you need to go back to stock and wait for some days unfortunately... :(
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] RBMattos:
Another problem that i got...

Moto G4 / G4 Plus CPU is 64 bits right?

But i can't install ARM64 Opengapps, can only install the ARM one
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] naveen135:
Thanks I will work it out
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] RBMattos:
My imei is detected as 0 and my device is detected as a single sim, but it's actually a dual sim [xt1626]

Tried to flash the backup modem with no success

i already sent a build.prop from stock to ashwin007

but ill put it here too just in case :P https://mega.nz/#!0UVgTC5R!qFDu4Rdxi6e6AYS44cqdY-3K-wuLQwhE2F6hPTAoxJg
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] naveen135:
Thanks in advance for work you are going to do, I am waiting for the solution to sim detection....
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
Our devices is a 32 but that's why only arm gapps work
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] koperniczx3:
No, technically the CPU is but it's not running in 64bits

You need to install the regular ARM ones
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] fix-this!:
Do you have a link to RR rom?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ashwin007:
Refrain from talking about other roms in this thread
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] T_I:
When I look at the code in this and my tree, we're both thinking in the same direction. The only issue we still have is that ro.hw.dualsim and/or ro.boot.dualsim isn't set.

I'm trying with aosp_core_telephone include to see if that gets us the code we need.

Edit: Looks like I got the detection working (at least the dual sim xt1622 is correct). Doing a clean rebuild to see if it works correctly with a clean rebuild.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Mileoun:
Some screenshot please...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] naveen135:
Okie I am eagerly waiting...

all the best for your work
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] srinu427:
For me the screen force locks and wont unlock after language selection screen. When pressed the unlock button I can hear the screen-locked sound. I installed this ROM on XT1643 Indian variant. Made a clean flash. Tried with/without flashing Gapps but I get the same bug. What am I doing wrong

EDIT: deleted cyanogenmodsetup.apk...now I can get into Launcher but on launching any one app the screen locks
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] naveen135:
As I said first the sim didn't even detected but I let the sim as it is in the phone. Now the sim is detected but not able to get coverage...... Is it normal thing??
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] anhoxhrs:
You have indian variant 3gb ram version?

---------- Post added at 12:18 PM ---------- Previous post was at 12:16 PM ----------

Its working good for me i have same xt1643,indian variant.Did you try reflashing rom?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] srinu427:
---------- Post added at 12:18 PM ---------- Previous post was at 12:16 PM ----------

Yes I tried reflashing many times [after factory reset]but I get the same bug. Will try flashing again after reflashing stock..
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] T_I:
Got it fixed, doing some last tests, will give [MENTION=5426059]ashwin007[/MENTION] a link to the patches needed.

Sent from my T810 running cm-13.0
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] MatrixGuy:
Great :D
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] anhoxhrs:
yeah today after inserting my friends sim card in the second slot,i lost the imei of both the slots.Flashed the stock again and its working. Don't know what caused this.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] naveen135:
Will this build overcome all the bugs? Or only SIM detection??
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
It will overcome no bugs because it will not be merged because it fixes nothing but would break everything.

---------- Post added at 07:35 PM ---------- Previous post was at 07:32 PM ----------

Dear [MENTION=4557146]T_I[/MENTION] can you please keep posting your stuff in your own thread, and stop confusing people here.

You help noone by spitting out a 15 commits PR that would break everything and you neither help people by confusing them with promising obscure fixes.

What you are doing is really annoying our dev team and it would be nice, if you at least sticked to your own thread.

Sorry to say that, don't wanna offend you, but that's how it is.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] cool_sid:
But u already have your own thread regarding cm don't u?

Why don't u stick to your thread maybe coz competing or not but doing this u r spreading lot of confusion......

Here's what... We try your builds.... They are buggy(barely boot)

We try builds on this thread ..... They got bugs too.

But u r posting here also.... Man either u close your thread and join the development with Ashwin

Or

Stick to your thread get a working build plz ......

N btw single rom for G4 n G4+ will widen the future development scope for both the devices.....(#ur post in your thread)

Once again.... Gr8 work devs.... N no offence.....:good:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] T_I:
No problem, I will use the build I have for my own device and refrain from any help.

This went south when all I got a very rude 'kill your thread' message after [MENTION=5426059]ashwin007[/MENTION] got a working build. (while there was development being discussed in the thread) Seems I used his code, although indirect (there were several devs working together to get something booting, [MENTION=4493088]Shreps[/MENTION] was the first, looks like he used [MENTION=5426059]ashwin007[/MENTION]'s code as a base).
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
And [MENTION=4493088]Shreps[/MENTION] is working with the dev team so it's natural he used [MENTION=5426059]ashwin007[/MENTION] base
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] optionalmgrr.la:
With all due respect, [MENTION=4557146]T_I[/MENTION], you talk so much but has so little to show for it. You had your chance, now if someone, who's more knowledgeable and capable than you, are working on it, maybe you can step aside and learn a thing or two. :D
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Please, no fights in a development thread. Competition is good, but fights via PM please, not here!

Send with my Moto G4 Plus (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] bubbeld:
i have a question if flash this rom on my Moto G4 Plus (XT1642) and i want to go back to the original rom is just restoring my backup of the original rom enough ?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
yes
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] pico hackr:
i hate when kids shout out here and kill the development ( no offense ) , help with development or be quite , this is why i never post any of my builds on xda . I always build rom for self use , thanks to every dev's here they help me out to learn a lot about custom roms . Kind request don't kill the development . Falcon community was filled with these kids during the development of cm 12 , we lost a lot of dev's because of it
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
Actually we have put weeks of work in this rom and would very much like to guide the focus back to development again. I hope we can return to develop and test in this thread.

This all is very frustrating, and hole really hope the dev team will not loose motivation over all this senseless discussions. But what shall you do if you first ignore someone kanging your sources and making an own thread, but then this guy continuously posts wrong facts here irritates people and busts all development activity.

We are working really hard on this and it is really frustrating to see it all end up this way. If I had one wish free, I'd like to close this chapter and have a good dev thread here ignoring what happens in other threads.

Just my 2 cents.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] fenix3nk0r3:
What Open Gapps i need to install arm or arm 64

Enviado desde mi Moto MAXX mediante Tapatalk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] photobix:
IMHO arm
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
arm
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Arm

Send with my Moto G4 Plus (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] fenix3nk0r3:
Tanks

Enviado desde mi Moto MAXX mediante Tapatalk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] RBMattos:
Looking foward for XT1626 IMEI support, other features working great!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] red-Tequila:
Enviado de meu Moto G (4) usando Tapatalk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] fix-this!:
Anyone try on the 1644 US model? Did you loose the IEMI?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D1AMONDH3AD:
please update this rom with fixes i can't stand this stock rom (XT1643) sim not detected i even tried IMEI faker app it showed IMEI when dailed *#06# but sim not detected i am checking this thread every hour since release thanks for your development :good: but please update to at least usable(please don't take this as insult) phone with no sim card detected is kinda not usable
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] zeeBomb:
This version of CyanogenMod has CAF support right?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] optionalmgrr.la:
Just a quick note, I presume that the CM build is 32-bit kernel just like stock. Even though the CPU (SD617) is capable of 64-bit operation, right?

There have been some long discussions about why is this, but the "answers" were not entirely satisfactory or clear, *if* you have time can you drop a note or two why is this way implemented?

THanks al ot for your work devs.

---------- Post added at 06:37 AM ---------- Previous post was at 06:33 AM ----------

Amen

[MENTION=4557146]T_I[/MENTION], please don't take this negatively, as I said, you can really learn a thing or two if you pay attention to how experienced and knowledgeable devs work. And one day you may become a mentor helping mentees as well if you keep it going (if you have time and interest first, of course)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Silesh.Nair:
I don't know if you have read this.

https://forums.lenovo.com/t5/Moto-G4-Moto-G4-Plus/Moto-G4-Plus-32bit-Processor/td-p/3337312
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] anhoxhrs:
In a nutshell, 64 bit processor lets you work with 64 bit words and address more memory, but if you only have a 32 bit data bus, it takes 2 clock cycles to move the 64 bit word - so your CPU is half as fast when manipulating data from memory.?*

?*

But from a software standpoint, developing all your OS and apps on one platform (64 bit vs. 32 bit) is easier and you can hope that consumers don't notice that data transfer takes 2x as long.?*

?*

This is a Motorola forum though. All we can do is speculate why HTC did what they did. My guess is that it was just easier to standardize dev tools on 64 bit OS. Also, tech nerds can say "I have a 64 bit OS". ?*Maybe a component driver only came in 64 bit because it was new.?*

?*

Finally, the A9 is a $400 phone vs. a midrange phone at about $200 - it could be they did it just because. ?*

?*

The point is, they could have done it for any number of reasons.?*

Credits-Alphadog,motorola forums.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
Well the thing that causes the confusion is, that the processor in our device is capable of 64bit, but motorola decided to run in in 32bit mode. For whatever reasons.

So all the binary blobs we have from motorola are compiled against 32bit arch, and therefore we just need to have a 32bit CM.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tasar:
Come on guys not another endless 32/64 bit discussion ,please!

Gesendet von meinem Moto G (4) mit Tapatalk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D1AMONDH3AD:
can someone please work on sim detection please we can worry about 64 bit later we need a usable custom rom first so that cyanogenmod makes this official and we can get regular updates then we can worry about 64 bit
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
You can be sure that people are working on this, but it is not that easy... Sim detection works for some, for some it does not work, and it is just hard to find the reason why it only works for some... Be patient, we are doing this in our spare time...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
Also demanding something is rude the dev team has a life outside of building custom Roms so be patient everything will get fixed in good time not on your time schedule because you demand it.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ZUMMEY:
date for update? Thanks!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] tasar:
Date to learn for correct quote?? Cant believe it...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D1AMONDH3AD:
i didn't demand it i requested i said "please" looks like your are the only one who got offended anyway if u feel offended i'm sorry but there are so many ppl here asking useless question rather than asking for solution like "32bit/64/bit" like seriously? first let's have perfect working rom then we can worry about 32bit/64bit i just got irritated by all these useless replies anyway i'm sorry if anyone got offended
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Guys, whatever you call it: asking, requesting, demanding, saying please: it's all NOT DONE here on XDA. Don't ask for ETA's in any form! Period!!

Send with my Moto G4 Plus (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] fix-this!:
i think he meant work on the RIL and sim issues so it can be picked up as a nightly. then the rest will be sorted out. some of you on here get worked up over nothing.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] HB72K:
http://pastebin.com/1b7q0g0U

any idea?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
You run out of memory... How much ram do you have?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] HB72K:
quad core

ram 4GB

I've always compiled with my latop ;)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] elandroido:
cm needs more and more memory with time passing... ^^ 4G is a little bit low... So you would need to modify JVM params in order to continue...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] HB72K:
tnx :good: :fingers-crossed:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] LeifEricson:
The Motorola stock ROM is some of the cleanest among stock ROMs I have ever seen. I for one am perfectly capable of using it until a usable CM build comes out. If you're so eager to have it suddenly work then how about you try to contribute and help solve the problem? Otherwise just sit back and relax-- everything will be worked out, eventually.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] fix-this!:
So is xt1644 single sim supported?

---------- Post added at 12:37 PM ---------- Previous post was at 12:35 PM ----------

He probably gets bored as I do with nothing to flash or mod. Besides he didnt say anything rude or wrong.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] T_I:
I've used [MENTION=4493088]Shreps[/MENTION] his sources to get further as I know I'm not good enough to build from scratch. (messing around with teh twrp kernel to start with proved that) I needed a first start with the Tab S2 as well, but I got some things fixed that even [MENTION=5426059]ashwin007[/MENTION] didn't fix. (yet). Also I've started working (and again, I know, trial and error, mostly error until now) on single sim support for the G4, which wasn't working as well and yeah, I uploaded not working roms, but at least I get something out to get tested by people who want to test, instead of hugging the code and only release 1 rom until yesterday. (haven't checked today)

What you mean by kanging code, I haven't got a clue. The sources are open and on github, source was mentioned ( [MENTION=4493088]Shreps[/MENTION] ) and I forked his code. Worst I could have done was not cloning correctly. I used the same method of getting my build running as I did with the Tab S2 core developer and instead of bullying, he helped. (And yeah, for that device I'm now even working on devices that I don't have, as it's there the same as here, nobody else will)

I was asked to keep out of this project or even this thread, which I did. Don't think I got the same peace in my thread, that was scuttled by the mod. I get requests from people to be able test what I try to get working, so there must be something I'm doing right, even if it's 'just' giving the people a few minor improvements or something to test.

For the moment, I'm not inclined to work on this device anymore. I'll build for myself, as the tree I have now has all codecs supported and the device is less overheating, and that's it. When you want to use solutions of me in your code, have fun, it's open and I at least won't mind, as re-using and improving code is what's open source is all about. (yeah, I want to have an nightly build, so use what you can/need to get the build working correctly)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] DJTeeJay:
I've been asking for a while in regards to XT1644 and no response so I don't think anyone tested
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D1AMONDH3AD:
alright let me tell u why CM is better even if motorola's rom is the cleanest

1)it has inbuilt ROOT access and advanced reboot settings(yeah i know we can do this in stock rom too u have to flash zip for root and install gravitybox from xposed to enable advanced reboot options and i like to have have my phone clean rather than installing all this)

2)CM comes with inbuilt themer while we have to install layers in stock rom and busybox to support it even then some themes are buggy

3)CM comes with great equalizer and best music app (yeah again i know i can flash eleven music app zip and just get the app and use it then again i will have play music app in stock rom and yes i can remove it with root but from past experience i won't do that i got playservices error non stop when i did that in past i don't need play movies i don't need moto help app and moto display app is baked into settings in CM which is TBH where it should be)

4)for CM i can just install basic apps (pico) no unnecessary google apps running in background but with moto they come as system apps and i don't need them and again yes i can uninstall them with root but if smtng goes wrong it will keep showing playservices has stopped error

5)CM comes with basic apps like gallery where as moto stock rom comes with google photo which again i don't need i need simple gallery app which shows photos yeah i can install one from playstore but i like it if they give it inbuilt i mean yeah stock rom is clean but not as clean as CM and CM offers basic functionality like reboot (yeah i need this cuz i like to test xposed mods for that i have to reboot everytime i install a module yeah i know i can get "reboot" option from gravitybox but i don't want another app in my phone just for dat functionality ) and after installing all these modules in stock rom everytime i reboot it's saying starting apps and taking too much time to boot because of so many apps for these little tweaks in case of CM this won't be there i can go on saying about monthly updates and android N update which i'm sure moto won't release anytime soon

and as for solving this myself and building my own rom i have zero knowledge i'm learning from xda i saw a thread about how to build your own rom but i'm busy with my project work in college (not that you are free but you know u guys already know this stuff it's easy for you to fix i have to learn to do it now so i'm requesting again if anyone feel offended i'm sorry)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] LeifEricson:
I'm not trying to argue with you, all I'm saying is chill out, it'll come soon enough.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] cool_sid:
Patience is the key my friend...... The OP has unofficial build..... U can try it and see if u can fix the bugs or maybe if u r lucky then maybe the build works for u....

Rest assured buddy...... Everyone, even the devs are equally eager to have a universally working build for all Moto G4/G4 Plus models.....

N a little more humility will be surly motivating..... Right m8 ?:cool:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] magdeoz:
getprop model dual sim xt1621 View attachment xt1621_getprop.zip
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D1AMONDH3AD:
i checked your android file host i see u updated rom yesterday so can u let me know what u fixed and what's not working i am ok to test ur roms as long as they don't hard brick my device and if i find any bugs i can report them to you i have nandroid backup so i don't need to worry about my data if u need any files like build prop or smtng let me know i can get them from my phone for u please fix the sim issue if u can
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ashwin007:
Thanks !! :) BTW , we have fixed RIL issues and display blackout issues on all variants :) Builds coming soon :P
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] anhoxhrs:
Good job bro keep it up!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] D1AMONDH3AD:
thanks!! BTW i found a way to get the sim to work by erasing modemst1 and modemst2 and after reboot it didn't recognize my sim but i detected sim slot so i used imei changer from xposed then i got signal but only one sim working but good to hear from you finally please upload it as fast as possible i'm excited :D:D:fingers-crossed::good:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
I finally got the courage to install this rom on my XT1642. And to my great surprise: everything seems to work just fine. Just using it for an hour now, but so far no issues! Also RIL working fine for me! Thanks a lot guys! The rom is already usable! Not bad for a first bèta!

Send with my Moto G4 Plus (XT1642) using Tapatalk!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] LeChuckye:
Reported dual sim detection still not working on XT1640 Moto G4 Plus dual sim model...
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
We are working to completely fix ril and some other issues now just a little bit of work to iron them all out if you could grab a logcat that would be really helpful
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] LeChuckye:
I am no programmer, but if pass me a tutto, consider it done. :good:
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
xdaforums.com/showthread.php?t=1726238 here is a link to a logcat tutorial here on xda you'll gave to copy and paste it into your browser
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
If I say it, it's a real link ;)

xdaforums.com/showthread.php?t=1726238
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
Thanks I'm on mobile and for some reason of didn't lonk
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] LeChuckye:
if i use adb logcat, i must reboot device to get the entire init log?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] khaoticking:
Or you could run adb logcat <log.text

A copy of your getprop would be useful as well
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ryacurbak0617:
So excited!