Samsung Galaxy A40 / SM-A405FD / A405FD / SM-A405FN / A405FN

I also have a Galaxy A40 and would love to have /e/ on it!

1 Like

Same here! I’d like to keep my Galaxy A40, but would like to run /e/ on it :slight_smile:
So fed up with Google…

I also have a Samsung A40 and want /e/ on it!

Lineage OS (16, 17.1, 18) has an unoffical version for Galaxy A40
I can’t confirm that it works.


I can only put 2 links in the post but there is a 18 one too.

Would loove the a40 to be supported too <3

https://community.e.foundation/t/introducing-e-os-generic-system-images-gsi/31655d

Another voice here for the support of the Galaxy A40 !

I’ve just bought an A40 to replace my old Iphone SE, in the hope of getting rid of Google. Launching Android without the /e/ version is tough because everything is Google! A /e/ version for A40 please!!!

There’s an unified kernel for Exynos7885 (2019) chipset that currently supports A10, A20, A20e, A30, A30s and A40
https://github.com/eurekadevelopment/Eureka-Kernel-Exynos7885-Q-R-S

This for A10/A10e/A20/A20e/A30/A30s/A40/M10s/M20/M30/Tab A 8.0:
https://github.com/topser9/kernel_samsung_universal7885

Other (re)sources:
https://github.com/Spark-Devices/android_device_samsung_a40
https://github.com/kevios12/vendor-samsung-a40

Last but not least, don’t forget XDA community:
https://forum.xda-developers.com/c/samsung-galaxy-a40.10661/

Hope that helps/inspires !

1 Like

I have friends working on this device , I will ask them to make a build for the community , but i cannot promise anything ok …

1 Like

TWRP : https://eu.dl.twrp.me/a40/
@sourceforge.net/projects/eurekaroms/files : e-1.10-s-20230405-UNOFFICIAL-a40.zip

1 Like

Thanks a lot! I was able to install it on my A40 and it’s great. Only thing is that I need safetynet compliance for a few apps I use. If I get it right, it’s just through Magisk, right? How can I install e/OS and both Magisk and TWRP on a A40? in what sequence? Thanks

oh cool. This was one of my the builds I was not able to do build myself :slight_smile:

There are to ways, magisk is one, but also see this post

2 Likes

Hi, I did as suggested in the post you linked. Before (unmodified e/OS on SM-A405FN) Root Beer Sample red flagged Test Keys and Dangerous Props. After modifying the build.prop Root Beer gave a green flag to Dangerous Props but still a red one to Test Keys, and the system appears as rooted. My Banking App (CGD, Portugal) still declares the phone as rooted and refuses to work. I guess I’ll have to go with Magisk, but I’m not sure how to install it on a Galaxy A40 with e/OS, as simply flashing it from recovery is deprecated (no Ramdisk) but I don’t know exactly which file should be patched with Magisk before flashing it to recovery with Odin. Any help is welcome!

As i have understood, you now need to modify the recovery.img (TWRP or recovery-e) using the install feature in the magisk app, and then flash it using fastboot command TWRP (on the device) or Windows Odin or Linux Odin, Thor, Heimdall (from the PC)

1 Like

The recovery.img file from the e/OS zip, ok. I’ll do that and report back, wish me luck. Thank you again for your help.

Note! Samsung Galaxy does not understand all classic fastboot commands.


:new: for Odin 3 / Windows : recovery.tar.md5
generated from file e-recovery (recovery.img ~ e-1.10-s-20230405-UNOFFICIAL-a40.zip)

2 Likes

To make a long story short, I gave up on having a fully working Magisk along with TWRP and e/OS on the A40 and ended up going back to the build.prop approach suggested in an earlier post. After editing “ro.debuggable=0” and “ro.secure=1”, Root Beer still showed a red flag for “test-keys” and my banking app refused to work. Then, as suggested on this 10 years old thread, I substituted all instances of “test-keys” with “release-keys” in the build.prop file, following the same process. Et voilà, now Root Beer gives all green flags and my banking app works! Seemed too easy to be true, but it worked. Thank you for pointing me in the right direction.

1 Like

Just to say thank you for : e/os, the good tutorial made for samsung and the built of twrp & e/os ! i could manage to install it for the second time and my 12yo daughter can be proud to use it on her “new” reconditioned A40 !

Just a tip for launching twrp after flashing with odin, i had to flash vbmeta also as presented in https://www.youtube.com/watch?v=i4WdQ11Nhw8&t=160s

Romain

1 Like