Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Adobe AIR ignores Android uses-sdk in the manifest

New Here ,
Apr 08, 2013 Apr 08, 2013

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>

TOPICS
Development
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 09, 2013 Apr 09, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 09, 2013 Apr 09, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 10, 2013 Apr 10, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 30, 2017 Sep 30, 2017
LATEST

Thanks air_guide, this is exactly right. I've just wasted a few hours trying to work out where these values had gone in the AndroidManifest!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines