Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blackavec/adb-auto-restarter

ADB service auto restarting shell. really helpful if you are as lazy as i am and don't want to restart your adb service manually when it stops detecting your android phone.
https://github.com/blackavec/adb-auto-restarter

Last synced: about 2 months ago
JSON representation

ADB service auto restarting shell. really helpful if you are as lazy as i am and don't want to restart your adb service manually when it stops detecting your android phone.

Awesome Lists containing this project

README

        

# adb-auto-restarter
ADB service auto restarting shell. really helpful if you are as lazy as i am and don't want to restart your adb service manually when it stops detecting your android phone.

# How To Use
You don't need to do much, just run the following command in order to run the shell on your system
```
# Make permission
make permission

# Lunch the app
make run
```
or
```
chmod +x adb-service
./adb-service
```

# Customize
In order to run your own additional script on every time that ADB is being restarted, you can put your shell into `custom-shell.sh` file.

# React native
I personally suggest you to add following line into your custom bash (`custom-shell.sh`) file to have a easier experience debugging React native app while it's being restarted.
```
# First find your device ID by following script
adb devices

# Second replace your device id with `` in next line
adb -s reverse tcp:8081 tcp:8081
```
Feel free to change the port number 8081 in case you are using any other ports on your packager

# important
This script file has been developed on macOSX and not sure about compatibility on linux. test and contribution would be appreciated

## Support on Beerpay
Hey dude! Help me out for a couple of :beers:!

[![Beerpay](https://beerpay.io/mahanhaz/adb-auto-restarter/badge.svg?style=beer-square)](https://beerpay.io/mahanhaz/adb-auto-restarter) [![Beerpay](https://beerpay.io/mahanhaz/adb-auto-restarter/make-wish.svg?style=flat-square)](https://beerpay.io/mahanhaz/adb-auto-restarter?focus=wish)