Skip to content

Instantly share code, notes, and snippets.

@haridhayal11
Last active May 10, 2024 15:09
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haridhayal11/f50c56b5fbb5e79277999e7fa7fc1921 to your computer and use it in GitHub Desktop.
Save haridhayal11/f50c56b5fbb5e79277999e7fa7fc1921 to your computer and use it in GitHub Desktop.
Guide for Installing GSI on Exynos2100 devices

Instructions for installing AOSP GSI on exynos2100 devices

Your warranty is now void. I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

Instructions

  1. Download GSI of your choice. (ARM64 AB) Read below for more info
  2. If it is compressed (usually .xz) extract it to .img
  3. Boot into twrp.
  4. Select the GSI and flash to system.
  5. Flash TWRP_AIO_Fix_v5_GSI_exynos2100.zip Download
  6. Flash HariKernel (Permissive) Download DOES NOT BOOT ON ONEUI 5.1 AND NEWER FIRMWARE.
  7. Flash Magisk (Secure Variant of the GSI recommended, If available)
  8. Reboot to system
  9. Flash Temp-overlay-fix-v2-magisk-module-exynos2100-refreshrate.zip as a magisk module. This is a temporary step. This will not be needed in future GSI builds. Download Not needed on newer GSIs

Donation

Buy Me A Coffee

Telegram Group for Further Discussion

Telegram Group

Fixed Bugs

  • Hotspot (Flash Hari Kernel v2.2 or later)
  • Adaptive Refresh rate.
  • Random frame drops.
  • Adaptive Brightness. (Enable under display settings)
  • Inconsistant 60fps. (HW overlays dont need to be disabled)
  • Mic noise when recording video

Remaining Bugs

  • OTA. (Dont attempt this, This results in a bootloop, to get out of this you need to flash stock firmware with home_csc or wipe metadata partition if you have that option in recovery.)
  • Proximity sensor (works only on regular phone calls)
  • VoLTE/VoWiFi

GSI List

Recommended

Other GSIs

  • You can find a list here

Settings to change under phh-settings (will be set automatically after you connect to Wifi)

Samsung features

  • Enable extended brightness range
  • Enable access to all cameras
  • Enable extra sensors
  • Enable double tap to wake (if required)

Misc features

  • DO NOT SET force fps. Adaptive refresh rate now works with the overlay.
  • Set rounded corner diameter to 48 and reboot
@haridhayal11
Copy link
Author

@haridhayal11 TWRP_AIO_Fix_v2_GSI_exynos2100.zip points to wrong file in current OP.

Updated it. Thanks for pointing it out.

@jakenvac
Copy link

jakenvac commented Oct 5, 2022

@haridhayal11 any work being done on camera support? Seems that with this kernel the camera2 api doesn't work - meaning things like gcam and open camera don't work well. Open camera specifically will crash when trying to use certain cameras. No issues on stock.

@haridhayal11
Copy link
Author

@haridhayal11 any work being done on camera support? Seems that with this kernel the camera2 api doesn't work - meaning things like gcam and open camera don't work well. Open camera specifically will crash when trying to use certain cameras. No issues on stock.

Gcams work perfectly after patching the camera lib. We are working on a flashable zip for that for all 3 devices.

@jakenvac
Copy link

jakenvac commented Oct 6, 2022

Ah that's great, thanks for the info. Can you point me to a resource detailing how to patch the camera lib? Only thing I can find when I search is patched gcam apk's. Unless that's what you're referring to? Which 'flavor' of gcam ports would you recommend?

@haridhayal11
Copy link
Author

Ah that's great, thanks for the info. Can you point me to a resource detailing how to patch the camera lib? Only thing I can find when I search is patched gcam apk's. Unless that's what you're referring to? Which 'flavor' of gcam ports would you recommend?

Patching is a bit complex. The Gcam I recommend is Zgcam. It is the most optimized for our devices and a custom config which I have made. Everything will be updated on the gist once it is ready.

@jakenvac
Copy link

jakenvac commented Oct 6, 2022

Ah that's great, thanks man!

@haridhayal11
Copy link
Author

haridhayal11 commented Nov 14, 2022

Added TWRP_AIO_Fix_v3_GSI_exynos2100.zip to support both OneUI 4 & 5 stock.
Download here

@jakenvac
Copy link

jakenvac commented Nov 16, 2022

Hi, I think ive discovered another bug. I'm not sure if its related to this kernel but I am unable to mount any file systems on my device. I am able to on stock.

Specifically I'm trying to use davx5 to create a webdav mount. I think this uses FUSE under the hood.

Not sure how I can share any more info but let me know if there's a way.

Edit: I also forgot to mention I am still having hotspot issues. I can now maintain a connection to the hotspot however there seems to be no internet access. Again works fine on stock and with the vpn hotspot workaround.

Please dont take these as critiques, bugs come with the territory and I accept those risks. Just want to help 😆

@haridhayal11
Copy link
Author

Hi, I think ive discovered another bug. I'm not sure if its related to this kernel but I am unable to mount any file systems on my device. I am able to on stock.

Specifically I'm trying to use davx5 to create a webdav mount. I think this uses FUSE under the hood.

Not sure how I can share any more info but let me know if there's a way.

Edit: I also forgot to mention I am still having hotspot issues. I can now maintain a connection to the hotspot however there seems to be no internet access. Again works fine on stock and with the vpn hotspot workaround.

Please dont take these as critiques, bugs come with the territory and I accept those risks. Just want to help laughing

I will check webdav mount & hotspot.

@jakenvac
Copy link

I've just re-flashed kernel etc. over the top of my existing setup and now mounts seem to work. Not sure what that was about. Sorry for the confusion.

@jakenvac
Copy link

@haridhayal11 hey man, sorry to be that guy. Did you ever get anywhere with releasing camera support or investigating tethering?

@haridhayal11
Copy link
Author

haridhayal11 commented Jan 18, 2023

@haridhayal11 hey man, sorry to be that guy. Did you ever get anywhere with releasing camera support or investigating tethering?

As I said before. Things are available in the telegram group as soon as they are released. I will make a gist about google camera. Hotspot works fine for me on the latest kernel.

@jakenvac
Copy link

Ah my bad, totally missed the telegram part. Thanks!

Copy link

ghost commented Jan 30, 2023

on GSI connecting galaxy watch 4 doesnt work.

EDIT: Never mind, installed Lineage OS and its worked, over GSI Roms dont tho.

@FDK101
Copy link

FDK101 commented Feb 3, 2023

Hi all.

Found that if you install GoogleSpoofForWear Magisk module then the wear app works with no issue.

Currently on Project Elixir 3.5 with no issues, S21 Ultra.

Also, thank you @haridhayal11 for all the work and support.

@nomyTx
Copy link

nomyTx commented May 3, 2023

Is it possible to get 5G working? I've been trying to but I can't seem to get it working at all

@haridhayal11
Copy link
Author

Is it possible to get 5G working? I've been trying to but I can't seem to get it working at all

Not possbile for now.

@nomyTx
Copy link

nomyTx commented May 3, 2023

Any idea when it will be possible? Having my mobile internet be really slow is very annoying

@haridhayal11
Copy link
Author

Any idea when it will be possible? Having my mobile internet be really slow is very annoying

You can open an issue on https://github.com/TrebleDroid/treble_experimentations/issues.

@nomyTx
Copy link

nomyTx commented May 3, 2023

Also, is there any way to use the full 108MP on the Ultra? Every camera app I've tried doesn't let me.

@haridhayal11
Copy link
Author

Also, is there any way to use the full 108MP on the Ultra? Every camera app I've tried doesn't let me.

I dont own a S21 Ultra. I only have the S21 so I can't really help you with that. Some gcams might do it but you have to search around.

@crxngy
Copy link

crxngy commented Jun 16, 2023

hello, when is this going to work with ewe1 firmware? its a very nice kernel so i eagerly wait for it to work with oneui 5.1/ewe1 :)

@Mateus13000
Copy link

Hi guys! Is there anyone using a S21 with LineageOS 20??? I'm tired of OneUI, is a really great OS, but not for me, a stock android lover 😅
I've tried to join the telegram group, but the invite has expired. I'm going to ask just some generic questions, like:

• How is the battery life?
• The best gapps to use?
• Is there any gcam with full support?
• Is banking apps and NFC payment working?
• Does S21's TWRP support something like FBE?

And one that I think I'm the only one worried about:
• Is there anything like Dex on stock android/LineageOS???

Sorry for all this annoying questions... ❤️

@Rastoupine
Copy link

I lost the 5G network, and i can't receive any SMS or MMS. I can do and receive calls.

I live in France, i use Free Mobile, i use an eSIM (which can be the problem)

First i :

  • Installed SIM Manager because i had a problem that makes me unable to switch on/off the SIM when i switched off it was staying greyout.

Then :

  • I installed the last MicroG
  • I tried to update the SMSC from the ##4636##
  • I compared APN (which are unmodifiable anyway) that are correct.
  • In PHHTrebleSettings i switched "Force the presence of 4G Calling setting" and "Request IMS network"

Any ideas ?

@phhusson
Copy link

5G should work on latest trebledroid builds, try with https://github.com/TrebleDroid/treble_experimentations/releases for reference

WRT SMS, they might be fixed on latest trebledroid too, i'm not too sure, if you could test

@gabsriel
Copy link

I lost the 5G network, and i can't receive any SMS or MMS. I can do and receive calls.

I live in France, i use Free Mobile, i use an eSIM (which can be the problem)

First i :

  • Installed SIM Manager because i had a problem that makes me unable to switch on/off the SIM when i switched off it was staying greyout.

Then :

  • I installed the last MicroG
  • I tried to update the SMSC from the ##4636##
  • I compared APN (which are unmodifiable anyway) that are correct.
  • In PHHTrebleSettings i switched "Force the presence of 4G Calling setting" and "Request IMS network"

Any ideas ?

Hi. I'm a french noob and having the same sms issue with another mobile operator.
Maybe i'm wrong but it seems so be related to vendor.img. I'm trying to flash it after the rom installation.
The problem I have is that the system does not boot after flashing the vendor.img. I'm trying to figure it hox and will report here.

@Rastoupine
Copy link

Rastoupine commented May 10, 2024 via email

@gabsriel
Copy link

gabsriel commented May 10, 2024

C'est juste de la merde les Samsung exynos tu peux rien faire

.

Oui c'est clair...parfois j'arrive à avoir les sms, parfois pas, c'est complètement aléatoire suivant la rom et la façon d'installer la rom, ou l'alignement des planètes. Je n'ai pas encore réussi à avoir une rom avec tout de fonctionnel. Celles qui s'en rapprochent le plus c'est Elixir et Voltage. Mais mȇme avec ces roms, suivant l'installation je vais avoir les sms, ou pas.

@phhusson
Copy link

Wow, very useful comment @Rastoupine congrats!
Anyway I just tested on Samsung Exynos S22, S24 https://github.com/TrebleDroid/treble_experimentations/releases/tag/ci-20240508
and incoming and outgoing SMS are working on Free Mobile. 5G only works on S24 though, i'll look.

@gabsriel
Copy link

gabsriel commented May 10, 2024

Wow, very useful comment @Rastoupine congrats! Anyway I just tested on Samsung Exynos S22, S24 https://github.com/TrebleDroid/treble_experimentations/releases/tag/ci-20240508 and incoming and outgoing SMS are working on Free Mobile. 5G only works on S24 though, i'll look.

Hi. thanks for your help. But it seems not working on my S21 5G.
Edit : since I try to install a gsi I also experience that "samsung glugate". Maybe Samsung corrected the flaw by a software fix. With another rom the grey rectangle is clearly visible. I also have huge pwm headaches. So I think like Raspoutine about my Samsung...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment