GeezerVison is showing github.com — Project format · forkandroid/FakerAndroid@029c1b6
File treeExpand file treeCollapse file tree Open diff view settings src/main/java/faker/android/decoder
controller/src/test/java/faker/android/decoder il2cpp-dumper/src/main/java/faker/android/decoder/il2cpp runtime-base/src/main/resources/libs/java
library/src/main/java/faker/android/decoder/util
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: bin/FakerAndroid-cli/build.gradle +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | plugins { | 2 | 2 | id 'java' | 3 | 3 | } | 4 | | - | | 4 | +apply plugin: 'com.github.johnrengelman.shadow' | 5 | 5 | group 'faker.android' | 6 | 6 | version '1.0-SNAPSHOT' | 7 | | - | 8 | 7 | repositories { | 9 | 8 | google() | 10 | 9 | jcenter() | 11 | 10 | mavenCentral() | 12 | 11 | } | 13 | | - | | 12 | +jar { | | 13 | + manifest { | | 14 | + attributes 'Main-Class' : 'faker.android.decoder.Main' | | 15 | + } | | 16 | +} | 14 | 17 | dependencies { | 15 | 18 | implementation 'com.luhuiguo:chinese-utils:1.0' | 16 | 19 | implementation project(':controller') | |
Collapse file Copy file name to clipboardExpand all lines: bin/FakerAndroid-cli/src/main/java/faker/android/decoder/Main.java -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 32 | 32 | import java.io.IOException; | 33 | 33 | import java.util.logging.*; | 34 | 34 |
| 35 | | -/** | 36 | | - | 37 | | - | 38 | | - */ | 39 | 35 | public class Main { | 40 | 36 | public static void main(String[] args) throws IOException, InterruptedException, BrutException { | 41 | 37 |
| |
Collapse file Copy file name to clipboardExpand all lines: bin/FakerAndroid-gui/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ buildscript { | 13 | 13 | dependencies { | 14 | 14 | } | 15 | 15 | } | 16 | | - | | 16 | +apply plugin: 'com.github.johnrengelman.shadow' | 17 | 17 | jar { | 18 | 18 | manifest { | 19 | 19 | attributes 'Main-Class' : 'FakerAndroidGui' | |
Collapse file Copy file name to clipboardExpand all lines: build.gradle +11Lines changed: 11 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -22,4 +22,15 @@ allprojects { | 22 | 22 | jcenter() | 23 | 23 | google() | 24 | 24 | } | | 25 | +} | | 26 | +buildscript { | | 27 | + repositories { | | 28 | + jcenter() | | 29 | + } | | 30 | + tasks.withType(JavaCompile) { | | 31 | + options.encoding = "UTF-8" | | 32 | + } | | 33 | + dependencies { | | 34 | + classpath 'com.github.jengelman.gradle.plugins:shadow:6.0.0' | | 35 | + } | 25 | 36 | } |
Collapse file Copy file name to clipboardExpand all lines: controller/src/test/java/faker/android/decoder/TestProject.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 15 | 15 |
| 16 | 16 | public class TestProject { | 17 | 17 | private static final Logger LOG = LoggerFactory.getLogger(TestProject.class); | 18 | | - static File in = TestUtils.getFileFromSampleDir("niuzai.apk"); | | 18 | + static File in = TestUtils.getFileFromSampleDir("app-with-fake-dex.apk"); | 19 | 19 | @Test | 20 | 20 | public void fakeRroject() throws IOException { | 21 | 21 | File out = TestUtils.getFileOutSampleDir("fakeRroject","niuzai"); | |
Collapse file Copy file name to clipboardExpand all lines: distribution/il2cpp-dumper/src/main/java/faker/android/decoder/il2cpp/Il2cppBinary.java +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,9 +51,9 @@ public static void dumpIl2cpp(File in,File out) throws BinaryException, FakerAnd | 51 | 51 | il2cppBinaryCommad.add("-o"); | 52 | 52 | il2cppBinaryCommad.add(new File(il2cppScaffoldingHelper,"help.json").getAbsolutePath()); | 53 | 53 |
| 54 | | - OS.exec(il2cppBinaryCommad.toArray(new String[0])); | 55 | | - try { | 56 | 54 |
| | 55 | + try { | | 56 | + OS.exec(il2cppBinaryCommad.toArray(new String[0])); | 57 | 57 | File scaffolding_ARM = new File(out,"Il2cpp-Scaffolding-ARM"); | 58 | 58 | if(scaffolding_ARM.exists()){ | 59 | 59 | formatScaffolding(scaffolding_ARM); | @@ -62,8 +62,8 @@ public static void dumpIl2cpp(File in,File out) throws BinaryException, FakerAnd | 62 | 62 | if(Scaffolding_ARM64.exists()){ | 63 | 63 | formatScaffolding(Scaffolding_ARM64); | 64 | 64 | } | 65 | | - } catch (IOException e) { | 66 | | - e.printStackTrace(); | | 65 | + } catch (Exception e) { | | 66 | + // | 67 | 67 | } | 68 | 68 | } | 69 | 69 | private static void formatScaffolding(File scaffolding) throws IOException { | |
Collapse file Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +This dir you can custom you jar files |
Collapse file Copy file name to clipboardExpand all lines: library/src/main/java/faker/android/decoder/util/OS.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -82,7 +82,7 @@ public static void cpdir(String src, String dest) throws FakerAndroidException { | 82 | 82 | cpdir(new File(src), new File(dest)); | 83 | 83 | } | 84 | 84 |
| 85 | | - public static void exec(String[] cmd) throws FakerAndroidException { | | 85 | + public static void exec(String[] cmd) throws Exception { | 86 | 86 | Process ps = null; | 87 | 87 | int exitValue = -99; | 88 | 88 | try { | |
|