GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cli&gui · EricChows/FakerAndroid@2cc4ef0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • controller/src
    • main/java/faker/android/decoder/transforms
      • ResourceProcesser.java
    • test/java/faker/android/decoder
      • TestProject.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎controller/src/main/java/faker/android/decoder/transforms/ResourceProcesser.java‎

Copy file name to clipboardExpand all lines: controller/src/main/java/faker/android/decoder/transforms/ResourceProcesser.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,19 @@ private void project(AndroidProject androidProject) {//TODO Rename
9393
if(libResources.exists()){
9494
libResources.renameTo(androidProject.getjniLibs());
9595
}
96+
9697
File unknownResources = new File(resources,"unknown");
9798
if(unknownResources.exists()){
9899
unknownResources.renameTo(androidProject.getResources());
99100
}
100101

101102
File originalResources = new File(resources,"original");
102103
if(originalResources.exists()){
103-
originalResources.renameTo(new File(androidProject.getAssets(),"original"));
104+
File assets = androidProject.getAssets();
105+
if(!assets.exists()){
106+
assets.mkdirs();
107+
}
108+
originalResources.renameTo(new File(assets,"original"));
104109
}
105110
}
106111
void fixRes(AndroidProject androidProject) {
Collapse file

‎controller/src/test/java/faker/android/decoder/TestProject.java‎

Copy file name to clipboardExpand all lines: controller/src/test/java/faker/android/decoder/TestProject.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515

1616
public class TestProject {
1717
private static final Logger LOG = LoggerFactory.getLogger(TestProject.class);
18-
static File in = TestUtils.getFileFromSampleDir("app-with-fake-dex.apk");
18+
// static File in = TestUtils.getFileFromSampleDir("app-with-fake-dex.apk");
19+
20+
static File in = TestUtils.getFileFromSampleDir("waiwai.apk");
21+
1922
@Test
2023
public void fakeRroject() throws IOException {
2124
File out = TestUtils.getFileOutSampleDir("fakeRroject","niuzai");

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.