Use ADB to Push Files / Install APKs and Control Android Devices with Scrcpy
Android Debug Bridge (ADB
) is a versatile command-line tool that allows users to interact with Android devices.
scrcpy
is a powerful tool that allows users to control and mirror Android device's screen on computer.
Prerequisites:
- Enable Developer Options on Android device:
- Go to Settings > About phone.
- Tap Build number 7 times until you see a message saying "You are now a developer!"
- Enable USB Debugging:
- Go to Settings > System > Developer options.
- Enable USB debugging.
- Install ADB on computer:
Windows Platform (via Chocolatey)
Open an elevated Command Prompt (Run as Administrator).
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Close and reopen the Command Prompt to ensure the installation is recognized.
choco install adb
adb --version
- Linux Platform (Ubuntu/Debian)
sudo apt install adb -y
adb version
Part 1: Pushing Files to an Android Device Using ADB
Connect Android device to computer via USB.
Make sure the device is recognized by running:
adb devices
- If device is listed, you're ready to proceed. If not, check USB connection and drivers.
Push File(s) to the device:
Use the
adb push
command to copy the file to a directory on device. For example:adb push path/to/app.apk /sdcard/
adb push ./Cover.jpeg /storage/emulated/0/Backup/
This command copiesCover.jpeg
to the/storage/emulated/0/Backup/
directory on device.
Install the APK:
Use the
adb install
command to install the APK directly:adb install path/to/app.apk
If the APK is already on the device (e.g., in
/sdcard/
), you can install it using:adb shell pm install /sdcard/app.apk
Verify the installation:
Check if the app is installed by searching for it on device or using:
adb shell pm list packages | grep package.name
Notes:
If you encounter permission issues, you may need to remount the system partition as read-write (requires root access):
adb root adb remount
- For system apps, you may need to push the APK to
/system/app/
or/system/priv-app/
and set the correct permissions.
Example:
- Push the APK to the device
adb push app.apk /sdcard/
- Install the APK
adb install /sdcard/app.apk
- Alternatively, install directly from computer
adb install path/to/app.apk
That's it! You've successfully pushed and installed an APK using ADB.
Part 2: Using Scrcpy to Mirror and Control Android Device
Prerequisites
- Enable USB Debugging on Android device:
- Go to Settings > About phone > Tap Build number 7 times to enable Developer Options.
- Go to Settings > System > Developer options > Enable USB debugging (also with Wireless debugging).
Install
ADB
andscrcpy
:Windows via Chocolatey(Run as Administrator)
choco install adb scrcpy -y
Linux Platform (Ubuntu/Debian)
sudo apt install adb scrcpy -y
Use scrcpy
via ADB
Connect Android device to computer via USB.
Ensure the device is recognized by running:
adb devices
- If device is listed, you're ready to proceed. If not, check USB connection and drivers.
Run
scrcpy
:Open a terminal or command prompt and simply run:
scrcpy
- This will launch the
scrcpy
window, mirroring Android device's screen.
Wireless Connection (Optional):
If you want to use
scrcpy
wirelessly, follow these steps:- Connect device via USB initially.
- Enable wireless debugging:
- Go to **Settings** > **Developer options** > Enable **Wireless debugging**.
3. Pair device with computer:
adb pair <IP>:<PORT>
(Replace `<IP>` and `<PORT>` with the values shown in the Wireless debugging settings on device.)
```bash
adb pair 172.16.8.56:35953
```
Enter pairing code: `672265`
> Successfully paired to 172.16.8.56:34121 [guid=adb-DYDMMFWC6XFAX4MN-2bJXjj]
4. Disconnect the USB cable.
5. Connect wirelessly:
adb connect <IP>:<PORT>
adb connect 172.16.8.56:34121
> connected to 172.16.8.56:34041
6. Run `scrcpy` as usual:
scrcpy
7. Run `scrcpy` with TCP/IP:
```bash
scrcpy --tcpip=<IP>:<PORT>
```
```bash
scrcpy --tcpip=172.16.8.56:34121
```
> `scrcpy --tcpip=<IP>:<PORT>` allows direct connection to Android device over Wi-Fi.
Common scrcpy
Commands and Options
scrcpy
supports many command-line options for customization. Here are some useful ones:
Reduce resolution:
scrcpy -m1024
(Scales the device screen to a maximum width of 1024 pixels.)
Limit frame rate:
scrcpy --max-fps 30
(Limits the frame rate to 30 FPS.)
Record the screen:
scrcpy --record file.mp4
(Records the screen to a file named
file.mp4
.)Disable screen mirroring (only control):
scrcpy --no-display
(Useful for controlling the device without displaying its screen.)
Turn off the device screen:
scrcpy --turn-screen-off
(Mirrors the device but turns off its screen.)
Copy device clipboard to computer:
scrcpy --forward-all-clipboard
(Syncs the clipboard between the device and computer.)
Rotate the device screen:
scrcpy --rotation 1
(Rotates the device screen. Values:
0
(no rotation),1
(90°),2
(180°),3
(270°).)
Keyboard and Mouse Controls
- Right-click triggers
BACK
- Middle-click triggers
HOME
- Alt+f toggles fullscreen
- There are many other shortcuts
Conclusion
ADB
andScrcpy
are powerful tools for managing and controlling Android devices.With
ADB
, can push and install APKs, whileScrcpy
allows to mirror and control device’s screen with ease.
Use ADB to Push Files / Install APKs and Control Android Devices with Scrcpy - King Zone
aywxhogozo
[url=http://www.g06eb7l3731q2dj5lzou3g1yk3m8039hs.org/]uywxhogozo[/url]
ywxhogozo http://www.g06eb7l3731q2dj5lzou3g1yk3m8039hs.org/
Pour une expérience de jeu optimale, consultez Inventonslemondedapres avant de choisir votre prochain casino en ligne !
Thanks very nice blog!
casino en ligne fiable
What i do not understood is in truth how you're not really much more neatly-liked than you might be now.
You are very intelligent. You recognize therefore significantly in relation to this matter, made me
individually believe it from a lot of varied angles.
Its like men and women are not interested except it is
one thing to accomplish with Woman gaga! Your personal stuffs nice.
Always handle it up!
web site
Hello, I read your blog like every week. Your writing style is awesome, keep doing what you're doing!
casino en ligne
I'm extremely inspired with your writing talents and also with the
layout for your weblog. Is this a paid theme or did you customize it yourself?
Anyway stay up the nice high quality writing, it is rare to peer a great blog like this one nowadays..
meilleur casino en ligne
What's up to every , since I am truly eager of reading this website's post to be updated regularly.
It carries nice material.
web page
Howdy I am so delighted I found your website, I really found you by mistake,
while I was browsing on Google for something else, Nonetheless I am here now
and would just like to say cheers for a remarkable post and a all round entertaining blog (I
also love the theme/design), I don't have time to look over it all at the minute but I have saved
it and also added your RSS feeds, so when I
have time I will be back to read much more,
Please do keep up the superb work.
homepage
Superb, what a webpage it is! This weblog provides useful information to us,
keep it up.
casino en ligne France
I think this is among the most important information for me.
And i am glad reading your article. But want to statement on few common things, The website taste is great, the articles is actually great : D.
Excellent activity, cheers
casino en ligne
Magnificent items from you, man. I have take into account your stuff previous to and
you are simply extremely magnificent. I really like what you have obtained here,
certainly like what you are stating and the way in which by which you are saying it.
You are making it enjoyable and you continue to
care for to keep it wise. I can't wait to read much more from you.
This is actually a terrific web site.
casino en ligne
Hello colleagues, how is the whole thing,
and what you would like to say on the topic of this post, in my view its in fact remarkable designed for me.
meilleur casino en ligne
Simplifiez votre choix avec Inventonslemondedapres, le comparateur qui révèle les
casinos en ligne vraiment performants !
Inventonslemondedapres vous oriente vers des casinos en ligne
où la protection des données personnelles est une priorité absolue.
lf9lxl
wwmh78
Good info. Lucky me I discovered your website by accident (stumbleupon). I have book marked it for later!
y49hnk
Use ADB to Push Files / Install APKs and Control Android Devices with Scrcpy - King Zone
wxwghdfxy http://www.g018177f73t9715hcv8eyuzp7vqc25szs.org/
[url=http://www.g018177f73t9715hcv8eyuzp7vqc25szs.org/]uwxwghdfxy[/url]
awxwghdfxy
rgelj6
htwqi0