blob: 8a1f811dc59ff140f5f92ef28f5a2a360e6a4ed5 [file]
# Copyright (C) 2024 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
# note: needs to "adb root" before executing this command
devicePath="/data/user/0/androidx.compose.remote.player.view.test/files/"
list=$(adb ls $devicePath)
echo "files on device: $list"
echo "downloading files:"
filtered=$(echo "$list" | grep -o "[^ ]*\.layout$")
echo "$filtered" | xargs -I {} adb pull $devicePath{} ./src/androidTest/res/raw