with just one click!
Report Bug
·
Request Feature
Ever wanted to control your android device over wifi with just a click? Then that's the repo you are searching for!
Here's how it works:
- Connect your phone via usb
- Set up a port for TCP connections
- Unplug it for ever
- Use the script to connect
What the script does is simply searching for your android device over the network your LAN and use its address to connect to it over TCP via scrcpy.
Of course, that sounds simple because it is. Need more details? Go on reading the next sections!
You need these guys to be installed in order to proceed with the script
First things first: get a local copy up and install the dependencies.
Install nmap following this instructions.
Alternatively
-
On Debian / Ubuntu
sudo apt-get install nmap
-
On Fedora / SUSE
sudo yum install nmap
Download and install adb from here.
Alternatively
- On Debian / Ubuntu
sudo apt-get install android-tools-adb
- On Fedora / SUSE
sudo yum install android-tools
Install scrcpy from here.
Alternatively
- On Debian / Ubuntu
sudo apt-get install android-tools-adb
- On Fedora / SUSE
sudo yum install android-tools
- Clone the repo
git clone https://github.com/AjejeBrazorf/connectMy.git
- Place the
connectMy.sh
script somewhere like~/.connectMy
- Enable the developer mode on your android device
- Make sure
Debug USB
is turned on more info - Connect your device via USB
- Open a terminal and set up the TCP connection to your android (port value could be anything between 5555 to 5585 but the script just works with
5555
as of now) more info
adb tcpip 5555
- Noice, now edit
connectMy.sh
placing your device name onto the $phone variable (I know I know.. it is a mess, but it will get better) - Oh yeah, disconnect your phone!
- Run the script!
You may:
- want to add an Alias to your
.bash_aliases
/.bashrc
file
alias connectMy='bash ~/.connectMy/connectMy.sh'
- have an icon to just click and run the script, then if you have Gnome:
-- Copy theimages
directory into the~/.connectMy
folder -- Edit theconnectMy.desktop
file placing your user name in theIcon
path -- Place theconnectMy.desktop
into~/.local/share/applications
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.