yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Has anyone else had problems restoring TWRP backups of crdroid with this phone? I was trying to restore boot/data/system, but the system partition threw "extractTarFork() process ended with ERROR: 255". To get around this, I ended up having to install crdroid fresh, then restored only the data partition, and I also had to delete the /data/system/locksettings database file, because I couldn't get past the lock screen pattern afterwards (entering the correct pattern wouldn't work).

Could all this have something to do with TWRP backups not restoring when using the fingerprint reader, or is that just coincidental? I do recall reading about people on other phones not being able to restore with TWRP when they had used the fingerprint reader at the lock screen, but I don't know if that's what's actually happening here with restoring the system partition.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
The only thing I can tell you, if I do a reboot of power off an on, my fingerprint sensor is'nt working anymore for unlocking. I have to swipe and enter my pincode (or in your case use the pattern) to get in my phone. However, I have found a fix to solve that. Remove sim/sd-card tray. Reboot or power off/on. You can now unlock it using your fingerprint sensor. After your phone is ready, you can replace the sim/sd-card tray. Then it asks to enter the sim pincode. Fingerprint sensor can now be used for unlocking. But this issue might come back as soon as you want to reboot or power off/on.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
You are right, all rom's which have no updates for about 3 months are getting the battery draining/mobile data eating problem (so far Pixel, DotOS, ArrowOS). But this rom (CrDroid January 2022) indeed does not have or going to get this problem. The point of no return has past already. The only other rom which works is LineageOS (april 2022), but I assume that's going to fail next month.

I am using TWRP. With root. I never have installed or used Magisk.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Regarding Magisk, I believe I had to install it because it also patched the boot such that TWRP wouldn't get wiped on every restart. People elsewhere talk about just rebooting immediately back to recovery after the first run of TWRP, but that didn't work on this phone.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Why would that be the case next month?

Btw, the Telegram group is saying:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I was using PixelExperience_Plus_potter-11.0-20210910-0159-OFFICIAL.zip from march 2021 until december 2021. Then I discovered it suddenly went crazy, constantly downloading systemupdates, not only using wifi but also using mobile data, and becouse it's very busy doing that: a huge battery usage. So I switched to dotOS-R-v5.2.1-potter-GAPPS-20211123-1441.zip which was working fine at that moment. But in Februari 2022 that ROM did get exactly the same issue, so I switched to Arrow-v11.0-potter-OFFICIAL-20220122-GAPPS.zip Unfortunately that ROM also got the same issue April 2022, I also tried PixelExtended_potter-11.0-20210816-1319-OFFICIAL.zip and PixelPlusUI_3.11_potter-11.0-20211125-1125-OFFICIAL.zip, both of them were having the same issue. So I tried crDroidAndroid-11.0-20220223-potter-v7.15.zip, and that works without any issues. On my backup Moto G5 Plus I have lineageos-18.1-20220414-UNOFFICIAL-potter.zip installed, wich works for now, but think it probably will fail July 2022. I think so becouse the other rom's also were getting this problem when it got about 3 months old. I think it has to do with the fact that most roms act like it's a Google Pixel Phone instead of a Moto G5 Plus. This is not the case with CrDroid. The fix you mention does prevent mobile data eating, but not the battery drain problem.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Is USB File Transfer working for anyone? I get no internal shared storage showing up at all for the phone in Windows when connected and selecting File Transfer, and 897MB out of 897MB when selecting PTP, for whatever reason.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fR33Styler:
****... so it doesnt work for me (due to the 2-factor auth apps recognize rooted devices) :/
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
What's the solution to keep TWRP from getting wiped each boot, then? Can something else patch boot without having root, and keep 2FA apps? I personally don't need root.

Edit: Nevermind -- this may not be applicable to crdroid or other custom OS installs. It may only have been the case with stock. I just uninstalled Magisk from within the Magisk app in crdroid, and TWRP doesn't get wiped on reboots.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
And if I insert an SD card, the SD card will show up for USB file transfer, but no internal storage.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I am using internal and sd-card storage seperate, and do have access to both, using usb.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
I'm also using them separately, but I only see both in Windows Explorer if I connect it while in TWRP. If I connect it while in crdroid, only the SD card shows up. I wonder what the cause of the difference is.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fR33Styler:
thank you for trying... looks good then i think (y)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] FailSafeNow:
Hey, everyone. I wiped cache, dalvik cache, system, and data, just like you're supposed to, and flashed the rom, GAPPS, and Magisk, right down the line. My first boot has taken about 30 minutes so far. How long should I let it keep going before I give up and try again?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
How did it go? You might get faster responses from the Telegram group: https://t.me/potterofficial
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] FailSafeNow:
Well, turned out wiping the usual things wasn't enough. To install this ROM, I had to format data. That's not something I'm used to, but apparently for this upgrade, I had to do it. I don't know if it's because they dramatically changed things from Android 9 to Android 11, maybe with scoped storage (garbage) or something else, but I had to migrate everything off the device, format data, and install anew, which I'm in the process of doing now. I'm not happy about it, but it's not this ROM's fault. Another ROM I tried did the same thing.

Is there an explanation for why simply wiping cache, dalvik cache, system, and data wasn't enough? Is there a reason this job required the extra step of formatting data? Like I said, I was wondering if it had anything to do with changing directory architecture from 9 to 11.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
I asked the same thing a month ago. :)

@cjdijk replied, but didn't exactly know why -- he just said that various install guides he's seen say to do it.

With this ROM, I'm also concerned about being able to backup and restore it successfully with TWRP. (I need to get to the bottom of what was causing it to not be able to restore the system partition for me a few weeks ago.)

Also, people have had issues with encryption. One guy said you could install gothicVI's build of Lineage 18.1, then encrypt the phone with that and then flash crDroid afterward, but I've never done that.

Edit: Yesterday I tested but did not have success encrypting with recent gothicVI or diegosantos1983 builds of LOS 18.1, so that doesn't seem to be a straightforward solution.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
I see the same thing on a recent, unofficial LineageOS 18.1 build.

Edit: And here on crdroid.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Now that I've had a chance to dig deeper, I'm actually seeing constant, repeated logcat entries from this issue on a fresh install of crdroid, so I it seems that crdroid is not immune. This is with open_gapps-arm64-11.0-pico-20220215. Which gapps did you use? The issue seems to be some sort of bug involving Google Play services, more specifically com.google.android.gms/.chimera.GmsIntentOperationService.

Edit: I may not have wiped system before going back to crdroid, and I read that could also be a cause of it continuing to happen. Also, some people tried multiple gapps (flamegapps, nikgapps) and it persisted. I guess I'll have to dig deeper: https://xdaforums.com/t/fixed-root-...ry-drain-due-to-google-play-services.4406617/
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
I just did some further testing, making sure to wipe system this time.

On crDroidAndroid-11.0-20220223-potter-v7.15 with NikGapps-full-arm64-11-20220709-signed, I saw the overwhelming amount of repeated SystemUpdate entries. After updating Google Play services to the absolute latest version, it actually temporarily stopped these entries, but after restarting the phone, they came back.

I'll have to test some previous versions and see if I can find a point where this wasn't an issue.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I am using crDroidAndroid-11.0-20220223-potter-v7.15.zip with open_gapps-arm64-11.0-nano-20211211.zip

My mobile data using is 16.33MB during last 10 days From which 3.38MB Google Play Services. So, no problem here. I do have just 250MB mobile data each month. So I have configured in my settings, it never can exceed 200MB a month. Maybe the Systemupdates are also affected by newer versions of GApps?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
I just tested NikGapps-basic-arm64-11-20211018-signed for comparison, and I initially wasn't seeing the SystemUpdate messages in logcat, but I was getting "error retrieving information from server DF-DFERH-01" in the Play Store, so I was still skeptical. After restarting the phone, The messages have returned, so I guess I'll have to test old opengapps next.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
CrDroid was for me the first ROM I ever used which didn't have a version with GApps included. So I asked GtrCraft (the creator of CrDroid) which one best to be used. He replied Open_GApps_Nano. So I have combined crDroid v7.13 [17.12.2021] with open_gapps-arm64-11.0-nano-20211211.zip, and later crDroid v7.15 with the same Open_GApps_Nano. I never tried another GApps with this ROM.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
I couldn't find a copy of open_gapps-arm64-11.0-nano-20211211.zip, but testing the earlier open_gapps-arm64-11.0-nano-20210924.zip, and I'm still getting the continuous stream of SystemUpdate messages. There must be some additional variable involved here.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
That's strange, I also can't find it anymore on https://sourceforge.net/projects/opengapps/files/arm64/ It must been deleted for some reason? I do have a local copy here, so I am sure that's the one I used. If I would download it again, I think I would choose open_gapps-arm64-11.0-nano-20220215.zip (choosing the nearest date to the rom date, a bit older, not newer). Maybe you could do a clean install without importing settings from your google account?

Here is my guide how I did it.

To be complete, I am using TWRP (3.5.0_9-0).

Copy crDroidAndroid-11.0-20220223-potter-v7.15.zip and open_gapps-arm64-11.0-nano-20220215.zip to sd-card.

Turn off smartphone. Press 2 buttons at the same time 1) Volume down and 2) Power, and hold both, until:

On smartphone you see fastboot flash mode.

Press about 2 times Volume down until it says RECOVERY MODE, press Power button.

Mainmenu TWRP appears.

If your smartphone goes to sleep, press Power button and then Swipe to unlock.

Click Wipe, Advanced Wipe, select Dalvik / ART Cache, System, Data, Cache.

Click Swipe to Wipe.

Click 3 times Back (<) (Your going to mainmenu).

Click Install, Choose crDroidAndroid-11.0-20220223-potter-v7.15.

Click Add more zips, click open_gapps-arm64-11.0-nano-20220215.zip.)

Swipe to confirm Flash.

If your smartphone goes to sleep, press Power button and then Swipe to unlock.

Click Wipe Cache/Dalvik, Swipe to Wipe.

Click 3 times Back (<) (Your going to mainmenu).

Click Wipe, Format Data. Type yes, Click blue button.

Click Reboot System.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Yeah, that's what I've been doing, a completely clean install, no importing of my settings from my Google account before testing adb logcat. I'm not signing in to Google at all before doing the testing. Your installation steps match mine. The only difference besides the slight gapps version differences so far is that I'm using twrp-3.6.2_9-0-potter, but I doubt that has an impact.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I think you are right, twrp version should not matter, as long is not too old. The only thing I didn't mention, but to be honest, I don't think it's going to solve your problem, is that after the first boot, I noticed some double apps, for example Google Call and CrDroid Call, Google SMS and CrDroid SMS, Google Calendar and CrDroid Calendar. I did disable and uninstall (if possible) all double CrDroid Apps, and set the Google apps as default. I like to use Google Call becouse of the advanced phone number recognition, and Google Calendar to be synced with my pc using the same Google Account. The other thing you could do is contact GtrCraft?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
If it's a PixelPropsUtils issue, as per @jjpprrrr on 12.1 Polaris Pixel Experience, then it might be worth contacting the developer of that. I'll look into that further.

In the meantime, I just tested going back to crDroidAndroid-11.0-20210518-potter-v7.6.zip, but it's still broken there. How far back do we have to go?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I am out of solutions for you. It's very strange, becouse it seems you are the only one with this problem with this rom. I only have the mobile data eating/battery draining problem with ArrowOS, DotOS, PixelExperiance, PixelExtended and PixelPlus, but not with CrDroid. By the way on my backup Moto G5 Plus I have LineageOS, which didn't have this problem too, but I assume that it now also has that problem, last update was april 2022. All rom's did work fine until the latest version wasn't updated anymore for about 3 months. So I was very surprised CrDroid still works, am using it daily on my main Moto G5 Plus.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Keep in mind that I actually haven't done a controlled test of my battery or data -- all I know is that I have the SystemUpdate error messages constantly overflowing the logcat output, so I know the underlying issue is there. I mostly keep data turned off, as I'd rather not waste what I have.

Have you looked at your own adb logcat output lately to see what messages are appearing? Maybe it's possible to have these messages *without* the corresponding data or battery hit, depending on the OS/gapps combination?

It still makes no sense that a fresh install for me would produce the messages, but not for you -- but you haven't wiped your phones completely to test recently, so we can't say for sure. Another variable could be our potter hardware variants, though I'm skeptical of that. (I'm on the 2GB model.) I'd still like to get to the bottom of this, because it's clearly an annoying bug, even just the logcat spam, and it's causing problems on other ROMs, not just this one.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I am just thinking, did you ever change the hosts file on your Moto G5 Plus? There are guides how to prevent mobile data eating, adding lines to it like: 127.0.0.1 ota.googlezip.net and 127.0.0.1 ota-cache.googlezip.net You do not need this using CrDroid. And important: I know this from my own experiance. When flashing (another) rom, your hosts file remains unchanged. So maybe this causes your error messages. Change the hosts file back to default (removing the extra lines you might have added once). Manualy disabling mobile data in settings is no problem. I have it turned on and only use about 100-150mb each month. I have also set a limit, to make sure I can't use up all my mobile data: Network and Internet, Mobiele network, Datawarning 100MB and Datalimit 200MB. Cylus for mobele data 9. (In my case every 9th day of every month my mobile data resets to 250MB). So I am sure there is no way I ever can use more than 200MB every month, preventing extra mothly costs. By the way, I have the XT-1685 model (3GB and NFC), but this should not be a problem, I am sure it works on your model too. Batteryusage. In a weekend I don't use my smartphone very much, I am using about 20% every 24 hours (with battery saving enabled). But in a normal day that's about 30%. But when using navigation/gps it goes much faster. If I type "F:\Moto G5 Plus\platform-tools_r31.0.0-windows>adb logcat>logcat.txt" on my laptop when connected using usb to my Moto G5 Plus, I get a very long list of messages. Most of them systemupdates, There seems to be no errormessages. I have stored those in a text file and can search in it for something? What shoud I search for you, to help you?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
You may very well be right that the log messages are not sufficient to cause the data/battery issues. I haven't tested it enough to say. They're still annoying when trying to debug other issues, though! I will test the upgrade from 7.6 to 7.15 today and let you know if I run into a boot loop.

Btw, someone has successfully removed the Pixel spoofing from a custom build on a different ROM, and the problem went away for them -- so we're getting closer to a solution! See the recent discussion here: https://xdaforums.com/t/fixed-root-...le-play-services.4406617/page-5#post-87173289

Edit: Going from 7.6 to 7.15 using the built-in updater didn't boot loop, fortunately, but it also didn't cause a reprieve of the SystemUpdate messages, so no easy workaround in that. It was worth a shot, though.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
Thanks for the link, but I don't think it's an easy fix. The good news is, I know GtrCraft is working on a modified Android 11 build, with a included patch for this issue (modified framework?).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
@GtrCraft , for reference.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Link?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Well, I got bored and made a new build. So here is 7.20:

https://sourceforge.net/projects/crdroid/files/potter/7.x/crDroidAndroid-11.0-20220720-potter-v7.20.zip/download

Changelog:

- Initial crDroid v7.20 code base

- Updated to July 2022 security patches

- Updated host file to block system update data drain
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Thanks! I'll test it in a sec.

If you click on "jjpprrrr said:" above the quote it will take you to his post (it's in the "[POLARIS] Pixel Experience" thread.) But it was just me asking him whether the fix for the battery/data draining issue in 12.1 PE had the capability to be backported to various A11 ROMs. He told me:

More important is the following, evidence that removing the spoofing fixes it (though you may not need to remove all the spoofing, per jjpprrrr:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
GtrCraft has send me the download link of his new 7.20 build yesterday morning before making it public, and asked me to test it myself, but not make the link public yet. I tried it with open_gapps-arm64-11.0-nano-20220503.zip (newer version as I used with 7.15), and as noted in his flashing instructions in his first message in this topic. But this does not work (for me). May be it has to do with the existing rom, doing a fresh clean flash over it. But after booting, it gets stuck, showing the CrDroid logo. It was my backup Moto G5 Plus containing ArrowOS 11.

After asking him about this, he said he has tested it himself with FlameGApps-11.0-basic-arm64-20220612.zip So I did a clean flash again (same smartphone), but now with FlameGApps-11.0-full-arm64-20220612.zip and that works. I am using it now on my primary smartphone also including my simcard. And everything works. My "old" smartphone with CrDroid 7.15 has become my backup and is turned off now. I have chosen full instead of basic becouse I want Google Call, SMS, Calendar and Contacts. If you choose basic, you mis those and need to use the CrDrois Apps for that.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
@cjdijk , after he shared the link above, I tested it, and found that it did away with the SystemUpdate messages. I'm not seeing the flood of them now. Not sure whether it was the hosts file blocking, or something else. It's good to know that you also got it working.

Now that that's dealt with, and speaking of these ROMs getting stuck at boot, can we try to figure out why all of these Moto G5 Plus ROMs get stuck at boot when trying to encrypt them, for example? The logcat will display the following messages when it gets stuck at the boot logo, and these repeat over and over and over. I'd like to at least figure out a way for people to not have to start fresh after this. Could it require editing some init file -- removing some pertinent line so it stops the failed encryption attempt (it never even gets to the point of actual encryption):

07-17 02:05:30.557 450 450 I hwservicemanager: Since vendor.qti.hardware.cryptfshw@1.0::ICryptfsHw/default is not registered, trying to start it as a lazy HAL.
07-17 02:05:30.558 452 19912 I HidlServiceManagement: getService: Trying again for vendor.qti.hardware.cryptfshw@1.0::ICryptfsHw/default...
07-17 02:05:30.559 450 20247 W libc : Unable to set property "ctl.interface_start" to "vendor.qti.hardware.cryptfshw@1.0::ICryptfsHw/default": error code: 0x20
07-17 02:05:30.561 0 0 E [48694.209109,0] init: Control message: Could not find 'vendor.qti.hardware.cryptfshw@1.0::ICryptfsHw/default' for ctl.interface_start from pid: 450 (/system/bin/hwservicemanager)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] cjdijk:
I am not using encryption, and yes, I did do a format data, as I always do. I just combined the wrong GApps with CrDroid 7.20 (Open GApps Nano instead of FlameGApps basic), causing my bootloop. I can't check my old logcat, have already performed a clean install over it, using FlameGApps.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mmortal03:
Oh, I'm with you -- I know you weren't using encryption. It just seems that these ROMs are particularly sensitive to getting stuck at the boot animation, and I'd particularly like the encryption process to not do that, lol.

It'd be awesome if we could reach a point in our knowledge of the boot up process such that we wouldn't need to resort to clean installing them practically every time one of these boot issues happens. Some sort of safe mode would be great -- but we also just need to find out how to stop these individual services from looping at boot in the first place. Like remove a line from a startup file or whatever, and then the phone will successfully boot again.