-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up environment
There are default configurations that work just fine, but if you want to modify them you can use this page as a reference.
Open conf/setup-tools.conf
in your favourite text editor.
download_dir
= This is the directory where all the files that the script downloads is being
downloaded to. At the end of the execution of the script these will be deleted.
You can change the default value if you want but it is not necessary.
android_studio_installation_dir
= This is the directory where Android Studio will be installed to. The script
will create the folder in case it does not exist.
android_sdk_installation_dir
= This is the directory where Android SDK will be installed to. The script
will create the folder in case it does not exist.
android_apis
= Here you specify which API's to install with your environment. Check the
formatting instructions found in the configuration file.
google_apis
= Here you specify which API's to install with your environment. If you are
planning on emulating a google device you will need this.
android_platform_architecture
= These specify architectures that should be installed. They are needed when
creating AVDs with the tag default
.
google_platform_architecture
= These specify architectures that should be installed. They are needed when
creating AVDs with the tag google_apis
.
avd_configuration_files
= These are filenames for configuration files that define AVDs. You will soon
modify these as well. You can leave the default values as they are for now.
Please note that these are only base names, not full absolute paths like the
rest of the path values above and all of the files are to be contained within
the conf/
folder.
Open conf/android-17-default.conf
in your favourite text editor
name
= This will be the name of your AVD, it must be unique, any AVD setup
with the same name as an existing AVD will be discarded and not installed.
target
= This is the target API that this device will be using, please check that
you install(ed) the needed API specified in the setup configuration file.
tag
= This will be google_apis
for Google devices and default
for others
abi
= This (Application Binary Interface) can for example be x86
or x86_64
.
Check that you install(ed) the needed platform architecture specified in
the setup configuration file.
Now that everything is setup correctly, you can go ahead and run the following command:
$ bin/setup-env.sh --create conf/setup-tools.conf
Important: Remember that the script must have the right access to the files and folders specified in the configuration file, so if the folder is only accessible to the super user, run the script with root privileges.
Did something go wrong? Here are a few suggestions.
- Read the output of the script, it will guide you in the right direction
- Check that all the values in the configuration file are correct
- Home
- Getting Started
- Emulation detection evasion
- Root detection evasion
- Manual guides
- For developers