This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dong Liu
committed
Apr 25, 2015
1 parent
6b40c09
commit 214618b
Showing
11 changed files
with
53 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.idea/ | ||
*.iml | ||
target/ | ||
TestMain.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
<developers> | ||
<developer> | ||
<id>xiaxiaocao</id> | ||
<name>Dong Liu</name> | ||
<email>[email protected]</email> | ||
<name>Liu Dong</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
|
||
|
@@ -100,8 +100,20 @@ | |
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<mainClass>net.dongliu.apk.parser.Main</mainClass> | ||
</manifest> | ||
</archive> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
|
||
</build> | ||
|
||
<profiles> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package net.dongliu.apk.parser; | ||
|
||
import net.dongliu.apk.parser.bean.CertificateMeta; | ||
|
||
import java.io.IOException; | ||
import java.security.cert.CertificateException; | ||
import java.util.List; | ||
import java.util.Locale; | ||
|
||
/** | ||
* Main method for parser apk | ||
* | ||
* @author Liu Dong {@literal <[email protected]>} | ||
*/ | ||
public class Main { | ||
public static void main(String[] args) throws IOException, CertificateException { | ||
String apkFile = args[0]; | ||
try (ApkParser parser = new ApkParser(apkFile)) { | ||
parser.setPreferredLocale(Locale.SIMPLIFIED_CHINESE); | ||
System.out.println(parser.getApkMeta()); | ||
List<CertificateMeta> certList = parser.getCertificateMetaList(); | ||
for (CertificateMeta certificateMeta : certList) { | ||
System.out.println(certificateMeta); | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* The apk icon file path, and data | ||
* | ||
* @author Dong Liu | ||
* @author Liu Dong | ||
*/ | ||
public class Icon { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
/** | ||
* trans binary xml to text | ||
* | ||
* @author Dong Liu [email protected] | ||
* @author Liu Dong [email protected] | ||
*/ | ||
public class ApkMetaTranslator implements XmlStreamer { | ||
private String[] tagStack = new String[100]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* utils method for byte buffer | ||
* | ||
* @author Dong Liu [email protected] | ||
* @author Liu Dong [email protected] | ||
*/ | ||
public class Buffers { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
/** | ||
* fetch dependency resource file from android source | ||
* | ||
* @author Dong Liu [email protected] | ||
* @author Liu Dong [email protected] | ||
*/ | ||
public class ResourceFetcher { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters