yashsingh1/xdaforums huggingface dataset:
[RAZR i Android Development] je_rem_y:
I prefer not install them ;) I'm not the only one in the bug report and I sent a log, so I hope that we will have an answer or a fix from Wire.

https://github.com/wireapp/wire-android/issues/518
[RAZR i Android Development] kobi-wan:
I did a fresh install (with formating everything) and it's running smoothly! :good: :D

Surprisinly the "nano" gapps package worked for me now. In the past I could install pico only (was small enough).
[RAZR i Android Development] dwtoledo:
Dear Hazou,

I'm facing a mobile network issue since cm11 (version 20161222).

When I turn the mobile on I do not have mobile signal, so I navigate to Settings > Mobile Network > Preferred network type > and I change the option "GSM Only" to "WCDMA only", then I have mobile signal! :)

But the "Preferred network type" option that I changed does not stay as "WCDMA only" or none other options after awhile of phone turned on, so I have to constantly switch this option (GSM to WCDMA only) when I look the phone and I see no signal. I tried other options as "Global", "GSM/WCDMA auto", but without success, after awhile it always come back to "GSM Only".
[RAZR i Android Development] Hazou:
So any older version than 20161222 works?

Very strange. Doesn't you country has any 2g connection anymore? Wcdma is a 3g technology.
[RAZR i Android Development] capitarider:
Hi Hazou,

Credits to you that you keep maintaining the Cyanogenmod/LineageOS-software for the Motorola Razr i. Thank you so much!!

Switched from CM11 (version from May 2016) to current LineageOS 11 yesterday. Everything is running perfect and smooth. Tested many apps so far and can´t say anything bad so far.

But here I have 2 questions:

1) One thing I noticed that I still wanted to report: In both camera apps, "Open Camera" and "Stock Camera" I have some strange shadows on the display, like clouding. It occurs on the display and on the photo and definitely wasn´t there before I switched to LOS11. The camera app itself is working properly.

Anyone else recognised this clouding?

2) Eyery time I´m updating to a newer Rom, I do a full wipe (Dalvik/ART Cache, System, Cache, Data, Internal Storage). Newer made an actual backup (apps, settings, etc.). I didn´t care so far, because I always have a new system without all the crap apps. But it takes a while to download and set up everything again so I thought, next time I´ll do a backup. How do I do the backup? How do I put the backup on the new system? What is the correct app?

But once again: Thank you so much Hazou for keeping the Moto Razr i alive. Thumbs up !!
[RAZR i Android Development] dwtoledo:
I checked the network coverage at Vivo's website, and I have 2G, 3G and 4G coverage in my region (Itatiba/São Paulo - Brazil).

But is it normal I can only select "GSM only", "WCDMA only", "GSM/WCDMA preferred", "GSM/WCDMA auto" and "CDMA/EvDo/GSM/WCMDA" options in Preferred network type and after awhile I go back to this option and see that the phone switched back to "GSM only"?

I'm downloading cm-11-20160524 and monitor the signal performance. I'll keep you in touch.
[RAZR i Android Development] Hazou:
So in the old CM one. from december 2016 it was okey? I haven't changed anything related to camera in the sources. Can it be the camera lens?

If you know u want to keep all the date, just make a nandroid backup in recovery and dirty flash the new zip file on top of it. I will mention it when u need to do a "full" wipe if it is needed.

I only refresh my device ones every half year. My personal preference.

I don't know why it goes back. But those settings are normal.
[RAZR i Android Development] capitarider:
Hi Hazou,

I was on "cm-11-20160524-UNOFFICIAL-smi" before and had "open_gapps-x86-4.4-nano-20160611" installed.

Checked & cleaned the camera lens. That´s not the reason.

I will upload 2 photos which show the issue, the first is a normal shot, the second is a made with the setting "negative".

No one else facing this problem?
[RAZR i Android Development] Hazou:
Yow, that's not nice to have. Unfortunately it looks like a hardware camera issue. Can u try to go back to 0524 and see if it persist?
[RAZR i Android Development] gianfrancobarbi:
same problem

I had the same problem since ever. I bought it from second hand.
[RAZR i Android Development] capitarider:
@ Hazou

Switched back to "cm-11-20160524-UNOFFICIAL-smi" and the problem still persists. So, unfortunately it's a hardware issue.

@ gianfrancobarbi

Thank you for sharing this information. Definitely a hardware issue. Same problem here.
[RAZR i Android Development] 1stStep:
Hi Guys

I'm ready to go now my Razr i is unlocked and has Hazou's TWRP3.0.2-0. - not yet rooted. I repaired it for a friend that had crazy battery behaviour, changing the battery after some factory resets that didn't repair it . As the new battery shown same madness, I had idea to look for updates and found OTA 4.1.2 was available, then 4.4.2, this one is now the current on the device (KIA20.74 - vodafone.en.FR). Battery issue is a bad memory now. I use the phone for me now for some days ATM. The friend will use this phone mainly in France.

Although, I'm turning mad myself to read some guys here got the same issue after they flashed this ROM.

I have 2 questions please.

Is it mandatory to install the Gapps? I'd rather use only F-Droid apps or ones that do not require a google account, but I can't find the bare minimum local phonebook that don't need an account from some external server (the friend didn't have a goog account, he ignored he used his brother's one from who he got the phone as second hand) .

Is there a way to go back to the current stock ROM if the battery becomes mad again? I did a backup to the sdcard with the TWRP option (data, system & boot) - is it enough ? - should I have rooted the phone before? Anyone here would need something in my phone?

Thank you all
[RAZR i Android Development] brunohrbarros:
Did you manage to solve the battery problem?

My battery is still crazy, going up and down every time. It seems this problem started with December build, but I'm not sure because my phone has almost 4 years old, charging every day.

I would like to try stock ROM again, and see if the problem persists, but I don't know how to downgrade safely.
[RAZR i Android Development] Tamsta_T:
Replacing battery and flashing 4.1.2 solved battery issue completely for me; phone was pretty usable right after flash, couple of weeks later remaining problems (random reboots mostly) were gone and now phone is rock-stable again. If you're not in a hurry just get a battery replaced and don't bother goin' back with firmware, after couple of weeks everything should be fine. Phone needs to recalibrate battery and it takes time; flashing 4.1.2 seems to delete old calibration data so process is much faster.

---------- Post added at 05:10 PM ---------- Previous post was at 05:01 PM ----------

I wouldn't bother if I'd be you - batteries are not eternal and 4 years for a battery that's charged every day is a lot! So my advice would be - if you're looking for a real difference just get old battery replaced. Final decision is, definitely, on you ;)
[RAZR i Android Development] brunohrbarros:
I totally agree with you!

Thank you!
[RAZR i Android Development] 1stStep:
I can't say I reached this myself. Instead it seems the OTA did it, and again this is after I changed the battery. Not being a heavy nor android-skilled user, I can't give very aware advice.

An idea that just came to my mind is this one : as we don't have a "wipe battery stats" in TWRP, but assumed some suggested a problem with battery calibration and when in fastboot the battery seems OK, I believe there is a software problem (maybe with priority of threads or duno what - me-not-a-geek - because battery is a critical device that can be injury source, maybe Moto added an additional (beside yet embedded security electronics in the battery ) piece of soft for battery monitoring and control... and how can we (they) know the remaining % of battery capacity ? : by really draining a well known and not-so-small current during some successive well known short time at well known close intervals .... and read the voltage at each current peak then deduce the discharge slope which will give the remaining capacity when checked against manufacturer data... if there are no bugs therein)...

So my idea : boot in fastmode and let the battery to discharge fully - maybe some experts can explain how to run tasks from fastboot that would help to drain it faster (not too much although - but many successive nandroid backups to sdcard with compression+ encryption could do the job), then recharge the battery fully (for this I have no idea if it would be better to do it in normal or fastboot).

Hope this could help you man.

If this doesn't, as Tamsta_T said, change the battery...
[RAZR i Android Development] Tamsta_T:
No. Google account is needed only if you want to have cloud backup of your address book and if you you want to use other google services (maps, playstore etc.).

Yes, just you might not be able to use your backup (not sure about this but I don't think you'd be able to recover 4.4.2 system or boot partitions after flashing the phone with 4.1.2). If you want to backup your data only, use „nandroid backup“ or something similar.

---------- Post added at 05:59 PM ---------- Previous post was at 05:26 PM ----------

Battery monitoring is done by monitoring voltage (at least in most cases). While battery is OK even big load would change voltage just a little bit (let's say 0.01V), but if battery is old, it's capacity is small and if you put a load on a battery, voltage would drop dramatically (up to and even more than 1V!) so phone thinks battery is nearly empty; as soon as need for power is decreased (cpu went to a lower frequency, some app stopped etc) voltage would increase and miraculously your phone's battery would jump from nearly empty to nearly full without any charge :) If voltage under load would fall lower critical level, to prevent bad things happening battery monitoring circuit would power phone off „dirty“ way - suddenly cutting power off while skipping operating system's power off procedures (closing open apps, stopping services, unmounting storage etc). And that's exactly what we see happening to our XT890 :(
[RAZR i Android Development] 1stStep:
Hi man. About the addressbook, I read somewhere there is (was?) a "Me" account in CM. Is it ? And is there a addressbook in this ROM or addressbook is a (open)Gapp?

Hi Tamsta

My idea is to instruct the friend to export his contacts sometimes somewhere in the phone and use Syncthing to backup to his computer the same way it could also use it to transfer media in both directions (e.g. camera-pictures->PC; Music->Phone).

Maps too requires a Gaccount nowadays? I have an old Acer Liquid with GB and no Gaccount and I can use Gmaps.

Ohohoh, I don't understand this : what has 4.1.2 to do with my phone (yet 4.4.2, and it would remain 4.4.2 with Hazou's LOS11 isn't it ?). And more : a backup I can't restore is not a backup. Also as I factory reset it recently, I have nothing to backup in data ... and the phone is a friend's one I'll give him back when I end the job.... so why do you say "Yes (you can backup)".

BTW, is backup from TWRP (from fastboot) is a nandroid backup ? (I'm yet aware there is an official TWRP with opt App, but "our" nice Razr i isn't supported).

Thank you for being there to help noobs
[RAZR i Android Development] Tamsta_T:
I' not sure about CM account and gmaps… I'm using pico assembly of open gapps and all synchronizing stuff is working without any problems; never tried to use gmaps without account either so yes, it's very possible it will work that way (in previous post I just needed example of google services so wrote first thing that came to my mind; my bad, sorry). I was not using gapps for some time but I have couple of paid apps and I got boring to update them manually + I lost couple of important phone numbers between firmware flashes (forgot to backup them) so I just gave up my privacy :eek: and installed gapps.

Backup should work fine if you'll be switching between 4.2 and CM.
[RAZR i Android Development] 1stStep:
Ok man, it seems I have my answer for backup: if my TWRP backup would work to go back/forth stk4.2<->LOS11(4.4), I understand it will work too for stk4.4<->LOS11(4.4). Nice :)

And for the adressbook app, I guess you had one in CM without gapps, nice too. Or did you use a third party ?

A last question please, about the Xposed thing : I searched but only found it is to customize the look, hazou doesn't like the way it's backported to 4.4 (making use of ART, IIUC). I think my friend could live without it to customize the look : I checked In the stock 4.4.2 and the default runtime is Dalvik (=ART disabled) and I'd rather stick to a standard such important thing - I guess the option to switch to ART in stock ROM being hidden in developers options, this was experimental for 4.4. On the other hand I think I read things about Xposed was the solution when I searched around my concern that writing to SDCard was no more possible.

Any comment on this please, you see I'm just a beginner in custom ROMs with just a small linux background.

I don't know how F-Droid apps would deal well with this strange mix of 4.4-x86-Dalvik/ART. Can we completely not use Xposed?

Thanks again Tamsta

---------- Post added at 10:36 PM ---------- Previous post was at 09:42 PM ----------

I believe this is more complicated than a singleshot if $Vbatt < 3V then poweroff. There must be a dedicated chip on the board that samples Vbatt several times per second, just to calculate some average value by removing quantization noise and extreme discrete values, then delivers a reliable OK/KO signal to the CPU, and even the value to display to the user. Well, you're right, there is no need to generate additional calibrated over-consumption, although this can be done with a current generator an help of some high precision power resistors. Although, I can't see why my new battery worked ok first then when I gave back the phone to my friend the issue came back (before factory reset and flash to 4.1 then 4.4). And also why it shows stable OK in fastboot when mad in normal use. As far as I know, lithium batteries don't suffer the memory effect the NiCd had. They just loose capacity with time. And an erroneous calibration would not make the battery voltage to change even 0.01V... some mystery remains in this story, don't you feel ?
[RAZR i Android Development] Tamsta_T:
I think address book is a part of calling program; I was looking for a way to completely replace it but I never succeeded in that - the only way to remove address book is to remove call app, but if I remove it, no third party call app would work. So now I'm using third party one as „default“ but system one is still here and some apps if asked to access address book would open that „system“ and not „default“ address book. Google, CM or any other account is required only if you want to get cloud backup; useful but not necessary and if you want you can use any third party app to backup your contacts or not to backup at all.

Same thing here - useful but completely optional. I'm using three modules only, but they are really useful for me so Xposed is running on my phone. „Gravity“ module is really useful for customizing things but CM already has most of those tweaks built-in, so it's completely up to you to use it or not. Xposed is easy to install, so install, play with it for a while and if you'll find it useless just remove it ;)

Dalvik and ART - it's very easy to switch between them (just make sure to have backup) so it would be shame not to try both of them ;) One of apps i'm using is not compatible with ART so I tested phone running it for couple of days only; did not see any difference so went back to Dalvic and forgot ART exists :)

I've never experienced any issues with SD card so can't comment on that.

No, it isn't :) More complicated stuff is more expensive, needs more space and uses more power - no manufacturer would waste these just to give you precisely accurate battery readings. And why would you need that data anyway? You have estimates and that's more than enough for most of users.

I have no clue, but: lets say battery logs are kept in different places in 4.1 and 4.4; you flash 4.1 and phone gets good battery's logs but if you flash 4.4, logs are those of failing battery and you'll need couple of weeks for those logs to be overwritten (battery calibrated).

Again, just an assumption: fastboot gets battery info from different source (every phone has at least two battery controllers: one onboard and one is attached to battery) or all systems are working at constant speed (no power save modes and no services to start or stop) while in fastboot so there are no load fluctuations; no load fluctuations mean no voltage jumps or drops so battery „counter“ is working fine even with bad battery.[/QUOTE]

Problem is not memory effect nor calibration, problem is loss of capacity. If battery in your car is too small or not fully charged, lights would dim every time you'll try to start the car; that's because battery can't give out amount of current (A) it's asked for and this causes voltage to drop; exactly same thing happens with old phone's battery, just a scale is a bit different :)
[RAZR i Android Development] 1stStep:
Thanks for all replies man, that's very kind. I did the jump yesterday in the night and I can yet say my friend will have a diamond in his pocket. Wonderful job was done for this ROM. I can't figure how many hours the devs spent for this !

I didn't install Gapps, but the phone has a local phone/addressbook (called system).

ATM it hasn't gmaps, surely a consequence of my decision and maybe OSMnand will do about the same.

I can't disable NFC service (option turns grayed instead of checkbox just clears, then when I quit and go back into settings NFC is still enabled).

Black theme selection in SMS app doesn't seem to work.

I also have to check how the sdcard works for usb external storage (I remember I corrupted my wife sdcard in her stock Samsung note3-lite Lolipop while putting a bunch of pictures on it from a ubuntu 14.04 laptop).
[RAZR i Android Development] 1stStep:
Hi all

Nice, after a reboot the NFC is disabled :)

It seems I have only a remaining issue with the file explorer : when I want to move files (I would do cut/paste from the main menu, as cut option doesn't show on long press contextual menu) it complains "This operation is not in current directory"

Superuser item shows in Settings. Any idea guys?

Thank you

[EDIT] su -v says 16 com.android.settings

I believe I saw info from Hazou on first page in this thread that said to intall su, but it seems it is removed since latest release. Is it still to be done by every flasher?

And BTW, although I can't move files, I can delete.
[RAZR i Android Development] Hazou:
Really want to know how much time I spend:P ,last 2 weeks already multiple hours for nothing...

NFC maybe something to do with the libpn544 lib somewhere in the vendor map. Some users needed them(like me) some didn't. Dunno why.

Sdcard is mostly a problem of the sdcard itself.

In the file explorer included in the build u need to enable root functions in the general settings of that app.

She is included in the ROM.
[RAZR i Android Development] 1stStep:
Thank you Hazou, I missed it. Now it's enabled and I was prompted to grant root access, what I did "for ever".

Also, the problem remained the same. :confused: . In the end I understood what the problem was and even could disable root access and it still working. It was a problem of "way to do" in my mind:

I did : Select then Cut (usual way for me since DOS2.0 :cyclops: ) and immediately got the error "Operation not allowed in current folder".

Okay I write down the good way here for newbs that may find this:

There "Select" IS "Copy" (the menu only shows Paste and Cut what is puzzling). Then browse to destination, and only now choose Paste to make a copy, or Cut to move the previously selected item.

This silly thing made me loose my whole saturday including the night. I give up with the libmtp error as it seems only related to the computer and the friend for who I repair the phone mainly uses a W7 PC. No chance for the old Linux laptop I tweaked for him, I'll need to warn him never plug the Razr in.

Grazie mille Hazou, it all over now. I just regret the noise here and I lost my day when I could have go to the post office this morning with the phone in parcel.

Okay, a last question for my knowledge : I installed both Firefox & VLC. For Firefox from F-Droid, it crashed all time on startup. I had to go to the mozilla ftp I grabbed the x86 apk which I installed and it worked.

Please teach me why did I have to do so as the runtime is Dalvik (not ART, and I know Razr i is x86)? IIRC I installed the x86 apk for VLC too (but I'm not really sure as I dl'd both x86 & ARMv7), whatever it works. But for all other apps I installed I didn't have to wonder the Razr CPU architecture and match the install (I did nearly everything with f-droid and extracted 2 apps that run on my own GBread LiquidMT).
[RAZR i Android Development] Hazou:
Ubuntu works great. I use it all the time to try things on my phone. If I need to do other work I go for w10.

The device has x86 arch. But it can execute most arm function because of an on the fly translator (Houdini) build into the ROM. This translator works most of the time. But in some cases it can't translate the arm code and crashes.

This is most likely the case with Firefox. The fdroid one has only arm or is missing some x86 libs to function properly along side the translator. The special x86 Firefox will work great. It has the x86 code build in and the translator isn't needed to execute Firefox.
[RAZR i Android Development] 1stStep:
Thanks for teaching about x86, Hazou.

There is a post here about the error we get with libmtp : https://bugs.launchpad.net/ubuntu/+source/mtp/+bug/1370572
[RAZR i Android Development] dwtoledo:
Hazou,

I used "cm-11-20160524-UNOFFICIAL-smi" a few days and the mobile network problem persisted, so I installed "lineage-11-20170130-UNOFFICIAL-smi" again, same problem... BUT, fortunately, since last week I'm not having any more problems, so I conclude the problem was an instability in my operator's 2G/3G services and not the os!

Thanks a lot for your support and interest in understanding and helping me!
[RAZR i Android Development] Hazou:
Good to hear
[RAZR i Android Development] Doblete_:
Any way to solve this problem?

http :// imgur.com/ OcipxGU
[RAZR i Android Development] Hazou:
What does a logcat say?

And i think it is because of ARM instruction the translator can't translate to x86.
[RAZR i Android Development] Doblete_:
How can I get the logcat?

Edit:

https:// mega.nz /#!9VlzkRKT!sTj2r3-ZCpJU2OR0Bo1LhJuDShSAheuflCvGAl9C52M
[RAZR i Android Development] lymon66:
Android is upgrading...after every reboot

I'm getting the message "android is upgrading.." and "optimizing app x out 100" after every reboot and it takes at least 5 minutes, before I can use the phone again.

It's starting to get really annoying now and I was wondering if anyone else has this issue with this ROM ?

I am using this ROM as of version cm-11-20160521-UNOFFICIAL and am now on the latest/current version (lineage-11-20170128-UNOFFICIAL) and the issue is still there.

Have searched and read it could be caused by a permission issue for odex files, but I don't have any odex-files in either /system/app or /data/app

Have wiped DALVIK/ART cache several times, but this doesn't solve it either.

Any other possible solutions or things I could try ?

Thanks,
[RAZR i Android Development] 1stStep:
The latest is 20170130
[RAZR i Android Development] 1stStep:
Hi

Is there a way to make persistent the 950mA setting in USBChargerCurrent?

Thanks
[RAZR i Android Development] brunohrbarros:
Make a full backup to avoid lost your data and try to wipe system partition on recovery and then flash the ROM again. It worked for me.