mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-13 23:46:46 +00:00
Fix AVD tests
This commit is contained in:
parent
5885b8c20d
commit
6707b72260
@ -218,6 +218,9 @@ yes | "$sdk" --licenses > /dev/null
|
||||
curl -L $lsposed_url -o out/lsposed.zip
|
||||
"$sdk" --channel=3 platform-tools emulator
|
||||
|
||||
adb kill-server
|
||||
adb start-server
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
run_test $1 $2
|
||||
else
|
||||
|
@ -27,7 +27,9 @@ setup_env() {
|
||||
sudo udevadm trigger
|
||||
sudo usermod -aG kvm,cvdnetwork,render $USER
|
||||
yes | "$sdk" --licenses > /dev/null
|
||||
"$sdk" --channel=3 tools platform-tools
|
||||
"$sdk" --channel=3 platform-tools
|
||||
adb kill-server
|
||||
adb start-server
|
||||
}
|
||||
|
||||
download_cf() {
|
||||
|
@ -2,6 +2,10 @@ if [ -z $ANDROID_HOME ]; then
|
||||
export ANDROID_HOME=$ANDROID_SDK_ROOT
|
||||
fi
|
||||
|
||||
# Make sure paths are consistent
|
||||
export ANDROID_USER_HOME="$HOME/.android"
|
||||
export ANDROID_EMULATOR_HOME="$ANDROID_USER_HOME"
|
||||
export ANDROID_AVD_HOME="$ANDROID_EMULATOR_HOME/avd"
|
||||
export PATH="$PATH:$ANDROID_HOME/platform-tools"
|
||||
|
||||
emu="$ANDROID_HOME/emulator/emulator"
|
||||
|
Loading…
x
Reference in New Issue
Block a user