yashsingh1/xdaforums huggingface dataset:
[E 2015 Original Android Development] crazynapkinman:
deleted...
[E 2015 Original Android Development] crazynapkinman:
i followed ur guide exactly. here is the dmesg log: View attachment dmesg.log

here is logcat: View attachment myfile.log

and here is radio: View attachment myfile.zip
[E 2015 Original Android Development] bemymonkey:
Hey guys, what's the easiest way to get root on this ROM? Install SU and that's it?
[E 2015 Original Android Development] crazynapkinman:
Su built in.
[E 2015 Original Android Development] bemymonkey:
Oh? There's no SU prompt when I try to get root from ADB Shell and there's not SU app... is that normal?

My ADB looks like this:

Is that correct?
[E 2015 Original Android Development] crazynapkinman:
Yes but you need to turn it on in developer options.
[E 2015 Original Android Development] bemymonkey:
Ooooooh right, thank you!
[E 2015 Original Android Development] bemymonkey:
Hey Scritch, any chance you could give me a pointer or two for customizing the kernel?

Do I have to do anything special to get the kernel to compile properly? I've cloned the kernel github and then used adb pull /proc/config.gz to get the config. Extracted to .config, added some lines

CONFIG_MODULES=y
CONFIG_MODULES_UNLOAD=y
CONFIG_MODULES_FORCE_UNLOAD=y

then used make:

# configuration written to .config
#
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
/home/simon/MotoE/kernelsource/arch/arm/boot/dts/Makefile:228: warning: overriding commands for target `dtbs'
/home/simon/MotoE/kernelsource/arch/arm/boot/dts/Makefile:228: warning: ignoring old commands for target `dtbs'
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Nothing to be done for `dtbs'.
Building modules, stage 2.
MODPOST 19 modules

However, when I try to boot the MotoE with fastboot boot zImage, it hangs on the Motorola logo.

Any idea what I could be doing wrong? Do I need to somehow include the Motorola blobs in the kernel?

Am I right in assuming that the version of the kernel included with the ROM does not allow loading of kernel modules with insmod?
[E 2015 Original Android Development] squid2:
[MENTION=569657]bemymonkey[/MENTION]

You can't boot a zImage alone. The boot.img contains the zImage, an initial ram disk, and a device tree. Motorola has a little piece of magic in their boot loader to pull a suitable device tree from the currently installed boot image when using fastboot boot, but you still need a ramdisk. To create a flashable boot image, you need to include a suitable device tree image. The zImage, ramdisk, and device tree image need to be combined in a particular format with the correct header to produce a boot.img that boots. You can look at my kernel sources if you want to see a standalone build system. Alternatively, you can build scritch's kernel in a full CyanogenMod tree using the normal build system.

As for kernel modules, scritch's kernel should allow them. The pronto WLAN and FM radio drivers are kernel modules. It just won't let you load kernel modules whose associated full kernel version string does not match the running kernel.
[E 2015 Original Android Development] bemymonkey:
Great info, thank you!

All I'm actually trying to do is compile and load a LiME kernel module (https://github.com/504ensicsLabs/LiME/tree/master/doc)... do you know where in the build process I can match the kernel module's kernel version string to Scritch's kernel?

There doesn't seem to be anything relevant in the Makefile... KVER sounds like it could be a hit, but that seems to be used in a local path, so refers to the local Linux build (which would be my Ubuntu 64).

obj-m := lime.o
lime-objs := tcp.o disk.o main.o

KVER ?= $(shell uname -r)
KDIR_KERNEL := /home/simon/MotoE/kernelsource
CCPATH := /home/simon/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin
PWD := $(shell pwd)

.PHONY: modules modules_install clean distclen help

default:
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-linux-androideabi- -C $(KDIR_KERNEL) EXTRA_CFLAGS=-fno-pic M=$(PWD) modules
#$(MAKE) tidy

debug:
KCFLAGS="-DLIME_DEBUG" $(MAKE) -C /lib/modules/$(KVER)/build M=$(PWD) modules
strip --strip-unneeded lime.ko
mv lime.ko lime-$(KVER).ko

modules:	main.c disk.c tcp.c lime.h
$(MAKE) -C /lib/modules/$(KVER)/build M=$(PWD) $@
strip --strip-unneeded lime.ko

modules_install:	modules
$(MAKE) -C /lib/modules/$(KVER)/build M=$(PWD) $@

clean:
rm -f *.o *.mod.c Module.symvers Module.markers modules.order \.*.o.cmd \.*.ko.cmd \.*.o.d
rm -rf \.tmp_versions

distclean: mrproper
mrproper:	clean
rm -f *.ko
[E 2015 Original Android Development] crazynapkinman:
[MENTION=3445372]scritch007[/MENTION] what are the changes to latest build?

---------- Post added at 04:14 PM ---------- Previous post was at 03:33 PM ----------

No LTE working on latest build. Anyone know what the change log consists of?
[E 2015 Original Android Development] NSDCars5:
Just tried build 0512 on my XT1521.

Everything's fine, except it says both my SIM slots are empty (one has a SIM and it isn't detected even if I set it to 2G in Settings > Mobile networks), and DHCP is iffy (sometimes it connects, sometimes it doesn't).

Attached are logcat, dmesg, last_kmsg, and radio logcat (I found this on the internet and figured if my radios aren't working well this should help). The command I used for the radio logcat:

adb logcat -b radio -v time -d > logcat_radio.log

(from http://xdaforums.com/showthread.php?t=2185929)

Going back to stock for now.
[E 2015 Original Android Development] scritch007:
Version 0512

cm-12.1-20150512-UNOFFICIAL-surnia.zip

Updated wifi firmware and kernel drivers

Removed system.prop things

Added some configuration for CDMA

Does this means that you had 3G SMS and VOICE calls are working but you tested enabling LTE in the phone settings and it's still not working, you also tried changing stuff in the *#*#4636#*#*??
[E 2015 Original Android Development] crazynapkinman:
Yes. I changed settings in CM as well as phone info. No LTE yet.
[E 2015 Original Android Development] crazynapkinman:
Here are the best settings o could get. Meaning the closest I could get to LTE and it turns off after a bit. Stuck on 3g with those settings. Signal drops Every now and then as well.
[E 2015 Original Android Development] crazynapkinman:
To clarify those settings only work for 3g temporarily then disconnect. It reverts back to CDMA auto prl/3g preferred network.

Those settings are most stable.
[E 2015 Original Android Development] mewmix:
Do you have your frequency band on PCS by chance? Also what setting do you have for your CDMA subscription in mobile network settings?
[E 2015 Original Android Development] crazynapkinman:
How do I check frequency band? I had lte for seems but it only connects to 3g
[E 2015 Original Android Development] mewmix:
In the phone info (or test menu *#*#4636*#*# ) check the upper right hand 3 circles/settings option and select the first option "Select Radio Band" make sure its on pcs, i had this issue everytime i'd go to stock i'd forget to select that setting. Also if you use home rather than auto in the mobile network settings --- system select\ menu you should be able to stop it from changing PRL on ya. at least i've managed to cut it down a lot on my end. Back on stock here though, going to CM when I have solid time to take logs every step from the builds.
[E 2015 Original Android Development] crazynapkinman:
It is on pcs.
[E 2015 Original Android Development] crazynapkinman:
I have gone back to stock. Will test new build as they arrive for LTE and other new features. Go devs!
[E 2015 Original Android Development] dulce.ai.angel:
Alright. My report on XT1527 so far is, everything is going well, DHCP seems to be working now. It looks like it could be used as a daily driver now. However, I've had a problem with all roms (even the "stock" one that my carrier installed on the phone) and it's that it heats very quickly (when I don't use it, it's 95°F and when I start using it, it's 104°F). I could solve the problem installing a different "stock" firmware (not the one that my phone had originally) and I thought this rom would go well now, because my phone had a different "stock" rom this time but once I flashed the latest rom, it started to heat so quickly again, like back then.

I think it might have to do with LTE drivers, since I see several people stating that LTE is the only thing that is not working properly. Sadly, I can't check it myself because my country doesn't have LTE yet. :( I just invite the developer to find out what could be the problem.

Thanks in advance ^^
[E 2015 Original Android Development] jahrule:
Bootloop

Running latest 5/12 build. Everything that i have tested works. LTE, GPS, etc. Only issue I see is that the phone went into a bootloop for 1-3minutes of me tunring it off and back on and waiting. It came up once then it randomly rebooted and once again went into a bootloop. I turned the phone off and after awhile of letting it sit it booted back on fine.
[E 2015 Original Android Development] crazynapkinman:
Is your LTE on CDMA or gsm? Is it gen 1 moto e or gen 2?
[E 2015 Original Android Development] jahrule:
Gsm xt1527 2nd gen
[E 2015 Original Android Development] scritch007:
cm-12.1-20150518-UNOFFICIAL-surnia.zip

Add support of the xt1514

Start second daemon for dual sim devices

Modified APN configuration for CDMA to 310120 like most phones outthere

Restore the ro.telephony.default_cdma_sub=0 value

Add some eri.xml extracted from stock rom

[MENTION=535343]all[/MENTION] when you provided the logcat -b radio please start the login before booting your device, a lot of stuff appends at the beginning and I don't have those information.

For dual sim users can you test and send me logcat if it doesn't work.

For cdma users you tell me if it is better now.
[E 2015 Original Android Development] jahrule:
Wow. With new build getting random reboots and boot loops within 10-20mins. I think I know what is causing it. The phone becomes like for hot and for the reboot then. No idea what is making it do that. I downloaded trickster to turn down the CPU freq see if that helps.

Keep up the good work!
[E 2015 Original Android Development] scritch007:
Thanks for feedback., but remember to add some more information. Like your phone version for instance. Did you wipe cache/system and so on or did you just flash like an update?

This is strange I didn't change much, and I didn't get any issue.
[E 2015 Original Android Development] matteo 06:
same here.any issue
[E 2015 Original Android Development] jahrule:
I am on the xt1547 LTE gsm model.

Wipe data, system, dalvik, cache

Install (with and without gapps)

Reboot

Wait on welcome screen (not touching anything)

Random reboot

Reboot loop

Did that a few times
[E 2015 Original Android Development] crazynapkinman:
Tested latest build. All mobile data is broken. No 3G or LTE. However the radio seems close to working. Had LTE upon flashing back to stock. Had to uninstall sensor services to get rid of persistent notification.

Tried many different setting and never got data.

Close though I swear!

CDMA xt1526
[E 2015 Original Android Development] scritch007:
Glad you found the changelog ;).

Does the call and sms work?

Does it work when coming from stock or only when coming from 4.25?

[MENTION=438294]cdma[/MENTION] users, from now on when sending logcat for radio issues, please do this from the boot of the rom. A lot happens at the beginning, and I don't have those information.

In order to do that (on linux I hope it's the same for windows).

Turn off your phone with USB not plugged in

run the adb commands in different shell and redirect them to some files

adb logcat -v time
adb logcat -v time -b radio

you will have a message saying that adb is waiting for device to come up.

Power on your phone and plug in USB cable. Once adbd is available on the device it will start loging in the files.

I'm gonna need it from the stock rom and from latest cm.
[E 2015 Original Android Development] crazynapkinman:
Will do this tonight

[MENTION=3445372]scritch007[/MENTION] What do you mean "redirect to some files"? How do I do that?
[E 2015 Original Android Development] crazynapkinman:
[MENTION=3445372]scritch007[/MENTION]

I think I did this correctly. I ran your code and then exported the radio file and logcat file. Hopefully it has what you need. I used "adb logcat -d > logcat.txt" and "adb radio -d > myfile.radio"

Let me know if these are incorrect and not what you need.

View attachment Stock_Radio_Logcat.zip
[E 2015 Original Android Development] crazynapkinman:
[MENTION=3445372]scritch007[/MENTION] Here are the boot logs from CM12.1 Build 5.18.2015

Hope this helps you.

View attachment CM12_1_Build_5_18.zip
[E 2015 Original Android Development] crazynapkinman:
Also phone and SMS worked fine on latest build. Just no data. Coming from stock.
[E 2015 Original Android Development] CoryBlaze:
Data and MMS can be fixed.

I added the Boost Mobile apn settings manually and have both on the new build.
[E 2015 Original Android Development] scritch007:
Do you get 4G or still in 3G only?

Could you explain how you change the APN so that others can try this.

Thanks
[E 2015 Original Android Development] crazynapkinman:
Please explain how to do this.
[E 2015 Original Android Development] scritch007:
[MENTION=5906430]crazynapkinman[/MENTION]

Thanks for the logs. For the official one, I don't know why but I don't seem to get the boot sequence, neither on the logcat nor on the radio logcat.

On the CM one, I you posted twice the logcat but no radio output even if file is named myfile.radio.
[E 2015 Original Android Development] scritch007:
cm-12.1-20150523-UNOFFICIAL-surnia.zip

cm-12.1-20150523-UNOFFICIAL-surnia.zip

Update wifi drivers which used to create some reboots when unloading driver.
[E 2015 Original Android Development] crazynapkinman:
I really want to flash latest build but I don't know how to change APN settings.
[E 2015 Original Android Development] CoryBlaze:
This will only give you 3G on the Boost Mobile version. No Lte.

I used this Apk https://play.google.com/store/apps/details?id=it.appando.app.changeApn&hl=en. You can google the Boost APNs and add it to the list, :);)
[E 2015 Original Android Development] crazynapkinman:
I have tried saving it but it won't work... How do you get it to save your new APN?

---------- Post added at 08:44 PM ---------- Previous post was at 08:39 PM ----------

Okay. Got it to save but is this a setting for message and call? Or for data connection? Because changing the APN did not give me 3g or LTE
[E 2015 Original Android Development] CoryBlaze:
I also flashed the new build over the 4.25 build.
[E 2015 Original Android Development] crazynapkinman:
Oh. I tried this method coming from stock. It did not work.
[E 2015 Original Android Development] CoryBlaze:
You must flash the 4.25, then let it get a signal. Then you clear cache and dalvik only, Boom! Then flash new build, adjust apns, then it's all good.
[E 2015 Original Android Development] crazynapkinman:
I will try this

---------- Post added at 09:35 AM ---------- Previous post was at 08:51 AM ----------

Changing APN only gave me 3g on latest build. I have tried changing settings in phone settings and preferred network type. [MENTION=2406840]CoryBlaze[/MENTION] what phone settings do you have? Are you getting LTE?

---------- Post added at 09:59 AM ---------- Previous post was at 09:35 AM ----------

Also [MENTION=3445372]scritch007[/MENTION] the WiFi works perfectly now. DHCP is working flawlessly. Great work! I'm going to run this build for a while and see what issues there are besides the known bugs such as LED, Data, Themes.
[E 2015 Original Android Development] CoryBlaze:
I have the lte/cdma auto set. I also have network setting on Lte. No Lte, though. If I knew how to extract the stock radio from the stock rom and flash it to this, it might grant us LTE. Initially I could not send pictures in mms or get any 3g signal, after adjusting the apn I got them.
[E 2015 Original Android Development] crazynapkinman:
Thanks for clarification. I too got 3g and MMS after adding APN. Apparently it was not included. Really wish lte could get worked out....
[E 2015 Original Android Development] PoseidonKing:
FM radio doesn't work on my cyanogenmod 12.1 on my moto e

I mean...I can't start the fm radio . The power button is not working...Help me please :rolleyes:
[E 2015 Original Android Development] luca020400:
[MENTION=3445372]scritch007[/MENTION] :

DHCP fix

https://github.com/CyanogenMod/andr...mmit/f94b4933306ba97cf7e896dd15ebc969007f950c

https://github.com/CyanogenMod/andr...mmit/9cbeaa0b1c578486586fd71a97033185e66443a2

Motorola Prima Driver need these two patches for get dhcp fully working
[E 2015 Original Android Development] scritch007:
Thanks. I'll wait for user feedback, it seems that updating to lastest 3.0.X.X from qcom fixed it. If it didn't I'll try those patches.
[E 2015 Original Android Development] squid2:
The latest qualcomm release that you used would not have the Motorola patches that broke DHCP for some people, so it makes sense that the QC drivers fix the issue. I don't think luca020400's suggested reverts would be necessary with the driver you are now using since the commits they revert are not in your new qcom driver.
[E 2015 Original Android Development] crazynapkinman:
[MENTION=3445372]scritch007[/MENTION] Whatever you did on dhcp has fixed my problem of needing static IP on latest build.

Xt1526, Boost Mobile CDMA.

Now if we could figure out that darn LTE...
[E 2015 Original Android Development] crazynapkinman:
What could it possibly be that is stopping lte from working? Could it be the inclusion of the 3g variant in the build? Do you think we need an lte build without the 3g variant info? Just guessing.
[E 2015 Original Android Development] NSDCars5:
Just tried the latest build on XT1521 (dual SIM).

GSM works on one SIM! Don't have another SIM or cellular data, so can't check those, but texting and calling definitely seem to work. :D Also, DHCP seems to be fixed, WiFi connects and remains stable now.

EDIT: Actually, no. DHCP is still iffy. :\ Connected via static IP for now.
[E 2015 Original Android Development] luca020400:
simply they forgot to turn lte :p

I created a pull request with the fix ;)
[E 2015 Original Android Development] seromba:
Delete
[E 2015 Original Android Development] crazynapkinman:
What dies that mean, "pull request"?
[E 2015 Original Android Development] luca020400:
https://help.github.com/articles/using-pull-requests/
[E 2015 Original Android Development] crazynapkinman:
Ah thank you. Well hopefully that will make it into next build and we'll see that LTE symbol at the top!

Great work on WiFi and progress devs!!
[E 2015 Original Android Development] JuanAG:
I have done it twice and i still get boot loop after the reboot from twrp, any suggestions?

I did once following the install method of the forum and other with

[YOUTUBE]ix7rrKS4keI[/YOUTUBE]

And neither works
[E 2015 Original Android Development] crazynapkinman:
You need to wipe system, data, cache, dalvik cache. Then flash ROM. Boot. Make sure it works then reboot into recover and flash gapps.
[E 2015 Original Android Development] scritch007:
This is why the next step says 3. You should also wipe system.
[E 2015 Original Android Development] crazynapkinman:
Sorry [MENTION=3445372]scritch007[/MENTION] I just needed to read a little further lol!

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] diogobuique:
Hello devs, do you know if is possible use that 'LED' to notifications??? I know that 'Ambient Display' is a function used to replace this, but I prefer to see the Led...
[E 2015 Original Android Development] dryhte:
I don't think there is a LED...
[E 2015 Original Android Development] crazynapkinman:
There is LED. Only works on charging ATM.

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] cheffy11:
[MENTION=3445372]scritch007[/MENTION] Great ROM only if I install any build after 25/04 I can't connect to WiFi???

Happens on pacman ROM also.
[E 2015 Original Android Development] xukashi:
Wifi works fine here (DHCP). The only strange is the speed. With my Notebook and Motorola Defy i have 21000kb/s, with the moto e 4000kb/s
[E 2015 Original Android Development] crazynapkinman:
[MENTION=3445372]scritch007[/MENTION] I tried to install latest build and I am getting an error right away. Says "update binary something" isn't right. Is that my version of twrp? I changed to the updated version that was posted recently that has encryption. (qseecom support)

Or is that something with the build? Anyone else having problems flashing latest build?

Edit: It says "Error executing updater binary in zip"

Edit: I'm using xt1526 CDMA lte

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] crazynapkinman:
Also tried re downloading the file. Didn't work...

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] scritch007:
Di d you put the md5 file next to your .zip file? Twrp will check that the downloaded file was corrupted by comparing the md5.

I didn't try the build yet, I'm using the AOSP rom for now, but I'll give it a try today. THere are no big changes.

GPS rebuilt from sources and updated value for the CDMA default network, and reverted some stuff it's more like the 4.25 version of the init_surnia.c
[E 2015 Original Android Development] JuanAG:
And i do it, the four using advanced wipe but it continues falling

Today i tried to install it from the internal storage but happens the same, boot loop
[E 2015 Original Android Development] crazynapkinman:
Md5 was successful. It matched but still got the error

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] scritch007:
I just installed the build, no problem for me, but I'm using older twrp.
[E 2015 Original Android Development] crazynapkinman:
Do you think this will be a recurring issue having installed a newer twrp?

Should I revert back to non encryption version?

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] therealprof:
Is there a changelog for cm-12.1-20150529-UNOFFICIAL-surnia.zip
[E 2015 Original Android Development] crazynapkinman:
Post 274

Sent from my Moto E 2015 LTE

---------- Post added at 01:49 PM ---------- Previous post was at 01:22 PM ----------

Flashed latest. No lte. But 3g works with lte preferred... However it dross out every now and then... Solid when 3g preferred

Sent from my Moto E 2015 LTE
[E 2015 Original Android Development] JuanAG:
Finally i can install it, today i tried the 25 instead of the 22 and it install good

Wifi is "working" for moments, it doesnt perform good, it is slow and i have cuts for every minute, so i dont have wifi because it is not usable
[E 2015 Original Android Development] matteo 06:
hi

how to get adb interface with win 8.1 ?

in the device manager when i connect my phone it does not detect despite mot.device.men. installed
[E 2015 Original Android Development] seromba:
anyone else not able to use headphones? not even the "launch music app" setting works. it seems like the phone doesn't recognize anything being connected.
[E 2015 Original Android Development] dulce.ai.angel:
Me. Not exactly on cm 12 but I'm facing the same issue in two Roms which are based on this one. So I guess this rom is the cause.