summaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
author Joe Onorato <joeo@google.com> 2024-05-23 12:28:43 -0700
committer Joe Onorato <joeo@google.com> 2024-05-24 14:37:51 -0700
commitd4e29a4b63c37fb91f59397502b991a2550113aa (patch)
treeba93f9c1dd4df880e09b87be2da8fa9b25bb6782 /envsetup.sh
parentd9fe8f5a275fa15cddcd862bf7a728ecea62f0ee (diff)
Remove the "provision" shell function from envsetup.sh
It's been a long time since anything in the tree generated the $ANDROID_PRODUCT_OUT/provision-device script needed for it to work. Bug: 340648588 Test: treehugger Change-Id: I5f34fb7b9ed9f6c06d422ddeb55a5ef9aa367538
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 640ed149e6..89b89f7d20 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1412,35 +1412,6 @@ function make()
_wrap_build $(get_make_command "$@") "$@"
}
-function provision()
-{
- if [ ! "$ANDROID_PRODUCT_OUT" ]; then
- echo "Couldn't locate output files. Try running 'lunch' first." >&2
- return 1
- fi
- if [ ! -e "$ANDROID_PRODUCT_OUT/provision-device" ]; then
- echo "There is no provisioning script for the device." >&2
- return 1
- fi
-
- # Check if user really wants to do this.
- if [ "$1" = "--no-confirmation" ]; then
- shift 1
- else
- echo "This action will reflash your device."
- echo ""
- echo "ALL DATA ON THE DEVICE WILL BE IRREVOCABLY ERASED."
- echo ""
- echo -n "Are you sure you want to do this (yes/no)? "
- read
- if [[ "${REPLY}" != "yes" ]] ; then
- echo "Not taking any action. Exiting." >&2
- return 1
- fi
- fi
- "$ANDROID_PRODUCT_OUT/provision-device" "$@"
-}
-
# Zsh needs bashcompinit called to support bash-style completion.
function enable_zsh_completion() {
# Don't override user's options if bash-style completion is already enabled.