Android 8.0부터 Android 기기는 네트워크와 연결되지 않은 상태에서 새 네트워크를 탐색할 때 무작위 MAC 주소를 사용합니다. Android 9에서는 기기가 Wi-Fi 네트워크에 연결할 때 무작위 MAC 주소를 사용하도록 개발자 옵션(기본적으로 사용 중지되어 있음)을 사용 설정할 수 있습니다.
Android 10에서는 기본적으로 클라이언트 모드, SoftAp, Wi-Fi Direct에서 MAC 주소 무작위 순서 지정이 사용 설정됩니다.
MAC 주소 무작위 지정은 리스너가 MAC 주소를 사용하여 기기 활동 기록을 작성하지 못하게 하여 사용자 개인 정보 보호를 향상합니다.
Android 9 이하를 실행하는 기기는 Wi-Fi MAC 주소 무작위 지정을 지원하지 않을 수 있습니다. 이러한 기기를 Android 10으로 업그레이드할 때는 Wi-Fi 공급업체 HAL make 파일에서 WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION 플래그를 true로 설정하여 Wi-Fi MAC 주소 무작위 지정 기능을 사용 중지할 수 있습니다.
유효성 검사
기능이 의도한 대로 작동하는지 확인하려면 수동 테스트를 실행합니다.
기기 오버레이에서 config_wifi_connected_mac_randomization_supported가 true로 설정되어 있는지 확인하여 기기에 MAC 주소 무작위 지정이 사용 설정되어 있는지 확인합니다.
Wi-Fi 네트워크에 연결합니다.
네트워크를 탭하여 네트워크 세부정보 페이지로 이동합니다. MAC 주소 무작위 지정이 사용 설정되었는지 확인합니다. 표시된 MAC 주소가 로컬에 생성된 비트를 1로 설정하고 멀티캐스트 비트를 0으로 설정한 무작위 MAC 주소인지 확인합니다.
MAC 주소 무작위 지정을 사용 중지합니다. 동일한 네트워크에 연결하고 공장 출고 시 MAC 주소가 사용되고 있는지 확인합니다.
네트워크 세부정보 페이지에서 삭제를 탭하여 네트워크를 삭제합니다.
동일한 네트워크에 연결하고 동일한 무작위 MAC 주소가 사용되고 있는지 확인합니다.
Android 10 이상으로 업그레이드한 Android 10 이전 기기(MAC 주소 무작위 지정 지원 가능)에서 MAC 주소 무작위 지정을 테스트하려면 다음 단계를 따르세요.
Android 9 이하를 실행하는 기기에는 저장된 네트워크가 하나 이상 있어야 합니다.
Android 10 시스템 이미지를 플래시합니다.
Wi-Fi 선택도구에서 저장된 모든 네트워크의 MAC 주소 무작위 지정이 사용 중지되어 있는지 확인합니다.
MAC 주소 무작위 지정을 사용 설정합니다. 동일한 네트워크에 연결하고 무작위 MAC 주소가 사용되고 있는지 확인합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Implement MAC randomization\n\nStarting in Android 8.0, Android devices use randomized MAC addresses when\nprobing for new networks while not associated with a network. In\nAndroid 9, you can enable a developer option (it's\n**disabled** by default) to cause the device to use a randomized MAC address\nwhen connecting to a Wi-Fi network.\n\nIn Android 10, MAC randomization is enabled by default\nfor client mode, SoftAp, and Wi-Fi Direct.\n\nMAC randomization prevents listeners from using MAC addresses to build a history\nof device activity, thus increasing user privacy.\n\nAdditionally, MAC addresses are randomized as part of\n[Wi-Fi Aware](/docs/core/connect/wifi-aware) and\n[Wi-Fi RTT](/docs/core/connect/wifi-rtt) operations.\n\nFor more information, see\n[MAC Randomization Behavior](/docs/core/connect/wifi-mac-randomization-behavior).\n\nImplementation\n--------------\n\nTo implement MAC randomization on your device:\n\n1. Work with a Wi-Fi chip vendor to implement the following HAL methods:\n\n - `IWifiStaIface#setMacAddress`: Configures the MAC address of the interface. The default implementation brings the interface down, changes the MAC address, and brings the interface back up.\n - `IWifiStaIface#getFactoryMacAddress`: Gets the factory MAC of `wlan0` using an `ioctl` call.\n - `ISupplicantP2pIface#setMacRandomization`: Sets P2P MAC randomization on/off in the supplicant.\n2. Set\n [`config_wifi_connected_mac_randomization_supported`](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android16-release/core/res/res/values/config.xml)\n to `true` in the Settings `config.xml` (this can be done in a device\n custom overlay).\n\n - This flag is used to control whether client-mode MAC randomization is enabled.\n3. Set\n [`config_wifi_p2p_mac_randomization_supported`](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android16-release/core/res/res/values/config.xml)\n to `true` in the Settings `config.xml` (this can be done in a device\n custom overlay).\n\n - This flag is used to control whether Wi-Fi direct MAC randomization is enabled.\n4. Test your implementation using the methods described in\n [Validation](#validation).\n\nThe System UI must:\n\n- Have an option to enable or disable randomization for each SSID.\n- Have MAC randomization enabled by default for all newly added networks.\n\nUse the\n[reference implementation](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/apps/Settings/src/com/android/settings/wifi/details2/WifiPrivacyPreferenceController2.java)\nof Settings UI to implement new prompts.\n\nDevices running Android 9 or lower might not have\nsupport for Wi-Fi MAC randomization. When upgrading such devices to Android\n10, the Wi-Fi MAC randomization feature can be disabled\nby setting the `WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION` flag to true in\nthe Wi-Fi vendor HAL make file.\n\nValidation\n----------\n\nTo validate that the feature is working as intended, run a manual test:\n\n1. Verify that MAC randomization is enabled on the device by checking that `config_wifi_connected_mac_randomization_supported` is set to `true` in the device overlay.\n2. Connect to a Wi-Fi network.\n3. Tap the network to go to the Network details page. Verify that MAC randomization is turned on. Verify that the MAC address displayed is a randomized MAC, which has the locally generated bit set to 1 and the multicast bit set to 0.\n4. Turn MAC randomization off. Connect to the same network and verify that the factory MAC is being used.\n5. Delete the network by tapping **Forget** on the Network details page.\n6. Connect to the same network and verify that the **same** randomized MAC\n address is being used.\n\n | **Note:** Randomized MAC addresses are generated per SSID and are persistent.\n\nTo test MAC randomization on a pre-Android 10 device\n(capable of supporting MAC randomization) upgrading to Android\n10 or higher:\n\n1. Have at least one saved network on a device running Android 9 or lower.\n2. Flash the Android 10 system image.\n3. In the Wi-Fi picker, verify that MAC randomization is turned off for all saved networks.\n4. Turn MAC randomization on. Connect to the same network and verify that the randomized MAC is being used.\n\n| **Note:** You may experience up to a three-second delay when connecting to a network due to the driver flushing saved scan results when the interface goes down. If this is the case, check with your silicon partners to resolve the issue."]]