Skip to main content
Inspiring
October 17, 2011
Question

Adding Android Licensing with Flash Professional and AIR 3.0

  • October 17, 2011
  • 3 replies
  • 1667 views

I have done the overlay AIR 3 stuff, but I still can't find an answer on how to get Android Licensing Service implemented after days and days of searching. It is pretty poitless to package a paid Android app without the licensing check as it would just easily hand the app to unauthorized users to install it without a fight.

Do not post this absurd unhelpful link: http://www.adobe.com/devnet/air/articles/android-licensing-native-extensions.html

It is only instructions for the bizzare FlashBuilder tool, and is quite long winded and excessive as well

Android Licesnsing Service is listed as a feature of AIR 3. How do I enable or install it onto my app in Flash Professional.

This topic has been closed for replies.

3 replies

SirRookie
Inspiring
June 23, 2015

I have exatcly the same problem. Iäm almost tired with Android. Im developing for years and my APP is cracked a, just copied around the internet.

In Appstore its simple. I have my provisioning files with the certificates. I dont understand why it is so complicated on Android.

Please help I also have Flash Professional CC 2014

Participant
January 10, 2015

This is the ONLY person who has given a good Step-by-step tutorial of the process.

Air 3.0 Android Licensing Tutorial Project

And you can use the latest version of Air and get an android secured app.

!!!!!!!!!!!!!

Participating Frequently
October 17, 2011

The sample code in the article that you cite is how the feature is provided. It makes sense to provide only sample code because you should really take a unique approach to implementing the license library. Otherwise once someone broke Adobe's implementation, they would break it for all AIR apps. By using your own implementation, a hacker must break your specific app. See http://www.androidpolice.com/2010/08/23/exclusive-report-googles-android-market-license-verification-easily-circumvented-will-not-stop-pirates/ for some discussion about how effective the Android license system is.

Also, Flash Professional doesn't support AIR 3 yet. To use a native extension, you have to use the command line tools from the AIR 3 SDK.

FLAdudeAuthor
Inspiring
October 18, 2011

Hi, thanks for responding, Joe.

Yes, I do plan on customizing the implementation the best I can.

I am fine with using command line to build my project if needed, I just need it to work and need to know how to do it. I am very eager to get this finished up and published. It is very frustrating to have an app all ready for android after months upon months of working on it nonstop, but then get stuck on this.

I have been trying to get this all figured out the past several days. It is very confusing and there is barely any info out there on it.

I am using Eclipse to try and build this Java extension, as I have Flash Pro and not builder.

I have gotten the Jar created from the "Creating the Java project" step.

Now on the "Developing the ActionScript library."

It says to make a project and copy files form frameworks\projects\air\Licensing\Android\AndroidLicensingJavaProject\src\ which are java files, and do some stuff, then create a SWC from them.

I sort of suspect it was a typo in the article and is supposed to be frameworks\projects\air\Licensing\Android\AndroidLicensingLib\src\

seeing as it shows .as files in the project not .java.

Also it refers to what I think it means to be ExtensionContext as "ExternalContext," which does not appear to exist in flash.external on step 4 of 'Developing the ActionScript Library.'

So the article has some flaws, and should probably be rewritten and include instructions for the proper flash editor, Flash Professional.

Anyhow, I came up with a hack to build I SWC from Flash Pro which I hope will work.

I am trying to hack together a solution to get this all to work. It is very unpleasant having to guess and figure allot of things out myself. Is there going to be a proper solution in the future? If so, roughly how long will it be? I really need to get my projects published now or very soon, not a year or 6 months from now.

I tried to complie my project to build the SWF I need for packaging with the native extension and I get this error:

"Unexpected or unknown element or attribute in the application descriptor file.

/path-to-my-app/myappname-app.xml(49): error 103: application.android.extensions is an unexpected element/attribute"

I am also getting "Missing implementation for platform: Android-ARM" when I try to build the Native Extension. The person who has commented on the article ( http://www.adobe.com/devnet/air/articles/android-licensing-native-extensions.html , comments at the bottom of the page) has this very same problem.