进入串口命令:sudo minicom
按照apk: pm install xxx.apk
赋予权限:mount -o rw,remoun /system
打开终端:ctrl + alt + t
查看操作系统版本:uname -a
zip解压:
unzip -o -d /home/sunny myfile.zip
把myfile.zip文件解压到 /home/sunny/
-o:不提示的情况下覆盖文件;
-d:-d /home/sunny 指明将文件解压缩到/home/sunny目录下;
串口线连接顺序:蓝绿黑->绿蓝紫,,黑绿蓝->黑白灰
截屏:screencap -p /udisk/dqy/001.png
反编译:官网下载Apktool.jar,将对应的apk和apktool.jar文件放在同一目录,然后终端进入目录,执行 java -jar apktool_x.x.x.jar d -o outdir xxx.apk
在linux中安装Android Studio解决红叉报错的问题:参考https://blog.csdn.net/freezingxu/article/details/73917933,
linux安装微信:https://www.jianshu.com/p/6810657e99f5
ssh-key生成:
ls -al ~/.ssh //查看是否生成
ssh-kegen -t rsa ,然后一直回车
gradle unknow hosts: 在etc/hosts中设置对应的ip和域名
运行shell脚本的方式:
1.bash script-name 或者 sh script-name;
2.path/script-name 或者 ./script-name;
3.source scirpt-name 或者 . script-name
google输入法翻页:大键盘的+,-号
解决adb remount of system failed: Permission denied: adb root
安装google浏览器:
对于谷歌Chrome32位版本,使用如下链接:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
对于64位版本可以使用如下链接下载:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
下载完后,运行如下命令安装。
sudo dpkg -i google-chrome*; sudo apt-get -f install
然后,就可以去搜索使用了。
linux无法识别格式化失败的U盘:https://blog.csdn.net/mandy_pku/article/details/53033167
linux挂载:https://www.cnblogs.com/ma5on/p/4357625.html
minicom启动时出现Device /dev/ttyS0 lock failed:
命令:ps auxf |grep minicom 查看进程,kill -9 进程号,然后再重新进入
insufficient permissions for device解决方法:
1.su root 进入root账户 2.adb kill-server 3.adb start-server 4.退出 root 权限账户;(必做步骤) 5. adb shell
adb查看屏幕尺寸(高通):adb shell wm size ,输出:Physical size: 1920x720