Bot for android game - Android Q&A, Help & Troubleshooting

Hello guys,
I have been trying some information to get started but i have not been that successful. I am looking some advise, guide on how to get started with building a bot for a game in android. I am an experienced developer (java, ruby, c) but never coded anything in android or like a bot for a game. Besides running emulators to execute the game what other tools do i use? Do i execute the bot on the emulated device (android) or my pc which somehow can access the emulator. Any links or guides would be helpful, thanks.
I did have a look into monkeyrunner which seems kinda promising (although i hate python ) but still its not very clear how those scripts access the android game.

Mercy0r said:
Hello guys,
I have been trying some information to get started but i have not been that successful. I am looking some advise, guide on how to get started with building a bot for a game in android. I am an experienced developer (java, ruby, c) but never coded anything in android or like a bot for a game. Besides running emulators to execute the game what other tools do i use? Do i execute the bot on the emulated device (android) or my pc which somehow can access the emulator. Any links or guides would be helpful, thanks.
I did have a look into monkeyrunner which seems kinda promising (although i hate python ) but still its not very clear how those scripts access the android game.
Click to expand...
Click to collapse
Bump

do you have any information about this, i am in the same way

Related

[Q] problems with android sdk

*RESOLVED*
ive searched to no prevail. id like to start developing apps but am having issues getting the environment set up. i have the jdk properly installed.
issue 1 (main \ major ):
ive installed the android sdk from multiple sources, but when i try to start sdk tools, the command prompt flashes/ opens briefly and i get this message:
"Failed to execute tools\android.bat:
The system cannot find the file specified."
do i need to change a PATH variable or something...
issue 2:
i cannot get eclipse to run. when i try to open the exe file ( because there is no short cut icon...?) it gives a message about not finding a companion library... ive try to change the properties in the file that is supposed to fix it, but it was already set the way its supposed to be. this is not major as i can use a different IDE.
so im completely lost as to th sdk tool. any help would be appreciated!
edit:
i just tried adding the file path to the android sdk ( PATH variable) and it still did not work... :/
i also just tried start the android,bat file and the cmd promt flashes briefly saying somthing about xcopy is not an operable command...etc couldnt read all of it...
btw im on windows 7 home premium
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Check if this can help you.
Actually, you don't need to configure environment variables. You only need to install Java SE, and Eclipse and Android SDK should work fine.
RoberGalarga said:
Check if this can help you.
Actually, you don't need to configure environment variables. You only need to install Java SE, and Eclipse and Android SDK should work fine.
Click to expand...
Click to collapse
well eclipse wont install either, it cant find some companion library.all i curently have is the java jdk and an IDE called intelliJ idea or something like that, nothing else will install...i had to add an environmental variable to get the java jdk to work on cmd. if you could give links to any files your using that would be of help. , that is if your on windows 7
Sure...
Eclipse
Android SDK
Follow the indications of my previous link
Word of caution
I hate to discourage anyone from following their hearts desires especially when it comes to software development. But I wanted to share some advice with you coming from an experienced software engineer. I've been developing software for over 15 years. My experience comes mainly from developing Windows desktop applications in C/C++. I've also been developing software using Java for several years so I'm by no means new to Java technology or development tools.
I've only recently started to develop for the Android platform. It didn't take me long to get started (i.e. get the development environment setup and start developing using the AVD manager) but as I dig into it I'm finding that the Android platform has become very much like developing Windows applications which is interesting to find because I really haven't done a lot of user interface development using Java. In the past my Java development projects have always been more back end server integration related to App Servers and database integration (i.e. Apache/Tomcat, JSP, Oracle, etc.).
I have seen user interface development libraries in Java such as Swing in the past but haven't had a real need for them. So to tell you the truth I can't say how much better or worse the Android SDK user interface libraries are than the traditional JDK 1.4 libraries.
All of this is to say that when I say this you know it's coming from someone that isn't just learning how to program. My advice to you is that if you haven't done much Java development in the past that Android development is not the place to start. You might want to start with the basics first like just setting up a simple Java program and learning the technology first before you jump head long into something.
I've done that more times than I can count in my long career and I can tell you from experience it's the surest way to fail before you get started.
thanks but...
RoberGalarga said:
Sure...
Eclipse
Android SDK
Follow the indications of my previous link
Click to expand...
Click to collapse
i tried to use those files, but still the same problem, they wont launch/ install...in your post it says to launch them from the folder, correct...? the problem is, THEY WONT LAUNCH AT ALL...no UI for anything, just a quick flash of the cmd window for both of them and a pop up window for eclipse...
***i wasnt yelling, just frustrated...
First. DELETE EVERYTHING FROM DOWNLOADED FILES TO EXTRACTED FILE GET RID OF ALL OF IT then clear trash can.
THen ensure the JDK is successfully installed by opening command prompt and typing "java -version" you should have build 1.7 or higher. If not, you may download it here http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html
Download this http://developer.android.com/sdk/index.html and pick the one that has "Recommended" next to it.
after you have that downloaded. FOLLOW THE STEPS BELOW TO A T! NO SHORTCUTS WHAT SO EVER!
Then once everything is downloaded. simply FOLLOW ME again TO A T! and if you follow that you should get everything working. And seriously, FOLLOW IT TO A T! do not take shortcuts do not try to do more than one thing at a time just take it step by step. I had no problems getting it up and running by following that last link.
Hope that helps and BE PATIENT you will get to play around soon enough
elesbb said:
...Then once everything is downloaded. simply FOLLOW ME again TO A T! and if you follow that you should get everything working. And seriously, FOLLOW IT TO A T! do not take shortcuts do not try to do more than one thing at a time just take it step by step. I had no problems getting it up and running by following that last link.
Hope that helps and BE PATIENT you will get to play around soon enough
Click to expand...
Click to collapse
thank you very much. i have what i need now, although i think i figured out my problem...stupid me was viewing the archive for eclipse instead of extracting the files to a separate folder, where the shortcut appeared!. thank you as it was your instructions that led me to my problem.
tripartist1 said:
thank you very much. i have what i need now, although i think i figured out my problem...stupid me was viewing the archive for eclipse instead of extracting the files to a separate folder, where the shortcut appeared!. thank you as it was your instructions that led me to my problem.
Click to expand...
Click to collapse
hahaha!! Sometimes all we need to do is slow down and look at whats infront of us xD glad you got it figured out!
Samsung Galaxy S II not recognized on PC
I want to sync my PC with my Samsung Galaxy Skyrocket and put music on it, but the PC won't recognized the phone.
I have tried downloading and installing the driver, Kies, etc and still get the same error.
Can someone help me??
android.bat still not present
I went to the sdk site to download. I ran the exe file, says that it couldn't find the tool\android.bat file. Please help

[Q] Compiling help a noob.

Im writing a Network Scanner currently in Python/Kivy for Android. I could do everything i wanted if i could execute a Python module called Scapy from the shell(Obviously this is a rooted app), but unfortunately its not possible. Atleast not with alot of work and when the App is finished i dont want my users to have to go through installing countless dependencies to get it working!
I've stumbled along a little unix program called Arp-Scan but i cant find a port for Android. I'm not sure how to port this to Android so i can execute it from a shell.
I have no experience with compiling and needless to say this is frustrating the hell out of me! . This one little stumbling block has been plaguing me for 2 weeks. The rest i will be able to do in pure Python, namely PortScanning and such.
The way the Android OS works is that an APK is unable to use raw sockets. But you are allowed to run a shell as root.
I have the option to use Nmap but if there was ever to be a paid version of my app i would have to buy a license and i simply cant afford it.
All i need is to execute a program from shell: like Arp-Scan to obtain an IP and MAC from the LAN.
Any help will be greatly appreciated.
Thanks in advance.

[Q] Looking for an IDE that I can use to do Android OS builds

[Q] Looking for an IDE I can use for building the Android OS?
I have spent many years developing applications and device drivers for Windows (short pause while people make grunting noises and snide remarks)... but I recently switched over to developing software for Android. I have begun getting acquainted with the Eclipse IDE for Android app development (I downloaded the ADK bundle), and have also tried to acquaint myself with the process of building an Android ROM (ie: downloading the source and doing a build of the entire Android OS and support software). It seems like people who develop software for Linux are hung on the idea that everything should be done via typing shell commands into the terminal, and because Android is an "off shoot" of Linux, that the core developers of Android do the same (getting the source and building the OS is always described in terms of terminal shell commands).
I much prefer have a graphical UI in which I can just click on menu items and buttons to do the selected build operations. Is there an IDE (some sort of enhanced source code editor or whatever) that I can use to automate "repo" operations and to automate building the Android OS???
mediawiz said:
[Q] Looking for an IDE I can use for building the Android OS?
I have spent many years developing applications and device drivers for Windows (short pause while people make grunting noises and snide remarks)... but I recently switched over to developing software for Android. I have begun getting acquainted with the Eclipse IDE for Android app development (I downloaded the ADK bundle), and have also tried to acquaint myself with the process of building an Android ROM (ie: downloading the source and doing a build of the entire Android OS and support software). It seems like people who develop software for Linux are hung on the idea that everything should be done via typing shell commands into the terminal, and because Android is an "off shoot" of Linux, that the core developers of Android do the same (getting the source and building the OS is always described in terms of terminal shell commands).
I much prefer have a graphical UI in which I can just click on menu items and buttons to do the selected build operations. Is there an IDE (some sort of enhanced source code editor or whatever) that I can use to automate "repo" operations and to automate building the Android OS???
Click to expand...
Click to collapse
No , that pretty much stops others that don't know Linux from trying to build android . But this pretty much only is limited to aosp roms ie cyanogen, aokp etc . Doesn't mean you can't make your own rom using stock and changing stuff like other rom devs do ...This is pretty much the difference in original development and
Development
Sent from my SM-N900P using Xparent BlueTapatalk 2

[Q] BML one mini android development

Hello friends!
I have a Chinese BML One mini phone (I know it's crappy, but I had no choice), and I'm trying to start an android development with it.
I was aware that it might be hard to find any drivers for that phone, so I decided to use linux (opensuse 13.1) as a development machine (hopefully it requires no extra drivers).
The problem is that device seems to be invisible for the eclipse.
When I do in eclipse "run as - android application" - it says that there is no suitable device found and suggests to create a virtual one.
Usb debugging is on. Phone keyboard is unlocked.
The project is created to run on android 2.2. (The phone says that it is 4, but while digging here on the forum I found that it is really 2.3.5)
Is there any special way of connecting that phone to the PC? Hold secret combination of buttons maybe?
(As far as I know galaxy nexus for example is also invisible for eclipse when you connect it as a flash drive, so you have to connect it as camera.)
The problem is even worse as my laptop is too weak for the development on emulator, so that mobile was the only chance to start android development.
I would be grateful for any answers and links.
Thank you.
Hej hej! Please share any thoughts why it could be? Any suggestion of what to try? Does anyone experienced any device recognition problems with Chinese mobiles on any OS? Is there something special with connection MocorDroid to PC?
What would you try?
Please give me at least a direction to dig.
Thanks
The main issue is that it's not an official Android version and the fact that they modded it to read the wrong Android version there is almost nothing you can do. Mix in the fact that there IS no kernel source code there will not be much you can do at all with development for that device.
Hello, thank you for the answer. You inspired me to search in Chinese internet using google translate, and that is what I've found:
One need to find the vendor and device id using lsusb command
Bus 001 Device 002: ID 1782:5d04 Spreadtrum Communications Inc
These 1782:5d04 is actually a device and vendor id.
Then we need to write it to /etc/udev/rules.d/51-android.rules file in that way:
SUBSYSTEM=="usb",ATTRS{idVendor}=="1782",ATTRS{idProduct}=="5d04",MODE="0666"
And also add "0x1782" without quotes to /home/XXX/.android/adb_usb.ini file.
If you don't have any of these files, create it. Note that 51-android.rules should have 644 permissions.
Than I googled for "0x1782" and found these two links, so I think that problem is not only chinese-fake-android-specific:
stackoverflow. com/questions/9210152/set-up-device-for-development-no-permissions
sudotask. wordpress.com/2013/10/30/how-to-adb-on-open-suse
It could be also problem with permissions like described here:
stackoverflow. com/questions/6484279/detecting-device-for-debugging-adb-does-not-work
So, now I able to use my mobile for Android development! Wait for more garbage in play market!
Thank you!

How can i make a hacker phone with z2 ?

hi guys ı want make a hacker phone. so ı need good apps. somobody can give it?
thanks
(ı have root ,xposed , unlocked bootloader, and cwm recovery)
Not sure if we should discuss this topic. Don't know where it sits with the rules, but I would duel boot Kali if I wanted to do that.
Sent from my D6503 using Tapatalk
Sorry to say that, but you dont get a hyper mega haxx90000r by doing some magic with your phone.
Also You should think twice before posting such things here.
If you want some magic, unlock your bootloader ... start an terminal emulator and enter "chmod +000 /*)
Have fun ( I'm not responsable for bricked phones)
For the beginning, the only thing you need is a web browser to read Linux documentation.
Read the old issues of PHRACK.org, for example the classics like "smashing the stack for fun and profit".
Play the wargames at overthewire.org
Be a lot in irc channels and ask questions.
On android, you may want to learn programming. So install a few good things from playstore like terminal IDE, AIDE and other programs that let you learn programming. Android APPs are written in JAVA, so maybe you want to learn that and C/ C++
Install an IDE like eclipse and the android SDK provided by Google on your Linux box (you have a Linux box at home, have you?).
This should keep you busy for some time.
In your case, the following commands may be useful:
man man
man brain
man life

Categories

Resources