Skip to content

Instantly share code, notes, and snippets.

@dmpatel151282
Last active August 16, 2025 04:26
Show Gist options
  • Select an option

  • Save dmpatel151282/34d14c61a1565d71736d5d2a637bdceb to your computer and use it in GitHub Desktop.

Select an option

Save dmpatel151282/34d14c61a1565d71736d5d2a637bdceb to your computer and use it in GitHub Desktop.
Android Ethernet 802.1x support

"As of now Android doesn’t support 802.1x Authentication over Ethernet natively."

In today’s enterprise environments, secure wired network access is essential—especially in sectors like education, government, and large corporations. IEEE 802.1X, a port-based Network Access Control (PNAC) protocol, provides a robust mechanism for authenticating devices connected via Ethernet.

However, native support for Ethernet 802.1X on Android devices has historically been limited or inconsistent.

This blog presents a proposed solution to implement Ethernet 802.1X on Android devices overcoming the gaps in native support and ensuring compatibility across various device types.

The following components need to be modified:

  • Ethernet Supplicant
  • Ethernet Supplicant interface (HAL)
  • EthernetManager and EthernetService/EthernetEnterpriseService
  • IPConfiguration
  • SELinux policies

The proposed solution supports the following authentication methods: EAP-TLS, EAP-PEAP, EAP-TTLS, EAP-MD5, and EAP-PWD.

The proposed solution has been developed and tested on AOSP Android versions 4.4, 7, 9, 10, 11, 12, 13, 14, and 15.

Proposed solution is compliance with EDLA certification requirements.

Contact for more details.

#AOSP #Android #Android_AOSP #Ethernet #802.1X #802.1X_Android #802.1X_Authentication #802.1X_Ethernet #802.1X_wired #Enterprise_security #LAN #EAP_over_LAN #EAPOL #EAP-TLS #TLS #PEAP #AndroidEAPOL #AOSP_EAPOL #Android_EAP_TLS #AOSP_EAP_TLS #Android_802.1x #Android_802.1x_wired #AOSP_802.1x #Android_Ethernet_802.1x #Android_Ethernet_EAP_TLS #EDLA #EDLA Compliance #EDLA Certification

https://prabhusystemtech.com/2021/11/10/802_1x-authentication-over-ethernet-in-aosp-android/ https://prabhusystemtech.com/2023/05/20/setup-testing-environment-to-test-android-ethernet-802-1x/

@DennisZHAN
Copy link

hello Dharmesh Patel,
May I know how to get this project? Let's talk for it.
Thanks.
Dennis

@dmpatel151282
Copy link
Author

Hello Dennis,

Sure we can talk on it. I have implemented it in Android Q AOSP source code and tested it. Let me know your details.

Thanks,
Dharmesh

@DennisZHAN
Copy link

Hi,Dharmesh Patel,
Great.
can I have your email address or could you please send me a mail to zhanpz@hotmail.com.

B.R
Dennis

@jajucre
Copy link

jajucre commented Nov 8, 2023

I am interested in this project, I need to use 802.1x over ethernet in Android 10. Can you help me?

Thanks.

@jajucre
Copy link

jajucre commented Nov 8, 2023

Ok, can we talk tomorrow at 12:00 Spanish time? Provide me a link for the call

@bocalexandru
Copy link

Hello Dharmesh Patel,
Is there any official documentation from Android where they specify this change? Just wanted to research more on this item.

@dmpatel1512
Copy link

The specified changes are part of custom solution of 802.1x in Android.

@bocalexandru
Copy link

I am referring to the changes made by Android, when they decided to drop support for 802.1X. I am browsing their repo and cannot find any relevant changes where they decided not to support it anymore...

P.S. Can you solution be applied to a Samsung device?

@dmpatel1512
Copy link

Android only support Wifi based 802.1x. Android doesn't support Ethernet based 802.1x. The provided custom solution is different based on different version of Android OS.

@bocalexandru
Copy link

Can you assist me with some support for a specific device? Please drop me an email at alexandru.boca23@gmail.com

@Thomas-Oh
Copy link

Hi Dharmesh Patel,

We are interesting in ethernet 802.1x authentication function for our Android 14 device
can I have your email address or could you send email to me(sapoh1973@gmail.com) to discuss it further?

Best Regards,
Thomas

@gnhenderson72
Copy link

gnhenderson72 commented Mar 17, 2025

I have a Zebra ET65 running Android 14. Would this work on this device and how may I contact you discuss this as well as other options we are looking for. thank you

I can be contacted at greg.henderson@ericsson.com

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