Mulugeta Engdaw | 0a351ff | 2020-02-04 15:33:20 -0800 | [diff] [blame] | 1 | #! /system/bin/sh |
| 2 | |
| 3 | # Copyright (c) 2015, The Linux Foundation. All rights reserved. |
| 4 | # |
| 5 | # Redistribution and use in source and binary forms, with or without |
| 6 | # modification, are permitted provided that the following conditions are met: |
| 7 | # * Redistributions of source code must retain the above copyright |
| 8 | # notice, this list of conditions and the following disclaimer. |
| 9 | # * Redistributions in binary form must reproduce the above copyright |
| 10 | # notice, this list of conditions and the following disclaimer in the |
| 11 | # documentation and/or other materials provided with the distribution. |
| 12 | # * Neither the name of The Linux Foundation nor |
| 13 | # the names of its contributors may be used to endorse or promote |
| 14 | # products derived from this software without specific prior written |
| 15 | # permission. |
| 16 | # |
| 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 20 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
| 21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 22 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 23 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 24 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 25 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 26 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | # |
| 29 | |
| 30 | # This is the file for test teams to trigger their test setup. |
| 31 | # |
| 32 | # Sample command: /system/bin/sh /sdcard/command.sh |
| 33 | # All the output files will be created under root privilege. Please use |
| 34 | # "adb root" before pulling the generated files. |
| 35 | |
| 36 | target=`getprop ro.board.platform` |
| 37 | |
| 38 | case "$target" in |
| 39 | "msm8996") |
| 40 | echo 1 > /sys/kernel/debug/scm_errata/kryo_e76 |
| 41 | ;; |
| 42 | esac |
| 43 | |
| 44 | func_enable=`getprop persist.vendor.sys.rawdump_copy` |
| 45 | case "$func_enable" in |
xiaohuin | 4dd6b84 | 2020-05-07 14:50:46 +0800 | [diff] [blame] | 46 | 1) runcon u:r:su:s0 /system/bin/sh /system_ext/ramdump_wrapper.sh 2>/dev/null |
Mulugeta Engdaw | 0a351ff | 2020-02-04 15:33:20 -0800 | [diff] [blame] | 47 | ;; |
| 48 | esac |