diff --git a/app-unsigned.apk b/app-unsigned.apk new file mode 100644 index 0000000..d819067 Binary files /dev/null and b/app-unsigned.apk differ diff --git a/app/AndroidManifest.hex b/app/AndroidManifest.hex new file mode 100644 index 0000000..11511e3 --- /dev/null +++ b/app/AndroidManifest.hex @@ -0,0 +1,69 @@ +03 00 # xml chunk type +08 00 # header size +98 00 00 00 # chunk size + +01 00 # string pool type +18 00 # header size, 24 bytes +40 00 00 00 # chunk size +03 00 00 00 # string count +00 00 00 00 # style count +00 01 00 00 # flags, utf-8 bit is set +24 00 00 00 # strings start + +# string offsets: + +00 00 00 00 +0b 00 00 00 +15 00 00 00 + +# string data: + +08 08 6d 61 # len=8, "manifest" +6e 69 66 65 +73 74 00 + +07 07 70 61 # len=7, "package" +63 6b 61 67 +65 00 + +03 03 63 2e # len=3, "c.c" +63 00 + +00 # 0-padding + +# xml contents: + +02 01 # XML start element +10 00 # header size +38 00 00 00 # chunk size +00 00 00 00 # line number +00 00 00 00 # comment, index into string pool +00 00 00 00 # namespace index, 0 +00 00 00 00 # name of the node, "manifest" +14 00 # attributes offset +14 00 # attributes size +01 00 # attribute count +00 00 # id index +00 00 # class index +00 00 # style index + +# attribute data + +ff ff ff ff # namespace index, -1 +01 00 00 00 # name, "package" +02 00 00 00 # raw value, "c.c" + +# typed value for attribute[0] + +08 00 # size +00 # always 0 +03 # TYPE_STRING +02 00 00 00 # value index, "c.c" + +03 01 # XML end element +10 00 # header size +18 00 00 00 # chunk size +00 00 00 00 # line number +00 00 00 00 # comment +00 00 00 00 # namespace index, 0 +00 00 00 00 # name of the node, "manifest" diff --git a/app/AndroidManifest.xml b/app/AndroidManifest.xml index a471caf..0df139d 100644 Binary files a/app/AndroidManifest.xml and b/app/AndroidManifest.xml differ diff --git a/app/res/layout/manifest.xml b/app/res/layout/manifest.xml deleted file mode 100644 index a471caf..0000000 --- a/app/res/layout/manifest.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/build.sh b/build.sh index 8e064ab..5fff8f2 100755 --- a/build.sh +++ b/build.sh @@ -16,16 +16,8 @@ recompress() { #TODO ensure that ANDROID_HOME is set -echo "Creating base AndroidManifest.xml" -$ANDROID_HOME/build-tools/26.0.2/aapt p -M app/AndroidManifest.xml -S app/res -I $ANDROID_HOME/platforms/android-26/android.jar -f -F build/base.apk -unzip build/base.apk -d build/apk - -# Don't use the original manifest with all the generated junk, use the compiled xml from layout instead -rm build/apk/AndroidManifest.xml -rm build/apk/resources.arsc -mv build/apk/res/layout/manifest.xml build/apk/AndroidManifest.xml -rm -rf build/apk/res - +echo "Creating base apk" +cp app/AndroidManifest.xml build/apk/ echo "Creating empty classes.dex" touch build/apk/classes.dex diff --git a/signed-release.apk b/signed-release.apk index c2be19b..d7bb4cc 100644 Binary files a/signed-release.apk and b/signed-release.apk differ