Did you edit the AndroidManifest.xml? [import]uid: 160496 topic_id: 31086 reply_id: 127022[/import]
No, I didn’t. Thank you. I opened AndroidManifest.xml & it looks like I need to remove the following lines.
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
Is this correct?
If I remove all these states, what will happen to Corona Analytics?
I also downgraded my installation to 840. Is this required as well? [import]uid: 92238 topic_id: 31086 reply_id: 127272[/import]
You need to remove the analytics as well - put
launchPad = false,
in the application table in your config.lua.
apktool 1.5.0 should work with all builds of Corona, including the latest one. [import]uid: 160496 topic_id: 31086 reply_id: 127273[/import]
Removing the three lines from AndroidManifest.xml did the trick. I don’t know if my downgrade is required or if this affects Corona Analytics.
Much thanks to mike470. [import]uid: 92238 topic_id: 31086 reply_id: 127275[/import]
Thanks mike470. I’m curious: what will happen if you leave launchPad as the default (true, I think) & if you remove the network access?
If I want analytics, do I need the following two lines on?
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
[import]uid: 92238 topic_id: 31086 reply_id: 127276[/import]
svaradha - from this document - http://developer.android.com/guide/topics/security/permissions.html - I gather that if that permission is not granted to the app at install time (that is, if you remove those lines from the manifest XML file), the functionality will not be allowed. Since LaunchPad requires access to internet, when it tries to do so, it will probably error out. Whether that will crash the app or just generate some errors quietly, I don’t know. [import]uid: 160496 topic_id: 31086 reply_id: 127278[/import]
No, I didn’t. Thank you. I opened AndroidManifest.xml & it looks like I need to remove the following lines.
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
Is this correct?
If I remove all these states, what will happen to Corona Analytics?
I also downgraded my installation to 840. Is this required as well? [import]uid: 92238 topic_id: 31086 reply_id: 127272[/import]
You need to remove the analytics as well - put
launchPad = false,
in the application table in your config.lua.
apktool 1.5.0 should work with all builds of Corona, including the latest one. [import]uid: 160496 topic_id: 31086 reply_id: 127273[/import]
Removing the three lines from AndroidManifest.xml did the trick. I don’t know if my downgrade is required or if this affects Corona Analytics.
Much thanks to mike470. [import]uid: 92238 topic_id: 31086 reply_id: 127275[/import]
Thanks mike470. I’m curious: what will happen if you leave launchPad as the default (true, I think) & if you remove the network access?
If I want analytics, do I need the following two lines on?
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
[import]uid: 92238 topic_id: 31086 reply_id: 127276[/import]
svaradha - from this document - http://developer.android.com/guide/topics/security/permissions.html - I gather that if that permission is not granted to the app at install time (that is, if you remove those lines from the manifest XML file), the functionality will not be allowed. Since LaunchPad requires access to internet, when it tries to do so, it will probably error out. Whether that will crash the app or just generate some errors quietly, I don’t know. [import]uid: 160496 topic_id: 31086 reply_id: 127278[/import]
I thought I’d add one more bit to this thread that might help somebody out (it caused me hours of grief).
The apktool 1.5.0 appears to cause invalid apk’s when used with Java 1.7. Once I switched back to Java 1.6 everything worked as it should. If you have already upgraded to Java 1.7 it is a bit of a chore to remove it on OS X and go back to 1.6.
Helpful Uninstall links
https://discussions.apple.com/message/20051885#20051885
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
In case this is helpful, here is my environment:
Mac OSX 10.7.5
Corona Build 936
Java 1.6.0_37
android-sdk-macosx(r20.0.1)
apktool v1.5.0.5a056e3
Vizio VTAB1008 running Android 3.2.1
Kindle Fire HD 7" running Android 4.0
Additional apktool info:
http://connortumbleson.com/apktool-v1-4-5-a-tool-for-reverse-engineering-apk-files/
https://github.com/iBotPeaches/Apktool
http://forum.xda-developers.com/showthread.php?p=28366939
http://miui.connortumbleson.com/other/apktool/
http://www.ludicroussoftware.com/blog/2012/05/08/remove-unused-libraries-from-corona-apps/
[import]uid: 17130 topic_id: 31086 reply_id: 129507[/import]
It is not apktool only, dvboren. Corona in general does not work with Java 7… [import]uid: 160496 topic_id: 31086 reply_id: 129535[/import]
I thought I’d add one more bit to this thread that might help somebody out (it caused me hours of grief).
The apktool 1.5.0 appears to cause invalid apk’s when used with Java 1.7. Once I switched back to Java 1.6 everything worked as it should. If you have already upgraded to Java 1.7 it is a bit of a chore to remove it on OS X and go back to 1.6.
Helpful Uninstall links
https://discussions.apple.com/message/20051885#20051885
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
In case this is helpful, here is my environment:
Mac OSX 10.7.5
Corona Build 936
Java 1.6.0_37
android-sdk-macosx(r20.0.1)
apktool v1.5.0.5a056e3
Vizio VTAB1008 running Android 3.2.1
Kindle Fire HD 7" running Android 4.0
Additional apktool info:
http://connortumbleson.com/apktool-v1-4-5-a-tool-for-reverse-engineering-apk-files/
https://github.com/iBotPeaches/Apktool
http://forum.xda-developers.com/showthread.php?p=28366939
http://miui.connortumbleson.com/other/apktool/
http://www.ludicroussoftware.com/blog/2012/05/08/remove-unused-libraries-from-corona-apps/
[import]uid: 17130 topic_id: 31086 reply_id: 129507[/import]
It is not apktool only, dvboren. Corona in general does not work with Java 7… [import]uid: 160496 topic_id: 31086 reply_id: 129535[/import]