OSDN Git Service

Make ApkBuilder create filenames supported by older rules.
authorXavier Ducrohet <xav@android.com>
Wed, 26 Aug 2009 03:01:56 +0000 (20:01 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 26 Aug 2009 18:17:04 +0000 (11:17 -0700)
commitaa1abe879a53e1d25b8a95f677a920938097f3c9
tree87edbf7cffc024c6d566e6ee54b9235bf8226a03
parent04680858a0671ad615f088edeea87b61ea243f24
Make ApkBuilder create filenames supported by older rules.

'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

DO NOT MERGE
tools/anttasks/src/com/android/ant/ApkBuilderTask.java
tools/scripts/android_rules.xml