Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':library')
implementation files('libs/arsc.jar')
implementation files('libs/guava.jar')
}
Binary file added app/libs/arsc.jar
Binary file not shown.
Binary file added app/libs/guava.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools"
package="mt.modder.hub.axml">
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/mt/modder/hub/axml/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@ private void runConversion() {

// initialize the axmlprinter class
AXMLPrinter axmlPrinter = new AXMLPrinter();
axmlPrinter.setEnableID2Name(true);
// ID2Name was written only to resolve resource IDs against MT Manager's
// modded resources.arsc format. On normal/valid ARSC files (including
// framework resources) it fails to parse, so keep it off by default.
// Enable it explicitly only when testing against an MT Manager mod build.
axmlPrinter.setEnableID2Name(false);
axmlPrinter.setAttrValueTranslation(true);
axmlPrinter.setExtractPermissionDescription(true);

Expand Down
Binary file modified library/libs/arsc.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
~ additional information or have any questions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
<manifest>
<manifest package="mt.modder.hub.axmlTools">

</manifest>
Loading
Loading