ziggle

Hail Hydra


  • Home

  • Archives

  • Search

android-adb

Posted on 2020-07-09

adb install [-l] [-r] [-s] <file>

  • EN push this package file to the device and install it
  • CHS 给设备安装软件
    • (-l means forward-lock the app) #锁定该程序
    • (-r means reinstall the app, keeping its data) #重新安装该程序,保存数据
    • (-s means install on SD card instead of internal storage) #安装在SD卡内,而不是设备内部存储

adb uninstall [-k] <package>

  • EN remove this app package from the device
  • CHS 从设备删除程序包
    • (-k means keep the data and cache directories) #不删除程序运行所产生的数据和缓存目录(如软件的数据库文件)

清除adb logcat 缓存

1
adb logcat -c

adb 输出指定包的日志 并重定向

1
adb -d logcat com.xx.mm:I *:* | Tee-Object login0713-03.log

dx.bat

cd MyApplication\app\build\intermediates\javac\debug\classes
build-tools\29.0.3\dx.bat –dex –output=./classes.dex .\com\example\myapplication\ExampleFunction.class

### 链接指定设备

adb connect [ip]
adb disconnect [ip]
adb -s shell 设备id[ip:port]

python2.7 pip

Posted on 2020-07-09

python2 pip install

1
2
3
4
cd .\Scripts\
.\easy_install.exe pip
cd ..
.\python.exe -m pip install six

java-gradle 编译问题记录

Posted on 2020-07-05

gradle tookchain => jdk14
gradle config targetCompatibility=1.8
gradle config sourceCompatibility=1.8

ByteBuffer
NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer

link[https://github.com/eclipse/jetty.project/issues/3244]

link[https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip]

构建工具 运行环境 配置jdk版本要一致啊。

go-交叉编译配置

Posted on 2020-06-27
密码: 111111
Read more »

android-Art虚拟机启动流程

Posted on 2020-06-19

主要大致流程
①Linux init进程解析配置脚本->②app_process(zygote进程对应的程序)->③ZygoteInit

① 解析配置脚本

service zygote:它告诉init进程,现在我们要配置一个名为zygote的服务.

/system/bin/app_process: 声明zygote进程对应的文件路径.init创建服务的处理逻辑很简单,就是启动(fork)一个子进程来运行指定的程序.对zygote服务而言这个程序就是/system/bin/app_process.

-Xzygote/system/bin--zygote--start-system-server:传递给app_process的启动参数.

Read more »
1…345…22
ziggle

ziggle

Hail Hydra !

110 posts
45 tags
RSS
GitHub
© 2021 ziggle
Powered by Hexo
|
Hail Hydra—