yashsingh1/xdaforums huggingface dataset:
[RAZR i Android Development] paulle:
smooth twrp and cm11 install

installed first twrp-2.8.1 with tis tool https://play.google.com/store/apps/details?id=de.mkrtchyan.recoverytools&hl=de install went easy and without problems. After i used twrp to install cm11 and gapps. Install went fast and smooth too. CM11 is now running on the razr i, very fast and smooth and till now I didn't encounter any problem. Thank you [MENTION=4479363]Hazou[/MENTION].

edit: only thing not working: NFC, but this was reported by [MENTION=1904835]lebobo[/MENTION]
[RAZR i Android Development] chuckiebronco:
There really has to be a connection between nfc and airplane mode bug.

Just noticed that there is high activity of nfc services as soon as i entered airplane mode.

Actually i freezed nfc services with TB, but it does not seem to work... strange.... :silly:
[RAZR i Android Development] roymental:
I mentioned in a post before: I disabled the NFC process with the help of the app "Device Control". But that's only a solution if you don't need NFC at all :)

At least it worked for me.
[RAZR i Android Development] lebobo:
[MENTION=4479363]Hazou[/MENTION], do you think that it is possible that different radio firmware version could cause the NFC problem? FYI here is my radio version and I have the NFC issue... Maybe other members having / not having NFC issue could post their radio version...
[RAZR i Android Development] Hazou:
I have the same radio baseband and don't have any issue. Searching for solutions. Can u try to rename that file to a back name. So it won't be detected and try again? Or can u try to extract the libnfc.so and nfc things from the lib folder and try it on CM. Reboot afterwards always and make a backup.
[RAZR i Android Development] :
That's very weird. NFC firmware was downloaded I think 2 days after had installed CM. It works perfectly for me (with my headphones), it can be disabled or enabled without problem and there's no battery life issue ;)
[RAZR i Android Development] lebobo:
I just made 3 new tests :

1. I renamed /system/lib/libpn544.so to /system/lib/libpn544.old and I rebooted... I tried to enable NFC and I got same issue. Then I restored original name to this file.

2. I renamed the 3 files related to NFC in /system/lib/ (libnfc_jni.so; libnfc_ndef.so and libnfc.so) and I rebooted... I had 'force close' messages about 'NFC SERVICE'. Then I restored original names to those 3 files.

3. I connected my RazrI to my computer and I typed this adb command : adb shell getprop

I got some hardware info and some of them are about NFC :

[persist.mot.nfc.ce]: [50]

[ro.mot.NfcEnabled]: [false]

[ro.nfc.port]: [I2C]

Maybe someone NOT having NFC issue could type this ADB command to compare with my values...

Here is another way to search... I installed Google Wallet on my device because I read a lot of post related NFC issue if Google Wallet is not installed... But after installation of Wallet and a reboot I still have the NFC issue :(

I have no other ideas to try to solve this NFC issue !!!! If someone think about another test to do, please post here and I'll check because I need NFC on my device and I love CM11 from Hazou, I do not want to downgrade to the excellent Omar's JB !!!
[RAZR i Android Development] Hazou:
Could u try to extract all NFC related files from the stock 4.4.2 ROM. Files in lib folder and the apk ones and try again?

The adb command won't get u anywhere :P
[RAZR i Android Development] julianwi:
I extracted the files: libnfc.so, libnfc_jni.so, libnfc_ndef.so and Nfc.apk from stock 4.4.2

and after reboot I got the following error message in logcat:

java.lang.RuntimeException: Unable to create application com.android.nfc.NfcApplication: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=1605, uid=1027 requires android.permission.INTERACT_ACROSS_USERS
[RAZR i Android Development] Hazou:
OK revert the apk one. That is causing the error. Then see what happens. The nfd jni should download the firmware
[RAZR i Android Development] julianwi:
the stock jni file does not seem to be compatible with cm. I got following error:

I/NfcService(10594): Starting NFC service
E/dalvikvm(10594): ERROR: couldn't find native method
E/dalvikvm(10594): Requested: Lcom/android/nfc/dhimpl/NativeNfcManager;.doSelectSecureElement:(I)V
E/dalvikvm(10594): Candidate: Lcom/android/nfc/dhimpl/NativeNfcManager;.doSelectSecureElement:()V
E/dalvikvm(10594): JNI posting fatal error: RegisterNatives failed for 'com/android/nfc/dhimpl/NativeNfcManager'; aborting...
[RAZR i Android Development] simPlexicallity:
Works great on my razr i. Flashed with the latest TWRP. Initial boot took some time (and it looped a couple of times), but now it boots in one go.

Feels way more snappy than my old crowded stock installation. No problems experienced so far..

Only the camera app doesn't start with the camera-button when the phone is on standby, but I don't need that anyway.

Thanks!
[RAZR i Android Development] baxxter106:
Thanks [MENTION=4479363]Hazou[/MENTION] for your great work!

I guess, i 've got luck because everything that i need works. I guess even NFC - i can turn it on and off without errors - but i don' t need it... Installation was very simple and worked, no force closes, no errors, i installed the xposed framework for some things i won't miss...

One (stupid) question: how can i turn off the charging led? I tried with xposed but no luck...
[RAZR i Android Development] pablog_86:
Try "Disable Charging Led" module. It works great.
[RAZR i Android Development] avdim:
Does Apt-x bluetooth codec work in this firmware?
[RAZR i Android Development] Hazou:
never heard of it, but if it did on stock it propably will on CM11
[RAZR i Android Development] :
Who has video playing glitchy?
[RAZR i Android Development] baxxter106:
That was exactly what i needed...thanks!

My selfmade videos in hd and sd play very well also video playback on magine or zattoo tv apps - so here no problems with that...
[RAZR i Android Development] metalmoot:
Did someone find how to have HDR on the camera ?

I tried to put the old Motorola JB camera, it works but if you exit the app you have to kill her, otherwise the camera freezes
[RAZR i Android Development] Robadel:
I put de KK Stock camera, and works, i put the .odex too and make rw-r-r in the two.
[RAZR i Android Development] metalmoot:
Can you provide the apk and. Odex ? Is it the KK stock Motorola or the AOSP one ?
[RAZR i Android Development] godoy.rafa:
Installed it today. So far, so god! No issues.

Edit: camera stopped working
[RAZR i Android Development] Tschengis:
Renaming worked in my case! No nfc-bug anymore and I can enable and disable it regularly!

Does someone have any idea concerning airplane-mode? When I switch off and on mobile data after disabling airplane mode in the drop down menu, it comes back again - somehow weird...
[RAZR i Android Development] Hazou:
What did u rename? What do u mean bynit comes back after turning it on and off?
[RAZR i Android Development] godoy.rafa:
Can you teach me how to do that?
[RAZR i Android Development] lebobo:
Could you please explain witch file(s) you renamed and/or replaced? Did you scan a NFC tag to test?
[RAZR i Android Development] Robadel:
Try: https:// drive. google .com/folder/d/0B6ep8HFyojZcbjVWT01HeDlyMG8/edit

(Remove espaces)

Put in the system/priv-app and Mark as rw-r-r
[RAZR i Android Development] Scray:
This method worked for me. I can now turn NFC on and off regularly. Unfornuately I don't have any NFC tags or capable phones near at the moment to test it.
[RAZR i Android Development] metalmoot:
Thanks but Camera still crashes when I leave her and want to return.
[RAZR i Android Development] mercurio.:
deleting /system/lib/libpn544_fw.so worked for me. i verified scanning several nfc tags and everything seems fine.

who can use 5ghz wifi?

hazou could it be that some devices do not need to update the nfc firmware?

(see: http://blog.josefsson.org/2014/08/05/replicant-4-2-0002-and-nfc-on-i9300/ or http://redmine.replicant.us/issues/957)
[RAZR i Android Development] highjagger:
hi,

moving away libpn544_fw.so helps me too. now i can enable/disable the nfc service and xposed nfc unlock module recognizes my nfc card.

i also tried to put the stock kk motocamera in /priv-app/ but when i "reopen" the app the camera hangs.
[RAZR i Android Development] shaolinmaru:
I wanna say thank you so much for your work, [MENTION=4479363]Hazou[/MENTION]. This roms is smoother than else i've used! :laugh:

But (always has a 'but' :p) the GPS is not working for me. I've tried all the three modes in Google Maps, Endomondo and twitter, but my position is not set. This happened with someone else?

I'm having the NFC problem to too, but in my case is not important. The battery consumption on my Razr is (surprisingly) ok
[RAZR i Android Development] Lucki_X:
Thank you Hazou for your great work. This ROM is really fast and smooth, that's great.

NFC works for me now after deleting libpn544_fw.so. GPS is working for me, but fix takes longer, sometimes it takes up to 10 minutes, don't know why. I recognised today that USB tethering doesn't work for me.

The battery consumption is much better with greenify :)

---------- Post added at 07:43 PM ---------- Previous post was at 07:38 PM ----------

I tried it too with same result...crashes after when left the app and is a problem to start again.
[RAZR i Android Development] lebobo:
Use Faster GPS or another tool to force using a NTP server near your location. Fix will be very quick (about 20 seconds in my case)
[RAZR i Android Development] highjagger:
wifi ap romaing did not work

at first, many thanks for that work. the device with this rom is quiet fast and stable. battery usage is good (greenify with xposed).

so please go on, and let us know how to help.

i have two ap at home, and more at work. with the jb based rom from omar the inter-access-point-roaming works good. now the devices stays connected always to the same ap regardless off the signal strength. i took a look to wpa_supplicant. the version from cm seems to not support bg_scan or autodiscovery. i copied the wpa_supplicant incl. libpsc from stock kk rom and added the options to wpa_supplicant.conf. but the androidwifimanager always removes the lines.

i read that there is a build option for cm to enable bgscan. but currently i do not know how to build or check the build options.

also it would be cool to use omars kernel. the device boots boots with it but there is something with the display driver ...

regards
[RAZR i Android Development] shaolinmaru:
Thanks [MENTION=5102123]Lucki_X[/MENTION]

Thanks [MENTION=1904835]lebobo[/MENTION], works perfectly! :good:
[RAZR i Android Development] Lucki_X:
I'm using gps.conf with NTP servers set near my location but it doesn't help. I tried fasterGPS with same result. Fix is up to 1-5 minutes. When GPS is fixed for few minutes is unusable (unstable with distance mistake up to 2,5 km).
[RAZR i Android Development] Tschengis:
Well, I'm sorry for my bad explanation. I would have asked the very same quesions, if I were you :angel:

First of all I did this:

Unfortunately, I did not really had the chance to test NFC properly, but it switches on and off. Furthermore, I tried to read my university card and the app I used said, that this NFC code was unknown ;)

Secondly, concerning airplane mode:

When I switch on the airplane mode it does, what I expect from it. Then, as reported as bug, when I switch off airplane mode, mobile connection does not recover. But when I use the switch for enabling mobile data and e.g. switch on and off again mobile data, mobile connectivity re-enables.
[RAZR i Android Development] lebobo:
[MENTION=4479363]Hazou[/MENTION], now, after full clean install (format system, data, cache and internal memory), I can confirm that NFC works fine after deleting libpn544.so from /system/lib. It's perfect now! I still have a "small bug" with SMS app : i can't chose dark theme... I can check it but theme stay white...
[RAZR i Android Development] paulle:
Use Textra (playstore) for sms, works very well and has dark and light theme. Merry Christmas
[RAZR i Android Development] FourOne82:
This is not a bug, it's only working for quick reply.

If you need a blacked-out SMS just use a theme, just google "cm11 black".
[RAZR i Android Development] Hazou:
I don't have any issue with my 5ghz wifi connection. Works great.

Some NFC devices indeed won't need a firmware update. But why it happens to some and some don't have it is a mystery. But that is no news for our device.

Will have a look into the wifi thingy. If u found something, let me know. The kernel is indeed not usable at the moment.

Thanks for testing the nfc thing. It seems to work to not use the firmware inside the libpn544_hw.so. How i will update this in the rom i don't know yet. A firmware update is most of the time needed for extra features for NFC, but if more people report that nfc does work with the device and others i will most likely delete it.

Airplane mode i a known bug indeed, and that is the solution still.

I also found a fix for the media glitches. I am now using the new intel sources from aosp and they work nicely. Can take some time tho before the update will be live. Its holidays now so little time to do anything.
[RAZR i Android Development] Lucki_X:
Is there anyone who has the same problem with USB tethering. It doesn't work for me.

---------- Post added at 10:36 PM ---------- Previous post was at 10:33 PM ----------

It sounds great. :thumbup:

---------- Post added at 10:38 PM ---------- Previous post was at 10:36 PM ----------

I'm using 8sms app (playstore) with no problem and stock SMS app frozen.
[RAZR i Android Development] xNeo92x:
I still don't have write permission on my external SD card. I've tried nearly every SD fix app but nothing help. If put the SD card out and then in again, then I can delete a file for example but if I restart the phone then the file is back there. As far as I know, I didn't have this problem in the closed beta.
[RAZR i Android Development] Hazou:
I can try to make a build without any sdcard fixes and we could see what happens. Just as i said before, could take soms time ;)
[RAZR i Android Development] paulle:
I use the xposed module KitKat SD Card Full Access, it works very well. No problem with sdcard.
[RAZR i Android Development] xNeo92x:
I already tried that but it doesn't work.

The problem is, I did a dirty flash from the last closed beta version to the newest and I saved the .zip file on the internal storage instead of the sd card. And I only have the RC3 version on my SD card. So if I gonna do a clean flash then I only can flash the RC3 version. Even in TWRP I don't have write permission on my SD card and I don't have a card reader at home :eek:
[RAZR i Android Development] Hazou:
If even twrp can't access the external sdcard, another version of cm won't help you. It sounds more like the sdcard is bad or write protected by something. But twrp and cwm should always have access to the sdcard no matter what.
[RAZR i Android Development] xNeo92x:
Access is there but its read-only. I can't write or delete anything on it.

Well, I think I gonna backup and format the SD card tomorrow.
[RAZR i Android Development] tedeha:
Same here
[RAZR i Android Development] xNeo92x:
Now I did a backup and then tried to format the card through android. It shows then an empty card but if I restart the phone or pull it out and put it back in , then it's back to the previous state.

Then I tried to format it through TWRP even with the rm -rf option and it said that it was successful but after a reboot everything is back as it was.

Now I'm thinking about to buy a card reader because it's a 64GB card for which I paid about 30€ back then and I don't want to get rid of it so fast.
[RAZR i Android Development] dpraved:
Tried installing this, now the phone is stuck on the bootloader warning message, won't go past that. bricked? What would be the next step fixing ?
[RAZR i Android Development] Hazou:
What recovery did u try?

Do u have a nandroid backup, if so restore it or try again.
[RAZR i Android Development] dpraved:
TWRP and no I don't. On a loop, stuck on bootloader warning shuts down does the same again.
[RAZR i Android Development] bughunt3r:
I have bad news :(

The same thing happend to me on Omars JellyBean rom several month ago....

I don´t know if it is a problem caused by our razr i or if it is simply a brocken microSDXC card (The razr i officialy does not support microSDXC cards only microSDHC up to 32gb)

I tried it with serveral devices and card readers but i had no luck formatting the card or at least delete anything, you can send it in if you still have warranty.... but

(I didnt send it in because basicly all my private information are on this card: titanium backups twrp backups, photos.... and you just can´t delete it)
[RAZR i Android Development] Hazou:
What version of TWRP, the latest one?

U know how to go to bootloader and start recovery from there to maybe install another mod that works at the moment?

I made some progress with some new features. I can get rid of most/all video glitches but it comes at the cost of video-recording. In the new build it uses for half new intel sources to get rid of the glitches and for half the stock ones to get camera-recording working properly.

And for some others, i got HDR mode working :D with the stock camera app.
[RAZR i Android Development] dpraved:
It's not the latest TWRP for sure, only turns onto the boot warning when I plug the usb cable otherwise nothing..
[RAZR i Android Development] Hazou:
It is stated clearly in the description to use the latest recovery available for this device. The older recovery's can make your device into a brick.

What u need to do is turn the phone into the bootloader mode and flash the latest recovery. Then flash cm11 again.

For the case u don't know how to do this, do the following.

- Download the latest TWRP ro CWM.

- make sure your usb drivers are set up properly

- do a hard reset by holding power, volume up and volume down. After the phone turns off, release the power and volume UP. Keep holding the volume down button.

- now flash the latest recovery, format system and data/factory reset and flash the rom again.
[RAZR i Android Development] godoy.rafa:
Will you release a new version with the hdr camera?
[RAZR i Android Development] dpraved:
What it was i downloaded an archive(?) version of the rom and it failed to install, anyway fixed now :good:
[RAZR i Android Development] Hazou:
Found the solution. Now need to try to enable it (maybe need new wifi drivers, need kernel source for that) . Will be in next build if wifi keeps working.

Yep, but not just yet. Most likely next year some time.
[RAZR i Android Development] JX91:
I have two things to report.

The NFC returned to work when the renamed /system/lib/libpn544.so to /system/lib/libpn544.old

And I have a little problem with Bluetooth.

I have a Nokia BH-214, and noticed a noise in the sound, for days I was testing and the noise only appeared when I'm using Bluetooth.

I did several tests to realize that the noise happens when I reconnect the already paired Nokia, when I turn Bluetooth on and do the pairing for the first time the sound is great. But when pairing ever made, and the device connects automatic with Nokia, the noise come back.

So, I'm always redoing the pairing to not stick with that noise.

Hazou you have any idea what could it be?

Anyway thank you for the ROM, everything is great, never even thought I'd see the RAZR i with something as fluid and functional, thank you so much. :good:

And sorry for my English, I hope you could understand everything.
[RAZR i Android Development] nk57xx:
Just flashed TWRP and then did an Wipe of Dalvik, System, Data and Cache.

Cache was successful and now I am having the message "Formatting System using make_ext4fs function" since nearly an hour. What can I do?
[RAZR i Android Development] Kiristiba:
Wait... formating can take a long time
[RAZR i Android Development] lebobo:
Or you can select the alternative format method in advanced options of TWRP (format with rm - rf) : it takes about 5 seconds and works fine!
[RAZR i Android Development] nk57xx:
Finally, after nearly 3 hours the formating has finished.

Flashing the ROM and GApps worked fine. Had to edit the fix_mac.sh but after that, everything worked fine! Great work!
[RAZR i Android Development] Hazou:
Did this happen with the latest one? Weard. It must have done a filesystem check or something.
[RAZR i Android Development] nik.dovakin94:
Have somebody running circles widget on CM11?
[RAZR i Android Development] nk57xx:
Refering to the ROM or the Wipe? I used unofficial TWRP Version 2.8.0.1 from Hazou. ROM was the latest one.
[RAZR i Android Development] Hazou:
I was referring to the recovery. Twrp 2.8.0.1 is no the latest and in the install description it says to use the latest recovery available. So u should have used 2.8.1.0.

But I am glad it worked out well :)
[RAZR i Android Development] nk57xx:
That obviously happens if you don't read carefully. Actually I mixed up 2.8.0.1 and 2.8.1.0 :D

However, I will flash the latest version of TWRP later, just to be up to date.

Thanks for your help!
[RAZR i Android Development] highjagger:
i tried to get a look into that but my knowledge is not that goot here. there are two wpa_supplicant dirs, the one with the "_ti" in path sounds like texas instruments like our chips - but here all config options are fine.

external/wpa_supplicant_8_ti/wpa_supplicant/android.config:

# bgscan
NEED_BGSCAN=y
CONFIG_BGSCAN_LEARN=y
CONFIG_BGSCAN_SIMPLE=y

the other wpa_supplicant does not have the config options, also there is roaming and deactivated.

thanks for having a look at it. i am also very pleased at the HDR function :good:
[RAZR i Android Development] Tikki Pon:
Hi, can this mod work with razr i?

http://xdaforums.com/android/software/guide-how-to-port-real-xperia-z3-t2987476

based on cm11...the mod transform our phone in a Xperia Z3...can someone try this mod?

please :D
[RAZR i Android Development] lebobo:
[MENTION=4479363]Hazou[/MENTION], do you have plans to launch a new version soon to solve this issue? If you need help or a beta tester, maybe I can help you...
[RAZR i Android Development] Hazou:
I am planning on releasing the one with NFC fix, WIFI ti BC-scanning and the HDR function soon. Most likely this week.

A fix for that problem is still far away. I know where i need to implement something, but what that something should be i don't know yet. If u want and have a look at that code, see the patches for "frameworks/base" at around NativeLibraryHelper.java and PackageManagerService.java. There should be something implemented that will always copy over the arm libs and copy the x86 over it. So we can use the missing arm libs and make use of the native x86 libs provided.

This problem should actually be repaired by the app makers themselves. They ask for an arm string what the x86 libs can't provide. The MIPS devices also have this problem, i think.
[RAZR i Android Development] tedy212:
Really Fine!

Great Job! But I missed the Circle Rings Widget 3D.
[RAZR i Android Development] feydakin:
Any news on that? Im waiting excited for the next build to flash this rom to my girlfriends phone :)
[RAZR i Android Development] Hazou:
Posted it just yesterday :P

Still need to build it. It will be done when it is done ;)
[RAZR i Android Development] mervluk:
My unlocked and rooted RAZRi is now a spare phone having upgraded to the 4G MotoG. So I'm ready to experiment. It's got TWRP 2.8.1.0 recovery. Of course I've got a current nandroid backup on my external card.

Trouble is I kept it on ics 4.0.4 (Retail British) in case I wanted FM, which I don't. So how now best to flash this ROM as I guess it need the JB bootloader already installed and I can't OTA. I think the former pre-rooted homemade fastboots aren't available any longer, and Razr Root2 gives me CWM and I'm happier with TWRP which I'm used to, and my recollection is there's some issue about stock JB overwriting recovery and loosing root anyway? I'm know I'm being lazy, but any suggestions on the easiest route for me to try this ROM, please. I've got the latest RSD Lite, full SDK package and Moto drivers installed on the PC, if that helps.