blob: d5b89897e5f19ab14da86e7bf2917b8720185a6c [file] [log] [blame]
Nicolas Geoffrayd2d62d12015-03-18 11:23:56 +00001#!/bin/bash
2#
3# Copyright (C) 2015 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17green='\033[0;32m'
18nc='\033[0m'
19
20echo -e "${green}Date on device${nc}"
21adb shell date
22
23echo -e "${green}Turn off selinux${nc}"
24adb shell setenforce 0
25adb shell getenforce
26
Nicolas Geoffray0a38a0e2015-03-25 17:22:34 +000027echo -e "${green}Setting local loopback${nc}"
28adb shell ifconfig lo up
29adb shell ifconfig
30
Nicolas Geoffrayd2d62d12015-03-18 11:23:56 +000031echo -e "${green}List properties${nc}"
32adb shell getprop
Nicolas Geoffrayb8703d62015-10-30 11:18:52 +000033
34echo -e "${green}Uptime${nc}"
35adb shell uptime
36
37echo -e "${green}Kill stalled dalvikvm processes${nc}"
38processes=$(adb shell "ps" | grep dalvikvm | awk '{print $2}')
39for i in $processes; do adb shell kill -9 $i; done