Updated Android tips and tricks (markdown)

master
hugleo 5 months ago
parent cb937836d7
commit dbdf4ee879

@ -54,4 +54,37 @@ return {
}
```
## ADB stuff [TODO]
## ADB Stuff
Android Debug Bridge (ADB) stands as a multifaceted command-line utility, facilitating seamless communication with your Android device.
### USB Driver Setup
To enable the USB driver on your device, follow these general steps:
1. Connect your Android device to your computer using a USB cable.
2. Access the device's settings and navigate to the "Developer Options" section. If "Developer Options" are not visible, go to "About Phone" and tap on the "Build Number" multiple times until you unlock developer access.
3. Within "Developer Options," locate and enable the "USB Debugging" feature.
4. A prompt may appear on your device asking for permission to enable USB debugging. Allow this access.
5. Once USB debugging is enabled, your Android device is ready to communicate with ADB.
Note: The exact steps may vary slightly depending on your device model and Android version.
### Onyx Devices Permission
For Onyx devices running Android version 11 and above, these additional steps are necessary to enable the Lights driver. These steps are essential because certain methods are restricted due to limitations on non-SDK interfaces:
1. Check if the variable is set:
```bash
adb shell settings get global hidden_api_policy
```
2. Set the permission to use non-SDK hidden API:
```bash
adb shell settings put global hidden_api_policy 1
```
3. If the test fails or you want to remove the permission, use:
```bash
adb shell settings delete global hidden_api_policy
```

Loading…
Cancel
Save