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.
Wow, this post is good, my sister is analyzing these kinds of things, therefore I am going to let know her.
Hello! I could have sworn I've visited your blog before but after looking at a few of the posts I realized it's new to me. Anyways, I'm certainly pleased I came across it and I'll be book-marking it and checking back often!
you're in point of fact a good webmaster. The site loading pace is incredible. It seems that you're doing any unique trick. Also, The contents are masterpiece. you've done a fantastic activity in this topic!
Hi! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no backup. Do you have any solutions to stop hackers?
Superb site you have here but I was curious about if you knew of any forums that cover the same topics discussed here? I'd really like to be a part of online community where I can get opinions from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Cheers!
Great site you have here but I was wanting to know if you knew of any discussion boards that cover the same topics talked about in this article? I'd really love to be a part of online community where I can get responses from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thanks a lot!
Good post. I learn something new and challenging on blogs I stumbleupon every day. It will always be useful to read content from other authors and practice something from other websites.
Hi, this weekend is nice in support of me, because this moment i am reading this great informative paragraph here at my home.
Very nice article, exactly what I was looking for.
eai91p
This is very interesting, You're a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I've shared your web site in my social networks!
Hi there, just wanted to say, I liked this article. It was helpful. Keep on posting!
Right away I am ready to do my breakfast, after having my breakfast coming over again to read further news.
I am curious to find out what blog system you have been using? I'm having some minor security problems with my latest site and I'd like to find something more safeguarded. Do you have any solutions?
Hello there! This blog post could not be written any better! Looking at this post reminds me of my previous roommate! He always kept preaching about this. I am going to send this article to him. Pretty sure he's going to have a good read. Many thanks for sharing!
Do you have a spam issue on this blog; I also am a blogger, and I was wondering your situation; we have created some nice procedures and we are looking to exchange methods with other folks, please shoot me an e-mail if interested.
Hello, i think that i saw you visited my website thus i came to “return the favor”.I am attempting to find things to enhance my web site!I suppose its ok to use some of your ideas!!
Do you have any video of that? I'd want to find out more details.
Helpful information. Fortunate me I discovered your website accidentally, and I'm stunned why this accident did not happened earlier! I bookmarked it.
Everything is very open with a precise clarification of the challenges. It was definitely informative. Your website is extremely helpful. Many thanks for sharing!
It is appropriate time to make some plans for the future and it is time to be happy. I've read this post and if I could I wish to suggest you some interesting things or tips. Perhaps you can write next articles referring to this article. I wish to read more things about it!
bookmarked!!, I like your website!
whoah this weblog is fantastic i like reading your articles. Keep up the good work! You understand, a lot of individuals are hunting round for this info, you could help them greatly.
If you are going for finest contents like I do, simply pay a visit this website everyday as it offers quality contents, thanks
It's nearly impossible to find knowledgeable people for this subject, but you sound like you know what you're talking about! Thanks
Hello, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can recommend? I get so much lately it's driving me insane so any support is very much appreciated.
Excellent article. I am going through some of these issues as well..
Awesome post.
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something informative to read?
Greetings! Very helpful advice in this particular post! It's the little changes that produce the most important changes. Thanks a lot for sharing!
Yes! Finally something about %keyword1%.
Hey! I could have sworn I've been to this website before but after reading through some of the post I realized it's new to me. Anyways, I'm definitely happy I found it and I'll be book-marking and checking back often!
Hey just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Safari. I'm not sure if this is a format issue or something to do with browser compatibility but I figured I'd post to let you know. The style and design look great though! Hope you get the problem fixed soon. Kudos
I every time spent my half an hour to read this weblog's posts every day along with a cup of coffee.
I'll right away clutch your rss as I can't in finding your email subscription hyperlink or e-newsletter service. Do you've any? Please permit me recognise so that I may just subscribe. Thanks.
Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; many of us have created some nice methods and we are looking to trade solutions with others, please shoot me an email if interested.
Fantastic blog! Do you have any tips and hints for aspiring writers? I'm hoping to start my own website soon but I'm a little lost on everything. Would you recommend starting with a free platform like Wordpress or go for a paid option? There are so many options out there that I'm completely confused .. Any suggestions? Bless you!
Excellent, what a webpage it is! This website provides useful data to us, keep it up.
bookmarked!!, I love your website!
These are really impressive ideas in regarding blogging. You have touched some fastidious points here. Any way keep up wrinting.
My family always say that I am killing my time here at web, except I know I am getting experience all the time by reading such fastidious content.
Everything is very open with a really clear clarification of the issues. It was definitely informative. Your site is very useful. Thanks for sharing!
I was able to find good info from your articles.
I've been exploring for a bit for any high-quality articles or blog posts in this sort of space . Exploring in Yahoo I finally stumbled upon this web site. Reading this information So i am satisfied to exhibit that I've a very just right uncanny feeling I found out exactly what I needed. I most unquestionably will make certain to don?t overlook this web site and provides it a look regularly.
I know this if off topic but I'm looking into starting my own weblog and was wondering what all is required to get setup? I'm assuming having a blog like yours would cost a pretty penny? I'm not very internet savvy so I'm not 100% certain. Any recommendations or advice would be greatly appreciated. Cheers
Hurrah! After all I got a blog from where I can genuinely obtain valuable data concerning my study and knowledge.
Hi, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam feedback? If so how do you protect against it, any plugin or anything you can recommend? I get so much lately it's driving me mad so any support is very much appreciated.
When someone writes an article he/she maintains the image of a user in his/her mind that how a user can understand it. Thus that's why this post is amazing. Thanks!
Please let me know if you're looking for a article author for your weblog. You have some really good posts and I believe I would be a good asset. If you ever want to take some of the load off, I'd absolutely love to write some articles for your blog in exchange for a link back to mine. Please blast me an email if interested. Regards!
Way cool! Some very valid points! I appreciate you writing this post plus the rest of the website is very good.
Hey there! I know this is kind of off-topic however I had to ask. Does building a well-established blog such as yours take a lot of work? I am completely new to running a blog but I do write in my diary every day. I'd like to start a blog so I can share my own experience and thoughts online. Please let me know if you have any suggestions or tips for new aspiring bloggers. Thankyou!
I'm now not certain the place you are getting your information, however great topic. I must spend a while finding out much more or working out more. Thanks for wonderful info I used to be in search of this information for my mission.
I believe everything said was very logical. But, what about this? what if you added a little content? I ain't suggesting your information is not solid, however suppose you added something that makes people desire more? I mean %BLOG_TITLE% is kinda vanilla. You could glance at Yahoo's front page and see how they create news headlines to get viewers interested. You might try adding a video or a pic or two to grab readers interested about what you've got to say. Just my opinion, it could make your posts a little livelier.
My brother suggested I may like this web site. He was totally right. This publish truly made my day. You can not consider just how so much time I had spent for this info! Thanks!
No matter if some one searches for his necessary thing, thus he/she desires to be available that in detail, so that thing is maintained over here.
Amazing issues here. I am very satisfied to see your post. Thank you so much and I'm taking a look ahead to touch you. Will you kindly drop me a e-mail?
I believe that is among the so much vital information for me. And i'm satisfied studying your article. However want to observation on some normal things, The website taste is ideal, the articles is in reality excellent : D. Excellent activity, cheers
Somebody necessarily lend a hand to make severely articles I might state. That is the very first time I frequented your web page and so far? I amazed with the research you made to make this actual put up amazing. Magnificent job!
I appreciate, cause I found just what I was looking for. You've ended my four day long hunt! God Bless you man. Have a nice day. Bye
I am sure this post has touched all the internet visitors, its really really good post on building up new web site.
What's up all, here every one is sharing these kinds of familiarity, so it's pleasant to read this web site, and I used to go to see this website everyday.
Do you have a spam issue on this blog; I also am a blogger, and I was curious about your situation; we have developed some nice procedures and we are looking to swap solutions with other folks, be sure to shoot me an e-mail if interested.
Hello there, I discovered your website by the use of Google whilst looking for a similar subject, your web site got here up, it looks good. I have bookmarked it in my google bookmarks.
Hi there, just became alert to your blog through Google, and located that it's really informative. I am gonna watch out for brussels. I will be grateful in case you proceed this in future. Many other folks can be benefited from your writing. Cheers!
I've been surfing online more than 4 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all site owners and bloggers made good content as you did, the net will be much more useful than ever before.
Hi, yup this paragraph is genuinely fastidious and I have learned lot of things from it about blogging. thanks.
I was curious if you ever thought of changing the structure of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 images. Maybe you could space it out better?
Have you ever thought about publishing an e-book or guest authoring on other blogs? I have a blog based on the same ideas you discuss and would love to have you share some stories/information. I know my visitors would enjoy your work. If you're even remotely interested, feel free to send me an e mail.
It's going to be end of mine day, but before finish I am reading this wonderful paragraph to improve my experience.
Your means of telling the whole thing in this article is actually nice, every one be capable of without difficulty understand it, Thanks a lot.
Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?
I've been browsing on-line more than 3 hours these days, yet I never found any attention-grabbing article like yours. It's beautiful worth sufficient for me. In my view, if all web owners and bloggers made good content material as you did, the internet will probably be a lot more helpful than ever before.
Very great post. I just stumbled upon your blog and wished to say that I've really enjoyed browsing your blog posts. After all I will be subscribing to your feed and I'm hoping you write once more soon!
555
1

1

1

1xkwm9
1

1

1

1

1

1

hpo7xk
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/
1

1

1

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