-
Notifications
You must be signed in to change notification settings - Fork 868
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perf tests: move setup android step from devops (#26221)
* Perf tests: move setup android step from devops * Minor changes * RunFromRoot() => RunAsRoot()
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/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 |