Snap for 5674462 from ca36cb94e0c619026b21fa73d21f8be298739655 to qt-release

Change-Id: I2da6bb10a9ae8c966a5f8433190673f30de12936
diff --git a/models/update.sh b/models/update.sh
index 8b60d2f..e756859 100755
--- a/models/update.sh
+++ b/models/update.sh
@@ -3,10 +3,22 @@
 
 set -e
 
-BASE_URL=https://www.gstatic.com/android/text_classifier/p/live
+ANNOTATOR_BASE_URL=https://www.gstatic.com/android/text_classifier/q/live
+ACTIONS_BASE_URL=https://www.gstatic.com/android/text_classifier/actions/q/live
+LANGID_BASE_URL=https://www.gstatic.com/android/text_classifier/langid/q/live
+
+download() {
+	echo "$1/FILELIST"
+	for f in $(wget -O- "$1/FILELIST"); do
+		destination="$(basename -- $f)"
+		wget "$1/$f" -O "$destination"
+	done
+}
 
 cd "$(dirname "$0")"
 
-for f in $(wget -O- "$BASE_URL/FILELIST"); do
-  wget "$BASE_URL/$f" -O "$f"
-done
+download $ANNOTATOR_BASE_URL
+download $ACTIONS_BASE_URL
+download $LANGID_BASE_URL
+
+echo "You may want to edit the file name of downloaded files, see external/libtextclassifier/Android.bp"