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
Binary file added app-unsigned.apk
Binary file not shown.
69 changes: 69 additions & 0 deletions app/AndroidManifest.hex
Original file line number Diff line number Diff line change
@@ -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"
Binary file modified app/AndroidManifest.xml
Binary file not shown.
1 change: 0 additions & 1 deletion app/res/layout/manifest.xml

This file was deleted.

12 changes: 2 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file modified signed-release.apk
Binary file not shown.