FlashBuilder adds INTERNET permission even though it is not in my APP XML when building APK

允我心安 提交于 2019-12-25 02:19:28

问题


I have an Mobile AIR project in FlashBuilder 4.6(Using AIR 3.4) and I am having a real problem publishing an APK. Here is the section from my APP XML:

<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
</manifest>
]]></manifestAdditions>

For some reason, when I create an APK, the INTERNET permission is being tacked on the end of the manifest permissions block. Note that the application.xml in the asset/META-INF/AIR folder still looks correct.

Any ideas where I am going wrong?


回答1:


After a lot more searching, I found my own answer:

Note: When you bundle the runtime, ADT adds the INTERNET and BROADCAST_STICKY permissions to your application. These permissions are required by the AIR runtime.

BROADCAST_STICKY seems to no longer be required, but apparently when using captive runtime we cannot get around this.



来源:https://stackoverflow.com/questions/13039462/flashbuilder-adds-internet-permission-even-though-it-is-not-in-my-app-xml-when-b

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!