I try to sign Trebuchet launcher with platform certificate, but it fails to install after that:
$ java -jar out/host/darwin-x86/framework/signapk.jar build/target/product/security/platform.x509.pem build/target/product/security/platform.pk8 out/target/product/crespo/system/app/Trebuchet.apk CapsuleLauncher.apk
$ adb -e install -r CapsuleLauncher.apk
1916 KB/s (7946887 bytes in 4.049s)
pkg: /data/local/tmp/CapsuleLauncher.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
If I do not sign it - it installs successfully. How to sign it?