Android :: Proguard And The Licensing Server

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)...

Android :: Proguard and the Licensing Server


Android :: Android ProGuard Settings Use With App - Uses Licensing Server To Not Force Close

Oct 2, 2010

I've seemingly tried every setting in various articles on the internet including excluding all of my classes through -keep public class.

What settings should be used to not force close? At this point if I could get obfuscation with nothing else would be fine.

Below are sample configurations I've tried and my app still force closes.

I followed this article as well as others: http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html. Still no luck.

CODE:................

View 1 Replies View Related

Android :: Licensing - Setting Server Response Values Per Application

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

Android :: Ant Build With Proguard (per Blog) Not Obfuscating

Sep 24, 2010

The timing of this week's blog post was perfect. It was exactly what I intended to do today. And the extra Ant step worked fine, and I can see Proguard obfuscate my files into bin/obf/obfuscated.jar (yes, I tweaked the file names and paths a little bit), the resulting App- release.apk does not include the obfuscated files. My first hint was my stack traces, but I confirmed it with dedexer. Has anyone else verified their .apk? How does the compile step know what .class files to use? (I'm hoping its not assuming some hard coded path.)

View 5 Replies View Related

Android :: How To Debug With Obfuscated With ProGuard Applications

Oct 12, 2010

When I got something like this:

CODE:..............

How can I know where the problem is and debug this issue? I only got the mapping output from ProGuard and don't know the line number.

View 2 Replies View Related

Android :: How To Exclude R.class Files From A Proguard Build

May 21, 2010

I am one step away from making the method described here: http://stackoverflow.com/questions/2761443/targeting-android-with-scala-2-8-trunk-builds work with a single project (vs one project for scala and one for android).

View 1 Replies View Related

Android :: DalvikVM Could Not Find Field After ProGuard Obfuscation / How To Get

Nov 4, 2009

I've been trying obfuscate my application for the last 2 days. I must add that I'm new to Java, Eclipse, Ant and Android as well.

Currently I've managed to build the correct build.xml file and run ProGuard 4.4. However, every time I install my apk I get multiple errors from the "dalvikvm" such as "Found field 'e' but sig is 'J' not 'B'" or ".. sig is 'Lc' not '[c'" (Which has something to do with arrays and enums).code...

View 3 Replies View Related

Android :: Turn Off All Droid ProGuard Features Except Obfuscation?

Oct 1, 2010

Google is suggesting that developers might want to obfuscate byte code:

http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html

I followed Google's instructions to get an obfuscated Android app that, at first glance, seemed to work. But there were some strange bugs introduced that are not in the un-obfuscated app. I kept turning off ProGuard options to get to this configuration:

-dontoptimize
-dontshrink
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose

Still the bugs are there. Is there anything else I can turn off to get only pure obfuscation? Obfuscation would be nice, but I am willing to turn off ProGuard's other features.

View 1 Replies View Related

Android :: How To Set Up ProGuard In Eclpise When Exporting A Signed - Obfuscated Application?

Sep 21, 2010

I'm publishing an android application develpoed in eclpis and, as stated in the title, I would like to integrate proguard(obfuscation) into the build, specifically for exporting a signed app.

View 2 Replies View Related

Android :: LVL Licensing And Versioning ?

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

Android :: Predefined Licensing Models

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

Android :: Licensing Application Programmatically?

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

Android :: How To Implement Licensing For 30 Days Using DLL?

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

Android :: Market Licensing Sample To Work

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

Android :: Market Licensing Intermittently Fails

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

Android :: Check Licensing Permission Of Other Applications?

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

Android :: How Licensing Work In Transitioning From Free App To Paid?

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

Android :: Licensing Verification Library & Apps Solely For Unlocking/Removing Ads

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

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 View Related

Android :: Android Market Licensing Check During OnCreate Or OnResume?

Aug 21, 2010

In the included LVL sample app, the license check is triggered during onCreate. This means that when I click "Buy App" to launch the market, then immediately hit the back button to return to the app, the dialog is gone and another check isn't performed, leaving me with a perfectly usable app (at least until the activity is killed and the process starts over again).Would triggering the license check during onResume() be bad form, even though it would fix this issue? Is there a better solution?

View 2 Replies View Related

Android :: How To Connect Mysql Server On External Server In J2me Application

Sep 29, 2010

I have a hosting account at godaddy ruinning Linux. Is has MySQL. I am creating a J2ME application that runs on android and I was wondering if there is any simpler way to connect from j2me application to my MySQL server?
Is it required to install anything at my server? which I cannot do because of the shared account. Any way to just open the connection, update some data in the MySQL from j2me application?

View 2 Replies View Related

Android :: Appbrain 500 - Error Server Error The Server Encountered An Error And Could Not Complete Your Request

May 5, 2010

Using appbrain on my PC seems to work fine when I'm not logged in. When I do log in and try to click on an app I get this error message:

"Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it."

Anyone else have this issue when using Appbrain on their pc?

Well, It looks like I solved the problem. I just deleted my account and created it again and it's fixed (for now).

View 1 Replies View Related

HTC EVO 4G :: HTC Email Client - Exchange Server - Delete From Phone Doesnt Delete From Exchange Server

Jun 22, 2010

Is this something I have to deal with or is there a setting I'm missing somewhere? Same thing w/ the calendar reminders. I have dismissed them on my phone but they still come up in outlook when I get home.

View 5 Replies View Related

Android :: Map Server

Jan 25, 2009

Way to change the server that a MapActivity looks at for maps and images? By default the MapActivity it is pointed to http://www.google.com:80. If you are operating on a self contained network (disconnected from the open internet) google cannot be resolved. But if you are running your own google fusion server you should be able to point to it as the map server. I've already tried pointing www.google.com to the ip of the fusion server in my /etc/ hosts file. Appears the emulator doesn't use the hosts file.

View 4 Replies View Related

Android :: Server Over 3g

Aug 24, 2009

I do not have data plan with G1. With 3g is it possible to run server on the phone?

View 4 Replies View Related

Android :: Connect To Sql Server

Aug 16, 2010

I'm currently developing a Field-Service application that stores data in the local sqlite database on an android device. At some point, usually after completing the data collection rounds, the local sqlite db is to be synchronized to a remote sql server db on the server, also i need to update some local table from sql server db.Any suggestions as to how this could be achieved or engineered as a solution? Or even better, are there alternatives to synchronizing data in such an application?

View 2 Replies View Related

Android :: IM Server Behind NAT Router

Sep 2, 2010

I am making an IM application for Android. The application consists of a server and client, both residing on the android. At startup, the applications register with a webserver. If a client wants to send an IM to a server behind a NAT router, how this be done? I heard of stun4j and jstun but found nowhere an example of their usage in android.

View 2 Replies View Related

Android :: SQL Server Connection

Aug 16, 2009

I am trying to connect remote ms sql server 2005 and tried something but I could'nt. Does any of you know to connect sql server? I searched and I realize that Driver must be loaded.

View 3 Replies View Related

Android :: K9 Does Not Delete On Server

Aug 12, 2010

This subject seems to be have been discussed at length various times in the past and I have to confess, I am confused.So can I keep it simple and take it from the top (again)?I have just installed K-9 v2803 on my HTC Desire (Android 2.6.29)It is connecting via IMAP to a Zimbra server.I haven't fiddles with settings straight install, setup the account, off we go.So far everything seems to work EXCEPT deleting.I'm a simple soul - I expect that when I delete a message on the phone it gets deleted on the server as well right?Wrong.If I delete a message on the server side (Entourage on a Mac talking to the Zimbra server) bang! it gets deleted off the phone exactly as I want.But not the other way. Deleting off the phone removes it out of the inbox in K-9 but the message resolutely stays in the server inbox.Can someone explain why this stupid behavious is happening, and better still, what I can do to fix it?

View 5 Replies View Related

Android :: Server Error When Trying To Buy My Own App

Oct 25, 2009

I'm a developper based in the US that recently released a pay-for app in the market called "AmBu". Googlecheckout is the merchant account I am using (the only one approved by the market it seems).

Two customers were able to purchase my app from a foreign country (Europe).

However, when I'm trying to buy my own application from the US (using my G1 phone) using a valid debit or credit card number, I consistantly get a "server error" during the purchase process. I suspect I'm not the only one and I'm losing customers.

What is the right structure at google to help resolve this ? In the market blogs, I've seen few posts of people facing the same issue but nothing to help resolve this was detailed.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved