Android app ID prefix issue

I am creating an Adobe Air application for Android, and I have a big problem, I published the application on the Android market using the old flash extension, which saved the application ID using the prefix 'app.'

Now that I have updated the extension, now it saves the application identifier with the prefix “air”.

This means that I can no longer post updates to my applications; so what can i do?

The problem with using the legacy extension is that after the update is published, the user cannot open the application until the cache files are cleared.

+3
source share
3 answers

, air.. Adobe AIR :

String optOut = System.getenv("AIR_NOANDROIDFLAIR");
if ((optOut == null) || (optOut.indexOf("true") == -1)) {
  packageName = "air." + packageName;
}

, AIR_NOANDROIDFLAIR true, air.. Google, windows mac .

, Mac/Linux, :

> export AIR_NOANDROIDFLAIR=true
> java -jar $AIR_HOME/lib/adt.jar -package -target apk-captive-runtime -storetype pkcs12 -keystore cert.p12 -storepass *** Main.apk Main-app.xml Main.swf

: , . - , ( AIR 3.8).

: Renaun Erickson , .

( , ).

+8

, - . , , .

, , , .

http://kb2.adobe.com/cps/875/cpsid_87562.html

, . , . , , , mycert.p12, adobe flash cs5. jarsigner (, ) , , . b/c, Android , , . , , (Windows Vista) , , MMC ( Start-Run-type MMC) , jarsigner . , - cert ... DENIED. , keytool -list, , md5 aes, , . , . , , .

: . , , . , , .

. http://forums.adobe.com/thread/800068?tstart=0

, . . . , . , .

.

0

, .
AIR SDK 15, Mac OSX 10.10 Yosemite. .

To view all options in adt.jar

java -jar $AIR_HOME/lib/adt.jar -help

To include ANE files, add -extdir

export AIR_NOANDROIDFLAIR=true
java -jar /FULL_PATH_TO_AIR_SDK/lib/adt.jar -package -target apk-captive-runtime -storetype pkcs12 -keystore <DEVELOPER>.p12 -storepass <PASSWORD> Main.apk Main-app.xml Main.swf -extdir /PATH_TO_ANE_DIRECTORY

Instead of a file .p12, if you have an existing android .keystore, use-storetype jks

java -jar /FULL_PATH_TO_AIR_SDK/lib/adt.jar -package -target apk-captive-runtime -storetype jks -keystore <DEVELOPER>.keystore -storepass <PASSWORD> Main.apk Main-app.xml Main.swf -extdir /PATH_TO_ANE_DIRECTORY

for instance

java -jar /Users/cforcloud/AIR_SDK/lib/adt.jar -package -target apk-captive-runtime -storetype jks -keystore /Users/cforcloud/android.keystore -storepass secretPassword Main.apk Main-app.xml Main.swf -extdir /Users/cforcloud/ane_directory

Find more such options for Android APK Packages and Android Settings

Thanks @JeffWard

0
source

Source: https://habr.com/ru/post/1795665/


All Articles