yashsingh1/xdaforums huggingface dataset:
[RAZR i Android Development] Hazou:
1. Setup adb

2. Open a comandprompt where adb will work.

3. Type in "adb logcat > logcat.txt" Don't hit enter yet.

4. Go to the moment in the app where it doesn't fail yet (like after the next click it fails to upload)

5. Hit enter in the command prompt on your PC

6. Click on the button on your phone to start the upload

7. Wait for it to fail

8. If it has failed stop the code executing in the command prompt on your pc by closing the command prompt or when u have selected the command prompt press "Ctrl + c"

9. Upload the logcat.txt. it may now contain all the necessary data to see what is happening.
[RAZR i Android Development] karim-ps:
Hello. Thanks for the awesome ROM

Are there any plans for a new update?
[RAZR i Android Development] dr_seltsam:
Hey,

I flashed on weekend the latest CM11 rom from 2015-12-25. But I have a quiet high battery drain. Therefore I wanted to flash a new kernel (current is 3.034) what is the latest stable kernel version? And can I flash it without re-flash the rom?
[RAZR i Android Development] Hazou:
The latest stable kernel is in the ROM. There will not be a better one. Unless someone picks up the development or upgrades on the kernel.

The high battery drain can be caused by anything. I doubt it is the kernel. See what it is or even do a clean flash.
[RAZR i Android Development] rimugu:
Awesome!!

Cyanogenmod in my XT890

Excellent, thank you.

Good work

It took me sometime to get xposed to work but its worth it, much better than original software.
[RAZR i Android Development] rimugu:
Having an issue with the ROM, I flashed while on roaming (as I have done in the past with other phones and roms) and did not notice until yesterday that upon returning to my home, it still marks roaming. The roaming icon disappears when there is a wifi connection, but returns upon loosing wifi. I am still investigating and most likely its is all my fault, but if someone can provide some light I would appreciate it.
[RAZR i Android Development] Dan_Jacques:
I did two pull requests in github with some updated flags to saltwell in kernel source. I found it in graysky2's GCC kernel patch (but applied following the .config parameters).
[RAZR i Android Development] julianwi:
Hi,

I noticed that the emmc_ipanic driver in the 3.4 kernel uses partition 2 as default for the panic partition. This is defined in drivers/misc/emmc_ipanic.h line 33. But the second partition is the bosbackup on our device. This could maybe have bricked your device by overwriting the bosbackup with a kernel panic.

But normally this default setting is overwritten by the kernel cmdline. The kernel cmdline from your cm11 tree defines this as emmc_ipanic.ipanic_part_number=6. Partition 6 is our recovery partition. I wrote some time ago that my recovery partition was overwritten with zeros. I think that this problem was also caused by the emmc_ipanic module.

So my question is: Which kernel_cmdline did you use while bricking your device?
[RAZR i Android Development] rimugu:
The fix for now was to use Roaming Control module for xposed and activate National Roaming
[RAZR i Android Development] Hazou:
Try this: http://forum.cyanogenmod.org/topic/91803-encrypt-phone-not-working/

There is an extra service open. It needs to be disabled. Kill that proces and encrypt the device. I have a feeling it has something to do with the a-gps module I implemented from Motorola.

I am almost sure that line is included. And even if the bosbackup shouldn't work correctly, it should just start. Or is happens to be that both first BOS partitions are also dead. The first stopped working after a kexec move with a totally non functionally kernel. It should be loaded in ram, but got stuck somewhere and corrupted something. The second stopped after flashing 3.4 kernel for the 100+ time. So I am not absolutely sure it is the kernel 3.4 fault, because that one did it's job.
[RAZR i Android Development] 4point3:
I tried it several times. In between I reflashed to Stock - there the encryption is working. Even on a pure cm11 flash (without gapps) it's not working.

I killed all services and processes, I even managed to kill auditd by removing the /data/misc/audit/ folder. But the result is still:

D/Cryptfs ( 133): Just asked init to shut down class main
D/Cryptfs ( 133): unmounting /mnt/shell/emulated succeeded
D/Cryptfs ( 133): unmounting /data/data succeeded
...
E/Cryptfs ( 133): unmounting /data failed
E/Cryptfs ( 133): Error enabling encryption after framework is shutdown, no data changed, restarting system

In the moment of the reboot, "lsof | grep /data" showed only these (because I killed all the rest in advance).

system_se 495 system 161 ??? ??? ??? ??? /data/system/locksettings.db-shm
system_se 495 system 162 ??? ??? ??? ??? /data/system/locksettings.db
system_se 495 system 163 ??? ??? ??? ??? /data/system/locksettings.db-wal
system_se 495 system 184 ??? ??? ??? ??? /data/system/users/0/accounts.db
system_se 495 system 159 ??? ??? ??? ??? /data/system/locksettings.db
system_se 495 system 160 ??? ??? ??? ??? /data/system/locksettings.db-wal
system_se 495 system 161 ??? ??? ??? ??? /data/system/locksettings.db-shm
system_se 495 system 162 ??? ??? ??? ??? /data/system/locksettings.db
system_se 495 system 163 ??? ??? ??? ??? /data/system/locksettings.db-wal
system_se 495 system 184 ??? ??? ??? ??? /data/system/users/0/accounts.db

The a-GPS service you mentioned, was not showing up anywhere there. Running 'ps' on the shell doesn't bring up a new candidate, that might be disturbing the dismounting...
[RAZR i Android Development] k2828:
everytime i restart thr Phone, it aska me if i trust my vpn app. any way to avoid this?
[RAZR i Android Development] zheka99:
Who knows which Version of Skype works with the newest rom?
[RAZR i Android Development] marcosbacon:
solved all my problems

thank you so much. This made my razr i more beautiful, made my whatsapp work again and now even web.whatsapp is working.
[RAZR i Android Development] 4point3:
I flashed your release from Oct and encryption works fine.

If I find some time, I will have a look at the commits between those releases ... perhaps I find anything, that is preventing cryptfs from successfully unmounting /data in the latest version.
[RAZR i Android Development] Hazou:
It could be the pdsbackup that is causing this. to try this. Rename the pdsbackup script (/system/bin/pdsbackup.sh) to seomthing else. Reboot. The pdsbackup won't be mounted now and try to encrypt the phone. If it works, rename the pdsbackup back and see what happens.

Some funtions during the test will not work. E.g. wifi and maybe more.
[RAZR i Android Development] 4point3:
After renaming pdsbackup the encryption of the phone worked nice.

But after renaming it back, the phone freezes with black screen after entering the decryption passphrase.

D/UIM ( 215): poll broke due to event 10(PRI:2/ERR:8)
D/UIM ( 215):
D/UIM ( 215): read 0 from install (previously was 1)
D/UIM ( 215):
D/UIM ( 215): Un-Installed N_TI_WL Line displine
D/UIM ( 215): begin polling...
E/Cryptfs ( 149): unmounting /data failed
W/SocketClient( 149): write error (Broken pipe)
W/SocketClient( 149): Unable to send msg '200 5 -1'

This looks quite the same like the encryption problem.

So I opened a shell, when the decryption dialog showed up, and I unmounted /pds. After entering the passphrase the device came up this time.

/dev/block/loop7 /pds ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=1,data=ordered 0 0

Somehow the mount to /pds (/pds/public is also available) conflicts with encryption/decryption.
[RAZR i Android Development] Hazou:
New version online. Version 1.15 / cm-11-20160309-UNOFFICIAL-smi

Changelog:

Cyanogenmod updates

February security updates

WMA support through FFMPEG

Back to stock kernel

Removed obsolete files

Also attached working 3.0.101 kernel with all changes from [MENTION=5103965]Omar-Avelar[/MENTION], just flash with recovery. Can be found in download section.
[RAZR i Android Development] Hazou:
At the moment the pds backup is mounted it is using the data partition. The mount will not automatically unmount and as u have proven will even not work when encrypted. So I suggest to all people who want to encrypt there device to use the pdsbackup one time (normal boot) and move the /data/pdsbackup.img to a save location in case the pds partition gets messed up. Then just rename the pdsbackup.sh in the bin folder and encrypt your device
[RAZR i Android Development] vetvlad:
After flash (clean install) new rom, kernel (without the kernel nothing changes) and gapps 'setup wizard' crashes on first boot, can't set up phone
[RAZR i Android Development] Hazou:
That's correct. Just noticed some comments on review.cyanogenmod.org about some commits that the setup wizard doesn't work when there is no CMAccount on the device. They are patching it upstream and I will build a new one. Till then, revert back to your backup or add the cmaccount apk into the zip file and flash it again.

Also noticed some security patches from March. Will add them later on when they are approved.

-- edit --

I uploaded a HotFix to the download section. Flash it after the ROM zip. Can u test it?
[RAZR i Android Development] vetvlad:
it works.
[RAZR i Android Development] je_rem_y:
Is Firefox working for you on the latest ROM ? I didn't use it before so I don't know if it worked on the previous ROM.

I did a clean install and installed Firefox from f-droid and aptoide.
[RAZR i Android Development] Aageetee:
I am currently using version April (yes, I'm far from XDA for a long time), good to know that all is well. Can I upgrade directly to the latest update?
[RAZR i Android Development] zheka99:
Thanks for the update!

I still have the problem that in the settings - does not work > over the phone .

And has anyone the problem since the alternative Xposed installation , the autostart does not work . As for example Viper audio does not start automatically or my weather app , etc. before the installation of Xposed it goes perfectly . Several times noted .

maked dirty flash

and by the way, does skype works for you?

+ in the options, usb debugging on or off?
[RAZR i Android Development] Mids95:
On a scale on 1 to 10, How much do you recommend flash the custom kernel made by Omar-Avelar rather than the one coming with the last update of CM? Which would be the most significant pros and cons of doing it?

Thanks for all the work you're doing, I really appreciate it.
[RAZR i Android Development] Hazou:
From April, a clean flash I think. Lots of big changes in dalvik, xposed and soms more.

Hmm, i missed that to fix. The settings bug. I know what it is. For Skype use an older version. Houdini cant translate the code and Skype doesnt come with x86 support..

USB debuging is useful if u use "adb" a lot. Otherwise disable it and enable it when it is needed. A long as u can get to the recovery there is no need for it.

1. I don't recommend it. It is the user who decides if he wants to use it. So your chose. U can always go back to stock by flashing the cm zip. I run it a long time and was happy with it. But the phone I have is used by someone else, so I don't use it.

The pro's are mostly: better battery life, more CPU and I/o governess for personal tweaking, performance changes under the hood.

The only downside I come across are: slow boot time, distorted audio (for the first 0-0,5 seconds, the rest of the audio sound plays fine) when getting a messages when the phone is in deep sleep. Its annoying, but can easily be lived with.
[RAZR i Android Development] je_rem_y:
I found the problem. On f-droid and aptoide there is only the arm version and it crash. You have to manually download and install Firefox x86 from Mozilla website if you don't use Google Play.
[RAZR i Android Development] Aageetee:
Just to confirmation: at the gapps site, what platform, android and variant I have to choose?
[RAZR i Android Development] Hazou:
X86;4.4;(variant u want)
[RAZR i Android Development] Aageetee:
Thank you, Hazou and and congratulations for the great work, it's all going well. Only Snapchat that still doesn't work, but this is due to the app that never got along with the Razr I, unfortunately.
[RAZR i Android Development] je_rem_y:
I have a really short battery life since last update. The battery last something like 12h whereas with the previous ROM (or the one before that) the battery last more than 24h.

I noticed that some kworker process seems to consume the most the battery.

kworker/u:4
kworker/u:5
kworker/u:8
kworker/u:1
kworker/u:7
kworker/u:0
kworker/u:2
kworker/u:6
kworker/u:3

I don't have the google play services nor anything from google. I will try with the Omar-Avelar kernel to see if it's the same.

---------- Post added at 01:42 AM ---------- Previous post was at 01:06 AM ----------

I don't know if it's important but the Wifi and Network icons in the quick setting panel are orange whereas before they were white.

Is it indicate a problem ?
[RAZR i Android Development] Hazou:
kworker is as the name says a worker for a process. So if kworker has a high battery drain, there is a process on the phone using it. But if I take a look at the changes made, in my opinion there can't be anything that is causing this issue. Is it a clean install?

The orange indicators indicate that there is a problem with the connection. It is connected, but it sees a problem with the data through put. I don't have this issue on the latest build.

Als about the "about phone" problem crashing. In the latest build, I can't reproduce it. All my settings are working fine. The only issues I have on this build are "app" issues.

- Snapchat: Some weard java symbol lookup in the network error that crashes houdini

- Skype: Older version does work

But if both companies of those apps (both are full arm) just made a x86 version it would all work well.
[RAZR i Android Development] je_rem_y:
It is a clean install. In the battery stats it's "Plate-forme Android" (Android System I think in english) that eat all the battery. Is there a way to see the process that cause this ?

It's the first time they stay orange. It's the first time that I don't use Google services too :D I hope it's not related.

---------- Post added at 02:13 AM ---------- Previous post was at 02:12 AM ----------

It's the same with Omar kernel
[RAZR i Android Development] Hazou:
Sounds like the Android system indeed. "BetterBatteryStats" XDA app can maybe see what it is. What does logcat spam when u dont do anything with the phone and just look at the output?

The orange can indicate that it can't or not properly connect to Google services. Google services are deeple integrated in the system and maybe the thing that it is polling for.
[RAZR i Android Development] je_rem_y:
It's BetterBatteryStats that say it's kworker that consume the battery but I don't find anything more.

I installed Catlog and I see something called "wpa_supplicant" that popup every 2s.

03-14 02:28:25.280 E/wpa_supplicant(611): recvfrom(ctrl_iface): Try again
[RAZR i Android Development] je_rem_y:
I made a clean install of 20151224. We will see if it's better or not.

Even if the E/wpa_supplicant(611) thing show up every 2s it don't seems to be the culprit for the battery drain.

An other thing, with 20160309 NewPipe (from fdroid) can't play WebM video whereas with 20151224 it can play it but one in two the video is jerky.

https://github.com/theScrabi/NewPipe/issues/242

I tested with VLC as an external player and it works (on 20151026 at least) ! Still there is something that prevent to play webm video (even not smooth, jerky) with 20160309.

Don't know if it's related to the ROM or the Telegram app but the compress video feature, when you send a captured video, doesn't work.

https://github.com/slp/Telegram-FOSS/issues/85

I made a logcat, hope it help.

http://pastebin.com/Ez9cRSek
[RAZR i Android Development] je_rem_y:
For testing I installed GAPPS and after launching the play store the icons switch to white. It probably indicate that it can't connect to Google services.
[RAZR i Android Development] Hazou:
I maybe got something for the telegram issue. Will need some time to investigate a little more.

Is there a logcat for the newpipe app available?

I have the feeling that the Google video software decoders are slower than the ffmpeg (vlc also uses) the ROM provides. But because the Google's one are further up the line the ffmpeg doesn't get called.
[RAZR i Android Development] je_rem_y:
Great !

Here is a logcat with the latest ROM that can't play WebM at all with internal NewPipe player (error message: "impossible de lire la vidéo", in english "can't play video") (work if I choose MPEG-4 or if I use VLC as external player) :

http://pastebin.com/1GxJvt0N

---------- Post added at 01:38 PM ---------- Previous post was at 01:33 PM ----------

By the way I'm again on the latest ROM and the battery behave normally for now, no battery drain.

I install my apps slowly for trying to find the culprit. I installed 75% of them at the moment.

I don't know if it can be related but, as I don't use GAPPS, this time I didn't installed the hotfix.
[RAZR i Android Development] Hazou:
Cool the battery drain is gone. The hotfix is not needed when Gapps is not installed. I didn't suspect that people wouldn't use gapps, but there are some like u ;)

The webm from newpipe logcat doesn't say much. Can u make a logcat of opening the app and then playing it. The log only says the mediaplayer has an error, but doesn't say where the error is or what it is. Most likely the error is much earlier in the proces.

About the other problem with telegram. The issue is indeed at the ffmpegsniffer to seek out if the format is ok. It looks like the intel encoder doesn't provide enough data to the mp4 file so the ffmpegsniffer can read it. So I need to test some stuff. The issue can be one true of false statement I hope. Will see if i can test that in the next couple of days.
[RAZR i Android Development] je_rem_y:
I hope the battery drain won't come back, I still have some apps to install :) It's the first time I try to get rid of Google and I'm on the verge to achieve this without losing any service ! I prepare this for a long time, I made some research before the switch and I found an alternative for almost all the apps I used. People don't realize it, or don't care, or are too lazy to do this but it really worth it (like the switch too Linux I made years ago) when you know how Google earn his billions (to simplify: Google track you, spy on you, record everything you do online and sell it to advertisers). In real life people don't really like to be followed by some stranger or spied but online surprisingly they don't care...

Here it is : http://pastebin.com/EspYjf17

Great, thank you !
[RAZR i Android Development] taurui:
Hi,

I am having some troubles installing.

I unlocked the bootloader, wiped everyting, installed CWM (TWRP broke the recovery...), then installed CM and google apps nano.

I then wiped everything again - now after the first step of the setup assistent (choose language) it aborts (setup-assistent was terminated).

At this point, I cannot open the properties or the drawer, all I can do is open the calendar or the clock at the top.

What can I do?

Edit: Ok, the hotfix solved it :)
[RAZR i Android Development] Hazou:
Ok fist thing to try, probably the fix for it. 2 things u need to test. We are gona test the google version of the vp8 decoder and the x86 ffmpeg optimized vp8 decoder if it exist on the device.

Add the following code to the file system/etc/media_codecs.xml:

<MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" />
<MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" />

under the ffmpeg strings and above the string "</decoders>".

Test it. Then try the following:

Add the following code to the file media_codecs.xml:

<MediaCodec name="OMX.ffmpeg.vp8.decoder" type="video/x-vnd.on2.vp8" />
<MediaCodec name="OMX.ffmpeg.vp9.decoder" type="video/x-vnd.on2.vp9" />

Above the ffmpeg strings

Report what happens, this will most likely fix the webm error.
[RAZR i Android Development] je_rem_y:
I hope I did it well :

- I put the 2 first lines in /etc/media_codecs.xml just before </Decoders> in the "ffmpeg video codecs" section. That changed nothing. I rebooted and that worked but very jerky, like on previous ROM.

- I put the 2 last lines in /etc/media_codecs.xml at the beginning of the "ffmpeg video codecs" section. That changed nothing. I rebooted and that worked perfectly (except seeking that very very jerky but works with vlc) !

Should I test with only the 2 last lines ?
[RAZR i Android Development] Hazou:
No, another test is not necessary. Because it work like this:

If the media player searches a sw/hw decoder for a media file it looks there. The first line (decoders) that matches the media type will be used. If the first decoder doesn't work, the media player searches for the next decoder that can play it. If there is no suitable decoder in the list, the decoder doesn't exist or all decoders that should work don't work it gives an error. That's also why the HW decoders are always in the beginning of the file.
[RAZR i Android Development] axelbest_rj:
Skype always crash on all versions. Any correction?
[RAZR i Android Development] rustemka71:
I use 4.7.0.43514 version of skype. It works.
[RAZR i Android Development] je_rem_y:
Great. I guess you will include it in the next build ?

About the D/wpa_supplicant(606) spam in the logcat, I was wondering if it's something that can be "fixed" or if it's normal ?

http://pastebin.com/Su0iQygh

Thanks !
[RAZR i Android Development] Hazou:
Yep, it will be in the next build.

The WPA messages have something to do with 5ghz I think. But I don't have a clue what they do. It doesn't seem to use much battery.

The telegram bug is hard. The encoder suspects to get an input stream, but gets an output stream. Or something like that. I don't know for sure if I can manage to fix that one. Even using the mediacodec api from Google doesn't work as stated on github. Its is sure a ROM problem, but I don't know where yet.
[RAZR i Android Development] je_rem_y:
Yes it doesn't seem to use much battery, so that's not really a problem. The only thing I find to make it stop spamming the logs is this variable that can be set at the compile time. I don't know if you can use it ;)

#CONFIG_NO_STDOUT_DEBUG=y

I didn't find anything related to this problem. I will continue to search. It's not a big problem but it will be great if we can make it work :D
[RAZR i Android Development] je_rem_y:
Maybe a bug can be opened on CM (don't know if it's possible) ? There is other people that seems to be affected.

http://forum.cyanogenmod.org/topic/87565-whatsapp-unable-to-send-videos/
[RAZR i Android Development] Aageetee:
Sometimes the "back" button doesn't work, so I have to use the "home" button to get out of the drawer, for example.
[RAZR i Android Development] Hazou:
I still got some leads. Trying them one by one out. The weard thing is, most of the compression apps I tried can compress video's just fine. Whatsapp also doesn't have any problem with sending any recorded video (those are not compressed obv.), so I am not completely sure if it is the ROM or Telegram uses a command that doesn't work with our phone. Can someone try it on the stock rom and see if it persist.

The back button is a virtual button. I don't think I can do anything about that.
[RAZR i Android Development] Aageetee:
Really? :/ That's weird because a restart solves the problem, so I thought it was a rom bug... But anyways, ty Hazou :D
[RAZR i Android Development] Hazou:
Have u ever done a clean install? Maybe that fixes it. Sounds like a file that gets coruppted from time to time.
[RAZR i Android Development] Aageetee:
Yes, I did. I had this problem with april build (2015), and I did a clean install of the latest build, but sometimes it occurs. But it isn't a big problem, I can deal with it.