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
- App to be tested
1. Java
Java9 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 "9.*.***"” is displayed, then Java9 is installed, and you will not need to do anything else.
If it is not installed, install Java9 JDK, 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 “Device information” (Figure 6)
Figure 6 Device information
Tap the displayed “Build numbers” (Figure 7) seven times consecutively.
Figure 7 Build numbers
Next, move to “Options for developers” (Figure 8), which appears in the “Settings” list.
Figure 8 Options for developers
Once there, change the settings as follows. (Figure 9)
- Turn “Options for developers”, “Stay awake”, and “USB debug” to ON.
- Turn OFF "Monitor apps installed via ADB" (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 play time scale” to “Animation off”.
Figure 9 Content of the options for developer settings
- For Xiaomi devices, there is an item called “USB debug (security settings)” within “Options for developers”, 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.