#/****************************************************************************** # * # * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. # * All rights reserved. # * Confidential and Proprietary - Qualcomm Technologies, Inc. # * # ******************************************************************************/ #!/bin/bash mkdir -p aptxalsOverlay/res/values cat > aptxalsOverlay/Android.mk <<'EOM1' LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_CERTIFICATE := platform LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res LOCAL_PACKAGE_NAME := aptxalsOverlay LOCAL_SDK_VERSION := current LOCAL_VENDOR_MODULE := true include $(BUILD_RRO_PACKAGE) EOM1 cat > aptxalsOverlay/AndroidManifest.xml <<'EOM2' EOM2 cat > aptxalsOverlay/res/values/strings.xml <<'EOM5' true false false EOM5 cat > aptxalsOverlay/install.sh <<'EOM6' if [ ! -d $ANDROID_PRODUCT_OUT ]; then echo "Missing Android build env. Exiting" exit fi RROAPPSRC="/vendor/overlay/aptxalsOverlay.apk" RROAPPDST="/vendor/overlay/aptxalsOverlay/aptxalsOverlay.apk" if [ ! -f $ANDROID_PRODUCT_OUT/$RROAPPSRC ]; then echo "File $ANDROID_PRODUCT_OUT/$RROAPPSRC doesn't exist. Build using 'mm'." echo "Exiting without installing" exit fi adb wait-for-device root adb remount adb push $ANDROID_PRODUCT_OUT/$RROAPPSRC $RROAPPDST adb shell sync EOM6 chmod +x aptxalsOverlay/install.sh