Automating Android Games with ADB: Bowling King (Perfect Games)

  Рет қаралды 52,136

Engineer Man

Engineer Man

Күн бұрын

See how to automate a bowling game in this video. Although the end solution wasn't all that hard, it did take some experimentation and a couple tricks to get it right.
Hope you enjoyed the video!
Check out this code here:
github.com/eng...
Join my Discord server to chat with me:
/ discord
Check out some code on my GitHub:
github.com/rea...
github.com/eng...
Come visit us on Reddit:
/ engineerman
Other Social:
/ _engineerman
/ engineermanyt

Пікірлер: 159
@EngineerMan
@EngineerMan 4 жыл бұрын
Press F to pay respects to Jose.
@InfaReQt
@InfaReQt 4 жыл бұрын
Flappy bird next?
@spikatrix1486
@spikatrix1486 4 жыл бұрын
F
@richarddeananderson82
@richarddeananderson82 4 жыл бұрын
No hard feelings
@aryanbhatia6992
@aryanbhatia6992 4 жыл бұрын
Please do tower twist
@jethromoller2757
@jethromoller2757 4 жыл бұрын
F
@jockillfull
@jockillfull 4 жыл бұрын
There's this game called king of thieves where you have to build a dungeon to protect your treasures. Once you get to high level they almost all require frame perfect jumps. You could build a dongeon saver
@alexstone691
@alexstone691 4 жыл бұрын
I think that would be to hard cause you can't really read the layout easily
@jockillfull
@jockillfull 4 жыл бұрын
@@alexstone691 yeh I think so too but maybe an auto saver or something like that, Or why not creating a hash table while reading the cases of the layout and then you would choose the correct jump pattern.
@_Xyr
@_Xyr 4 жыл бұрын
I know the game but i dont really understand the point of it, for each dungeon you'd have to just time it right, if its dynamic and suppoed to work with all dungeons it would be kinda hard to detect all the obstacles and try to avoid them
@Zer-kt2ss
@Zer-kt2ss 4 жыл бұрын
Game recommendation : 8 ball pool ps good luck
@slendi9623
@slendi9623 4 жыл бұрын
Yes
@mfadhilal-fatih1427
@mfadhilal-fatih1427 4 жыл бұрын
I think its not kinda game that can be automated like this game and the previous one. The abstraction of that game is on the next level, same like chess
@AM-ey2vn
@AM-ey2vn 4 жыл бұрын
@@mfadhilal-fatih1427 true, but it could be done, not by scripting and calculating the input and output but with detection of aim line. He could just extend it and then either manually find the hole or find black pixels to find the nearest hole. But this would't be that much automatic
@Zer-kt2ss
@Zer-kt2ss 4 жыл бұрын
It wouldn't be a complete automation but if you are the one breaking you can get a perfect game
@roi1044
@roi1044 3 жыл бұрын
@@mfadhilal-fatih1427 I know im late but you can do this with image recognision where you take all the coordinates of the balls all the time and then you calculate the angle that you need to hit it in order to put it in. Hope this makes scence. Have a beautiful day😁
@Adomas_B
@Adomas_B 4 жыл бұрын
A kid: I played this game for 2 months and became really good, that's how long you need to play. Engineer Man: 4 minutes, 5 tops
@tkdevlop
@tkdevlop 4 жыл бұрын
RIP to Jose.
@KobeJohnsonNationNerd
@KobeJohnsonNationNerd 4 жыл бұрын
If you could make a short tutorial on the ADB api with python and connecting it to your phone that would be amazing! (I also saw someone say 8 Ball pool which would be pretty great to see along with the math)
@MACHINEBUILDER
@MACHINEBUILDER 4 жыл бұрын
I wrote a quick thingo about how to setup ADB: . . . For anyone wondering, this is how I learned how to set it up: ... Step 1: you need to enable USB debugging on your phone (not required, but it means you don't need to use adb over wifi) here's how to do that: developer.android.com/studio/command-line/adb ... Step 2: install pure-python-adb using pip. just copy and paste this command into a command prompt window: pip install pure-python-adb ... Step 3: install the actual adb sdk from the link below developer.android.com/studio/releases/platform-tools ... Step 4: open cmd in the location that you installed the adb sdk, and run 'adb start-server' to set it up. when you want to stop the server, run 'adb kill-server' ... Step 5: that's it! :D
@thepurplesmurf
@thepurplesmurf 4 жыл бұрын
From now on people should refer to you as _Evil Engineer Man_ 😈😁😈
@jw_023
@jw_023 4 жыл бұрын
EEM should be the new channel name lol
@deltakun
@deltakun 4 жыл бұрын
You can try automating a game called stacks, a touch input with a small time interval will do. All you have to do is find the correct interval and it will run continuously.
@zinsy23
@zinsy23 4 жыл бұрын
This is a great series so far! Can't wait to see more parts coming!
@TechWithBeni
@TechWithBeni 4 жыл бұрын
make more adb tutorial this is awesome !
@kaushikrishi01
@kaushikrishi01 4 жыл бұрын
*Hey Engineer Man!* Where from did you learn so much Stuff ? Like you know everything in python and all about linux etc, etc
@____-gy5mq
@____-gy5mq 4 жыл бұрын
He was born with all that knowledge. He never bothered to search the internet. You should do the same.
@spikatrix1486
@spikatrix1486 4 жыл бұрын
Experiment with everything. That's how you learn. It takes time, but it's fun and worth it.
@ZacKoch
@ZacKoch 4 жыл бұрын
You're shooting Brooklyn! Nice video 👨‍💻
@djcaesar9114
@djcaesar9114 4 жыл бұрын
I love your videos. Everything seems so simple! Thanks for explaining.
@rohanyadav8573
@rohanyadav8573 4 жыл бұрын
Please automate Stacks....
@BakaliMampers
@BakaliMampers 4 жыл бұрын
I tried automating a Piano Tiles game, but it seems that the time between adb screen capture send and write picture, and the loop takes just a little too long for the game. Do you know of any ways to make this faster.
@zuk987minge
@zuk987minge 4 жыл бұрын
Use Appium.
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
scrcpy has almost no delay(not noticeable by a human)
@MayankSharma
@MayankSharma 4 жыл бұрын
Hey @EngineerMan, how about Pokemon Go's swipe action to catch a Pokemon? I think it would be challenging as every Pokemon catch requires a different length of swipe action. I'm going to try it myself as well.
@jonny5495
@jonny5495 4 жыл бұрын
Miniclips 8-ball pool would be fun to automate
@EngineerMan
@EngineerMan 4 жыл бұрын
Yes, this is on my list of possibilities for sure.
@EES80
@EES80 4 жыл бұрын
Engineer THE Man! From a slightly different barrel... but how would you feel about making a video about Linux transfer protocols? Side by side comparison of utilities like scp, sftp, rync. Advantages, differences, basic functions and so on. Just an idea. Great channel and amazing work ...100%
@supergamerfr
@supergamerfr 4 жыл бұрын
Love these Android game videos keep up the great work man
@ivansakal1224
@ivansakal1224 4 жыл бұрын
that's just evil lol
@parkourX4
@parkourX4 4 жыл бұрын
I would really like to watch a full tutorial from you on how to set up and use the adb with python to be able to achieve results like this. I'm having trouble finding a good guide. I assume that you could make a good one. Thanks
@Velkon
@Velkon 4 жыл бұрын
If you can't figure it out then you shouldn't be trying it
@robertsmith512
@robertsmith512 4 жыл бұрын
Ignore that asshat. Keep drilling down bra!😉it's so worth it!
@blendertestguy5728
@blendertestguy5728 4 жыл бұрын
Couldn't we like run it locally on android phone without conmecting it to a computer by using macros ,there is this app called "Automate" from llamalabs in playstore whick i think can do this exactly
@tooru
@tooru 4 жыл бұрын
pretty sure it requires root
@blendertestguy5728
@blendertestguy5728 4 жыл бұрын
@@tooru That's what i thought in the begining but suprisingly it doesn't require any root ,well at least on my android version 8 I was able to automate snapchat to send snaps and gain snap score quickly
@BigerBoy
@BigerBoy 4 жыл бұрын
How do you have the coordinates label in scrcpy? I'm on a Mac and it only shows my phone screen, but not coordinates.
@bhkgraphics7471
@bhkgraphics7471 4 жыл бұрын
you have to activate them through your phone. Go to settings > developer options and turn on "show pointer"
@preethamdbz2023
@preethamdbz2023 4 жыл бұрын
Every video is very clearly explained. Is there any way I can get a video on - keybinding PC window(transparent) using tkinter, pyautogui or any package, and connecting mobile to PC using adb shell and playing games using PC mouse, keyboard like octopus(octopus is mobile app) from PC itself(any python runnable platform).
@amro9629
@amro9629 4 жыл бұрын
Rummikub (mobile) is the next game that would require some engineering effort, engineer man!
@i49Y47
@i49Y47 3 жыл бұрын
is there any ways to complie our pythonic bot scripts in an overlay apks. so that we can run these scripts directly in our device without ADB connection to PCs. I know we need to change our clicks and other APis with respect to Android. can you make videos to compilation of .py scripts. That would be more helpful
@akashvangane2196
@akashvangane2196 4 жыл бұрын
Hey man you are awesome please make more videos about automation Android games using adb shell
@iphgfqweio
@iphgfqweio 4 жыл бұрын
You might not be a bowler but an absolute baller, ma man!
@haroldredmon5660
@haroldredmon5660 Жыл бұрын
Hello just seen your video on the bowling.wow that was nice. I don't understand how you did that just on a phone? What would I need to learn how to do that. If you don't care for sharing some info!! Thank you And God bless! You maybe could try Darts of Fury the game cricket
@Aru8675
@Aru8675 Жыл бұрын
Teach us and Make a bot for Minesweeper game to display hidden mines using bot, or bot should be capable of playing game without any mistake to the end of game for any android game. Can we use BlueStacks for bot making process because BlueStacks also provides us to keep something in background
@MrGattor33
@MrGattor33 3 жыл бұрын
I have recently ran across your channel and have watched a few of these videos. Some really cool and interesting content. I want to know how it is that you're connecting your phone up to your system and running this? Is it via the USB hook up and such?
@EngineerMan
@EngineerMan 3 жыл бұрын
Just via USB and a program called scrcpy to mirror the display to my machine.
@MrGattor33
@MrGattor33 3 жыл бұрын
@@EngineerMan Ah sweet, thank you for the reply. New guy here to your channel and I am enjoying your content!
@JonMNJon
@JonMNJon 3 жыл бұрын
I would like to know how to active this toolbar at top. :/
@cbasa97
@cbasa97 4 жыл бұрын
If anyone can help me out, that would be great. I just installed atom, and I'm trying to run input() commands, but I get "TERM environment variable not set" how would I go about fixing this?
@InfaReQt
@InfaReQt 4 жыл бұрын
Try joining the discord, they'll be able to help out
@zenmaster24
@zenmaster24 4 жыл бұрын
why wouldnt you move and throw in one command? could you not do adb shell input touchscreen swip 540 1700 500 1400 900?
@0xPanda1
@0xPanda1 4 жыл бұрын
please make more Adb stuff it's very interesting
@0xPanda1
@0xPanda1 4 жыл бұрын
That was a nice tutorial, could you make one for Magic title 3 😁
@PushpeshKarki
@PushpeshKarki 4 жыл бұрын
Try to do a complex game, like a turn-based RPG or a casino game
@PathToPrestige
@PathToPrestige 4 жыл бұрын
Please do something for TapTapHeroes.. maybe the main farming or arena fighting (detect the difference between your force and the enemies and attack if difference is higher than supposed losing chance.. or anything with TTH pls!
@Pcoxproductions
@Pcoxproductions 4 жыл бұрын
Did you throw it at a slight diagonal because of the second line or did it just grab the ball anyways
@ancapftw9113
@ancapftw9113 4 жыл бұрын
Time to automate Adventure Capitalist. Multi video project to do that.
@bayardbr
@bayardbr 4 жыл бұрын
good job mate
@garyp3472
@garyp3472 4 жыл бұрын
my dad would love this lol nice
@wthxrsh
@wthxrsh 4 жыл бұрын
Game recommendation: Any Gambling/Casino game
@mfadhilal-fatih1427
@mfadhilal-fatih1427 4 жыл бұрын
That's wont work any gambling machine software or mechanical one are all rigged lol
@bluekeybo
@bluekeybo 4 жыл бұрын
You changed Jose's life
@MarketingWithJeffCaldwell
@MarketingWithJeffCaldwell 2 жыл бұрын
That was so dope!!
@petaryakov5428
@petaryakov5428 4 жыл бұрын
I connect my phone to scrcpy, but when I type a bash command in the cmd nothing happens. It is ready for another command input. Is there an additional command to connect my phone to adb or it is enough if I see my screen in scrcpy?
@EngineerMan
@EngineerMan 4 жыл бұрын
All scrcpy does is mirror your screen. The adb commands to manipulate the screen happen in a separate terminal.
@petaryakov5428
@petaryakov5428 4 жыл бұрын
@@EngineerMan I open another terminal, and it doesn't work.
@petaryakov5428
@petaryakov5428 4 жыл бұрын
Today it suddenly started working :D
@slendi9623
@slendi9623 4 жыл бұрын
Em being a genius as always
@slendi9623
@slendi9623 4 жыл бұрын
OH. EM. GEE.
@tomer2565
@tomer2565 4 жыл бұрын
Is it possible if I just connect a USB cable without displaying the screen on my pc?
@EngineerMan
@EngineerMan 4 жыл бұрын
Yep, absolutely. The screen mirroring was purely for this video.
@dannyboi8433
@dannyboi8433 4 жыл бұрын
Hey engineer man! What program are you using to write your shell script with?
@doug765
@doug765 4 жыл бұрын
It’s atom
@viktorivanov2305
@viktorivanov2305 4 жыл бұрын
Hi. Great video. How can I do this if I do not have an Android phone? I just want to automate games myself.
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
use an emulator on your pc
@ItsAditya_xyz
@ItsAditya_xyz 4 жыл бұрын
It was nice. Next time automate my android Game(soon on play store)
@TipsNtricks891
@TipsNtricks891 4 жыл бұрын
Can u automate crossy road!
@narendranauth8785
@narendranauth8785 4 жыл бұрын
Are you using scrcpy to display the phone?
@1931classic
@1931classic 4 жыл бұрын
is there a way to do this with ios?
@JP-td8gt
@JP-td8gt 4 жыл бұрын
Can you do that on an iPhone? that's really cool example.
@rebelking4139
@rebelking4139 4 жыл бұрын
Try to automate the facebook football game as next episode!
@TESTTEST-ix1kq
@TESTTEST-ix1kq 4 жыл бұрын
What debug tool do you use to see the mouse coordinate on phone
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
its in your phones developer settings
@newname3201
@newname3201 4 жыл бұрын
Please add a game hack series please
@lordtony8276
@lordtony8276 4 жыл бұрын
I'm interested in the process of how to connect adb to your phone so your phone will start receiving the commands.
@chedisLoL
@chedisLoL 4 жыл бұрын
its a usb cable to his pc lol. he's just recording it via software ADB detects the device
@aayushpatil7514
@aayushpatil7514 4 жыл бұрын
@@chedisLoL how did he got that grid on his phone?
@zarith
@zarith 4 жыл бұрын
@@aayushpatil7514 Developer Options, Pointer Location
@asishraju7908
@asishraju7908 4 жыл бұрын
automate stack game , i tried but but was unsucessful
@GajanandamaniAdhikari
@GajanandamaniAdhikari 4 жыл бұрын
Poor Jose!
@teodordimitrov3537
@teodordimitrov3537 4 жыл бұрын
what about subway surfers, I think it will be a bit harder but im sure u will get it
@samad934
@samad934 4 жыл бұрын
Please make video on automating 8 ball pool....
@iangraham6730
@iangraham6730 4 жыл бұрын
Please try Dodg3r by radicaleng :-)
@HinduWaffenChief
@HinduWaffenChief 4 жыл бұрын
Great
@mhmdcool1090
@mhmdcool1090 4 жыл бұрын
Jose during the game: 🗿
@fireguy123469
@fireguy123469 4 жыл бұрын
king of thieves!
@ArielSings803
@ArielSings803 4 жыл бұрын
Jose: Haxxxx
@tobybridle8122
@tobybridle8122 4 жыл бұрын
You should try 8 Ball Pool 😉
@pharaoh-ClashRoyale
@pharaoh-ClashRoyale 2 жыл бұрын
Candy Crush automatically
@marcosdheleno
@marcosdheleno 4 жыл бұрын
but, where's shautieh lee? what about the cosplays?
@JP-td8gt
@JP-td8gt 4 жыл бұрын
How about Mini Gold King :-)
@tommy1149
@tommy1149 4 жыл бұрын
But how exactly can I use my phone with my laptop like him?
@EngineerMan
@EngineerMan 4 жыл бұрын
Download scrcpy.
@tommy1149
@tommy1149 4 жыл бұрын
Ok, thanks!
@gaurav007x
@gaurav007x 4 жыл бұрын
stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb Found this on Stackoverflow.com That accelerometer can be turned off.. Haven't tried it though.
@ilovemygrill
@ilovemygrill 4 жыл бұрын
Can you automate a game called runescape. I'll let you.use an account for this and I'll pay you aswell. If been trying to do it. It's basically a bunch of tap and mouse movements.
@vinusuhas4978
@vinusuhas4978 4 жыл бұрын
Do subway surfers
@indigo3705
@indigo3705 4 жыл бұрын
Is it python ???
@user-hx7dc9uz6s
@user-hx7dc9uz6s 3 жыл бұрын
yes
@Hamzaelbouti
@Hamzaelbouti 3 жыл бұрын
subway runner, thinks
@prod.xnfect3520
@prod.xnfect3520 2 жыл бұрын
automate solitaire
@Anandraogorili
@Anandraogorili 4 жыл бұрын
Hey where are you working! And whats your salary
@IN-pr3lw
@IN-pr3lw 4 жыл бұрын
Wanna be friends?
@pharaoh-ClashRoyale
@pharaoh-ClashRoyale 2 жыл бұрын
Temple Run automating
@ExoDAbLe
@ExoDAbLe 4 жыл бұрын
flappy bird
@action409
@action409 4 жыл бұрын
I think the 1 dislike is jose 😂😂
@0xenzo428
@0xenzo428 4 жыл бұрын
Geometry dash please?
@viddeshk8020
@viddeshk8020 3 жыл бұрын
Plz zoom
@SerielThriller
@SerielThriller 4 жыл бұрын
Jose disliked this video.
@guzzygaming1445
@guzzygaming1445 4 жыл бұрын
jose is sad
@notnanook
@notnanook 4 жыл бұрын
Now do Minecraft
@harshitjoshi3082
@harshitjoshi3082 4 жыл бұрын
Next game PUBG mobile 😂😂
@Anandraogorili
@Anandraogorili 4 жыл бұрын
F
@mszi4190
@mszi4190 4 жыл бұрын
Nice but this is not engineering i am sorry;) this is computer programming I guess. Which is cool.
@ddic1
@ddic1 4 жыл бұрын
Pretty disappointed that this guy passes off this scratchwork as coding. What do you do for a living man? Obviously not software development or similar. For anyone trying to learn: I've checked out some of his github and other videos, revealing that everything is extremely simple and mostly not usable. These are one-off lessons at best, and have almost no real educational value. Also he just looks kinda smug about being able to do first-year coding. I bet he is a bit smug because he's making money off everyone watching this BS. Probably a lot. I found this guy because I was interested to see what the Craigslist scammer attempted to do and what this guy did in response. I'm not sure that that was even a real CL scam and all the guy did was find a URI in the Chrome console and flood it with requests. Not that creative, but potentially effective against a poorly-made scammer website. Also, comments are disabled on that video. My bet is that comments were disabled when someone brought attention to the fact that a self-taught teenager could've figured out how to do the same thing. Don't think that this guy is all that smart, because the smartest thing he's doing is making money off of your wasted time.
@EngineerMan
@EngineerMan 4 жыл бұрын
You're a very rude person. Just a reminder that I don't do sponsored videos, I don't take donations, I don't have a Patreon, I don't sell any products, and my channel is entirely not commercialized. I do this because I enjoy it and people benefit from it. Show me another programming KZbin channel like this. Spoiler: there aren't any. The cost to produce a video 95% of the time far exceeds that of the ad revenue. Take your negativity somewhere else; it's not welcome here.
@ddic1
@ddic1 4 жыл бұрын
You're not wrong, but don't resort to qualifying my behavior. The points I made are not invalidated simply because they're insensitive. This platform supports discussing perspectives, even at your image's expense. You're disillusioning people about how coding goes. They should know that it requires a lot of study and heavy attention to detail, very especially in a professional setting. There are guidelines established by the industry. Having a usable github is the software equivalent to just wearing pants. I know because I am a software engineer. You have like 300k subscribers and get hundreds of thousands of views each month on monetized videos. Honestly, I haven't seen any production value in your videos that exceeds basic editing. If your costs are actually your own living expenses, then I can understand. Also, there are many coding channels that have excellent githubs, like this guy: kzbin.info/door/-yuWVUplUJZvieEligKBkA You can blame my insensitivity, but everything I can see makes me think that - educationally - there is rather little value. There should be more of an "I did" feeling here, but it's labeled as "how to" often times. What you're doing isn't bad, but it definitely is misleading. Nobody is going to watch one of these videos and be able to do projects on their own. It would behoove them to read documentation, as they will inevitably have to do a lot of it. Relying on your videos is a lose-lose in terms of usage. Just call it entertainment. I do have a negative perspective on this. There is no voice around here to let people know what real coding is, so I'm throwing this into the mix. A few people will read it and learn something, otherwise this means just about nothing. Anyone in any profession that takes pride in their work would feel the same. This chanel stereotype exists in very many incarnations. They're pretty easy to find.
@ddic1
@ddic1 4 жыл бұрын
@@EngineerMan Done already? I'm curious to see what explanations you'll provide to disprove what I've said
@emorrow6441
@emorrow6441 4 жыл бұрын
You're an absolute moron. He never once claims to be an expert. He gets people thinking. The amount of comments where people are like "woah didn't know you could do that" shows that he's teaching people. Regardless of how "basic" you think it is. Even if the scammer part was fake, you mean like every prank show and the majority of channels on youtube? Why are you here if you hate it so much? Grow up. I see your channel is doing so much better.
Automating Android Basketball So Hard The Dunks Never Stop
8:13
Engineer Man
Рет қаралды 37 М.
8 super heroic Linux commands that you probably aren't using
8:38
Engineer Man
Рет қаралды 727 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 6 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 22 МЛН
Automating Android Games with Python and OpenCV: Pong
11:55
Engineer Man
Рет қаралды 48 М.
Engineer Breaks Down Hollywood Programming Scenes
11:02
Engineer Man
Рет қаралды 22 М.
Nintendo Hire me!!!!!!!!
16:52
LiveOverflow
Рет қаралды 673 М.
Automating Android Games with Python: Stick Hero
15:22
Engineer Man
Рет қаралды 383 М.
Linux Command Line Pipes and Redirection
10:34
Engineer Man
Рет қаралды 26 М.
How to pull your own stock Android firmware from your device
13:16
Linux File Permissions and Attributes
8:30
Engineer Man
Рет қаралды 15 М.
Difficult Programming Concepts Explained
11:13
Engineer Man
Рет қаралды 69 М.
Using My Python Skills To Punish Credit Card Scammers
7:13
Engineer Man
Рет қаралды 4,9 МЛН
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 843 М.
ноутбуки от 7.900 в тг laptopshoptop
0:14
Ноутбуковая лавка
Рет қаралды 3,7 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 3,6 МЛН
Новая функция в Xiaomi! Apple скопирует?
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 1,2 МЛН