访问手机版  

Linux常用命令|Linux培训学习|考试认证|工资待遇与招聘,认准超级网工!

招聘|合作 登陆|注册

网络工程师培训

当前位置:网络工程师 > 技术课程 > linux > 热点关注 > linux常用命令

android Linux常用命令

时间:2019-08-16

linux命令中的head命令_linux常用命令_常用linux命令

adb rootadb remount --- 挂载adb pull /data/data/com。ebensz。appmanager/databases/appmanager。db d:\test ---- 取appmanager。db数据库到test文件夹Log。w("TAG", "--------------, new Throwable());//在代码通过抛异常linux常用命令,查看堆栈adb bugreport > D:\log1221。txt ----- 抓取完整bugreport,包含手机的所有状态信息,包括各个应用的生命周期,以及堆栈关系adb logcat -c && adb logcat -s TAG ------过滤查看TAG的logC:\Users\andre。ou\Desktop>adb logcat > log。log ----- 将日志输出到log。log文件中adb shell dumpsys activity -------------- 查看进程和堆栈dumpsys activity ------adb shell后查看所有activityadb shell ps -----------查看进程CPUvim 查看某个文件时linux常用命令,可搜索文件内容,先输入/,后接搜索的关键词,如搜索test: /test 然后回车键adb shell pm path packagename --------- 查看该应用在手机里安装路径adb shell dumpsys activity > gallery。

linux常用命令_linux命令中的head命令_常用linux命令

log ---------- 打印activity堆栈到gallery。log中adb shell dumpsys package com。android。XXX-----------查看某个包的具体信息ps | grep settings ----------- adb shell 后查看有关settings的进程adb shell am start-service -n com。ebensz。secondsystemui/。SecondUIService--------使用adb命令启动手机的一个服务make systemimage----------------单独编译system。img镜像adb shell am start -n com。ebensz。animation/。SecondActivity --display 1------启动一个activity到display id 为1的屏幕adb shell am force-stop "packagename" ------- adb 命令杀掉APP进程adb shell -b main -b system -v time > temp。log ------- 打印main log 和system log。