Post by Phenomenal on Nov 3, 2016 19:32:03 GMT
Having been an active developer, making scripts, and selling them, I saw the potential for an even greater idea. The biggest issue with running scripts is screen resolution, not all devices will be compatible. Essentially a emulator like Nox solves this issue custom screen resolution and dpi. It's got the works. But, you would be surprised how many people don't own PC's or compatible devices to run pre-built scripts.
A solution to this issue would be to run a server with Android and develop one script for it and set of images or, even have it run a compatible resolution. How would you get a cheap server with Android you might ask? The Raspberry Pi 3 was my "solution". The only issue is Android isn't an official or even supported OS for the rp3. After several youtube tutorials and burning images and formatting SD cards. I had Android 7.0 on my rp3. I had tested Android 6 Marshmallow and Android TV platform. Which both proved to be no good. HDMI settings in the config file proved to not be universal or even close. They were both built for an older generation Samsung TV. Why do i mention this? Because not only does Android 7.0 have bugs as well but it has nearly no app support. Next was to install Google Play, which was not easily done. All the tutorials I viewed used gapps.sh files which are shell scripts, in this case for adb command line. None of them worked they had errors downloading and finding the device and these scripts had to be run in Linux, which made me download an virtual machine and mount the sd to the virtual machine to see it not work. (I also used my other pi 3 running rasbian write the initial OS) So I had to think outside the box in a previous tutorial a guy used a system.rar folder with the gapps in it then simply used adb push to put them on the pi 3 in the system folder. This did work for me even though the gapps were out of date for the Android 7.0 build, they updated on the pi 3 after a couple minutes of being booted. Finally I was able to download Ankulua and install Hobbit:KoM the game I was using for scripting. Before anyone asks yes I did try and load the apps via USB and install them but Hobbit has obb and data files associated with it that I couldn't get to work. Everything seemed to be sound but more problems were coming in. This build of Android didn't map mouse clicks as touches on the screen so I couldn't even get through the game tutorial to begin running a script. This required some outside the box thinking. In the general idea of running a Ankulua Bot Server, I had planned on using a VNC to access the Raspberry Pi 3 over the internet. What's the problem with this you might ask? Teamviewer doesn't have Android 7 support and neither does Webkey my 2nd option. I explored a couple other apps before deciding to use an adb shell to input touches on the screen this was very slow going trying to figure out the coordinates on the screen. Then I gave up. The Android build proved to have too many issues like random disconnecting WiFi among other things. However for other games this could definitely work. I had to go the extremely long route to get his close but, for Ankulua in general the rp3 with the Android 7.0 build will work performance is good and was good opening and briefly playing the game.
I'm curious what other options the Ankulua Board can think up short of buying Galaxys S3s and running Ankulua there as a server option. Whether it be Android boxes that are rooted or another type of single board computer other than the Raspberry Pi 3 that has a better Android build. Or maybe I'm overlooking something a way to use a mouse for touch input, I'm not sure. I explored a lot of options and I'm reporting my findings here. I'll post below the Youtube links I used for each step and a summarized step by step tutorial if you'd like to give this a shot yourself.
Youtube References:
www.youtube.com/watch?v=iUc2oJuxk6E - For ADB Commands pushing over the system folder
www.youtube.com/watch?v=SI2oFBkc6EA - Android 7 Install Guide using Linux
What you will need:
Raspberry Pi 3 model B, Micro SD card (8gb Minnimum), Keyboard and Mouse option (Wireless or Wired), TV with HDMI input, a Raspberry Pi power supply, and a Linux machine virtual will work.
GApps: www.dropbox.com/s/412wqzxppq3k3u6/system.rar?dl=0
RTAndroid 7 Build: git.embedded.rwth-aachen.de/rtandroid/downloads/raspberry-pi/
ADB Command Line: lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378
If your using a virtual machine you will need this to access your sd: www.htpcguides.com/how-to-use-sd-card-reader-in-vmplayer-and-vmworkstation/
Follow the install guide for Android 7 until he gets to the gapps.sh part unless you wanna try it for yourself and see it doesn't work.
Now you will wanna download the system.rar file if you haven't already and unzip it. Right click in the folder (shift-right click on windows) and open command prompt/terminal here. Once your connected through adb to your ip type "adb remount" and hit enter. If you get a no device found go on your raspberry pi 3 and turn on usb debugging. Otherwise you may receive a try "adb root" return (some may get this others won't). Then type adb root. Next type adb push system /system (since your cmd or terminal should already be in the unzipped system.rar directory). At this point it will push the system folder to your raspberry pi 3. This process for me took over 20 minutes cause my PC is slow. Once it's complete type adb reboot and your done. Let me know if your run into any issues. I know the new gapps.sh should be done in the next week so that's an option if your don't wanna manually push a gapps package.
Once you've installed Ankulua and whatever game or app you wanna use Ankulua on, you'll need to search for a VNC option. For that I still don't know maybe you will have better success with Teamviewer than I did. But, VNC options for Android 7 are very few. Good luck and enjoy.
A solution to this issue would be to run a server with Android and develop one script for it and set of images or, even have it run a compatible resolution. How would you get a cheap server with Android you might ask? The Raspberry Pi 3 was my "solution". The only issue is Android isn't an official or even supported OS for the rp3. After several youtube tutorials and burning images and formatting SD cards. I had Android 7.0 on my rp3. I had tested Android 6 Marshmallow and Android TV platform. Which both proved to be no good. HDMI settings in the config file proved to not be universal or even close. They were both built for an older generation Samsung TV. Why do i mention this? Because not only does Android 7.0 have bugs as well but it has nearly no app support. Next was to install Google Play, which was not easily done. All the tutorials I viewed used gapps.sh files which are shell scripts, in this case for adb command line. None of them worked they had errors downloading and finding the device and these scripts had to be run in Linux, which made me download an virtual machine and mount the sd to the virtual machine to see it not work. (I also used my other pi 3 running rasbian write the initial OS) So I had to think outside the box in a previous tutorial a guy used a system.rar folder with the gapps in it then simply used adb push to put them on the pi 3 in the system folder. This did work for me even though the gapps were out of date for the Android 7.0 build, they updated on the pi 3 after a couple minutes of being booted. Finally I was able to download Ankulua and install Hobbit:KoM the game I was using for scripting. Before anyone asks yes I did try and load the apps via USB and install them but Hobbit has obb and data files associated with it that I couldn't get to work. Everything seemed to be sound but more problems were coming in. This build of Android didn't map mouse clicks as touches on the screen so I couldn't even get through the game tutorial to begin running a script. This required some outside the box thinking. In the general idea of running a Ankulua Bot Server, I had planned on using a VNC to access the Raspberry Pi 3 over the internet. What's the problem with this you might ask? Teamviewer doesn't have Android 7 support and neither does Webkey my 2nd option. I explored a couple other apps before deciding to use an adb shell to input touches on the screen this was very slow going trying to figure out the coordinates on the screen. Then I gave up. The Android build proved to have too many issues like random disconnecting WiFi among other things. However for other games this could definitely work. I had to go the extremely long route to get his close but, for Ankulua in general the rp3 with the Android 7.0 build will work performance is good and was good opening and briefly playing the game.
I'm curious what other options the Ankulua Board can think up short of buying Galaxys S3s and running Ankulua there as a server option. Whether it be Android boxes that are rooted or another type of single board computer other than the Raspberry Pi 3 that has a better Android build. Or maybe I'm overlooking something a way to use a mouse for touch input, I'm not sure. I explored a lot of options and I'm reporting my findings here. I'll post below the Youtube links I used for each step and a summarized step by step tutorial if you'd like to give this a shot yourself.
Youtube References:
www.youtube.com/watch?v=iUc2oJuxk6E - For ADB Commands pushing over the system folder
www.youtube.com/watch?v=SI2oFBkc6EA - Android 7 Install Guide using Linux
What you will need:
Raspberry Pi 3 model B, Micro SD card (8gb Minnimum), Keyboard and Mouse option (Wireless or Wired), TV with HDMI input, a Raspberry Pi power supply, and a Linux machine virtual will work.
GApps: www.dropbox.com/s/412wqzxppq3k3u6/system.rar?dl=0
RTAndroid 7 Build: git.embedded.rwth-aachen.de/rtandroid/downloads/raspberry-pi/
ADB Command Line: lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378
If your using a virtual machine you will need this to access your sd: www.htpcguides.com/how-to-use-sd-card-reader-in-vmplayer-and-vmworkstation/
Follow the install guide for Android 7 until he gets to the gapps.sh part unless you wanna try it for yourself and see it doesn't work.
Now you will wanna download the system.rar file if you haven't already and unzip it. Right click in the folder (shift-right click on windows) and open command prompt/terminal here. Once your connected through adb to your ip type "adb remount" and hit enter. If you get a no device found go on your raspberry pi 3 and turn on usb debugging. Otherwise you may receive a try "adb root" return (some may get this others won't). Then type adb root. Next type adb push system /system (since your cmd or terminal should already be in the unzipped system.rar directory). At this point it will push the system folder to your raspberry pi 3. This process for me took over 20 minutes cause my PC is slow. Once it's complete type adb reboot and your done. Let me know if your run into any issues. I know the new gapps.sh should be done in the next week so that's an option if your don't wanna manually push a gapps package.
Once you've installed Ankulua and whatever game or app you wanna use Ankulua on, you'll need to search for a VNC option. For that I still don't know maybe you will have better success with Teamviewer than I did. But, VNC options for Android 7 are very few. Good luck and enjoy.