fix: build correct file path for class from default package (#2854)
This commit is contained in:
@@ -73,4 +73,12 @@ public class TestInput extends BaseCliIntegrationTest {
|
||||
path -> path.getFileName().toString().equalsIgnoreCase("AndroidManifest.xml"));
|
||||
assertThat(files).isNotEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoRenameForDefPkg() throws Exception {
|
||||
int result = execJadxCli(buildArgs(List.of("--rename-flags", "none"), "samples/defpkg.smali"));
|
||||
assertThat(result).isEqualTo(0);
|
||||
List<Path> files = collectJavaFilesInDir(outputDir);
|
||||
assertThat(files).hasSize(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
.class public LA;
|
||||
.super Ljava/lang/Object;
|
||||
Reference in New Issue
Block a user