Titanium JIRA Archive
Appcelerator Community (AC)

[AC-506] INSTALL_PARSE_FAILED_NO_CERTIFICATES on Android 4.2 older devices

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-12-08T06:01:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsandroid, build, certificate, java
Reportercarlo
AssigneeRakhi Mitro
Created2015-11-18T13:38:24.000+0000
Updated2015-12-10T07:22:09.000+0000

Description

If I use a signature file with signature algorithm SHA256withRSA script _build.js stores "SHA256withRSA" as sigalg parameter, the project build, but is impossible to install on older devices that exits with INSTALL_PARSE_FAILED_NO_CERTIFICATES error As [documentation says](http://developer.android.com/tools/publishing/app-signing.html#signapp) -sigalg should always be "SHA1withRSA", so I modified line 828:
t.keystoreAliases.push({
    name: m[1],
    sigalg: "SHA1withRSA"
});
and it works (sigalg: "MD5withRSA" works too)

Comments

  1. Rakhi Mitro 2015-12-03

    Hello, Thanks for your query. Did to try to Package the app to the Android App Store from Studio or using CLI command? Please provide the complete test case to reproduce this error. Thanks
  2. carlo 2015-12-03

    From Studio. Just make a keystore, use it to build an app in Appcelerator Studio and try to install on a 4.2 device.
  3. Rakhi Mitro 2015-12-03

    Hello, Thanks for your feedback.After some investigation, the following was realized: However, if you install the packaged app with the SHA256withRSA signature keystore onto a non-KitKat (< 4.4) device, then you will see the bug behaviour. Only a packaged app with a signed SHA1withRSA signature keystore can be installed onto a non-KitKat device. Thanks
  4. carlo 2015-12-03

    It's not true. If you use a SHA256withRSA keystroke with "sigalg: SHA1withRSA" or "-sigalg MD5withRSA" it works on all Android version. I must use this method after users report the problem while installing on older devices because I can't change my keystroke for update policy reason.
  5. Rakhi Mitro 2015-12-03

  6. carlo 2015-12-03

    same problem / solution in that
  7. Mostafizur Rahman 2015-12-08

    Same problem: TIMOB-16189
  8. carlo 2015-12-10

    the duplicate TIMOB-16189 was closed without a solution my first ticket AC-267 was closed with a "can't reproduce" and I've added the info to do that I don't think duplicate again the issue is a good idea, but the bug is still present, what I can do?

JSON Source