Trying to install GSI on a Samsung A8 (2018)

Alright, I’ve started again. Now I’ve flashed TWRP correctly. I could successfully reboot to stock OS :slight_smile: No RMM lock too !

1 Like

@piero

I’ve flashed TWRP as described. I got no errors in TWRP logs until the phone rebooted after I had flashed the TrebleCreator. Before rebooting to recovery, the logs said “rebooting to recovery in order to avoid Signal 11 error” or something like that, and once rebooted, I went in install>flash in order to flash the new TWRP. However, some logs were already here, and they said “failed to mount >system, data and cache” if I remember correctly.

What that does is that I still can’t mount system, cache, etc…
What I’m gonna do is repeating the steps again BUT I’m gonna use the treble TWRP 3.2.3 instead of 3.3.0 this time. Do you think it’s worth it ?

excuse me i am lost, where are you ?

1 . first step from stock, treblelizing ?
https://xdaforums.com/t/guide-treble-a530f-a530w-project-treble-guide-for-galaxy-a8-2018-18-04-2019.3894881/

**Project Treble for the Samsung Galaxy A8 (2018)**

Instructions

  1. Boot the device in current TWRP Recovery Mode
  2. Wipe system/cache/data
  3. Copy the TrebleCreator.zip(of your variant) and TWRP-jackpotlte-Treble.img to your Internal/SDcard
  4. Flash the TrebleCreator.zip through TWRP recovery
  5. After completing your device will reboot to RECOVERY
  6. Now touch INSTALL > Select Image > Locate TWRP-jackpotlte-Treble.img
  7. Flash TWRP-jackpotlte-Treble.img to recovery
  8. Reboot your device to recovery
  9. Once TWRP is booted you first need to Mount > your /system, /vendor, /cache, and /data partition
  10. Wipe system, cache, vendor, dalvik cache and data.

Bingo! You have successfully trebelized your A8 (SM-A530F)/(SM-A530W)

2 . (A/B) Android 10 Vendor: https://forum.xda-developers.com/t/sar-vendor-10-a530f-a530w-a730f-vendor-quack-v2-5-for-galaxy-a8-a8-2018.4157533

**- STEPS FOR INSTALLING TREBLE VENDOR:**
  • Make Sure You Treble Your Device By This Guide here
  • Boot into Twrp recovery
  • Wipe System, Data, Dalvik and Vendor.
  • Select Vendor_Quack.zip

3 . install a Q based GSI

- STEPS FOR INSTALLING GSIs:
Download the desired GSI (it MUST be A/B_arm64 Variant)
unpack it if it wasn't in .IMG format
Go to TWRP , Install , Install IMAGE
Pick your GSI and select SYSTEM IMAGE
Reboot to System

all is worth than nothing…

searching for a working link for “Vendor Quack”
i just found this : Vendor-Quack_V.2.6.zip and
useful instructions and links from 2023

Stuck at step 9 of the trebelizing part. Impossible to mount system, cache or dalvik…

unlike you, i haven’t read the entire thread … Lol … but, by chance / method, i found this updated TWRP that could help…

TWRP 3.6.x.x treble jackpot

1 Like

Alright, according to that post, TWRP needs to be updated. I’m gonna try the one you gave me :crossed_fingers:

Edit : Didn’t work… I am really unsure about what to do now… Why can’t TWRP mount system, vendor and cache partitions after I flashed the TrebleCreator ???

i have no experience with G.S.I., @Xxpsilon may help here ?

It’s unfortunately not even about G.S.I. yet… It’s about repartitioning a A only device to a fake A/B partition using the Treble project… The project was created in 2019… Might be quite obsolete now…

( 2 years old )

How to Install Custom Recovery

  1. Check if your phone isn’t RMM Locked. click here
  2. Download required files:

Install Samsung USB Driver and extract files on Odin V3.13.1.zip on your computer.

  1. On your phone, go to Settings App > Developer Options then enable OEM Unlock .

Note : If you don’t see Developer Setings, go into About phone > Software info and tap “Build number” 10 times to show Developer Options menu.

  1. Shutdown your phone, then enter Download Mode by press and hold volume up, volume down and power button together. A confimation screen will appears, press Volume Up to continue.
  2. Open Odin3 on your computer, go to Option section and untick “Auto-reboot”. Once that, click the “AP” button and select the TWRP tar you downloaded before, then press the “Start” button.
  3. Once Odin3 finished to flash recovery - (you will see PASS message) - force reboot the phone by pressing Vol. Down and Power together, after the screen goes black, press Volume Up and Power together to enter recovery mode.

Note : First time booting to TWRP, they will ask you to “Allow system modification…” just allow by swipe to the right.

  1. After booted to recovery, select Wipe > Format Data and follow the insctruction on the screen to decrypt your /data partition.
  2. Back to home screen, select Reboot > reboot to Recovery. Now, TWRP can mount /data partition.
  3. Move no-verity-opt-encrypt.zip and RMM-Bypass.zip to your phone. After that, install those files (touch Install > select each zip then flash it).

For more details, visit this forum [https://forum.xda-developers.com/t/recovery-official-twrp-3-3-1-0-for-galaxy-a8-2018.3818201/]

How to Treble Samsung A8 2018

  1. Download required files:
  1. Boot to current recovery.

Shutdown your phone, press Volume Up and Power button together.

  1. Wipe /system, /data, and /cache.

On TWRP, select Wipe > Advanced Wipe then select partition to wipe.

  1. Move downloaded required files to your phone.
  2. Flash the TrebleCreator.zip, this steps will automaticly reboot to recovery.
  3. After that, touch Install > Select Image > locate TWRP-jackpotlte-Treble.img
  4. Flash TWRP-jackpotlte-Treble.img to recovery.
  5. Reboot the device to recovery. This will boot to new installed recovery.
  6. Mount /system, /vendor, /cache and /data. Touch Mount > select the partition mentioned.

If you can’t mount the partition, wipe the partition mentioned (Wipe > Advanced Wipe) then reboot to recovery.

  1. Install vendor by flashing the Vendor-Quack_V.2.6.zip

That’s it, you have treble your phone, now you can install GSI ROMs. Please note that, if you follow this instruction, your phone now not have OS installed (because we wipe the /system and /data partition, this is mandatory). Next step is to download GSI ROM to install on your phone. Visit this link to guide you what ROM can be installed.

GSI ROMs Guide

I assumed that you have followed insctruction and successfully install custom recovery and treble our device. Now, we can install GSI ROM!

Here links to collection of GSI ROMs : Generic System Image (GSI) list · phhusson/treble_experimentations Wiki · GitHub

Before you download the GSI ROM, please follow this instruction :

  • Our device can use GSI that came with Android version 9, 10, and 11 (depends on vendor installed). → Some people manage to install GSI with Android 12, but buggy.
  • Our device use VNDKLite, so download ROM that use VNDKLite.
  • Our device support A/B Partition.
  • Our device is ARM64 architecture.

So, in summarize you need download the image named: system-arm64_[xyZ]-vndklite.img

  • x can either be a or b
  • y can either be v, o, g or f
  • Z can be N or S

b = a/b → we must download this variant. a = a-only

g = gapps
o = gapps-go
v = vanilla (no gapps included)
f = floss (free & open source apps instead gapps)

N = no superuser
S = superuser included
Z = dynamic superuser included

-lite/vndklite = for VNDK Lite vendors (also can help with broken camera even on normal VNDK vendors).

Example : arm64-BvZ-vndklite.img is ARM64 with A/B partition, vanilla, with dynamic superuser included, and use vndklite.


Installing ROM

Let’s say you found your GSI ROM, and you have downloaded the file. If file you download comes with .xz format, you need to extract it.

To install ROM:

  1. Boot to recovery, then copy/move extracted image to your phone .
  2. Flash image from recovery and flash as system image.
  3. Back to TWRP homescreen, touch Reboot > Recovery.
  4. Then, Reboot > System.

Install Magisk and MicroG

Install Magisk

  1. Download Magisk APK from official github release : here
  2. Rename .apk file to .zip. Example : Magisk-v24.0.apkMagisk-v24.0.zip.
  3. Flash the zip just like any other ordinary flashable zip.
  4. Reboot and check whether the Magisk app is installed. If it isn’t installed automatically, manually install the APK.

Install MicroG

Just follow instruction from this github page

All files needed for treble your phone in this link.

These and other links here are long dead, not very helpful anymore.

sorry, my bad,

it is a dirty copy paste of the the instructions contained here :
samsung-a8-treble-project/Guide/install-treble.md at main · yoshikuniii/samsung-a8-treble-project · GitHub
(2years old)
Capture d’écran du 2025-01-20 22-21-11

however i am used to consider TWRP 3.3.1.x as the best of all version…

https://xdaforums.com/t/guide-treble-a530f-a530w-project-treble-guide-for-galaxy-a8-2018-18-04-2019.3894881/page-7#post-86097069

Post in thread ‘[GUIDE][TREBLE][A530F/A530W] Project Treble Guide for Galaxy A8 2018 (18/04/2019)’
https://xdaforums.com/t/guide-treble-a530f-a530w-project-treble-guide-for-galaxy-a8-2018-18-04-2019.3894881/post-88585735

Took me a bit, but found the post. Maybe helping!?

Your copy paste was helpful, as i didn’t see the note explaining to wipe the partition if i was unable to mount them, which makes sens… I’m gonna try that asap. Maybe tomorrow.

1 Like

I have found most of these files. If you go back in this thread, you’ll see the links.

Did you find this from the above XDA post?

I’ve updated TWRP with the /vendor patch to 3.6.0_9-0 if anyone wants an updated version → Downloads for : Samsung Galaxy A8 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Yep, i tried it. You can get it using the link. Just need to refresh the page when you get an error.

That’s good!
I have a flashed A8 and I used that version, everything worked for me back then.
And, since I gave it away for someone to tryout /e I asked to have it returned to me – should get it tomorrow. I then check if I have some other files/notes on the device.

Well that sounds definitely great ! I hope you’ll be able to tell us the full procedure.

Does that mean that the GSI U is uncompatible ??

i known nothing about GSI, have a ask to @Null,

maybe search about more recent vendor partition…