---
# System prepended metadata

title: Android Anti Virus App
tags: [' Decompiler', ' App', Android, ' Anti-Virus']

---

---
tags: Android, Decompiler, Anti-Virus, App
---
Android Anti Virus App 
===
**參考** 

http://huli.logdown.com/posts/661513-android-apk-decompile

https://ephrain.net/mac-%E5%B0%87-android-apk-%E6%AA%94%E6%A1%88%E5%8F%8D%E7%B7%A8%E8%AD%AF%E6%88%90-java-%E5%8E%9F%E5%A7%8B%E7%A2%BC/

---

## Tool
- Android studio
- apktool
	- http://ibotpeaches.github.io/Apktool/
	- 拆解APK file
	- Commnand
		- ```apktool d APKNAME.apk ``` # d:decompilier b:build
- jd-gui 
	- http://jd.benow.ca/
    - <b>檢視 .class</b> (java code)
- dex2jar
	- 把 apk 轉成 jar
	- Usage
	    - ``` sh d2j-dex2jar.sh -f ~/path/to/apk_to_decompile.apk```
- MobSF
    - 靜態分析、動態分析 工具
    - https://github.com/MobSF/Mobile-Security-Framework-MobSF/
- AndroidDecompiler
    - https://github.com/dirkvranckaert/AndroidDecompiler
- bytecode-viewer
    - https://github.com/Konloch/bytecode-viewer
    
## 反組譯
- apktool -> dex2jar -> jd-gui 

## Android 簡易編譯過程
- 原始碼 .java 編譯成 .class 檔案
- 所有的 .class 檔案合併壓縮成 .jar 檔
- .jar 檔編碼成 classes.dex 檔案
- classes.dex 被壓縮放到 .apk 檔案裡面 (APK 其實就是一種 zip 檔)




