[android-developers] Re: LVL: possible to check license for a different app?

2017-01-10 Thread digipom
I'm looking to do this too as i'm investigating a way to migrate from a 
free app + paid purchase to a free app + IAP purchase. However as 3c said, 
simply doing the check from another app won't work as that will result in 
a ERROR_INVALID_PACKAGE_NAME error.

Anyone else ever migrate from a separate paid version to IAPs? How did you 
manage it?

On Wednesday, 5 January 2011 20:27:25 UTC-4, andfan22 wrote:
>
> Hi all 
>
> Just wondering if I can use LVL to check that the user is licensed to 
> use a DIFFERENT app from the current one -- ie. one with a different 
> package name. 
>
> Why would I want to do this?  I'm developing an app which I'm 
> considering publishing using a free + pro license model.  The main app 
> would be a free, ad supported app.  To turn off ads the user would 
> purchase a pro license key from the market (published as a paid app 
> containing no functionality).  The user would continune to use the app 
> that was downloaded for free, which checks if the paid app is 
> installed, and if so it disables ads.   I prefer this model to a fully 
> featured paid app model, as it eliminates the need to migrate data 
> from the free version to the paid when the user upgrades. 
>
> Under this model I would like the free app to check if the paid app is 
> installed, and if so the free app would then use LVL to check if the 
> user has purchased the paid app via the market.  Will it be possible 
> for the free app to pass the package name of the paid app to LVL, and 
> to get back a result confirming whether the paid app has been 
> purchased or not? 
>
> Looking at the LVL source code I suspect I can do this by modifying 
> the constructor of LicenseChecker to set mPAckageName to a supplied 
> argument rather than setting it to mContext.getPackageName(). 
>
> Are there any gotcha's I may be missing? 
>
> Thanks ... 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/30f28ccd-dae1-4c59-814f-04e31fbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: LVL: possible to check license for a different app?

2014-02-06 Thread 3c
Does any-one has a solution to this? I would really need this to work! 
Isn't there any way to check the license of one package from another 
package?


On Thursday, January 23, 2014 8:47:16 AM UTC+1, 3c wrote:

 Hello, I was really wondering the same thing (for a different purpose), 
 however no-one clearly answered your original question here, so I've 
 actually tested it directly.

 First thing, I had to modify the LVL library to take a package name and 
 version code as parameter instead of using the current app's information 
 automatically.

 Without the other paid app installed, I received 
 a ERROR_INVALID_PACKAGE_NAME.

 Once the other paid app was installed, I unfortunately received 
 a ERROR_NON_MATCHING_UID.

 As I couldn't find any UID information in the LVL library, the answer is 
 now pretty clear: it's not possible.


 On Thursday, January 6, 2011 1:27:25 AM UTC+1, andfan22 wrote:

 Hi all 

 Just wondering if I can use LVL to check that the user is licensed to 
 use a DIFFERENT app from the current one -- ie. one with a different 
 package name. 

 Why would I want to do this?  I'm developing an app which I'm 
 considering publishing using a free + pro license model.  The main app 
 would be a free, ad supported app.  To turn off ads the user would 
 purchase a pro license key from the market (published as a paid app 
 containing no functionality).  The user would continune to use the app 
 that was downloaded for free, which checks if the paid app is 
 installed, and if so it disables ads.   I prefer this model to a fully 
 featured paid app model, as it eliminates the need to migrate data 
 from the free version to the paid when the user upgrades. 

 Under this model I would like the free app to check if the paid app is 
 installed, and if so the free app would then use LVL to check if the 
 user has purchased the paid app via the market.  Will it be possible 
 for the free app to pass the package name of the paid app to LVL, and 
 to get back a result confirming whether the paid app has been 
 purchased or not? 

 Looking at the LVL source code I suspect I can do this by modifying 
 the constructor of LicenseChecker to set mPAckageName to a supplied 
 argument rather than setting it to mContext.getPackageName(). 

 Are there any gotcha's I may be missing? 

 Thanks ... 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: LVL: possible to check license for a different app?

2014-02-06 Thread Nobu Games
Educated guess: the UID may be the app's user id (UID). As far as I know, 
Android creates a unique user for each installed app for enforcing 
app-specific file system permissions. The licensing service probably checks 
that the requesting app process' user id matches the user id for the 
requested package. So it looks more like a security check and I'd assume 
that you cannot work around that, unless you'd run your request as that 
other user. And that's probably only possible on a rooted device.

On Thursday, February 6, 2014 7:54:17 AM UTC-6, 3c wrote:

 Does any-one has a solution to this? I would really need this to work! 
 Isn't there any way to check the license of one package from another 
 package?


 On Thursday, January 23, 2014 8:47:16 AM UTC+1, 3c wrote:

 Hello, I was really wondering the same thing (for a different purpose), 
 however no-one clearly answered your original question here, so I've 
 actually tested it directly.

 First thing, I had to modify the LVL library to take a package name and 
 version code as parameter instead of using the current app's information 
 automatically.

 Without the other paid app installed, I received 
 a ERROR_INVALID_PACKAGE_NAME.

 Once the other paid app was installed, I unfortunately received 
 a ERROR_NON_MATCHING_UID.

 As I couldn't find any UID information in the LVL library, the answer is 
 now pretty clear: it's not possible.


 On Thursday, January 6, 2011 1:27:25 AM UTC+1, andfan22 wrote:

 Hi all 

 Just wondering if I can use LVL to check that the user is licensed to 
 use a DIFFERENT app from the current one -- ie. one with a different 
 package name. 

 Why would I want to do this?  I'm developing an app which I'm 
 considering publishing using a free + pro license model.  The main app 
 would be a free, ad supported app.  To turn off ads the user would 
 purchase a pro license key from the market (published as a paid app 
 containing no functionality).  The user would continune to use the app 
 that was downloaded for free, which checks if the paid app is 
 installed, and if so it disables ads.   I prefer this model to a fully 
 featured paid app model, as it eliminates the need to migrate data 
 from the free version to the paid when the user upgrades. 

 Under this model I would like the free app to check if the paid app is 
 installed, and if so the free app would then use LVL to check if the 
 user has purchased the paid app via the market.  Will it be possible 
 for the free app to pass the package name of the paid app to LVL, and 
 to get back a result confirming whether the paid app has been 
 purchased or not? 

 Looking at the LVL source code I suspect I can do this by modifying 
 the constructor of LicenseChecker to set mPAckageName to a supplied 
 argument rather than setting it to mContext.getPackageName(). 

 Are there any gotcha's I may be missing? 

 Thanks ... 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: LVL: possible to check license for a different app?

2014-01-22 Thread 3c
Hello, I was really wondering the same thing (for a different purpose), 
however no-one clearly answered your original question here, so I've 
actually tested it directly.

First thing, I had to modify the LVL library to take a package name and 
version code as parameter instead of using the current app's information 
automatically.

Without the other paid app installed, I received 
a ERROR_INVALID_PACKAGE_NAME.

Once the other paid app was installed, I unfortunately received 
a ERROR_NON_MATCHING_UID.

As I couldn't find any UID information in the LVL library, the answer is 
now pretty clear: it's not possible.


On Thursday, January 6, 2011 1:27:25 AM UTC+1, andfan22 wrote:

 Hi all 

 Just wondering if I can use LVL to check that the user is licensed to 
 use a DIFFERENT app from the current one -- ie. one with a different 
 package name. 

 Why would I want to do this?  I'm developing an app which I'm 
 considering publishing using a free + pro license model.  The main app 
 would be a free, ad supported app.  To turn off ads the user would 
 purchase a pro license key from the market (published as a paid app 
 containing no functionality).  The user would continune to use the app 
 that was downloaded for free, which checks if the paid app is 
 installed, and if so it disables ads.   I prefer this model to a fully 
 featured paid app model, as it eliminates the need to migrate data 
 from the free version to the paid when the user upgrades. 

 Under this model I would like the free app to check if the paid app is 
 installed, and if so the free app would then use LVL to check if the 
 user has purchased the paid app via the market.  Will it be possible 
 for the free app to pass the package name of the paid app to LVL, and 
 to get back a result confirming whether the paid app has been 
 purchased or not? 

 Looking at the LVL source code I suspect I can do this by modifying 
 the constructor of LicenseChecker to set mPAckageName to a supplied 
 argument rather than setting it to mContext.getPackageName(). 

 Are there any gotcha's I may be missing? 

 Thanks ... 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread andfan22
Thanks Zsolt - I agree I need to modify the LVL classes.  I was just
wondering if the change I had in mind is workable or if something
would break when attempting to check the license of a different
package.  (I'll try it in due course, just don't want to start down a
fruitless path if that can be avoided.)

Cheers.

On Jan 6, 8:11 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 You absolutely want to modify the LVL classes.  Not modifing your
 class is an invitation for automated cracking of your app.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread andfan22
Thanks for your thoughts Brill.  However, your solution is not very
secure because it can be circumvented by anyone with root access.   An
attacker would just copy the paid app from a rooted phone and
distribute it at will.  At least if LVL is incorporated correctly into
the code then the app must be cracked to disable the licensing check.


On Jan 6, 8:58 pm, Brill Pappin br...@pappin.ca wrote:
 You miss my point.  I'm saying don't depend on LVL for this feature.  

 Sent from my Acer Android device

 Zsolt Vasvari zvasv...@gmail.com wrote:
 You absolutely want to modify the LVL classes.  Not modifing your
 class is an invitation for automated cracking of your app.

 http://android-developers.blogspot.com/2010/09/securing-android-lvl-a...

 On Jan 6, 2:27 pm, Brill Pappin br...@pappin.ca wrote:
  I like that concept... it would certainly save me some hassle :)

  But, you maybe don't need to modify the LVL classes.

  All you really need is some way to check that they paid for something.
  Why not set up a content provider that contains the license details
  (you could actually do multiple levels of license then) and simply
  fail gracefully if the provider was not present?

  Another way would be to have the paid app write the license key to a
  shared preferences location when run.

  I agree that LVL should be able to do all this, but I think Google is
  simply not interested in improving LVL to work *with* the market.

  I'd be interested in developing a solution as well.
  What I was looking for was paid levels of license (all LVL would
  really need to do is return a licensing level instead of a boolean).

  - Brill Pappin

  On Jan 5, 7:27 pm, andfan22 andfa...@gmail.com wrote:

   Hi all

   Just wondering if I can use LVL to check that the user is licensed to
   use a DIFFERENT app from the current one -- ie. one with a different
   package name.

   Why would I want to do this?  I'm developing an app which I'm
   considering publishing using a free + pro license model.  The main app
   would be a free, ad supported app.  To turn off ads the user would
   purchase a pro license key from the market (published as a paid app
   containing no functionality).  The user would continune to use the app
   that was downloaded for free, which checks if the paid app is
   installed, and if so it disables ads.   I prefer this model to a fully
   featured paid app model, as it eliminates the need to migrate data
   from the free version to the paid when the user upgrades.

   Under this model I would like the free app to check if the paid app is
   installed, and if so the free app would then use LVL to check if the
   user has purchased the paid app via the market.  Will it be possible
   for the free app to pass the package name of the paid app to LVL, and
   to get back a result confirming whether the paid app has been
   purchased or not?

   Looking at the LVL source code I suspect I can do this by modifying
   the constructor of LicenseChecker to set mPAckageName to a supplied
   argument rather than setting it to mContext.getPackageName().

   Are there any gotcha's I may be missing?

   Thanks ...- Hide quoted text -

  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread Brill Pappin
No, you don't remove LVL so its still used to check the market.

BTW - I'm not sure I completely agree with Zsolt on the modification.
Fine to modify the library a little, but a non security/encryption expert is 
likely to make easy holes in such a library, particularly messing with 
the algorithms.
The fact is that a determined cracker is going to get at your app no matter 
what you do.

No, the idea is simply to use the LVL in the normal way, but communicate 
with the paid version in another way.
Changes to LVL won't break it ether.

- Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread John Gaby
Interesting idea, but I do not believe that the Market will let you
publish a free app which asks for CHECK_LICENSE permissions, so I
don't think that your free app will not be allowed to use LVL.


On Jan 6, 7:41 am, Brill Pappin br...@pappin.ca wrote:
 No, you don't remove LVL so its still used to check the market.

 BTW - I'm not sure I completely agree with Zsolt on the modification.
 Fine to modify the library a little, but a non security/encryption expert is
 likely to make easy holes in such a library, particularly messing with
 the algorithms.
 The fact is that a determined cracker is going to get at your app no matter
 what you do.

 No, the idea is simply to use the LVL in the normal way, but communicate
 with the paid version in another way.
 Changes to LVL won't break it ether.

 - Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread Brill Pappin
I'm not positive about this, but I think LVL actually does allow free apps, and 
it always return true (free apps are always licensed).



- Brill Pappin

On 2011-01-06, at 12:26 PM, John Gaby jg...@gabysoft.com wrote:

 Interesting idea, but I do not believe that the Market will let you
 publish a free app which asks for CHECK_LICENSE permissions, so I
 don't think that your free app will not be allowed to use LVL.
 
 
 On Jan 6, 7:41 am, Brill Pappin br...@pappin.ca wrote:
 No, you don't remove LVL so its still used to check the market.
 
 BTW - I'm not sure I completely agree with Zsolt on the modification.
 Fine to modify the library a little, but a non security/encryption expert is
 likely to make easy holes in such a library, particularly messing with
 the algorithms.
 The fact is that a determined cracker is going to get at your app no matter
 what you do.
 
 No, the idea is simply to use the LVL in the normal way, but communicate
 with the paid version in another way.
 Changes to LVL won't break it ether.
 
 - Brill Pappin
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread Nathan
I'm developing an app which I'm
considering publishing using a free + pro license model.

I'm going to pass on some good advice I got from here.

Don't do it. The users don't understand the free + license model.

As amazing as this sounds, there will be people who buy your paid app
before installing the free version. And there will be people who
uninstall your free version, since they are about to buy the paid
version.

Both of them will wonder why they paid for a Pro version and it
doesn't show up - or do anything. They'll be asking you about this, or
hitting the refund button.

Meanwhile, the others will complain that there are two icons once
they've installed the license. To be nice, you'll take away the extra
icon, and the first group will be even more mystified.

I did the free + license app model. I switched over to demo and paid.
I did this just in time. With the 15 minute refund period, I would be
getting gobs of refunds.

It's more of a pain for you to build and update two products, and a
bit of a pain to transfer preferences. But it makes more sense for the
users, and is less of a pain then trying to explain it.

Nathan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread Brill Pappin
Hmm... this gives me an idea.

in one of my apps I require the Barcode Scanner app.
It has a built in request that the user install a dependency.
example from Barcode Scanner:

AlertDialog dialog = IntentIntegrator

.initiateScan(YOURLOCALCONTEXT);
if (dialog != null) {
Log.d(TAG, The user was asked 
to install Barcode Scanner app.);
}

you might be able to use that kind of feature for this, so that if they install 
the paid version first, it automatically prompts them to download the main 
component.

It would work the other way as well. if a user tries to use a feature that is 
only available for the paid version, they are prompted to install the 
licensing app.

It's fairly easy to build an app that doesn't have a launcher icon, i.e. a 
content provider or service...
However I've found with my IME that if the user doesn't see a launcher icon, 
they get upset. 
So i added a launcher icon for my IME that simply has instructions and support 
contacts and I've got a lot less uninstalls and negative ratings... a 
noticeable amount. I still do get a few who don't read even the main marketing 
material but there is not much i can do about ID10T errors.

- Brill Pappin



On 2011-01-06, at 1:31 PM, Nathan wrote:

 I'm developing an app which I'm
 considering publishing using a free + pro license model.
 
 I'm going to pass on some good advice I got from here.
 
 Don't do it. The users don't understand the free + license model.
 
 As amazing as this sounds, there will be people who buy your paid app
 before installing the free version. And there will be people who
 uninstall your free version, since they are about to buy the paid
 version.
 
 Both of them will wonder why they paid for a Pro version and it
 doesn't show up - or do anything. They'll be asking you about this, or
 hitting the refund button.
 
 Meanwhile, the others will complain that there are two icons once
 they've installed the license. To be nice, you'll take away the extra
 icon, and the first group will be even more mystified.
 
 I did the free + license app model. I switched over to demo and paid.
 I did this just in time. With the 15 minute refund period, I would be
 getting gobs of refunds.
 
 It's more of a pain for you to build and update two products, and a
 bit of a pain to transfer preferences. But it makes more sense for the
 users, and is less of a pain then trying to explain it.
 
 Nathan
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread Zsolt Vasvari
 BTW - I'm not sure I completely agree with Zsolt on the modification.

So you don't agree with Google on the modification?  It's not coming
from me, it's coming from Google.  I showed you the link.

Obviously, you wouldn't change the algorithm, just how the code is
integrated/organized.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: LVL: possible to check license for a different app?

2011-01-06 Thread Brill Pappin
No, I don't automatically agree with what I'm told simply because I'm told it, 
Google or not :) more of us need to think for ourselves if your asking my 
opinion.

However it's obvious what they are suggesting and why. It might even work to a 
degree, though I think it would be of limited help because there are at least 
two (likely more) bottlenecks where the system could be spoofed.

The fact is that if someone wants to get at your code, they will. No system of 
this nature can be perfectly secure. Goodness knows Apple has tried with the 
iPhone and they are in a much better position to do it if it was possible.

That doesn't mean we should not try to secure our work, just that we need to 
include breakage (if I might borrow a term from retail and manufacture) in 
our estimates.  


- Brill Pappin

On 2011-01-06, at 7:04 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 BTW - I'm not sure I completely agree with Zsolt on the modification.
 
 So you don't agree with Google on the modification?  It's not coming
 from me, it's coming from Google.  I showed you the link.
 
 Obviously, you wouldn't change the algorithm, just how the code is
 integrated/organized.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-05 Thread Brill Pappin
I like that concept... it would certainly save me some hassle :)

But, you maybe don't need to modify the LVL classes.

All you really need is some way to check that they paid for something.
Why not set up a content provider that contains the license details
(you could actually do multiple levels of license then) and simply
fail gracefully if the provider was not present?

Another way would be to have the paid app write the license key to a
shared preferences location when run.

I agree that LVL should be able to do all this, but I think Google is
simply not interested in improving LVL to work *with* the market.

I'd be interested in developing a solution as well.
What I was looking for was paid levels of license (all LVL would
really need to do is return a licensing level instead of a boolean).

- Brill Pappin

On Jan 5, 7:27 pm, andfan22 andfa...@gmail.com wrote:
 Hi all

 Just wondering if I can use LVL to check that the user is licensed to
 use a DIFFERENT app from the current one -- ie. one with a different
 package name.

 Why would I want to do this?  I'm developing an app which I'm
 considering publishing using a free + pro license model.  The main app
 would be a free, ad supported app.  To turn off ads the user would
 purchase a pro license key from the market (published as a paid app
 containing no functionality).  The user would continune to use the app
 that was downloaded for free, which checks if the paid app is
 installed, and if so it disables ads.   I prefer this model to a fully
 featured paid app model, as it eliminates the need to migrate data
 from the free version to the paid when the user upgrades.

 Under this model I would like the free app to check if the paid app is
 installed, and if so the free app would then use LVL to check if the
 user has purchased the paid app via the market.  Will it be possible
 for the free app to pass the package name of the paid app to LVL, and
 to get back a result confirming whether the paid app has been
 purchased or not?

 Looking at the LVL source code I suspect I can do this by modifying
 the constructor of LicenseChecker to set mPAckageName to a supplied
 argument rather than setting it to mContext.getPackageName().

 Are there any gotcha's I may be missing?

 Thanks ...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: LVL: possible to check license for a different app?

2011-01-05 Thread Zsolt Vasvari
You absolutely want to modify the LVL classes.  Not modifing your
class is an invitation for automated cracking of your app.

http://android-developers.blogspot.com/2010/09/securing-android-lvl-applications.html



On Jan 6, 2:27 pm, Brill Pappin br...@pappin.ca wrote:
 I like that concept... it would certainly save me some hassle :)

 But, you maybe don't need to modify the LVL classes.

 All you really need is some way to check that they paid for something.
 Why not set up a content provider that contains the license details
 (you could actually do multiple levels of license then) and simply
 fail gracefully if the provider was not present?

 Another way would be to have the paid app write the license key to a
 shared preferences location when run.

 I agree that LVL should be able to do all this, but I think Google is
 simply not interested in improving LVL to work *with* the market.

 I'd be interested in developing a solution as well.
 What I was looking for was paid levels of license (all LVL would
 really need to do is return a licensing level instead of a boolean).

 - Brill Pappin

 On Jan 5, 7:27 pm, andfan22 andfa...@gmail.com wrote:



  Hi all

  Just wondering if I can use LVL to check that the user is licensed to
  use a DIFFERENT app from the current one -- ie. one with a different
  package name.

  Why would I want to do this?  I'm developing an app which I'm
  considering publishing using a free + pro license model.  The main app
  would be a free, ad supported app.  To turn off ads the user would
  purchase a pro license key from the market (published as a paid app
  containing no functionality).  The user would continune to use the app
  that was downloaded for free, which checks if the paid app is
  installed, and if so it disables ads.   I prefer this model to a fully
  featured paid app model, as it eliminates the need to migrate data
  from the free version to the paid when the user upgrades.

  Under this model I would like the free app to check if the paid app is
  installed, and if so the free app would then use LVL to check if the
  user has purchased the paid app via the market.  Will it be possible
  for the free app to pass the package name of the paid app to LVL, and
  to get back a result confirming whether the paid app has been
  purchased or not?

  Looking at the LVL source code I suspect I can do this by modifying
  the constructor of LicenseChecker to set mPAckageName to a supplied
  argument rather than setting it to mContext.getPackageName().

  Are there any gotcha's I may be missing?

  Thanks ...- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: LVL: possible to check license for a different app?

2011-01-05 Thread Brill Pappin
You miss my point.  I'm saying don't depend on LVL for this feature.  



Sent from my Acer Android device

Zsolt Vasvari zvasv...@gmail.com wrote:

You absolutely want to modify the LVL classes.  Not modifing your
class is an invitation for automated cracking of your app.

http://android-developers.blogspot.com/2010/09/securing-android-lvl-applications.html



On Jan 6, 2:27 pm, Brill Pappin br...@pappin.ca wrote:
 I like that concept... it would certainly save me some hassle :)

 But, you maybe don't need to modify the LVL classes.

 All you really need is some way to check that they paid for something.
 Why not set up a content provider that contains the license details
 (you could actually do multiple levels of license then) and simply
 fail gracefully if the provider was not present?

 Another way would be to have the paid app write the license key to a
 shared preferences location when run.

 I agree that LVL should be able to do all this, but I think Google is
 simply not interested in improving LVL to work *with* the market.

 I'd be interested in developing a solution as well.
 What I was looking for was paid levels of license (all LVL would
 really need to do is return a licensing level instead of a boolean).

 - Brill Pappin

 On Jan 5, 7:27 pm, andfan22 andfa...@gmail.com wrote:



  Hi all

  Just wondering if I can use LVL to check that the user is licensed to
  use a DIFFERENT app from the current one -- ie. one with a different
  package name.

  Why would I want to do this?  I'm developing an app which I'm
  considering publishing using a free + pro license model.  The main app
  would be a free, ad supported app.  To turn off ads the user would
  purchase a pro license key from the market (published as a paid app
  containing no functionality).  The user would continune to use the app
  that was downloaded for free, which checks if the paid app is
  installed, and if so it disables ads.   I prefer this model to a fully
  featured paid app model, as it eliminates the need to migrate data
  from the free version to the paid when the user upgrades.

  Under this model I would like the free app to check if the paid app is
  installed, and if so the free app would then use LVL to check if the
  user has purchased the paid app via the market.  Will it be possible
  for the free app to pass the package name of the paid app to LVL, and
  to get back a result confirming whether the paid app has been
  purchased or not?

  Looking at the LVL source code I suspect I can do this by modifying
  the constructor of LicenseChecker to set mPAckageName to a supplied
  argument rather than setting it to mContext.getPackageName().

  Are there any gotcha's I may be missing?

  Thanks ...- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en