Signing an app in TED

Monkey Forums/Monkey Bug Reports/Signing an app in TED

Midimaster(Posted 2013) [#1]
Hy Mark, I need your help. I'm very short before publishing a big project on Android. Could you please have a look on the problem described here:

http://www.monkeycoder.co.nz/Community/post.php?topic=5787&post=70165
http://www.monkeycoder.co.nz/Community/post.php?topic=5787&post=70524

It looks like also wrong parameters are accepted without an error message.

Is this a bug? Or can it not be done better?


I would also like to have an official statement for this problem:

http://www.monkeycoder.co.nz/Community/posts.php?topic=6177&#bottom

It looks like we need a new Android manifest...


marksibly(Posted 2013) [#2]
> http://www.monkeycoder.co.nz/Community/post.php?topic=5787&post=70165

Try adding this to your main file:

#ANDROID_SIGN_APP=True

With this enabled and using incorrect passwords, I get the following build error: 'Keystore was tampered with, or password was incorrect: Password verification failed'. With correct passwords, all builds well and app appears to be successfully signed/aligned etc.

> http://www.monkeycoder.co.nz/Community/posts.php?topic=6177&#bottom

According to this...

http://stackoverflow.com/questions/5701343/android-debuggable-default-value

android:debuggable will be set to true for 'debug' builds and false for 'release' builds. However, in this case, 'debug' really means 'unsigned' (or signed with debug key anyway) while 'release' means 'signed'.

This bit of confusion is due to the fact Monkey debug/release is not the same as android debug/release.

Monkey debug/release adds error checking etc to Monkey code and is selected in Ted via the 'config' combobox. However, android debug/release refers to whether the code is signed or not (well, more or less...). This is controlled by #ANDROID_SIGN_APP.

So selected debug/release via Ted actually has no effect on how the android SDK 'builds' apps.

Bottom line: I recommend using both #ANDROID_SIGN_APP=true and selecting 'release' config for building apps for publishing.

If it turns out android:debuggable still needs to be added to manifest, this can be done, but current system sounds about right to me (assuming it works).