[android] Remove dead scripts

Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
Andrei Shkrob 2025-02-06 20:25:02 +01:00 committed by Konstantin Pastbin
parent 291daa91c0
commit 0597afd475
7 changed files with 0 additions and 150 deletions

View file

@ -1,22 +0,0 @@
#!/bin/bash
START=$(date +%s)
# get all ids, but not the first line
devices=$(adb devices | cut -f1 | grep -v List)
if [ -z "$devices" ]; then
echo "Could not fine any connected devices, try: adb kill-server; adb start-server"
fi
count=$(echo "$devices" | wc -l | tr -d ' ')
echo "Found $count devices and $# action to run"
# run each script with each device's id
for scr_name in $@; do
for id in $devices; do
echo "Running $scr_name at $id"
sh $scr_name $id
done
done
END=$(date +%s)
DIFF=$(( $END - $START ))
echo "Done in $DIFF seconds"

View file

@ -1,14 +0,0 @@
#!/bin/bash
DATA=../tests/data
DST=/sdcard/MapsWithMe
# clean all
adb -s $1 shell rm $DST/*.kmz
adb -s $1 shell rm $DST/*.kml
# copy files
for file in $(find $DATA -type f) ; do
echo $file
adb -s $1 push $file $DST
done

View file

@ -1,8 +0,0 @@
#!/bin/bash
MWM_DATA_PATH=/sdcard/MapsWithMe
if [ -z $1 ]; then
adb shell rm -r $MWM_DATA_PATH
else
adb -s "$1" shell rm -r $MWM_DATA_PATH
fi

View file

@ -1,64 +0,0 @@
cd ..
rm -rf assets/
mkdir assets
cp ../data/categories.txt assets/
cp ../data/categories_cuisines.txt assets/
cp ../data/classificator.txt assets/
cp ../data/colors.txt assets/
cp ../data/copyright.html assets/
cp ../data/countries.txt assets/
cp ../data/drules_proto_default_dark.bin assets/
cp ../data/drules_proto_default_light.bin assets/
cp ../data/drules_proto_vehicle_dark.bin assets/
cp ../data/drules_proto_vehicle_light.bin assets/
cp ../data/drules_proto_outdoors_dark.bin assets/
cp ../data/drules_proto_outdoors_light.bin assets/
cp ../data/editor.config assets/
cp ../data/faq.html assets/
cp ../data/fonts_blacklist.txt assets/
cp ../data/fonts_whitelist.txt assets/
cp ../data/languages.txt assets/
cp ../data/packed_polygons.bin assets/
cp ../data/patterns.txt assets/
cp ../data/types.txt assets/
cp ../data/unicode_blocks.txt assets/
cp ../data/opening_hours_how_to_edit.html assets/
cp ../data/ugc_types.csv assets/
cp -r ../data/resources-hdpi_dark/ assets/
cp -r ../data/resources-hdpi_light/ assets/
cp -r ../data/resources-mdpi_dark/ assets/
cp -r ../data/resources-mdpi_light/ assets/
cp -r ../data/resources-xhdpi_dark/ assets/
cp -r ../data/resources-xhdpi_light/ assets/
cp -r ../data/resources-xxhdpi_dark/ assets/
cp -r ../data/resources-xxhdpi_light/ assets/
cp -r ../data/resources-6plus_dark/ assets/
cp -r ../data/resources-6plus_light/ assets/
cp -r ../data/sound-strings/ assets/
cp -r ../data/countries-strings/ assets/
cp -r ../data/icudt75l.dat assets/
rm -rf flavors/mwm-ttf-assets
mkdir flavors\\mwm-ttf-assets
cp ../data/01_dejavusans.ttf flavors/mwm-ttf-assets/
cp ../data/02_droidsans-fallback.ttf flavors/mwm-ttf-assets/
cp ../data/03_jomolhari-id-a3d.ttf flavors/mwm-ttf-assets/
cp ../data/04_padauk.ttf flavors/mwm-ttf-assets/
cp ../data/05_khmeros.ttf flavors/mwm-ttf-assets/
cp ../data/06_code2000.ttf flavors/mwm-ttf-assets/
cp ../data/07_roboto_medium.ttf flavors/mwm-ttf-assets/
cp ../data/World.mwm flavors/mwm-ttf-assets/
cp ../data/WorldCoasts.mwm flavors/mwm-ttf-assets/
rm -rf res/values-zh-rHK/
mkdir res\\values-zh-rHK
cp res/values-zh-rTW/strings.xml res/values-zh-rHK/
rm -rf res/values-zh-rMO/
mkdir res\\values-zh-rMO
cp res/values-zh-rTW/strings.xml res/values-zh-rMO/

View file

@ -1,2 +0,0 @@
#!/bin/bash
monkeyrunner ../tests/monkey/mrunner.py $1

View file

@ -1,37 +0,0 @@
#!/bin/bash
LITE=app.organicmaps
PRO=app.organicmaps.pro
package=lp
serial=
while getopts s:p: opt; do
case $opt in
s)
serial=$OPTARG
;;
p)
package=$OPTARG
;;
esac
done
shift $((OPTIND - 1))
if [ -z $serial ]; then
ID=""
else
ID="-s $serial"
fi
if [[ $package == *l* ]]
then
echo "uninstalling $LITE"
adb $ID uninstall $LITE
fi
if [[ $package == *p* ]]
then
echo "uninstalling $PRO"
adb $ID uninstall $PRO
fi

View file

@ -1,3 +0,0 @@
#!/bin/bash
sh uninstall.sh -s $1 -p lp