Skip to main content
Participating Frequently
April 9, 2013
Question

Adobe AIR ignores Android uses-sdk in the manifest

  • April 9, 2013
  • 1 reply
  • 2383 views

We're trying to set the uses-sdk setting on the Android Manifest. But Adobe AIR seems to be ignoring this and not copying it over. I have other custom items in the manifest, and they are being copied over. What am I doing wrong?

I've tried:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />

And this, which is straight from the docs: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffc.html

<uses-sdk android:minSdkVersion="8"></uses-sdk>

Our app descriptor looks like this. The uses-configuration gets included in the output manifest, but the uses-sdk is completely missing.

<android>

        <manifestAdditions><![CDATA[

                              <manifest android:installLocation="auto">

                                        <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />

                                        <uses-configuration android:reqTouchScreen="finger" />

                                        <supports-screens

                                                  android:smallScreens="false"

                                                  android:normalScreens="true"

                                                  android:largeScreens="true"

                                                  android:xlargeScreens="true"

                                                  android:anyDensity="true"/>

                                  <application>

                                      ...

                                          </application>

                              </manifest>

                    ]]></manifestAdditions>

    </android>

This topic has been closed for replies.

1 reply

Participating Frequently
April 9, 2013

If you are decoding the binary application.xml and searching for the minSdkVersion and targetSdkVersion version properties, then i am afraid you will not find them.

"apktool" used to reverse engineer APK files creates a file apktool.yaml which contains these values. 

Also could you please elaborate how do you think these values are being ignored?  Is there any API that you are not able to use.

Thanks,

Rajat

BioOdieAuthor
Participating Frequently
April 9, 2013

Yes! That is exactly where I was looking. I need to submit the Android Manifest to our company's certification team and they were looking for this field. But if it is being used in compile and removed, then I can just add it to that file I submit.

Thank you!

Participating Frequently
April 10, 2013

Yes, thats true. This field doesn't make into the AndroidManifest in the final APK.