yashsingh1/xdaforums huggingface dataset:
[RAZR HD Android Development] lcc014:
Yes, I understand that I don't have to turn off phone to recharge :o I don't flash everyday, I flash every 2 or 3 weeks now. I agree with your comment regarding to long-term gains on battery. I will post the capture as soon as I have one.

For the adb logcat command, how do you turn it off after the capture ?

Thanks.
[RAZR HD Android Development] CWGSM3VO:
Just press Control-C to stop adb logcat.
[RAZR HD Android Development] lcc014:
Okay. Thanks.
[RAZR HD Android Development] zekemo:
Can you or somebody else provide a link for the 8.29 build? I can't find it online and I need to do a clean install to get my cell connection sorted out. Thanks in advance
[RAZR HD Android Development] CWGSM3VO:
Try this, you may have to hunt a bit in the archive:

http://oss.reflected.net/jenkins/
[RAZR HD Android Development] zekemo:
I found a nightly from 8.24 on my phone and the next nightly in the range is 9.02, which would you suggest? I cant find 8.29
[RAZR HD Android Development] EdwardN:
8-29 isn't working well for me, getting reboots during phone calls. The no sim message I only got the first time after installing. Trying a factory reset and reinstall from backup (I had a clean 8-29 install before I reflashed back to stock, updated, flashed CM11, then CM12.1 again to get the GPS working >.< )

On Rogers Razr HD XT925
[RAZR HD Android Development] CWGSM3VO:
8-29 has APN issues, see earlier posts in the thread (there's a MMS related problem too with this build that's easily fixed); I would say anything before 9-01 would be OK. I've never had reboots during phone calls. I did get one random reboot a day or so ago updating Google Street View but other than that, it's good for me. I'm going to try 9-9 today as it looks like most of the SDK porting appears to be done.

I'm on Rogers as well. Enable aplogd (see OP) to see if we can figure out why it's rebooting.
[RAZR HD Android Development] CWGSM3VO:
Flashed 9-9 and noticed APN weirdness again. It's attaching properly (mobile data works, mms works, etc) but the APN doesn't show up in the list and at first was blank saying "this user doesn't have access to view this" -- probably transitory, but everything is still working as expected so far. Waiting to see if my alarms still work after my 1645 alarm today.

EDIT: radio logcat shows the right stuff, so it must be a display thing or as noted, transitory.
[RAZR HD Android Development] douglasvbarone:
Thank you all!!!

Hey guys!

Today I'm here to thank you all for the support and help.

I bought a new Moto X Play (XT1563 in Brazil) and I no longer follow this thread. Occasionally perhaps, but not every day. I don't write that much, but be sure I always read yours posts. At least I did.

We are together since CM10, I had to write this "good bye" post. :)

I'll always be available in private messages.

And if some of you get a Moto X Play, well, I see you then.

Thanks!!!

Ps.: As always, sorry for the terrible English. :laugh:
[RAZR HD Android Development] Zeus1991:
I'm using. 09-06 sometimes I got randoms reboot, and my GPS doesn't work properly.

A few hours ago I've flashed snapshot the stable Rom, but when I restored my data files, includes Xposed files, this message appears: (android.phone.has stopped) every 3 seconds and with constantly reboot, this Rom don't support Xposed framework? After that I restored my device to 09-06, some advice?

Enviado desde mi RAZR HD mediante Tapatalk
[RAZR HD Android Development] CWGSM3VO:
My advice would be to stop using Xposed -- it's not supported. If your backups were made from 09-06 and you tried to restore over top of the snapshot (09-01) I could see problems happening as well.
[RAZR HD Android Development] Zeljko1234:
Our community getting smaller and smaller. Sad but natural process. Would be nice if we can move all together to another device but that's not likely.

Anyway, I'm still here, less active just because lack of time. I really enjoy in friendly atmosphere here. Probably not possible in another, crowded sub forum.
[RAZR HD Android Development] CWGSM3VO:
I'm not going anywhere, I'll be here until I'm forced to upgrade my device (ie; it's dead jim or lost/stolen/broken)
[RAZR HD Android Development] palmbeach05:
I'd join this thread as part of the community, but I'm still on CM11. I'm a bit weary of the signal issues that were reported on CM12/12.1 for either GSM or AT&T/AHD users (I think it was AT&T/AHD users). Not sure if they still exist though.
[RAZR HD Android Development] Zeljko1234:
Signal issues started recently. You could join to CM12.1 hell much earlier :D

Btw with community I meant whole razr, not just this topic.

---------- Post added at 10:32 AM ---------- Previous post was at 10:31 AM ----------

I'm going to ZZ Top concert today, yeah!!! :)
[RAZR HD Android Development] palmbeach05:
I could have sworn it was reported earlier. Maybe it was on the AHD CM12/12.1 thread I'm thinking of. Since you say its a recent issue, how bad is it? I'm seeing more about the alarm (which is also something I use daily) than I am about signal issues.
[RAZR HD Android Development] Zeljko1234:
Actually, you're right. It was reported earlier, for early builds, then solved. C did good job in finding solution. Somehow, the same issue started again. Good point, maybe the fix is somehow dropped from source?

Alarm problem is with us for long, way too long. C is struggling with for months. I use tablet to wake me up in the case that my mental alarm let me down. Which is very, very rare :D
[RAZR HD Android Development] CWGSM3VO:
I have alarms working, see a page or two back on how I fixed it (it works reliably for me) and I have no signal issues, those were transitory for me (8-29+ works fine, for me...)

EDIT: To protect against PM/questions.

- to fix the alarm issue, I disabled network-provided date & time on my device via Settings > Date & Time > Automatic Date & Time. I have noticed creating new alarms with no repeat show "tomorrow" instead of "today" so there is some breakage here too. Rebooting seems to fix it but isn't really practical for same-day temporary alarm usage.

- signal issues for me were related to telephony + friends being moved into CMSDK or their underpinnings. With this type of work still continuing, expect issues. I would completely clean flash 8-29+ (as I did) and have no signal issues as I have none. Phone calls work, no FCs or problems otherwise regarding mobile communications or data issues (always getting LTE in city limits and 2G/3G in rural areas and no-signal when I go camping ;))

Of course, ymmv depending on device or user.
[RAZR HD Android Development] palmbeach05:
Lol i've noticed. He's done a good job at trying to find the fix from what i've seen. May be a dumb question, but how can it be working on one device and not the other? I mean, wouldn't the alarm be like a universal thing since all devices have it?
[RAZR HD Android Development] CWGSM3VO:
Have you tried what I suggested and rebooted after making the change? I'm referring to the alarms in this sense.

EDIT: Sorry, I'm dumb. You said CM11 previously.
[RAZR HD Android Development] CWGSM3VO:
9-11 Official Nightly:

XT925: http://oss.reflected.net/jenkins/125589/

XT926: http://oss.reflected.net/jenkins/125590/
[RAZR HD Android Development] Zeljko1234:
Maybe we're holding it wrong :D

Not all devices are exactly the same. We had situation that something is broken on 926 but not 925. Especially was the case when we had unified build for moto_msm8960 family.
[RAZR HD Android Development] CWGSM3VO:
This is the unspoken reason why folks have issues with this ROM ;)
[RAZR HD Android Development] Thibault1171:
Same here ! You'll have to rescue me and try to understand my bad english a little bit more :good:
[RAZR HD Android Development] CWGSM3VO:
9-12 official nightly - works fine, had to HUP rild on second boot as no SIM was detected. First boot after flash was fine. Third boot was fine.
[RAZR HD Android Development] lcc014:
C,

What was the HUP rild method ?

Thanks.
[RAZR HD Android Development] CWGSM3VO:
From terminal prompt as root: killall -HUP rild

It's an old workaround from days long ago. I'd consider this a one-off for me.
[RAZR HD Android Development] CWGSM3VO:
Very nice, much nicer than tweaking the governor and such to achieve the same effect:

http://review.cyanogenmod.org/#/c/109034/

Running 9-13, so far so good, everything normal for me.
[RAZR HD Android Development] Zeljko1234:
Interesting, thx. Recently I had some strange problems with my razr and was looking what to flash. Now I can try latest nightly.
[RAZR HD Android Development] CWGSM3VO:
I may have to clean install again -- the APN issue, it's all working no problem and things but still doesn't show them in the list when I physically remove all the bunk ones from apns-conf.xml leading me to believe it was something in the upgrade that I ended up breaking somehow. Otherwise however, everything is peachy. Alarms are working (albeit, it's kludgey on my part for the workaround), GPS, mobile data, mms, etc.

I'd say all in all, a 90% good experience.
[RAZR HD Android Development] md07:
anyone know the way to make CM12.1 run system partiton with F2FS format. Now, the rom eun perfect with data and cache F2FS, but only system cant...
[RAZR HD Android Development] CWGSM3VO:
This was changed some time ago -- if your recovery allows for it (only one I ever saw was PhilZ which I think is no longer compatible with newer LP releases) you can convert it to f2fs. Other choice is alter fstab.qcom in your build and add an entry for system as f2fs (similar to how cache and data are which have both f2fs and ext4 entry in fstab).
[RAZR HD Android Development] Zeljko1234:
Have you noticed any difference with surfaceflinger running with higher priority? Still didn't have time to flash and test but played a little with renice and top.

busybox renice -n -1 -p 242

242 is pid for surfaceflinger in my case. All processes have priority 0 or 1. Haven't noticed any change in smoothness.
[RAZR HD Android Development] CWGSM3VO:
I think the closest thing to the commit from CLI would be ionice(1) vs renice(8) which just changes the priority of the process vs the priority of any I/O from the process:

http://linux.die.net/man/8/renice

http://linux.die.net/man/1/ionice

EDIT: forgot to mention the commit changes the ioprio to 6 from whatever it was (guessing 0 or 1)
[RAZR HD Android Development] Zeljko1234:
Thx, just tried renice and result is amazing!!! (not :D)

You didn't answer my question about noticing any difference with hard coded higher priority ;)
[RAZR HD Android Development] CWGSM3VO:
Commit shows there was no hardcoded prio before, it was defaulted to whatever it was. Commit changes it to 6. Yes, there's definitely a difference I can see, even opening apps seems faster.

And I did say not "renice" but "ionice" :p

root@vanquish_u:/ # ionice
ionice
usage: ionice <pid> [none|rt|be|idle] [prio]

127|root@vanquish_u:/ # ionice 240
ionice 240
Pid 240, class none (0), prio 4

127|root@vanquish_u:/ # ionice 240 rt 6
ionice 240 rt 6
Setting pid 240 i/o class to 1, prio 6

root@vanquish_u:/ # ionice 240
ionice 240
Pid 240, class rt (1), prio 6

From CLI, execute: ionice <pidOfSurfaceflinger> rt 6

Which will do what the commit does. Interestingly enough, the commit doesn't appear to be active or at least, set in some way but I definitely see a difference but after setting it to 6 from default 4, it seems the same.

Try it and see how it works out for you :)

EDIT: Seems it might be tied to CFQ/BFQ scheduler.
[RAZR HD Android Development] Zeljko1234:
Sorry, I wasn't focused enough. Doesn't make sense to use renice again. Just tried with ionice. It was 4 in my case, changed to 6. Don't see any noticeable difference.

Anyway, like that kind of conversation. We can learn something :)

---------- Post added at 04:44 PM ---------- Previous post was at 04:38 PM ----------

Now you have 999 thanks but if you read up side down... :D
[RAZR HD Android Development] CWGSM3VO:
You'd be surprised. My family has a "favorite" resort in Mexico we tend to frequent and I'm always remembered as "anti-christo" for what happened there one visit and too many tequilas :) But that's off-topic.
[RAZR HD Android Development] CWGSM3VO:
Commit is purported at improving UI speed/fluidity. I'm pretty sure it's not a placebo because from one build to the next, things improved and not just in CM apps, but Google apps, etc with no updates other than CM in between.

I'd have to look at the source for init (cm-init?) to determine how "ioprio" is translated from configuration but I'm guessing it's calls (in some way) ionice from shell or library.

Either way, I did see a difference, whether due to this commit or the build itself.
[RAZR HD Android Development] Zeljko1234:
You'll not get another thanks for this post. First you didn't say what happened and because will not be 999 anymore :D
[RAZR HD Android Development] CWGSM3VO:
9-14 feels zippy too. So far so good.
[RAZR HD Android Development] rahimali:
could either of you guys C or Z tell me how to find PID of surfaceflinger please? I understand it's different for everyone. 242 didn't work for me. I wanna try this on CM11. Also, is it possible to put this in build.prop or an init.d script so it works every time?
[RAZR HD Android Development] CWGSM3VO:
From shell (preferably as root) execute:

root@vanquish_u:/ # ps | grep -i surfaceflinger
system [B]241[/B] 1 83232 5884 ffffffff b6f86278 S /system/bin/surfaceflinger

In this case, the PID# is 241

And yes, it's possible to this done via init (build.prop is not the place)
[RAZR HD Android Development] Zeljko1234:
/system/etc/init.d should be the place. Or /data/local/userinit.sh or /data/local/userinit.d
[RAZR HD Android Development] rahimali:
Thanks both both of you. Unfortunately, the value changes after reboot so most probably a script along the lines of

ionice `pgrep -f "surfaceflinger"` rt 6

might be what's required. could you check and confirm please? i stole the script from here :D
[RAZR HD Android Development] CWGSM3VO:
Just create a script under /etc/init.d like the others that are there doing what you need it to do.
[RAZR HD Android Development] Zeljko1234:
Beware of editor you use, some (ES File explorer) may add wrong EOF and script will not work. I can recommend FX File exlorer. It's really powerful and has build in editor and many other nice features.

---------- Post added at 01:53 PM ---------- Previous post was at 01:31 PM ----------

Flashed cm-12.1-20150913-NIGHTLY-xt925 and then first time ever updated trough CM itself. Of course, I got no sim card, no signal, no soup problem.
[RAZR HD Android Development] CWGSM3VO:
I find that happens on first boot to me after flashing, either HUP rild or reboot.
[RAZR HD Android Development] Zeljko1234:
Killed rild.
[RAZR HD Android Development] amedeh123:
Coming from 13/06 build, clean flashed 14/09 and it is great so far.

certain 60fps youtube videos are very laggy though, to the point of freezing the video for a few moments, older builds played those same videos smoothly.

I dont use this feature anyway but if anyone knowledgeable want to take a look at it I provided logs. I'm seeing a lot of codec related errors.
[RAZR HD Android Development] CWGSM3VO:
Looking at commits from today, there's a lot of drm/media work being done. To me, it looks like a 3rd party (CM?) drm library/feature-set was merged in. A lot of work seems to be put towards moving things to cmdsk (makes sense, just painful at times--I see similar development work cycles in the lab) or to cmhw where applicable.

I've been trying to devote time daily to review things so I have a basic idea of where the build might be at via cmxlog.

Short-term this means (to me) that things are going to break and honestly, the only way to move development forward is to make a backup, cross your fingers and flash :) All you lose is time.

Long-term this is a smart plan and things will hopefully shape up where it's at least comparable to stock in most cases (such as your YouTube usecase) and we all benefit as user experience as a result. Remember those days when LP was brand-new? Possible M?

Thanks for posting logs. We can look at them but it would be better to file a JIRA ticket and include the log and any details (I'll look anyways :))

EDIT:

I looked, and saw this:

D/WVCdm ( 272): Instantiating CDM.
I/WVCdm ( 272): CdmEngine::eek:penSession
I/WVCdm ( 272): Level3 Library Sep 25 2014 17:10:03
W/WVCdm ( 272): Could not read /data/mediadrm/IDM1013/ay64.dat2: No such file or directory
W/WVCdm ( 272): Could not load liboemcrypto.so. Falling Back to L3. dlopen failed: library "liboemcrypto.so" not found
W/InputMethodManagerService( 816): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@d41da9b attribute=android.view.inputmethod.EditorInfo@24877e38, token = android.os.BinderProxy@2e5120de
I/WVCdm ( 272): CdmEngine::QueryKeyControlInfo
W/WVCdm ( 272): BufferReader::Read<T> : Failure during parse: Not enough bytes (4)
W/WVCdm ( 272): CdmEngine::ExtractWidevinePssh: Unable to read PSSH atom size
I/WVCdm ( 272): CdmEngine::GenerateKeyRequest
D/WVCdm ( 272): PrepareKeyRequest: nonce=3491559072
I/Adreno-EGL(14227): <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: (CL3869936)
I/Adreno-EGL(14227): OpenGL ES Shader Compiler Version: 17.01.11.SPL
I/Adreno-EGL(14227): Build Date: 02/28/14 Fri
I/Adreno-EGL(14227): Local Branch:
I/Adreno-EGL(14227): Remote Branch:
I/Adreno-EGL(14227): Local Patches:
I/Adreno-EGL(14227): Reconstruct Branch:
I/WVCdm ( 272): CdmEngine::eek:penSession
I/WVCdm ( 272): CdmEngine::CloseSession
I/WVCdm ( 272): CdmEngine::QueryKeyControlInfo
E/MediaDrm-JNI(14227): Illegal state exception: Failed to set cipher algorithm (-19)
I/WVCdm ( 272): CdmEngine::CloseSession
I/WVCdm ( 272): L3 Terminate.

I'd wager it's related and today's merges seem to reflect this.
[RAZR HD Android Development] CWGSM3VO:
Here we go, the follow-up which makes it all make sense:

http://review.cyanogenmod.org/#/c/108815/

http://review.cyanogenmod.org/#/c/108829/
[RAZR HD Android Development] Zeljko1234:
Hmm, sounds too good to be true. Btw, reverted to DU, just works better. Will try new CM with "magic bullet".
[RAZR HD Android Development] CWGSM3VO:
Respectfully, I'm gonna have to disagree with you on that :) To me, DU was basically AOSP with some CM and various other ROM bits bolted on. The tweaks reminded me of those kludgey ROMs from days gone by where it wasn't integrated and looked out of place. Random reboots, missing features like Ambient Display, Incognito Mode, etc etc :)

Again, with all due respect.
[RAZR HD Android Development] CWGSM3VO:
Just installed 9-16 and updated my apps via Play Store -- it no longer cripples the foreground (what I'm actively doing) task like it used to. Speed seems same as before, which for me is quite snappy. Now I understand the init changes I mentioned previously.

EDIT: From what I was able to research, it seems very tied to the BFQ scheduler which we don't have in stock CM kernels. I dunno what to say, for me this is new, as normally when I install apps from the PlayStore and it installs them it blocks the UI usually (sluggish/laggy) until its done installing. This isn't happening anymore for me with this current build.
[RAZR HD Android Development] Zeljko1234:
That's the best part of it :) Seems lighter in size and behavior. Still has a lot of features, more than CM. Ambient light is missing. Incognito mode? If you mean in stock browser, I don't use it anyway. For xt925 is blind build and works just fine. CM is built every day buy machine, DU is usually build by dev who has that device (except xt925, of course) and test it before post a link.

Damn, so busy today. Writing this post since morning. In mean time you made another one :)
[RAZR HD Android Development] CWGSM3VO:
I find the stock browser is faster to load than Chrome (even Dev) and incognito mode is very useful. I meant to say LiveDisplay and Ambient display. The former is much better than using adaptive brightness (faster UI experience) and the latter is useful although seems crippled now compared to older builds (where it could be configured) and possibly somewhat broken as it's supposed to light up the screen with picking up the device but it lights up at a fixed interval until I dismiss or close the notification and never by picking it up (on demand) as I have to hit the power button unless I catch the interval.

meh :) live life and take risks, you'll be happier as it's quite freeing ;)

Busy day too but always got time for my two bits :p
[RAZR HD Android Development] Zeljko1234:
Well sometimes I really cannot take a risk to be unreachable on the phone ;)
[RAZR HD Android Development] VlitalityX:
Recently my phone has been getting a lot of random reboots. I open bluetooth, reboots. Open wifi, reboots. Open lte, reboots. They happen very randomly. I clean flashed cm 12.1 xt925 09-15 and it still isn't fixed o.O. Anyone know whats wrong?

Ps. The reboot isn't a full reboot, it immediately turns off and goes straight to the cm animated boot screen. It skips the logo part of the boot up.
[RAZR HD Android Development] Zeljko1234:
Last time when I had strange behavior (of phone, not me), sbf to stock helped (to phone, not to me).
[RAZR HD Android Development] CWGSM3VO:
Describe the process of a clean flash. I have in the past gotten random reboots, but its usually because I did something to it (ie; playing around) or there was cruft left behind from a previous install (if you're restoring data via TBU then you're on your own, that's a good way to introduce junk into an otherwise clean build)

Other than that, enable aplogd (see OP) so you can catch the reboot and post logs so we can see why.
[RAZR HD Android Development] MaicolS:
Hi, i'm having a strange bug after some hours installing yesterday's rom, I left my phone charging and suddenly phone's date went back to june 1970, and doens't let me change it in settings.

I google searched and found this C answer referring to this thread, but I tried that app, and the scripts/adb commands but nothing worked. Does anyone have had this or know how to solve it? Thanks in advance
[RAZR HD Android Development] Zeljko1234:
Have you tried to restore backup (if you have one)? Just to check is it problem with your phone (hope is not) or the build.
[RAZR HD Android Development] MaicolS:
Yes, it didn't change anything. Also flashed a kk stock firmware to see if that fixed something but i haven't got any lucky either
[RAZR HD Android Development] Zeljko1234:
You have the same problem with stock kk? Do you mean sbf to stock? Do you have sim card in? Try to remove it, boot and set clock.

I don't wish to scare you but most devices reset to such date when internal battery is empty, board is damaged or something similar.
[RAZR HD Android Development] MaicolS:
Yes, there's a sbf to stock kk. I pulled off sim card, rebooted and tried to change the date (in settings/date, and by editing the file date on /sys/class/rtc/rtc0) but it still doens't update
[RAZR HD Android Development] CWGSM3VO:
Score -- found my original moto data cable that came with my HD, still in the packaging.
[RAZR HD Android Development] Zeljko1234:
Not good. Hopefully someone will come up with the solution. Good luck and share if you fixed and how.