Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lizhangqu/dexdeps
查看dex中class, field, method内部与外部依赖
https://github.com/lizhangqu/dexdeps
class deps dex filed method reference
Last synced: 8 days ago
JSON representation
查看dex中class, field, method内部与外部依赖
- Host: GitHub
- URL: https://github.com/lizhangqu/dexdeps
- Owner: lizhangqu
- Created: 2019-05-22T07:48:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T09:22:49.000Z (over 5 years ago)
- Last Synced: 2024-04-16T11:21:22.411Z (7 months ago)
- Topics: class, deps, dex, filed, method, reference
- Language: Java
- Size: 4.63 MB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dexdeps
=======### Maven
```
io.github.lizhangqu
dexdeps
1.0.2```
### Gradle
```
implementation 'io.github.lizhangqu:dexdeps:1.0.2'
```### Sample
```
List dexDataList = DexData.open(apkFile);
if (dexDataList != null && dexDataList.size() > 0) {
for (DexData dexData : dexDataList) {
ClassRef[] references = dexData.getReferences();
if (references != null) {
for (ClassRef classRef : references) {
System.out.println("classRef:" + classRef + " internal:" + classRef.isInternal());FieldRef[] fieldArray = classRef.getFieldArray();
if (fieldArray != null && fieldArray.length > 0) {
for (FieldRef fieldRef : fieldArray) {
System.out.println("fieldRef:" + fieldRef + " internal:" + fieldRef.isInternal());
}
}
MethodRef[] methodArray = classRef.getMethodArray();if (methodArray != null && methodArray.length > 0) {
for (MethodRef methodRef : methodArray) {
System.out.println("methodRef:" + methodRef + " internal:" + methodRef.isInternal());
}
}
}
}
}
}
```