yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Lite Questions & Answers] solif95:
Okay. I apologize then for the slander given towards @mvikrant97 but obviously, being new to the forum, certain forum dynamics I am not familiar with and certain attitudes, while you confirm to me can be done in good faith, are easily confused with spam even though you confirm to me that @mvikrant97 is a good guy. Therefore, being new to the forum, it didn't cross my mind at all to ask the mods whether a person was trustworthy or not, because, besides believing that people don't normally do anything for nothing except in rare cases, I was interested in being able to find a solution to circumvent the huawei frp since, both due to technical shortcomings on my part and because I'm working a lot with my ebay store, I haven't had a moment to be at it. Obviously I will consider later whether to ask @mvikrant97 for help with these things, but I would also like to know how he does it, what software he uses and how he uses it, and whether the same operations can be done by a noob like me in the Android world. If he tells me what programs to use to purchase the license and how to use them rather I pay for the software too, I would obviously need a good procedure like the other user Alf gave me, which of course I could not follow because I found it too complex for my technical skills.

I find that in any case attacking a user who was only looking for a solution to a problem is not correct and it is also not in the spirit of the forum to behave this way since you make it clear that mutual aid is an important policy of XDA and attacking in this way a person who does not know certain dynamics is just contrary to these principles. In any case, I renew my apologies to the said user in the hope that he can explain to me in great detail the steps he takes with the said software, assuming they are feasible by a nerdy android user who nonetheless has experience in software programming and general computing for decades. If anything, I will contact him privately as soon as I have some time to figure out how to proceed. Thank you.
[Huawei P9 Lite Questions & Answers] surdu_petru:
Hello !

Just because you're new to the forum (welcome again) doesn't exempt you from lack of knowledge/non-compliance with XDA rules. as I think you well know, every forum has a set of rules to be respected, they must be learned and respected by each newcomer before posting. if you had learned about these rules in this XDA forum, you would have known that spam posts and applications/services demanding money from users are not allowed here.

Basically , your post above in which you suspect that the work and help provided by an XDA member seems to you to be spam, it should not have been exist - the moderator just drew your attention to your way of expression (assuming that you know the XDA rules, which state that spam posts are not allowed ).

Thank you for the understanding !
[Huawei P9 Lite Questions & Answers] Flechaa:
I have the exact same issue, OEM unlock is grayed out and disabled and the bootloader is unlocked (FRP locked and PHONE unlocked). However I have TWRP installed as recovery2 so I should be able to flash that zip and fix it right?

I should also restore recovery2 and flash TWRP in recovery instead, how would I go about that? Any help is appreciated.
[Huawei P9 Lite Questions & Answers] -Alf-:
Right.

Download stock eRecovery.img

https://mega.nz/file/whtgmbgJ#fJZnwVROAKW7P36Kp3n9gulWhpyiZ3Rnd-gE9EUq8cA

Flash it in fastboot mode, run command

fastboot flash recovery2 (file).img

Also flash TWRP in fastboot:

fastboot flash recovery (twrp).img

fastboot reboot
[Huawei P9 Lite Questions & Answers] Flechaa:
Thank you!
[Moto G Stylus 5G] atsalchenberg:
crDroid-9.7 v2023.07.23 by, Nazim, the damn gsi rom runs virtually flawless. No problem at all with install, you don't have to do bo funny business, just install the rom then fastboot -w. It'll boot first boot, hotspot Bluetooth 5g wifi volte everything works and functions great.

This isn't a question it's a statement so I didn't post it as a question. But it might be dev? But I went general. 🫰🏻
[Moto G Stylus 5G] fddm:
Custom roms built from electimon's moto-common are similarly flawless. I used to hate this phone, stock was unstable for me, but finally having access to good roms has really changed my mind about it.
[Moto G Stylus 5G] atsalchenberg:
I'm right along with you on your thoughts on the phone, it was sluggish with like a half a second hesitation on certain functions.

A good GSI changed this phone a lot.

I'm not aware of electimon's moto-common, I think I remember electimon releasing a lot of good A10 & A11 roms but I don't recall seeing anything new as of lately.

maube I should try and see what's out there from him
[Moto G Stylus 5G] D3RP_:
Are you actually running that on the MIlanf? From what I can find that's a Samsung device ROM
[Moto G Stylus 5G] atsalchenberg:
Yeah on Mulan f and it runs snappy and flawless.
[Moto G Stylus 5G] atsalchenberg:
View attachment 5975837

View attachment 5975833
[Moto G Stylus 5G] MrWishon:
So how does one install this ROM? Is it as simple as flashing the 3 .zip files? Just as stated in Electimons LOS ROM Guide?
[Moto G Stylus 5G] MrWishon:
Also where do you download the right ROM files specifically for the Moto G Stylus 5g 2022?
[Moto G Stylus 5G] fddm:
It's a trebleDroid GSI so there is no wrong rom, you'd just get it from the release page like any other device

Releases · naz664/crDroid_gsi

Script and patches for building PHH-Treble based crDroid GSI - naz664/crDroid_gsi

github.com

You probably want the file with arm64-bgN (arm64 for 64bit, b for AB devices, g for GApps, and N for no root).

(edit, forgot this step) Grab a copy of the firmware you have installed and disable vbmeta

fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img

fastboot flash --disable-verity --disable-verification vbmeta_system vbmeta_system.img

To install you'd extract the img, boot into fastboot (hold vol- while booting), wipe data with 'fastboot -w', boot into fastbootd with 'fastboot reboot fastboot', and flash the image with 'fastboot flash system crDroid-9.8-arm64_bgN-Unofficial.img'.
[Moto G Stylus 5G] MrWishon:
Dude you are a legend on this forum. Do I also need to disable my vbmeta before doing this? Using the "disable verify--" (or however the command line is spelled) command?
[Moto G Stylus 5G] fddm:
Yeah sorry, I realized right after posting.
[Moto G Stylus 5G] MrWishon:
Great minds think alike! Two more last questions and I'll stop bothering you lol.

1. Is this crDroid.xxx.img file the only one I need to flash to get this ROM going? I have my phone rooted. So does that make a lick of difference?

2. I have a copy of my current firmware on my laptop. Where do I place my current firmware file so that my platform tools command prompt knows which vbmeta.img and vbmeta_system.img files I'm talking about and to find them?
[Moto G Stylus 5G] MrWishon:
You're a great guy for doing all of this. I see you help a lot of people on here and I respect that. Thanks for being patient and imparting so much of your knowledge fddm!
[Moto G Stylus 5G] MrWishon:
Also... what's the difference between "slim" and non slim files for the crDroid .zip? (It's in the list of files you quoted..)
[Moto G Stylus 5G] fddm:
Doesn't matter, you will still have Magisk installed after flashing the GSI. They only change the system partition.

If you added the platform-tools to Window's PATH environment variable it wouldn't matter. Otherwise, just copy

vbmeta.img and vbmeta_system.img from the zip into the platform-tools directory and open your command prompt there.

Afaik, slim uses a read-only partition while the standard versions are read-write.
[Moto G Stylus 5G] MrWishon:
Thanks a million man. Really, thank you. So I thought some extra work had to be done in order to make the Moto G Stylus 5g 2022 be able to read-write? I guess I'm completely wrong on that?
[Moto G Stylus 5G] fddm:
I think these system images are built without the 'EXT4_FEATURE_RO_COMPAT_SHARED_BLOCKS' flag which would otherwise prevent mounting R/W. Basically the vndklite versions of other GSIs made standard.

You might hit an issue where the size allocated for the system image within the super image is too small to hold the GSI where the slim version may help since it will be smaller. Otherwise you would delete partitions in inactive slots or wipe useless partitions (i.e product and system_ext for milanf) to make room.

Since this is Moto, it's good to mention that you want to take at least one update or install copy-partitions through recovery or your device will brick if it ever switches slots for whatever reason.
[Moto G Stylus 5G] MrWishon:
I've been doing some of my own research on how to flash / install custom GSIs on Android as we are having this same discussion too. I don't want you to think you have to hold my hand through all of this lol! You're helping someone who's willing to help themselves here as well, so thank you again for your responses. Some additional questions I have..

1. What command could I run to wipe those additional partitions if I run into the issue of the GSI being too big? And how do you wipe them from inactive slots?

2. When I flash modules via Magisk, it'll notify me at the start via the command terminal that my current slot is "slot_b". So then I assume "slot_a" is already prefilled, given that I recently updated to Android 13 via OTA. The question I have though, is how do you switch between slots? And how do you usually fill a specific slot? I know taking a stock OTA or recovering a stock .img from Motorola Resuce Assistant will fill one of those slots. Atleast that's my understanding of it.

3. Where would one get the "copy-partitions" needed if a slot needs filled? I see some ROM Devs have you flash their own version of this file when installing their ROM. I guess this is to prevent this slot issue huh?
[Moto G Stylus 5G] fddm:
Let's say I'm on slot b in fastbootd and I want to empty the product partition on slot a, I'd use

fastboot erase product_a

fastboot resize-logical-partition product_a 0x0

Some people delete partitions, probably works fine too, but I think it's risky. Resizing is also probably safe on active slots too since GSIs don't try to mount these partitions. I always just flash an empty partition instead out of fear. I'll attach an empty partition in case you want to use it. In this example you'd flash it like this

fastboot flash blank.img product_b

If you were on slot b and wanted to switch to slot a, use

fastboot --set-active=a

Taking a OTA will populate the inactive slot and switch to it and flashing stock will only populate slot a.

They are all mostly the same, just use a recent one so it has an updated list of partitions to skip. I just use the one listed on Lineage OS install pages

https://mirrorbits.lineageos.org/tools/copy-partitions-20220613-signed.zip
[Moto G Stylus 5G] MrWishon:
So another question I have... is that some guides that talk about flashing GSIs also encourage the user to erase the old system partition before flashing the new GSI using the command:

fastboot erase system

They say that installing the GSI over the existing Android system will result in issues like endless boot loops where the device does not finish the boot process, but yet I don't see any guides here recommending to do this... What do you recommend fddm?
[Moto G Stylus 5G] fddm:
It should be redundant with the flash operation, but there is no downside to erasing first.
[Moto G Stylus 5G] MrWishon:
Thank you for everything fddm. Not all heroes wear capes!
[Moto G Stylus 5G] MrWishon:
So to regain root access, would I need to patch the GSI .img file with magisk first?
[Moto G Stylus 5G] fddm:
You'll still have root, just install the Magisk app.
[Moto G Stylus 5G] MrWishon:
So first of all, everything went so smooth and silky on flashing the latest crDroid 9.8 GSI! You were a huge help and it was amazing man. But one issue I'm having now is that I can't receive ANY calls or texts, nor can I send them.... I actually tried two different GSIs, all by the same dev of crDroid (I tried crDroid & Sparks OS), and I have the same issue on each one... Still can't get any texts, calls, or send / make them. What do you think could be the issue? Everything else works flawlessly... The only I did have to do was delete the logical partition on slot b to make more room for the GSI.

I am using Mint Mobile by the way... I have a physical SIM card and all. Mint feeds off T-Mobile towers. It gives me T-Mobile whenever I run custom GSIs, which is technically still the same as Mint and correct.

I also redid my APNs in phone according to my service providers website and instructions, but still no success...
[Moto G Stylus 5G] fddm:
In the Settings menu, there should be should be an option somewhere for 'Treble Settings', and somewhere in there will be an option to install an IMS apk. Should resolve the issue with voice and text, but may require further tweaks in that menu to get everything working right. Bluetooth audio will also be broken by default, but I don't remember the specific setting that fixes it(Alt audio policy, maybe?).

I ran lineage-20-light a while back, then moved to building custom roms for myself, so specific GSI bugs and quirks for this device are not fresh in my mind.
[Moto G Stylus 5G] MrWishon:
Yup. I did the IMS APK install as well. That gave me VoLTE, and that allowed me to send texts and make calls, but I still couldn't receive them... And hitting the "Install IMS APNs" doesn't work either. Like it just doesn't do anything. Button is broken... Any other GSIs you know of that are stable and are better daily drivers? I'm guessing basic Lineage OS is the way to go with that, huh?
[Moto G Stylus 5G] fddm:
That's a good question. The thread claims issues with Moto vendors since Android 12

https://xdaforums.com/t/gsi-13-lineageos-20-light.4509315/post-88669973

but I did get it to mostly work with an Android 12 vendor. I want to say there were intermittent IMS failures/crashes, but it wasn't a huge issue for me as long as data worked. If ceaseless debugging fiddling does not get it working maybe a boot/vendor downgrade will help.

If your not in it for the learning experience and need a daily driver I'd honestly just use electimon's LMODroid rom or stock. GSIs are just the wrong tool for the job in this case.
[Moto G Stylus 5G] MrWishon:
Does flashing back to the stock system via Motorola's Resume Smart Assistant tool fill both A/B slots as needed? If A is only filled, how can I fill slot B now since my phone won't take OTA updates anymore? Just want to make sure both slots are filled before flashing another GSI as to not give myself a bootloop.
[Moto G Stylus 5G] fddm:
Only slot a will be populated after flashing stock, after flashing you can take an OTA or flash copy-partitions. There is no reason to reflash stock if your just trying a different GSI, though. Just wipe data.
[Moto G Stylus 5G] MrWishon:
I reflashed stock due to needing to be able to send texts and calls... But as far as I know I was still on slot / system b when I did so. If my active slot is A, and I want to fill slot B via the copy partitions file you shared with me, do I just simply set slot B as my active and flash the copy partitions like normal? I also can't take an OTA update anymore, due to having had wiped my /system before when flashing the GSIs... So if messed up my verification feature of my phone and is preventing me from getting OTA updates on anymore.
[Moto G Stylus 5G] fddm:
Don't switch slots! Boot recovery and flash copy-partitions.

You should be able to take OTAs after flashing stock, at least until you modify it by flashing Magisk or whatever, weird. LMSA will always give you the latest version so likely no updates are available.
[Moto G Stylus 5G] MrWishon:
Can I buy you a drink for all your help??? You are a godsend.
[Moto G Stylus 5G] MrWishon:
So after I flash copy-partitions on the current active slot I'm on, can I just proceed as normal with my GSI flashing process? Since the other slot will be filled?
[Moto G Stylus 5G] MrWishon:
How can I flash the copy-partitions.zip without having to install a custom recovery?

Also I don't even know why LMSA isn't updating my stylus back to Android 13... The most up to date firmware it says is Android 12. Which I know is to be a complete lie . I can't take any OTA updates since attempting to flash those GSIs. But I'm really not that concerned about it as long as I can find a work around to filling slot B on my device. Hence, trying to flash the copy partitions.
[Moto G Stylus 5G] fddm:
Grab TWRP here

https://xdaforums.com/t/a-team-rele...5g-2022-xt2215-4-milanf.4490737/post-87414289

and boot it without flashing

fastboot boot TWRP_Recovery_Boot-Moto_G_Stylus_5G_2022.img

It's also possible to flash both slots through fastboot, but there is no need with a working recovery.
[Moto G Stylus 5G] MrWishon:
The MAN!!
[Moto G Stylus 5G] MrWishon:
I just wanted to tell you THANK YOU dude for everything... Because of you, I have one rocking Moto G Stylus 5g! I mean this thing just gets after it... My Moto now has an amazing custom GSI w/ root running on it. I hope others read this forum from years to come and benefit from your shared experience and knowledge as I have did. Keep up the good work.
[Moto G Stylus 5G] MrWishon:
Theres a simple .apk you can download that fixes that call, text, and mms issue too I discovered. ;)
[Moto G Stylus 5G] fddm:
That's interesting, I figured downgrading to Android 12 vendor would fix it. Mind sharing if that project actually fixed the issue you had?
[Moto G Stylus 5G] MrWishon:
Here's the post I found the "base.apk" that fixed my texts and calls issue! It's post #22 by jhjhjhjhjhjh.

https://xdaforums.com/t/gsi-compatibility-thread.4375925/page-2

As a side note, I did have to go "Phh Treble Settings" in my custom GSI settings and enable "Request IMS network" and "Install IMS APK for Qualcomm pre-S vendor (Motorola)". After that everything worked flawlessly.
[Moto G Stylus 5G] MrWishon:
So it's wasn't a "full" fix. I have this issue where anytime I call anyone, it will dial up just fine, but as soon as my 5g switches over to LTE / LTE+? It completely drops my call. Kills it. Even with "Forced 4g calling" turned on via Phh Treble Settings, it doesn't fix the issue. The only work around I found was to go to my "Radio Info" and set my network type to "LTE only". I read a comment somewhere on here that moving the "org.codeaurora.ims" from data/apps to system/apps helps too. What do you recommend for this issue fddm? This is practically the only roadblock I'm running into with this crDroid 9.8 GSI.
[Moto G Stylus 5G] fddm:
Switching to LTE only is probably the fix tbh. All calls are already volte and the IMS app is already a system app via a stub iirc.
[Moto G Stylus 5G] CoolCrescent186:
Almost a complete noob here. I've followed the instructions for kiev to flash LineageOS to my Ace, but I broke the screen on it, so I stopped using it. I now have a Moto G Stylus 5G 2022, milanf. I would like to flash a custom ROM to it, and was completely dead in the water (blame my lack of experience) for months until I found this thread. Could someone essentially hold my hand and give step-by-step directions on how to flash a ROM (crDroid is fine, I would like to keep some of the Moto Actions- flashlight and power touch, if possible, though) to milanf? I am running a Linux Mint device, and have no other device if this doesn't work. I have my current firmware and the specific TWRP I'm using right now, in addition to a servicefile.xml. I can revive this phone if something goes wrong, but not if anything goes super wrong (like blanking S/N or IMEI). I've read part of this thread, and see that this seems to be working, but I just want to know if anything (Wi-Fi calling, etc) doesn't work. My carrier is Google Fi.
[Moto G Stylus 5G] CoolCrescent186:
When I bricked my Stylus, I recovered it by using the insanely slow Moto Smart Assistant, and *then* flashing a fully up-to-date ROM from Lolinet. OTA is working to my knowledge, but I don't know because Motorola is slow as flip with software updates. I have the Fi variant and have no idea if an update is out after the July 2023 security patch. I know Android 13 is out generally, but that doesn't mean a lot to this slow support cycle lol.
[Moto G Stylus 5G] fddm:
You don't want a GSI unless you love tinkering or are a developer. milanf has actual custom rom support that is very stable and fully functional. It has moto gesture support as well. I've been running Lineage OS I built myself for months now and it's rock solid.

The builds from electimon are here (lmodroid_milanf-img-10.zip being the latest atm)

Index of /android/milanf/jenkins/

1pwn.ixmoe.com

You'd flash the attached copy-partitions from recovery and then follow the guide. libremobileos gives you the option for Gapps or MicroG or whatever on first boot, so you don't need to flash that separately.
[Moto G Stylus 5G] CoolCrescent186:
Thank you so much for the info! Two more questions; do I unzip the folder first, and run the commands in the unzipped directory (as I assume), and does this custom ROM get updates that don't require resetting user data? I don't care if I have to plug in my phone to my computer and run a script, I just want to know whether or not usually will user data be wiped with updates via this ROM. Thank you so much for your help!
[Moto G Stylus 5G] fddm:
You only need to extract the zip if you have problems flashing per the instructions. I just boot to fastbootd with 'fastboot reboot fastboot' before running 'fastboot update package.zip' (or more precisely 'fastboot lmodroid_milanf-img-10.zip' in this case) and have not had issues.

The instructions have you run 'fastboot -w' which wipes data. You only need to wipe data on first install or if your switching roms. I know electimon did OTAs in the past, IDK if he still does though.
[Moto G Stylus 5G] CoolCrescent186:
So to install it, I would open a Terminal in my Downloads folder with the ROM zipped, also in my Downloads folder, and then run

adb reboot bootloader
fastboot -w
fastboot update package.zip
fastboot flash product product.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash system_ext system_ext.img
fastboot reboot
[Moto G Stylus 5G] fddm:
I'd suggest this from previous experience

adb reboot bootloader
fastboot -w
fastboot reboot fastboot
fastboot update lmodroid_milanf-img-10.zip

The 'fastboot flash' commands are only if you receive an error and it doesn't finish flashing.
[Moto G Stylus 5G] CoolCrescent186:
Ooooooh

Thank you so much! This will save me an infinite amount of pain and heartache!
[Moto G Stylus 5G] stevetotaro:
I was able to get LMODroid installed on my phone with your directions and it works great, thank you. One question maybe you can help me with though. Now when try to boot to TWRP the touchscreen doesn't work and neither does connecting a mouse. I would like to be able to use the TWRP backup function if possible. Any ideas?
[Moto G Stylus 5G] fddm:
Should have came with recovery afaik, but whatever. This ofox should work. I think you use Advanced -> Install Recovery Ramdisk to install.
[Moto G Stylus 5G] stevetotaro:
It did come with recovery but lmodroid recovery doesn't have the backup option like TWRP. The orangefox twrp is doing the same thing. There's no way to interact with it.
[Moto G Stylus 5G] CoolCrescent186:
In my experience, TWRP is somehow loading touchscreen drivers from the OS- which if changed, wouldn't be present. Connecting a mouse has worked for me in the past, though (with no OS installed), that not working is strange.
[Moto G Stylus 5G] fddm:
Normally recoveries will embed vendor modules/firmware so they match the packaged kernel. The recoveries available for milanf do not apparently. This is dead simple to fix for sure, but I don't use them so I haven't bothered myself.

Not entirely sure why ofox isn't working now since I update so rarely. Probably just needs to be repackaged with a recent kernel.