Google Licensing API - How To Get Public Key From Keystore
Sep 4, 2012
i have finished an app and would like to publish, but all of a sudden, i spotted this Google Licensing API and thought that it would be pretty cool to incorporate it into the code.anyway, in the sample code Google put in... there's this String
Code:
private static final String BASE64_PUBLIC_KEY = "REPLACE THIS WITH YOUR PUBLIC KEY";
how do i get the public key from the keystore that i created with Eclipse?
View 1 Replies
Oct 19, 2010
After finishing my android application development I used the command showing below to get private key, but it shows some errors such as "The Keystore was tampered with or password was in correct".
$ keytool -genkey -v -keystore DEBUG.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Is my problem with DEBUG.keystore? Should I need to generate another keystore for public release?
View 1 Replies
View Related
Jul 29, 2010
I want to use the Google Maps API in my Project. I signed up and got the API key also. When I run my application now I'm getting an error "Error generating final archive: Invalid keystore" I m really fed up. It is very difficult to use Maps in an application.
View 2 Replies
View Related
Sep 24, 2010
Using the licensing technique described here http://developer.android.com/guide/publishing/licensing.html I'm trying to test what happens when: - I would upgrade my LVL protected app to a new version - Some user hasn't upgraded yet Will the user with the old version still be able to continue? Will the licensing server return LICENSED_OLD_KEY as I expect it to, and thus allow access?
The scenario I used to test this: - uploaded to market a signed version 1.0.0 (did not publish it) of my app which has never been published nor uploaded before - setup test account and let the test response be LICENSED - on Nexus1 tested and verified that when using the apk (so the one in <project>/bin), LICENSED is returned. - increased versionCode and versionName to 1.0.1, signed and uploaded that version to market (didn't publish) - on N1 installed the new apk (again the newly compiled one from <project>/bin). LVL returns NOT_MARKET_MANAGED so indicating that it's not available in the market. But I expected LICENSED_OLD_KEY to be returned.
Am I trying something that's not possible to test? From other posts like this one: [url] and this one: [url]is suggested that the above scenario should work...
If this is not possible to test before publishing an app, did anybody try this out in the field: will LICENSED_OLD_KEY be returned for older versions that previously got LICENSED as an answer?
View 5 Replies
View Related
Oct 25, 2010
As I understand, currently there exist two of them, to relieve devs from implementing their own ones, which are -strict -servermanagedpolicy However, I'm missing a predefined policy that actually is the counterpart to the soon deprecated "copy protection mode", ie one that will check once, and then keeps silent for weeks or even months, instead of harassing users to make an online connection. So, I'd like to request to please add a third predefined policy to cater to our laziness. A policy that is the counterpart to the actual old 'copy protection' thingy. Apart from this I don't really see why an app that has been correctly installed by the market with device-based signature checks and all really needs to be checked every 5 days? Wouldn't that only make sense if the app is sort of subscription-based?
View 2 Replies
View Related
Jun 3, 2009
If i wish to attach an evaluation license to my android application, how can that be achieved ? As for example, i may want to provide an evaluation license based application that expires in one of the following ways:
1. Time based (30 days etc)
2. Usage based ( 100 invocations of the application).
Once the application's license expires, i need to restrict access to it from the user.
View 16 Replies
View Related
Nov 8, 2010
I have created an application and would like to provide a 30 days trial period for the same using licensing dll provided by android
(http://developer.android.com/guide/publishing/licensing.html#support)
But I cannot find how to restrict this licensing to 30 days from date of installation.
View 2 Replies
View Related
Sep 23, 2010
Just read the latest Android Developer blog post. http://android-developers.blogspot.com/2010/09/proguard-android-and-l... Quite the beast. And Proguard cannot even be used with confidence ("it's still possible that in edge cases you'll end up seeing something like a ClassNotFoundException").
Is it just me getting irritated where this seems to be going? In my more active days developing, pretty graphic slang was applies to efforts like this: "Turd layering". Meaning: More dependencies, more procedure, more sources of error, and it doesn't even work "right". In of itself, adding innocent looking steps to a release procedure (for some relatively obscure benefit) might be marginally worthwhile, but in the bigger picture, releasing an app increasingly becomes a burden. Dare you miss a step. Or try to teach somebody else how to go through a release and verify it. Or you want to go and rebuild a development environment. Or lose the ominous reference file (mapping.txt)...
View 1 Replies
View Related
Sep 28, 2010
I downloaded the sdk and added the library to my workspace, then the sample for market licensing. The sample app seems to force close somewhere after/during the instantiation of LicenseChecker. I tried running on the emulator with Google API 8 and on a droid x with froyo and it force closes. The stack shows PerformLaunchActivity as the top item. Both emulator and phone had a registered gmail account. how to get this to work?
View 1 Replies
View Related
Oct 26, 2010
I included the Android Market licensing (LVL) in my application and is currently using it to block invalid users. However users are emailing me that they are legit and include proof that they indeed bought the application. In looking at the errors generated during authentication, I get something along the line of "failed to reach server 505 error" which basically means that the Android Market server isn't responding and authenticating the users correctly.
In my personal experience when I encountered this once in my testing (I was hoping it was unique but it's not), I had to wait 30 mins before it finally worked. My phone was using wireless and clearly had no network issues. Ultimately the Android Market server is glitch and faulty (which is nothing new) and was just not responding and authenticating for around 30 mins. This leads to an extremely crappy experience for my users.
Other than dropping using this licensing scheme, I don't know what else to do. Android market connection is just too faulty for everyday usage. Do other developers have a better experience? Others using LVL at all? Others with similar experience?
View 3 Replies
View Related
Aug 2, 2010
I have a free application that has a number of paid-for upgrade applications you can buy for it. The base game is free and remains the application that the user always launches, it detects the presence of the other applications and unlocks various upgrade features as appropriate.
I wanted to use the new licensing service to detect whether the bought applications were licensed, and pass the name of the package to the licensing service to verify if it is authorised (and blindly following the sample I stupidly assumed that passing in the package name to the obfuscator meant that the package name was passed to the licensing server - oops). However I've just realised how dumb that was, and in any case I have hit a brick wall: "If you already published your application as free, you won't be able to upload an updated version that includes licensing (that is, an application that uses the same package name and that includes the licensing permission)".
So, a two-part question: is there any plan to implement what I'm looking for: to check from inside a free application whether any of my other paid published applications are licensed?
If not, then what would be the best way of achieving what I'm seeking? I'm thinking of maybe sending an intent to each of the installed upgrades, getting them to perform the licensing check, and then getting the upgrades to pass the response back into my base application.
View 1 Replies
View Related
Feb 11, 2009
Here's the scenario: The app is on the market for free. The publisher then decides to make it a pay app and changes the status. I'm assuming you can just do that, but my questions are:
1) Will the publishing console require us to upload a new version if it is to be a pay app, or can we just change it on-the-fly? 2) If we can change it on-the-fly, how will that affect users that have downloaded the free version? Do they get the license to the paid one as well (so they can delete but reinstall the app for free, get updates, etc?) I've finished a game but I've been just waiting for the paid apps to come on line before publishing it. I'm now thinking that I wouldn't mind a 1 week free period before going paid but something felt like the users who download it for free would never have to pay even after I change it to paid and add some sort of desirable update that makes them want to download the new version (and pay then to get it if they have to).
View 5 Replies
View Related
Aug 5, 2010
So I've just published my first paid app to the Market and I used the new LVL with the default ServerManagedPolicy. On working through the docs and getting it set up I noted the references to the server response extras VT, GT, GR & UT, and the impression I got from quotes such as "a typical value would be 5 or more days.", "a typical value would be "10" or higher." etc., was that we would have some way of setting these server response values per app when we upload them to the Market. Either I'm missing something, or there does not seem to be a way to set these in the Developer Console that I can see? If we can't set these, it's not really a 'managed' policy at all, but a random 'whatever the server decides to respond with' policy, particularly given the vagueness of the documentation.
I really hate phone home licensing, and am only using it because it seems to be the only option to combat Android piracy. Ideally I want to just check once when the app is first launched, once a day or two later to check they didn't return it, then cache that for 6 months (forever?) to minimize disruption to my users. Is this kind of thing possible with the ServerManagedPolicy or do I have the wrong end of the stick about the 'management' features and have to roll my own? On a side note, if I can't buy my own app, how can I test my licensing is working in the wild? I got several 'NOT_LICENSED' responses in testing even when I set it to return 'LICENSED' in the console, so I'm not 100% convinced of its stability and want to actually see how well it works outside the testing environment, but apparently can't buy my own app to do so!
View 4 Replies
View Related
Aug 31, 2010
There's a large chunk of apps on the market that are free, with ads. Users can pay for an "unlocker" app to remove ads in the "free" app, presumably by doing a check on whether or not the unlocker app package is installed.
If LVL is verified intermittently on a paid app, is it useless for these unlocker apps? Presumably a user would never run the unlocker app, so how would LVL even check the authenticity?
View 10 Replies
View Related
Apr 7, 2010
I'm running a sample application that has a map component to it. The app launch find, but I don't see the map loading. I read sometime ago that it might be caused by keystore mismatch? How do I set keystore? Been trying to find it from google and eclipse but can't find where I can change that.
View 1 Replies
View Related
Jan 29, 2010
I know that, to be able to sign a package with your own keystore, you have to use the export from eclipse. However, its not easy to keep doing this when you're still debugging the application. Since i have external libraries that uses another keystore and use the shareUserId, it would be reasonable to let, in eclipse plugin, you debug an application using any keystore.Any tips of how to make debugging easy with a private keystore?
View 4 Replies
View Related
Nov 13, 2009
I am having Java SSL based server and I want to connect android SSL supported client to it. My keystore in Java is JKS, but android says no JKS implementation found. It supports BKS. Is there any way to have JKS support for android ? If not then how can use BKS in Java. I am trying using PKCS12, but documentation says using PKCS12 for trustanchors purpose is not supported.
View 4 Replies
View Related
Jul 19, 2010
I'm about to release an application in the Android Market. I need to generate a keystore to sign my application. The docs are a little spares on what I'm support to put into for the -dname param. Here is the line I'm using: keytool -genkey -v -alias release -keyalg RSA -keysize 2048 -dname "CN=mydomain.com" -keystore my.keystore -validity 10000
What is required in the -dname (Distinguished Name) field? I found out that I can include the CN field. Are there other fields that I must put in before the Market will accept the app? Any good optional ones to put in? Updated I found out I can examine other apk's by using: jarsigner -verify -verbose -certs nameof.apk
View 1 Replies
View Related
Feb 7, 2010
I have some code for my app that creates a keystore in android, creates some default keys then saves the keystore. Later on the code tries to reload the keystore, on the emulator this runs fine however when run on a phone I get an EOFException. Any advice on where I'm going wrong?
An out take of the code is below:..........................
View 2 Replies
View Related
Dec 5, 2009
I am trying to create certificates for users for my program. I am have created a keystore and included the publickeystore.store with my application in the assets folder. I created all the certificates using the keytool program from JAVA. When I try to authenticate the certificate I get the following error: 12-05 17:32:49.962: ERROR/AndroidRuntime(891): Caused by: java.security.KeyStoreException: KeyStore JKS implementation not found
View 3 Replies
View Related
Apr 6, 2010
Can I copy the debug.keystore in My home directory to another PC's home directory? Does it have to be Linux on Linux, and Windows and Windows? Can I copy Linux keystores to Windows, and vice-versa?
View 1 Replies
View Related
Aug 27, 2010
I'm surprisingly frustrated by this, and I suspect the answer is simple. I have compiled and signed my android app using the Export Wizard, as described here in the section 'Compile and sign with Eclipse ADT'. I would like to backup the keystore and have it handy for future app updates, but I can't figure out for the life of me where the keystore is saved. I of course can use Eclipse to go through the process, but if something happens to my computer I'll be pretty screwed.
View 1 Replies
View Related
Aug 27, 2010
To this point, I've been doing development on multiple machines but always packaging for deployment on the same machine. If I want to package for deployment on another machine, will simply copying the keystore file to the new machine do the trick? Anything else I need to be concerned about when doing this?
View 6 Replies
View Related
Jun 23, 2010
I am trying to publish my first Android application, and therefore need to sign the app with a keystore. At first everything goes well. I type the following into the command prompt: keytool -genkey -v -keystore testKeystore.keystore -alias testKeystore -keyalg RSA -validity 10000. I answer the several questions that follow, but after the last question, I get the following error. keytool error: java.io.FileNotFoundException: testKeystore.keystore [Access is denied] Maybe I am doing some silly mistake, but I have followed several guides on the internet on how to make a keystore, and I thought that was all there was to it?
View 1 Replies
View Related
Sep 23, 2010
I'm trying to generate the MD5 Fingerprint I will use with the release of my application. I used Eclipse to Compile and Sign my application, which gave me a keystore file and a .apk file. Now i need to generate the MD5 for my MapViews. I tried using the cmd prompt to generate it, but everytime it states that no such file exists. Is there somewhere special i need to be storing the keystore so the keytool has access to it? Also, once i get the MD5 fingerprint, all i have to do is insert it and re-compile and sign my application (the same way i previously did it). Am i correct on that assumption? I've read through the developer docs and I'm still unclear on the whole process.
View 1 Replies
View Related
Feb 9, 2012
I developed an Android game with a colleague and uploaded it to my Developer account. I created an update and it's ready to upload, but I realized I can't use the same package name because I don't have the password for the keystore because it was created by my colleague and he no longer works with us. The current version of the game has already gotten tens of thousands of downloads and many good reviews, so I want to be able to keep the same package name so I can upload the update as an update, instead of uploading it as a new app. Is there any way to crack the keystore file without knowing the password?
View 4 Replies
View Related
Jul 9, 2010
I'm the PC admin for a Public Library in Florida. I keep the labs running. I have NO experience with Android. We never have enough PC's for the public at peak times. Putting in more PC's is expensive, or even impossible in some buildings. I'm always looking for ways to serve more patrons cheaply. Portable PC's are an idea for getting around this, but have problems. Notably, some are going to get stolen. All of them will get used heavily and often by people without the necessary skills to keep their data private. Sometimes they get used by our young hacking community for naughty things. I saw the Cherrypal PC and got interested. These things are ultra-cheap. That's enticing.
So here's my big question: How do I lock down an Android public PC? Specifically I need the machine to boot or log to a state that's exactly what I want EVERY time a new user comes on. There can be no remaining information about the old user (credit cards, passwords, chat history, etc.) that the next user can steal. Can I lock down the PC's? Is it easy and fast to restore to a base state that has the homepage and appearance that I want for the library, while keeping away changes I don't want? Is there anything that would keep Android from being a good addition to public PC's in the library?
View 2 Replies
View Related
Sep 27, 2010
I have an application on android market which is signed with my keystore, this application is a paid one, But now i have same application with some restricted features and this app is Free. both the apps are on android market. But the problem is I signed both Paid and Free apps with same KeyStore. Now i want to change keystore of one of the app. How do i do this.
View 4 Replies
View Related
Sep 3, 2010
WIndows did a system restore on a crash boot-up, guess what? yes, my keystore has gone now - for ever. I should have backed it up. But.... The problem is I have 20 Apps that I cannot now update in the Market as it will not accept a new key signing.
View 7 Replies
View Related
Sep 23, 2009
i crated it a while back and now I want to provide an update. I know I'm providing the correct password but I keep getting the error message that says the keystore has been tampered with or the password is incorrect... Is it possible to generate a new keystore? Has anyone else seen this issue? Is there a way I can fix this.
View 4 Replies
View Related