mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-13 13:27:37 +02:00
Apktool.yml file (MetaInfo) using object serialization
non-printable character more intuitive, does not affect printable character view
This commit is contained in:

committed by
Connor Tumbleson

parent
81404c8904
commit
123912d226
@ -15,6 +15,7 @@
|
||||
*/
|
||||
package brut.androlib;
|
||||
|
||||
import brut.androlib.meta.MetaInfo;
|
||||
import brut.androlib.res.util.ExtFile;
|
||||
import brut.common.BrutException;
|
||||
import brut.directory.FileDirectory;
|
||||
@ -340,13 +341,13 @@ public class BuildAndDecodeTest {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void compareUnknownFiles() throws BrutException, IOException {
|
||||
Map<String, Object> control = new Androlib().readMetaFile(sTestOrigDir);
|
||||
Map<String, Object> test = new Androlib().readMetaFile(sTestNewDir);
|
||||
assertTrue(control.containsKey("unknownFiles"));
|
||||
assertTrue(test.containsKey("unknownFiles"));
|
||||
MetaInfo control = new Androlib().readMetaFile(sTestOrigDir);
|
||||
MetaInfo test = new Androlib().readMetaFile(sTestNewDir);
|
||||
assertNotNull(control.unknownFiles);
|
||||
assertNotNull(test.unknownFiles);
|
||||
|
||||
Map<String, String> control_files = (Map<String, String>)control.get("unknownFiles");
|
||||
Map<String, String> test_files = (Map<String, String>)test.get("unknownFiles");
|
||||
Map<String, String> control_files = control.unknownFiles;
|
||||
Map<String, String> test_files = test.unknownFiles;
|
||||
assertTrue(control_files.size() == test_files.size());
|
||||
|
||||
// Make sure that the compression methods are still the same
|
||||
|
@ -11,8 +11,8 @@ versionInfo:
|
||||
versionName: '1.0'
|
||||
compressionType: false
|
||||
unknownFiles:
|
||||
!!binary "aGlkZGVuLmZpbGU=": '8'
|
||||
!!binary "bm9uf3ByaW50YWJsZS5maWxl": '8'
|
||||
!!binary "c3RvcmVkLmZpbGU=": '0'
|
||||
!!binary "dW5rX2ZvbGRlci91bmtub3duX2ZpbGU=": '8'
|
||||
!!binary "bGliX2J1ZzYwMy9idWc2MDM=": '8'
|
||||
hidden.file: '8'
|
||||
non\u007Fprintable.file: '8'
|
||||
stored.file: '0'
|
||||
unk_folder/unknown_file: '8'
|
||||
lib_bug603/bug603: '8'
|
Reference in New Issue
Block a user