Skip to content

Instantly share code, notes, and snippets.

View dmpatel151282's full-sized avatar

Dharmesh Patel dmpatel151282

View GitHub Profile
@dmpatel151282
dmpatel151282 / Android_Ethernet_802.1x_support.md
Last active April 20, 2025 15:16
Android Ethernet 802.1x support

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

Below components need to be changed/modified

  • Ethernet Supplicant
  • Ethernet Supplicant interface (HAL)
  • EthernetManager and EthernetService/EthernetEnterpriseService
  • IPConfiguration
  • SELinux
@dmpatel151282
dmpatel151282 / File_based_OTA_update_along_with_Block-based_OTA.md
Last active November 16, 2023 11:06
File based OTA update along with Block-based OTA

OTA is the mechanism by which OEMs remotely update the system partition of a device:

  • Android 5.0 and later versions use block OTA updates to ensure that each device uses the exact same partition. Instead of comparing individual files and computing binary patches, block OTA handles the entire partition as one file and computes a single binary patch, ensuring the resultant partition contains exactly the intended bits. This allows the device system image to achieve the same state via fastboot or OTA.
  • Android 4.4 and earlier versions used file OTA updates, which ensured devices contained similar file contents, permissions, and modes, but allowed metadata such as timestamps and the layout of the underlying storage to vary between devices based on the update method.

File based OTA update in not available beyond AOSP Android 5.0. Sometimes it is require to provide few configuration files along with OTA.

We have solution that provide file based OTA supports along with block-based OTA file. This solut

@dmpatel151282
dmpatel151282 / Configuring_Ethernet_802.1x_on_Android.md
Last active October 5, 2024 02:56
Configuring Ethernet 802.1x on Android

What is 802.1x?

802.1x is a network access control protocol that provides authentication for devices trying to connect to a LAN or WLAN. It’s commonly used in enterprise environments to secure Ethernet and Wi-Fi networks. The authentication is usually performed using RADIUS servers.

Steps to Configure Ethernet 802.1x on Android

  • Check Device Compatibility:
    • Not all Android devices natively support Ethernet connections, and support for 802.1x over Ethernet can be even rarer. First, ensure your device supports Ethernet connections either through a USB-to-Ethernet adapter or a built-in Ethernet port.
  • Connect the Ethernet Adapter:
  • If your device doesn’t have a built-in Ethernet port, you’ll need a USB-to-Ethernet adapter. Once connected, your device should recognize the Ethernet connection automatically.
@dmpatel151282
dmpatel151282 / Implementation_of_802.1X_over_Ethernet.md
Last active October 5, 2024 02:56
Implementation of 802.1X over Ethernet

IEEE 802.1X is a standard for port-based network access control, typically used to provide secure authentication on both wired (Ethernet) and wireless networks. Here's a breakdown of the key components and implementation steps for 802.1X over Ethernet:

Key Components

  1. Supplicant (Client)
    • The device (e.g., a computer or network printer) that requests access to the network.
    • It must support 802.1X and be configured with credentials (such as a username/password or certificate) to authenticate to the network.
  2. Authenticator (Switch or Access Point)
    • The network device that acts as an intermediary between the supplicant and the authentication server.
  • In the case of Ethernet, this is typically an Ethernet switch. The switch only allows network access if the supplicant is successfully authenticated.