pixelart.android-udev
Ansible Role: platform.sh CLI
This role sets up udev rules to connect Android devices, whether you use Android Studio/SDK or not. For more details, visit Android Device Setup.
Role Variables
Here are the available variables along with their default values (found in defaults/main.yml
):
android_udev_vendor_ids:
- name: HTC
id: '0bb4'
This is a list of vendor names and their ATTR{idVendor}
values. Make sure the ID is in quotes, so it’s treated as a string and not interpreted as a number. This list is based on the complete list from Vendor IDs.
Dependencies
No dependencies.
Example Playbook
- hosts: devs
roles:
- pixelart.android-udev
After running this playbook, the udev rules will be added to /etc/udev/rules.d/51-android.rules
, allowing the user to access connected Android devices.
Code of Conduct
Please be aware that this project follows a Contributor Code of Conduct. By participating, you agree to follow its rules.
License
This project is licensed under MIT. See the LICENSE file for more information.
Author Information
This role was created in 2017 by pixelart GmbH and is inspired by the roles of Jeff Geerling, who wrote Ansible for DevOps.
Configures udev rules for Android devices
ansible-galaxy install pixelart.android-udev