[Android General] conzikool:
Mods, please move this post to the correct forum, I cannot find it anywhere.

This tutorial will tell you how to install a GSI on the Galaxy A04 SM-A045F.

Step 1. Finding your GSI.

There are a WIDE range of GSIs available. I primarily suggest:

phhusson AOSP no-gapps If you don't like google apps.

phhusson AOSP gapps If you like google apps.

these can be found here. Download and extract it into your android platform tools. A simple google search will remedy you.

Step 2. Unlocking the bootloader.

Open the settings app, and enter About phone - software information, and tap the build number you see as many times as you need.

exit out into the main settings menu, and tap Developer Options.

turn on the "oem unlocking" toggle. If this does not appear, your carrier has blocked unlocking and you therefore cannot follow this guide.

Power off your phone fully, and plug it into your computer. hold both the VOL UP and VOL DOWN at the same time while its plugged in. when you see this blue screen, hold VOL UP until you see the unlocking screen. Confirm it, and your device will wipe.

Step 3. Flashing the fastbootd recovery.

When you get to the setup menu, instantly power the phone off. Plug into your PC again, and hold VOL UP and VOL DOWN. This time when you get to that same blue screen, press VOL UP once. you should see "Downloading!!!" "do not unplug device" This is the point where you want to acquire Odin from here.

Once you have downloaded Odin and extracted it, run the program. Click past the warning, and you should see your device connected. Click the "AP" button, and select the "SM-A045F-FASTBOOTD-RECOVERY.tar.md5" file you downloaded from this post. Then click Start, and your device will reboot. Now, the moment it turns off, HOLD VOLUME UP AND POWER!!!!!!!! Not booting into recovery the moment the device reboots will cause it to be overwritten by the system, and you'll have to flash again

Step 4. Flashing your GSI.

Now its time to delve into the platform tools folder. On your phone, navigate to enter fastboot on the recovery and select it using power, and on your computer, open a command window in the platform tools folder. (Shift F10 for windows)

In the computer, run

fastboot devices

If you see your serial number followed by fastboot, you're good to go!

Now run:

fastboot erase system

This is sending that slow one ui to the pits of hell. (deleting it)

Then run:

fastboot erase product

fastboot resize-logical-partition product

This is clearing up the product partition, a useless partition taking an annoying 1.3GB of space.

Finally, run:

fastboot flash system path/to/gsi.img

I just usually rename mine to gsi.img and place it in the platform tools folder, so for me it would be

fastboot flash system gsi.img

Now sit back and relax, this might take a while.

Once it is done, navigate to enter recovery, select with power.

Then navigate to factory data reset, select with power, and navigate the warnings. when it reset, navigate to "reboot system now"

Step 5. Setting up

Navigate through the setup process. You may see the Samsung Smart Switch icon appear, I don't know why, but it may.

Congrats, you're done!