How To Guide Install GSIs on Samsung Galaxy A32 4G (Experimental)

Search This thread

Marj1

Member
Apr 7, 2020
7
0
Eu testei 2 GSIs até agora, AOSP de phh e LineageOS 19.1 de AndyYan.

Tudo funciona até agora, exceto:
  • Transferência de arquivos MTP
  • Leitor de impressão digital
  • Criptografia de arquivo (os GSIs não inicializam se você não desabilitar a criptografia)
Então, se você quiser instalar um, aqui está o que eu fiz:

Instale o TWRP não oficial de Prove N e siga seu guia. NÃO INSTALE MAGISK, TEM PROBLEMA DE IMEI E NÃO TESTADO COM GSIs

Baixe seu GSI preferido, eu recomendo lineage-19.1-20220320-UNOFFICIAL-arm64_bvS.img.xz , vem sem GAPPS (Use bgS se quiser).
Extraia-o e renomeie o arquivo .img para system.img

(Opcional) Baixe este vendor.img , fiz uma sobreposição de agudos e adicionei na imagem. A rom deve ser mais estável e o gerenciamento de energia deve ser corrigido com isso. Eu ainda tenho que enviar as alterações para o github.

Baixe ChonDoe_Flasher.zip , é uma ferramenta para flashar partições dinâmicas. Ele verifica seu armazenamento para system.img e vendor.img.

Obtenha um cartão microSD e copie para a raiz dele o ChonDoe_Flasher.zip, system.img e vendor.img.

Inicialize no TWRP e instale o zip ChonDoe, espere até que termine de piscar.

Reinicie o TWRP novamente, para que ele possa montar a partição do fornecedor novamente, vá até o terminal e digite multidisabler, assim removemos a criptografia.

Formate dados, armazenamento interno e reinicialize, você deve estar pronto para começar.

Configurações em configurações de agudos de PHH
  • Vá para recursos da Samsung e marque "Ativar intervalo de brilho estendido" e "Ativar acesso a todas as câmeras".
  • Vá para Recursos diversos e marque "Usar maneira alternativa de detectar fones de ouvido"
  • Para que o display funcione em 90hzs vá em "Force FPS" e marque a opção.
  • Na câmera, marque "Expose Aux cameras" e "Force Enable Camera2API HAL3" (em teoria, você deve obter fotos melhores com isso, mas eu não saí hoje lol)
Pela falta de transferência de arquivos MTP, estou usando ADB em vez de MTP com esta ferramenta para fazer upload e obter arquivos do armazenamento interno: Python ADB File Explorer . Surpreendentemente, é mais rápido que o MTP por algum motivo ...

Eu sei que o MTP pode ser corrigido alterando o driver do kernel, eu compilei o kernel de @Prove N. , ele tinha algumas correções de USB, mas não sei como empacotá-lo para a Samsung, Poderia ser bom tê-lo para GSIs. Se alguém quiser me ajudar com esses pequenos problemas, seria incrível.

Relate bugs, soluções alternativas e correções aqui neste tópico, vamos tentar tornar este telefone utilizável!
I tried to install ChonDoe_Flasher.zip but it failed, what could it be?
 
Hey everyone. i just built overlays for this phone. They fixed my notch issue but the auto brightness still seems to be broken for me. the two files are attach below..

YOU NEED ROOT FOR THIS.

Or maybe copy from twrp still works

TO INSTALL:
1. Mount system as read write by:

Code:
mount -o rw,remount /


For users doing with TWRP.
Make sure you mounted system from the menu


Code:
mount -o rw,remount /system_root

2. copy the two files to /system/product/overlay/

Code:
cp treble-overlay-samsung-a32.apk /system/product/overlay/


For users doing this with TWRP.

Code:
cp treble-overlay-samsung-a32-systemui.apk /system/product/overlay/

3. give the two files 644 permission by the following command.

Code:
chmod 644 /system/product/overlay/treble-overlay-samsung-a32.apk
Code:
chmod 644 /system/product/overlay/treble-overlay-samsung-a32-systemui.apk


Reboot and enjoy the notch and maybe better battery life???? (i dont think so)


I just followed the overlay guide since i had free time i dont even know what i just did but it worked yay :)

i have no intentions on fixing if something is broken. also this is only tested on SM-A325F but you could try. if it makes things wierd just delete the two files from /system/product/overlay/


also enable extended brightness range from samsung settings in phh
enable force alternative backlight scale in misc in phh
enable allow setting the brightness to lowest otherwise brightness slider will break.
 

Attachments

  • treble-overlay-samsung-a32-systemui.apk
    16.3 KB · Views: 4
  • treble-overlay-samsung-a32.apk
    52.4 KB · Views: 4
Hey everyone. i just built overlays for this phone. They fixed my notch issue but the auto brightness still seems to be broken for me. the two files are attach below..

YOU NEED ROOT FOR THIS.

Or maybe copy from twrp still works

TO INSTALL:
1. Mount system as read write by:

Code:
mount -o rw,remount /


For users doing with TWRP.
Make sure you mounted system from the menu


Code:
mount -o rw,remount /system_root

2. copy the two files to /system/product/overlay/

Code:
cp treble-overlay-samsung-a32.apk /system/product/overlay/


For users doing this with TWRP.

Code:
cp treble-overlay-samsung-a32-systemui.apk /system/product/overlay/

3. give the two files 644 permission by the following command.

Code:
chmod 644 /system/product/overlay/treble-overlay-samsung-a32.apk
Code:
chmod 644 /system/product/overlay/treble-overlay-samsung-a32-systemui.apk


Reboot and enjoy the notch and maybe better battery life???? (i dont think so)


I just followed the overlay guide since i had free time i dont even know what i just did but it worked yay :)

i have no intentions on fixing if something is broken. also this is only tested on SM-A325F but you could try. if it makes things wierd just delete the two files from /system/product/overlay/


also enable extended brightness range from samsung settings in phh
enable force alternative backlight scale in misc in phh
enable allow setting the brightness to lowest otherwise brightness slider will break.
I rebuilt this overlay with one more added config. Now auto brightness is working to some extent. Try it out! Just follow the same steps above and delete the old overlay that you copied.

One more thing. the system ui overlay did nothing so i removed it. i suggest you delete it too.
 

Attachments

  • treble-overlay-samsung-a32.apk
    28.4 KB · Views: 4

bmDomianatezz

Member
Mar 10, 2021
37
3
its weird, mobile data doesnt work for me
edit: turns out mobile data is only supported at sim 1
 
Last edited:
its weird, mobile data doesnt work for me
edit: turns out mobile data is only supported at sim 1
theres a switch for it in most gsi's. you need to click on the edit icon on the quick settings panel and it will show a tile called switch data card. if your gsi doesnt have this then you have to switch to another one. try via dsu.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    I have tested 2 GSI's so far, phh's AOSP and AndyYan's LineageOS 19.1.

    Everything works so far except:
    • MTP file transfer
    • Fingerprint reader
    • File encryption (GSIs don't boot if you dont disable encryption)
    So, if you wanna install one, here's what I did:

    Install Prove N's Unofficial TWRP and follow his guide. DONT INSTALL MAGISK, IT HAS THE IMEI PROBLEM AND ITS NOT TESTED WITH GSIs

    Download your preferred GSI, I recommend lineage-19.1-20220320-UNOFFICIAL-arm64_bvS.img.xz, comes without GAPPS (Use bgS if you want em).
    Extract it and rename the .img file to system.img

    (Optional) Download this vendor.img, I made a treble overlay and added it to the image. The rom should be more stable and power management should be fixed with that. I still have to push the changes to github.

    Download ChonDoe_Flasher.zip, it's a tool to flash dynamic partitions. It checks your storage for system.img and vendor.img.

    Get a microSD card, and copy to the root of it the ChonDoe_Flasher.zip, system.img and vendor.img.

    Boot to TWRP, and install the ChonDoe zip, wait till it finishes flashing.

    Reboot to TWRP again, so it can mount the vendor partition again, go to the terminal and type multidisabler, so we remove encryption.

    Format data, internal storage and reboot, you should be ready to go.

    Settings in PHH Treble Settings
    • Go to Samsung features and check "Enable extended brightness range" and "Enable access to all cameras".
    • Go to Misc features and check "Use alternate way to detect headsets"
    • To get the display working at 90hzs go to "Force FPS" and check the option.
    • On camera check "Expose Aux cameras" and "Force Enable Camera2API HAL3" (In theory you should get better photos with that but I didn't go outside today lol)
    For the lack of MTP file transfer, I'm using ADB instead of MTP with this tool for uploading and getting files from internal storage: Python ADB File Explorer. Suprisingly it's faster than MTP for some reason...

    I know MTP can be fixed changing the kernel driver, I have compiled the kernel from @Prove N. , he had some USB fixes, but I don't know how to pack it for Samsung, It could be nice to have it for GSIs. If anyone wants to help me with these small issues it would be awesome.

    Report bugs, workarounds and fixes here in this thread, let's try to make this phone usable!
    2
    Ok, I'll try not to mess it all up this time...

    Here is the link to download: {Mod edit: Link removed. ufile.io is not accepted as file host on XDA}. That is super.img I've created using my script, it is packed into a tar archive and zipped to reduce the size for file sharing. It is specifically for SM-A325F, based on the NPB (Nepal/Butan) version of the firmware and contains LiR v3.16. After unzipping it is ready to be flashed using Odin into the AP slot over the stock NPB firmware. That means, you have to download and flash it first, then flash the super.img. After each flashing go straight into the Recovery mode and do factory reset, only then boot the system.

    But that's not all, additionally you have to extract and flash optics.img from your regional firmware. Here is how to do it. Changing optics.img to your regional one is not compulsory but with the Nepalese/Butanese one you'll only have a few major cellular providers working. You can do it at any time after flashing the system, it does not require factory reset.

    I have chosen the NPB stock firmware as the basis because after analyzing contents of other regional firmware I've found that it is probably the most non-bloated and privacy-respecting of all (the worst were Russian and European).
    2
    all good please create one ui firmware
    Do you really need it? First, OneUI is not to be trusted as it's proprietary and not fully open-source, second, the only GSI version of it I can find (repacked by erfanoabdi) is very old (2019).
    2
    Would love this tbh.
    gapps would be preferred
    I tried to download it, but it took 1 hour and chrome said "network error", so i only can get the lineage os gsi.
    Maybe it is because they have bad servers
    1
    ok, can i install a gsi which is for a/b slot (e.g Pixelexperience 12)
    yea it works. although install v414 v415 causes the device to immediately reboot on samsung logo.