yashsingh1/xdaforums huggingface dataset:
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Conkerts:
Testing RR-N-v5.8.4-20170806-griffin-Unofficial.zip since 8.8. ("vanialla" / no custom kernel).

Bluetooth is working atm. That's nice, though I haven't noticed any BT specific commits in the changelog ...

Anyway, I hope it stays like that :)

Have some feeling that the battery drains faster and device gets hotter even just while reading a page in firefox (also causes more throttling). Kernel Adiutor shows about 33% uptime for the big cores, and 66% little. (I remember is was almost 1-2% for the big core in the last roms). I'll investigate this further, maybe it was just some stupid script in background ...

Slowly, I'm coming to the conclusion, that this is indeed the best way to handle the problems. (Yes, it's more complicated than I thought :P)

Flashing rom & testing (or crashing :P) the moto cam lead to some boot freezes again (always after the input of decryption pattern). That's getting quite annoying. And there isn't any logcat / last_kmesg if this happens -.-

Any idea how to trace this bug ? (I know we talked here somewhere about this, but I can't find it).

Yeah, I don't like the google cam either, but at least it works / has basic functionality :P

Read the posts around this one, that's our current state ...

Yeah, [MENTION=8232400]TobiPeter[/MENTION] and I have this error message as well. Doesn't matter which resolution you try, it always crashes with video. (Maybe the error message differs because of that - I saw them both as well) Seems some of the codecs is missing, I can extract that part from the logs if you want to.

Open Camera can record 1080p60 without problems btw ;)
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] andersonjacson:
Hi.

I have no media in rigtones, alarm, messages, etc.

Clean install.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Loader009:
About my problem with an USB DAC not being recognized, I think I found a workaround but I cannot explain it.

It worked already three times and I am confident it will continue to work.

While Pokemon Go is starting (important is that safetynet passes) I try to connect the DAC and it works after a few tries.

If some of you think you can explain it, please do so.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] badaas:
Pokémon go probably has embedded driver
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Loader009:
It does work global not only in pokemon go.

I think it does not make sense to use embedded driver for sound. Either OpenAL is implemented (for newer android) or java-based sounds. Otherwise they would need to embed sound driver for all devices and would need root access to load any module. This is a security risk.

I think it has to do with safetynet, it might trigger something or make some load on the cpu so the usb controller works right for the moment.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
great work :fingers-crossed:

first about the logs, they are TWRP logs not android system

yes i can confirm bootloops after camera error and playing with moto cam, but i found fix :

you can fix this kind of bootloops by removing /data/misc folder with TWRP file manager

and freezing boot animation bug can be fixed by removing /system/bin/mods_camd and clear cache

if you want to take logs from "camera error" you need to connect to PC and start "adb logcat" then play with moto cam to see error

now the log is ready on your PC, send it here for me(full log please)

thanks ;)
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Loader009:
I used (on linux)

adb logcat -d > logcat.log

and

adb shell dmesg > dmesg.log

for my logs. (The next time I will use dmesg -T)

It then saves the logs into the files.

This might work with Windows 10 powershell and linux stuff installed with the system settings.

Just as a note.

Maybe I should also add another verbosity level on logcat?

For problems like mine with USB DAC.

For your camera test you should consider also test this:

Google Camera with HDR+ Ported to Snapdragon 820/821 and 835 Devices

https://www.xda-developers.com/google-camera-hdr-ported/

You need to use the download link for the modded version.

But thanks for your test! I have never looked at the image quality (because I seldom take photos).
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Conkerts:
Thank you both for the helpful tips with the logging.

Yeah, I don't use it every day, but I like to know how to produce the best possible results, if needed ^^

(To be honest, I think the iphone cams produce really good results in general. They don't have that many settings, but especially the focus is awesome there). I always had problems with my SGS2 and Sony Z3 cams because of slow focus. I think the moto cam app works now almost on the same level considering focus speed but not necessarily quality.

Thank you for the hint, this sounds interesting, I'll try the modded version in the next test.

Currently waiting for better weather to test it outside.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Conkerts:
Nice, RR-N-v5.8.4-20170813-griffin-Unofficial.zip is out.

Installed it today. No problems so far.

Thx :)

Also updated the cam app test ...
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
I'm Trying to keep weekly updates online ;)
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] yassine78:
[MENTION=6298645]erfanoabdi[/MENTION] you are doing a great work :good:
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
[MENTION=6298645]erfanoabdi[/MENTION] the new build flashed just fine. I forgot to flash the MotoCam.zip but after flashing it the Hasselblad Camera Mod working fine.

By the way could you add the MotoCam to the ROM?
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
Tnx for testing.

Sorry to say no

It's moto app and 50% of features are not usable in custom ROMs and very unstable

I think it's better to keep it on flashable ZIP for only interested users
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Shani Ace:
I just installed this ROM and was surprised to find out that it changed my Wifi MAC adress. Why?!
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] tasar:
I have this a long time ago with CM rom and ask this also here in other thread but no one can give me an explanation.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] asmoroth:
Flashed new build over 5.8.3 version and interface force closed. Should I just flash or do something more?

Wysłane z mojego XT1650-03 przy użyciu Tapatalka
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Shani Ace:
Well it's very unsettling, a static hardware ID like the MAC adress should never be altered software-wise unless specifically requested by the user.

A lot of harm could be done this way, so it's quite dubious...

[MENTION=6298645]erfanoabdi[/MENTION] Dadash please explain yourself. :]
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
i got you :cowboy:

your mac address is 00:03:7f:50:00:01 ?

please try to update your modem partition. see this OP : https://xdaforums.com/moto-z/development/rom-erfanrom-flashable-zip-t3646962
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
[MENTION=6298645]erfanoabdi[/MENTION] I just noticed that my phone is never on 4g/LTE. Any suggestions for me? I noticed that some others on this thread have similar situations
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
Mods Porting Article added on post #2

was that ok in older builds?

some users reported they can't switch to 3G mode
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
I'm not sure. I flashed stock 7.0 ROM and I have LTE back. Since I use wifi a lot it only came to my attention today.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Loader009:
[MENTION=6298645]erfanoabdi[/MENTION], does the following part of dmesg say anythin to you?

[ 1769.989370,1] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
[ 1769.996216,1] evbug: Event. Dev: input4, Type: 0, Code: 4, Value: 1769
[ 1769.996230,1] evbug: Event. Dev: input4, Type: 0, Code: 5, Value: 996626841
[ 1769.996236,1] evbug: Event. Dev: input4, Type: 3, Code: 54, Value: 1859
[ 1769.996242,1] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
[ 1770.003514,3] evbug: Event. Dev: input4, Type: 0, Code: 4, Value: 1770
[ 1770.003525,3] evbug: Event. Dev: input4, Type: 0, Code: 5, Value: 3934863
[ 1770.003530,3] evbug: Event. Dev: input4, Type: 3, Code: 54, Value: 1863

This spams dmesg and I am not even able to get dmesg from the beginning. As you might see, it is repeating after the line with "type: 3".

I saved dmesg (which is probably useless) and logcat if you can do something with it.

This happens in the rare case when the USB DAC is having a bright led right after putting it in the usb slot but it isn't recognized (sound continues to be played on the speaker instead of automatically switching to the DAC). I have to shutdown the device properly (go to bootloader and then power off) otherwise it doesn't help.

If it is really useless and you don't want to dig into logcat, I will wait for new kernel sources.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
[MENTION=6298645]erfanoabdi[/MENTION] I am now on the 2017-08-06 build and I have full LTE :confused

Here is what I had to do:

I first restored my TWRP backup of the 2017-08-06 build but still didn't have LTE.

Next I flashed stock 7.0.0 using fastboot, and LTE was working.

Then I restored the 2017-08-06 TWRP backup over the stock 7.0.0 and now have LTE.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
this is evbug and will spam kernel log until everytime touches screen i have to disable it

but i'm really sorry about your DAC bug i have no idea :( , all i know is usb is not detecting correctly sometimes
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Loader009:
Nah, sorry, it is again another kernel, VisionZ... sorry! Forgot that to mention.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Shani Ace:
No it's a different one.

Btw love the ROM so far. Donct know if I have the LTE issue too, I'll keep an eye on it.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] znappyG:
That is weird. I dirty flashed 13/8 release over 6/8 release without any LTE issues. Maybe only certain bands were affected?

I am on Turbo Z 1.3.5 kernel if that is of any relevance...
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
Aye there's the rub... If it is the phone then how do you explain that it is now working after my exploits? I now have full 4G/LTE.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] L45TK1NGS:
Which one has the same problem as me? After a period of time that my telephone is open the camera stopped to operate ?
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
me, every time i'm playing with moto cam to fix bugs :D
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
lol
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Shani Ace:
Well sadly I can confim that I have no LTE either. I like this ROM though, so unless [MENTION=6298645]erfanoabdi[/MENTION] has an easy fix like a flashable zip, I'll have to try lollyjay's dirty flash method. I just hope it doesn't scree up anything else. [MENTION=4762414]lollyjay[/MENTION] Did you encounter any other problems since then (e.g. system UI or apps crashing or forced-closing)?
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
I must admit that there may be a less time consuming exploit than mine. That being said no one has come up with something better.

I have had smooth sailing since. Fastboot flashing is not for the faint of heart it must be both totally accurate and thorough. I use a Windows batch file. Good luck.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Shani Ace:
[MENTION=4762414]lollyjay[/MENTION] I have used fastboot many years ago, but I wonder: shouldn't it also work by just flashing the stock ROM via TWRP?

Also, which partitions did you backup in TWRP, all of them? Never used that feature before.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
The stock firmware cannot be flashed with TWRP AFAIK.

I made an adb backup of my shared internal files. Then I fastboot flashed the 7.0.0 firmware. That got me the LTE. After that I flashed the TWRP recovery using fastboot and reinstalled the RR ROM.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Shani Ace:
Ah of course, that makes total sense! Hadn't thought of that. ^^
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] edwinp:
I have just flash the ROM and so far it is great, however, it seems that the Battery MOD is not charging at all. (TUMI battery mod) The phone is now 100% but the MOD is still at 0%.....

Is there something that i need to set in order to enable it??
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
Please connect your charger and your mod then get this app and open it https://xdaforums.com/moto-z/themes/app-battery-mod-percentage-t3575753

Take screen shot of all parameters

If it's possible for you please send logs (logcat and dmesg)
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Jeik:
Sorry for asking something as stupid as this, but can I go from official 7.1.1 to this rom?

As far as I see, 7.1.1 blobs and kernel source aren't being used at all(which also creates the question if I can even install TWRP which is probably based on 7.0 kernel source without bricking my Z on 7.1.1), so can I install TWRP while on 7.1.1 and then simply flash this rom?

EDIT:

For those wondering the same, it works.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
It's best to use erfan's twtp referenced in the OP
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Jeik:
Yeah, I ended up using it and it worked fine. On my previous phones which I worked on, using a 7.0 kernel-based twrp on stock 7.1 would have caused a brick.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] i23u8:
Perfect! Flashed 1.3 custom rom and had to wipe cachr and dalvik before everything worked perfectly.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
New Version(11 jun) is up

please test Projector Mod
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] xXLuHXx:
Sorry, erfanoabdi I use dual boot patcher because I can share my data betwin my roms .... My Deezer have 2.5 GB of music kkkk but I have this little bug, Moto camera won't record but I use CameraNx so not a problem ... And call speaker is so low ...

But for me this is a best rom and I continue with my stock ...

And thanks for your work

Ahh so sorry for my English I'm Brazilian
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] kuruptnation:
I just tested it and it still isn't working. It's reading the battery like now. I'm not sure if it was before. Here are looks I took. Took it on and off a few times as well as turning it on and off. Let me know if there is anything else I can do.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
oh OK, try to make your phone "do not disturb" before recording video with moto camera

i can confirm low volume too

not sure what you did this time but i saw the code in your logs, i was looking for :D

working on new version now, i'll let you know when uploaded

thanks again for logs, helps so much
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] kuruptnation:
No problem, if you get the projector working. Setup a donation page because I'm donating. I'll keep testing as you keep building.

Thinking of getting the camera so we can get that working.

You might have the first custom ROM with almost full mod support!! Way to go!!
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Emirati:
Hi again,

I've updated to the latest build and projector mod & camera mod are still not working.

Attached log file if needed.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Emirati:
Somehow I missed your mention with instructions. I apologize for that.

I've taken the logs again with your instructions.

Separate logs one for the projector and one for the camera. Also screenshots from the moto mod manager.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
no problem, thanks for the logs

i made new patch for projector mod please flash this file in TWRP and tell me how's your Projector mod now

tnx
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] kuruptnation:
I tested it, what I got was colored lines on the right half of what was projected. Followed by my phone freezing up. I had to hard reboot it ?
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] t0n0n:
Hello [MENTION=6298645]erfanoabdi[/MENTION], great work. What method are you using to enable efficiency mode?? I think we can get better results with mV readings, can you point me to your code so I can do some testing??
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] kuruptnation:
Tried it a second time cause I want to get logs. But, looks like it still freezes. On second inspection the phone still functions. Just the screen locks to what it was when turning on the projector. Doesn't turn off and is unresponsive. I think we're getting somewhere though.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Emirati:
Tested the fix zip. Different results as it shows color lines on the half right of the projection but not working or mirroring anything from the phone. Photo of the issue attached.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
hey :)

i made some changes on

system/core

framework/base

framework/native

i've posted commits on post #2 :

https://github.com/erfanoabdi/android_frameworks_base/commit/268d160a38f1a88b873ef244b1f7f8616cbcd3c0

https://github.com/erfanoabdi/frameworks_native/commit/67614cd9c86734ac13e48546a288abf3bf64dcb9

https://github.com/erfanoabdi/system_core/commit/444977a5af52311c4388d0c1756dcbda85eb4ae6

mV reading is little hard, mod manager is listening for "BATTERY_CHANGED" intent for system battery and mod battery details i just appended mod battery "level, type, flag, status" into that intent for mod manager

and mod manager can decide and stop charging phone form mod after 80%
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
i think so :D

may i ask you guys to grab logs with PC

all you have to do is installing adb tools with drivers

and connect your phone to PC

then use this command :

adb shell "logcat > /sdcard/logcatPRJ.log"

Connect ProjMod

wait to phone freeze

reboot

then send logcatPRJ.log for me here

see this thread for more info : https://xdaforums.com/showthread.php?t=2141817

thanks for testing :fingers-crossed:
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] kuruptnation:
I'm trying to get you the logs. But, I keep getting network errors on the xda app. I'll keep trying methods.

---------- Post added at 12:15 PM ---------- Previous post was at 12:11 PM ----------

Another attempthttp://cloud.tapatalk.com/s/593e8607486e8/logcatPRJ.log
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
Oh right

Rename it to .txt

Or zip it
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Emirati:
I've got the log. Thanks for your efforts.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] kuruptnation:
Ok I renamed it. Zip.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Emirati:
Same here network error.

I've zipped the log file.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] lollyjay:
Today I had an unusual occurrence. I spent the day at work using the wifi with my phone. Upon returning to my home, the only wifi connections that showed were the ones from work. I did a refresh several times but still only saw the connections from work.

I had to reboot to get my home network to show up.

Im on the 2017-08-20 build.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] darkoctavius:
Just actívate airplane mode for a few seconds and then deactive, the WiFi connections will back

Enviado desde mi XT1650-03 mediante Tapatalk
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] bharath parupalli:
Can anyone help in bootloader
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Loader009:
Same thing happened to me just a few days ago.

Simply turning off wifi for about ten seconds was enough to get it back to work.
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] erfanoabdi:
Yes it's happening for me too

Waiting for moto to release new wifi driver source... :(

The available one is for December 2016 and it's not fully compatible with some updated devices
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] badaas:
Come on Moto Lenovo, give us what we want, the phone will be outdated before you release sources!

Same with all these non appearing Moto mods!!
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] goingflatout:
I can't record full stop, using any camera or quality setting. On 20170820 :(

Also, I get error 505 when I attempt to update the Moto Mod manager to ver. 2
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Jeik:
Video recording works for me in the Snap camera(the one which comes with the rom).
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] Conkerts:
Hi,

I'm still using 20170813 (my vacation is over, so don't have that much time to play now ...)

Works quite well, no obvious bugs, and when I read the thread, I probably don't want to update to 0820 :P

Wifi, etc, works without problems. (Got one time a big problem with afwall, but that was probably app related. Also I usually enable airplane mode at night, so maybe that just prevents the problems)

But I have still temperature problems:

Seems, that it doesn't disable cores, and usually all cores run. Kernel Adiutor shows really strange usages:

If I disable all but core 1, the load on core 1 is shown as 100% almost constant. (PS view on the other hand shows something like 25% load, probably as it counts every core in use or so ...)Also the device feels quite laggy in this situation, and I find this strange. As long as the device is- idle, even one core should be sufficient for the gui, or do I have something wrong here ?

Anyway, battery lasts about 1-1,5 days on light usage. (It's ok, but I'm not quite happy with that, especially b/c the device gets really hot during "normal" use, like surfing & having 8 tabs or so, often the big cores clock down to 1,1Ghz or so ...)

Probably waiting will solve this sooner or later :P

So my main question again:

Is there a way, to find out, what is draining the battery, so I can report back / give feedback ?

How to find out, why the cores don't auto disable on low usage ? (I remember these kernel adiutor switching often on their own, and I haven't change any of these settings)

Have a nice Sunday everyone :)
[Moto Z ROMs, Kernels, Recoveries, & Other Developm] enzo_cz:
Man I am sensing he means Moto Z CAM and I can confirm the same. The other thing about the Z CAM is that when taking a shot in dark places or outside in the evening the picture is being distorted because of the flash effects. Right now I use google cam with HDR and an overall is pretty decent. Pics are sligthly worse than on Z CAM but recording does work no matter what option of shooting you take.

From another perspective as mentioned below. Battery drain is significant especially when the device being in stationary. You just keep your phone on the table and it keeps on draining. My SOT degradation is going down by 20% compared to the stock but this is something I knew of. Does anyone know which wakelocks can ve disabled? Eg not using NFC so that is clear, but anything else is a sorta dark place to me.