165d978b407f668cd65a37c78e36819593332a0f5John Reck#!/bin/bash 265d978b407f668cd65a37c78e36819593332a0f5John Reck 365d978b407f668cd65a37c78e36819593332a0f5John Reck# Copyright (C) 2016 The Android Open Source Project 465d978b407f668cd65a37c78e36819593332a0f5John Reck# 565d978b407f668cd65a37c78e36819593332a0f5John Reck# Licensed under the Apache License, Version 2.0 (the "License"); 665d978b407f668cd65a37c78e36819593332a0f5John Reck# you may not use this file except in compliance with the License. 765d978b407f668cd65a37c78e36819593332a0f5John Reck# You may obtain a copy of the License at 865d978b407f668cd65a37c78e36819593332a0f5John Reck# 965d978b407f668cd65a37c78e36819593332a0f5John Reck# http://www.apache.org/licenses/LICENSE-2.0 1065d978b407f668cd65a37c78e36819593332a0f5John Reck# 1165d978b407f668cd65a37c78e36819593332a0f5John Reck# Unless required by applicable law or agreed to in writing, software 1265d978b407f668cd65a37c78e36819593332a0f5John Reck# distributed under the License is distributed on an "AS IS" BASIS, 1365d978b407f668cd65a37c78e36819593332a0f5John Reck# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1465d978b407f668cd65a37c78e36819593332a0f5John Reck# See the License for the specific language governing permissions and 1565d978b407f668cd65a37c78e36819593332a0f5John Reck# limitations under the License. 1665d978b407f668cd65a37c78e36819593332a0f5John Reck 1765d978b407f668cd65a37c78e36819593332a0f5John Reckadb root 1865d978b407f668cd65a37c78e36819593332a0f5John Reckadb wait-for-device 1965d978b407f668cd65a37c78e36819593332a0f5John Reckadb shell stop 2065d978b407f668cd65a37c78e36819593332a0f5John Reck 2165d978b407f668cd65a37c78e36819593332a0f5John Reckfor pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do 2265d978b407f668cd65a37c78e36819593332a0f5John Reck adb shell kill $pid 2365d978b407f668cd65a37c78e36819593332a0f5John Reckdone 2465d978b407f668cd65a37c78e36819593332a0f5John Reckadb shell setprop debug.egl.traceGpuCompletion 1 25a5c73e3839129e0079b370bd2723bc0fc4aa6387sergeyvadb shell setprop debug.sf.nobootanimation 1 26efc9cc611adda72d1f273f3a748c3470f4ed8dfasergeyv# Daemonize command is available only in eng builds. 2765d978b407f668cd65a37c78e36819593332a0f5John Reckadb shell daemonize surfaceflinger 28