adb shell am start -n 包名/启动页面(com.xxx.SplashActivity)
//打开系统设置界面
adb shell am start -n com.android.settings/com.android.settings.Settings
//打开开发者选项
adb shell am start -a com.android.settings.APPLICATION_DEVELOPMENT_SETTINGS
//打开WiFi设置
adb shell am start -a android.settings.WIRELESS_SETTINGS
Android 异常日志 用来排查闪退问题
adb logcat -s AndroidRuntime
5.截手机屏幕
adb shell screencap -p /sdcard/test.png
6.查看Android系统的进程状态命令
adb shell ps -A
7.查看已安装的包
adb shell pm list packages
8.查看危险权限列表
adb shell pm list permissions -g -d
9.列出第三方应用包名所在位置
adb shell pm list packages -f -3
10.列出系统包名所在位置
adb shell pm list packages -f -s
11.列出某个应用所有位置
adb shell pm path com.xxx.xxx.xxx
12.删除应用的数据
adb shell pm clear com.xxx.xxx.xxx
13.列出设备硬件特点
adb shell pm list features
14.Activity的栈信息
adb shell dumpsys activity
15.广播信息
adb shell dumpsys activity broadcasts
16.服务信息
adb shell dumpsys activity services
17.省电信息
adb shell dumpsys power
18.电池信息
adb shell dumpsys battery
19.查看文件内容
adb shell dumpsys /data/anr/traces.txt
20.清理系统事件信息日志
adb logcat -c -b events
21.依次类推清理手机内所有日志的命令
adb logcat -c -b main -b events -b radio -b system
现实生活中,有些工作是需要团队中成员依次完成的,这就涉及到了一个顺序问题。现在有T1、T2、T3三个工人,如何保证T2在T1执行完后执行,T3在T2执行完后执行?问题分析:首先问题中有三个实体,T1、T2、T3, 因为是多线程编程,所以都要设计成线程类。关键是怎么保证线程能依次执行完呢?
Java实现过程如下:
public class T1 implements Runnabl
hive在使用having count()是,不支持去重计数
hive (default)> select imei from t_test_phonenum where ds=20150701 group by imei having count(distinct phone_num)>1 limit 10;
FAILED: SemanticExcep
转载源:http://blog.sina.com.cn/s/blog_4f925fc30100rx5l.html
mysql -uroot -p
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@centos var]# service mysql
#mq
xdr.mq.url=tcp://192.168.100.15:61618;
import java.io.IOException;
import java.util.Properties;
public class Test {
String conf = "log4j.properties";
private static final
有一个工程,本来运行是正常的,我想把它移植到另一台PC上,结果报:
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mobovip.bgr/com.mobovip.bgr.MainActivity}: java.lang.ClassNotFoundException: Didn't f
// 报错如下:
$ git pull origin master
fatal: unable to access 'https://git.xxx.com/': SSL certificate problem: unable to get local issuer ce
rtificate
// 原因:
由于git最新版默认使用ssl安全验证,但是我们是使用的git未设