Files
brave-core/tools/perf/setup_android_device.sh
Mikhail 28ef2c082c Inject seed to the perf testing profiles (#26335)
* Another approach to pass trials
* Clean up chrome-command-line just in case
* Fix a test config
2024-11-07 14:06:15 +01:00

19 lines
710 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2024 The Brave Authors. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.
# The script is used to setup the android device:
# 1. Disable SELinux
# 2. Enable adb root (adbd must be restarted after)
# 3. Unlock the device screen
setenforce 0 && \
resetprop ro.debuggable 1 && \
magiskpolicy --live "allow adbd adbd process setcurrent" && \
magiskpolicy --live "allow adbd su process dyntransition" && \
magiskpolicy --live "permissive { su }" && \
input keyevent 82 && \
rm -f /data/local/tmp/chrome-command-line