Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by lexvandersluijs · May 06, 2011 at 12:41 PM · androidinstallphoneadbqcar

Certificate problems when installing APK file on Android phone from command line

Hi,

A colleague made an example program using the QCAR plugin for Unity3D and it's running fine when installed from the editor. But when I try to install the package using the 'adb' tool from the Android SDK, I get the following error:

adb install teapot_slider.apk -> INSTALL_PARSE_FAILED_NO_CERTIFICATES

So I think: OK, the package isn't signed yet, so I'll go make a keystore using 'keytool' and then sign the package using 'jarsigner' (and then align it using 'zipalign', all tools from the Android SDK (see http://developer.android.com/guide/publishing/app-signing.html).

This all seems to go quite well, but then when I try to install the package again, I get this error: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES

All the answers I find related to the latter error say that I need to uninstall the old application first. But I cannot do that since no previous version of the application has been installed, and no other Unity applications are installed either.

I have also found that the adb install/uninstall commands are a bit assymmetric: you specify the .apk file to install something, but you need to specify the name of the package to uninstall it. Since the contents of AndroidManifest.xml in an APK are garbled, I used the command 'aapt dump badging teapot_slider.apk' to find the name of the package: com.fj.test.

Running the command 'adb shell pm list packages' confirms what I new: this package is not in the list.

So the question is: how can I install an apk file on my phone without using the Unity3D Pro editor?

By the way, the phone is an LG Optimus 2X Speed (w. NVidia Tegra 2)

Lex

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by benni05 · May 06, 2011 at 03:20 PM

Why don't you use the built-in app signing capabilites of Unity? This is no pro-feature only. Go to File->Build Settings->Player Settings... and then in the Inspector under Publishing Settings you can configure your keystore or create a new one.

Afterwards you can just "Build and Run" your signed apk to your phone from Unity.

Important: You need to have a 32bit SDK (JRE won't do) installed in order to succeed.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lexvandersluijs · Jul 15, 2011 at 08:15 AM 0
Share

Thanks, that worked. The reason for my roundabout way was that, at the time, I did not have access to Unity myself; I just had the AP$$anonymous$$. In the mean time, this nasty situation has been corrected :-)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Best way to sync between different mobile devices? 1 Answer

How to pause game when receiving phone call on Android 6? 2 Answers

how to make the resolution fit the screen on the phone 0 Answers

qcar unity project for android and ios 1 Answer

Android Failled to Install 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges