Last active
February 3, 2021 10:25
Revisions
-
aamnah revised this gist
Feb 3, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ NOTE: Seems like you can only test on one physical device at a time ## Add manufacturer codes to `udev` rules - `0e8d` - MediaTek (Infinix Hot 9) -
aamnah revised this gist
Feb 3, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ ## Add manufacturer codes to `udev` rules - `0e8d` - MediaTek (Infinix Hot 9) - `17ef` - Lenovo ```bash echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev"' | sudo tee /etc/udev/rules.d/51-android-usb.rules -
aamnah created this gist
Feb 3, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ ## Add manufacturer codes to `udev` rules 0e8d - MediaTek (Infinix Hot 9) 17ef - Lenovo ```bash echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev"' | sudo tee /etc/udev/rules.d/51-android-usb.rules echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="plugdev"' | sudo tee /etc/udev/rules.d/51-android-usb.rules ``` ## Allow devices to connect to dev server - `054783604A010925` - Infinix - `0ANGUS008YN605950S2` - Lenovo ``` adb -s <device name> reverse tcp:8081 tcp:8081 ``` ```bash adb -s 0ANGUS008YN605950S2 reverse tcp:8081 tcp:8081 adb -s 054783604A010925 reverse tcp:8081 tcp:8081 ``` Links --- - [React Native - Running On Device](https://reactnative.dev/docs/running-on-device)