Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Yes, thats true. This field doesn't make into the AndroidManifest in the final APK.
Copy link to clipboard
Copied
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!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now