Skip to content

Error: Arp table reading failed, are you using targetSdk 32 and an Android 13 device? when calling getConnectedDevices() #32

@ghost

Description

Error: Arp table reading failed, are you using targetSdk 32 and an Android 13 device?

getConnectedDevices() returns an empty array, I had to look into logs and I discovered that Google introduced some restrictions in Android 10

"Android 10 introduces several privacy-related restrictions that disallow apps to access certain information that could be potentially misused for fingerprinting and data collection. One of among them is the restriction on access to /proc/net filesystem on devices that run Android 10 or higher, apps cannot access /proc/net, which includes information about a device's network state. Apps that need access to this information, such as VPNs, should use the NetworkStatsManager or ConnectivityManager class."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions