On this page, we shall explain the setup procedure required when testing Android in the local PC environment. Here, we shall explain the setup procedure for a real device on a Mac PC + Android. Incompatible with Windows PCs.
Refer to Support Environment for information on MagicPod operating environments.
Table of Contents
- Java
- Android SDK set (tools, platform-tools, build-tools, API)
- Android device
- USB cable
- Apps you wish to test
1. Java
Java9 or above is required.
Open the Mac Terminal (refer to (this) article for how to open), run “ java -version” (figure 1), and once you confirm that “java version "***"” (*** is version number equals to or larger than 9) is displayed, then the correct version of Java is installed, and you will not need to do anything else.
If it is not installed, install JDK version 9 or above, referring to this article.
Figure 1. Java installation check.
2. Android SDK set (tools, platform-tools, build-tools, API)
This is the Android development kit. Android SDK is installed at the same time as Android Studio, so Android Studio should be installed.
Installation is simple. First, download Android Studio from the download site, and double-click the downloaded dmg file. The screen shown in figure 2 is displayed, so drag & drop Android Studio into Applications.
Figure 2. Android Studio installation start screen.
Then, simply follow the procedure displayed in the installer, and click the buttons shown in figure 3 to progress.
Figure 3. Android Studio installation flow.
Once the installation is complete, and the screen in figure 4 is displayed, this indicates that the installation of Android Studio and Android DK is complete.
Figure 4. Android Studio installation complete screen.
3. Android device
It is necessary to prepare the Android device (OS version 5.0 or above), and turn the settings for developers ON.
First, tap the Settings app on the Android device home screen (figure 5).
Figure 5. Settings app.
Next, select About phone (figure 6)
Figure 6. About phone.
Tap the displayed Build number (figure 7) seven times consecutively.
Figure 7. Build numbers.
Next, move to Developer options (figure 8), which appears in the Settings list.
Figure 8. Developer options.
Once there, change the settings as follows. (figure 9)
- Turn Developer options, Stay awake, and USB debugging to ON.
- Turn OFF Disable adb authorization timeout (in some cases, the item name may be Check apps installed via ADB/ADT for unauthorized behavior).
- Turn Window animation scale, Transition animation scale, and Animator duration scale to Animation off.
Figure 9. Content of the Developer options settings.
- For Xiaomi devices, there is an item called USB debugging within Developer options, so turn this ON at the same time.
- On Oppo or Samsung devices, either turn Disable Permission Monitoring ON or turn App Permission Monitor OFF in the Options for developers or Security settings.
4. USB cable
It is necessary to prepare a USB cable to connect the Android device to the USB port on the PC. Prepare something shaped like the item in this image. You should be able to reuse the Android charging cable. Use this cable to operate the device from the PC when running the test.
5. Apps you wish to test
Install the application on the device to be tested in advance, or prepare an apk file containing the content of the application and place it in an appropriate location on your PC.
As apk files are files that are familiar to Android developers, the person in charge of developing the application should be able to provide you with one if you ask for it.