Still looking for a (currently working) way to remove extra Android permissions

@mike470 - Would you mind sharing the correct link to download the unique apktool that so now works with Corona?

EDIT: Does it work on Mac?

Thanks,
Rodrigo. [import]uid: 89165 topic_id: 31086 reply_id: 124313[/import]

I always use apktool on Windows, so no idea about Mac (although they do have the ver for Mac)

http://forum.xda-developers.com/showthread.php?t=1755243

A little down it gives this link for apktool.jar: http://miui.connortumbleson.com/other/apktool/apktool_1.5.0.jar

And also says you need new aapt.exe - take the one for your OS.

I took those, replaced mine with it (renamed the apktool_1.5.0.jar to apktool.jar) and ran the normal removal stuff. Worked, and the resulting APK works now instead of crashing like it did before.

Make *sure* you replace the right files. For example, since I used the apktool scripts, I had those aapt.exe and apktool.jar files in two places. [import]uid: 160496 topic_id: 31086 reply_id: 124315[/import]

Yes, I did a decompile/recompile without making any changes.

I get the “This application encountered a Lua error (see logs) or has been corrupted” error.

I get the error on daily build 912 and the most recent public release 894. But it still works fine in 840 (even after I upgraded apktool to 1.5).

Did any of the other steps change? These are the steps I use in terminal:

[code]

apktool d ‘fileName.apk’ outputFolder
cd outputFolder
apktool b
cd
jarsigner -verbose -keystore keystoreName.keystore ‘outputFolder/dist/fileName.apk’ keyaliasName
–type in password
zipalign -v 4 ‘outputFolder/dist/fileName.apk’ ‘finalFileName.apk’

[/code] [import]uid: 94868 topic_id: 31086 reply_id: 124714[/import]

@mike470,

Really appreciate your explanation about this.

I`ll look carefully into this (for mac) and see if I get it to work as you did. :slight_smile:
Thanks,
Rodrigo. [import]uid: 89165 topic_id: 31086 reply_id: 124320[/import]

No, that’s exactly it, and this is exactly the error I was getting before 1.5.0…

Try a clean Mac that has no apktool yet… Install the new apktool on it and do this. If it works, that means yours has old files floating around somewhere. [import]uid: 160496 topic_id: 31086 reply_id: 124715[/import]

I never had an apktool before, and it worked fine for me. I did NOT use the replacement aapt, and I just invoked java on the apktool jar file directly. [import]uid: 143026 topic_id: 31086 reply_id: 124716[/import]

Alright, I’m jealous.

I can’t seem to get it to work. I am still running into that same lua error.

I’m on a mac.

I think I installed it correctly. Because when I run apktool, it says it is v1.5.

mike470, I know you mentioned you are on Windows, but where were the two places you had the apktool.jar and aapt files? [import]uid: 94868 topic_id: 31086 reply_id: 124570[/import]

One was in /Windows directory, the other was under the apktool scripting tool, in the “other” directory…

You can do a disk search, right? [import]uid: 160496 topic_id: 31086 reply_id: 124595[/import]

lol, yeah I did a search disk. But when you mentioned that I realized that the native mac search doesn’t actually search hidden files. So I found some other application to do that search, but that didn’t turn up any new files that I needed to replace.

So it would seem I replaced everything. Hmmm…

Well I’ll try it on some other projects later. And I’ll try setting it up on a Windows machine too, when I get a chance (maybe next week or so).

Thanks for the follow up. [import]uid: 94868 topic_id: 31086 reply_id: 124620[/import]

Hey, I know the frustration of not being able to use the latest build because of this.

Hopefully this will be good for a while. Until powers that be hopefully give us the option not to include all those things in the APK. It’s supposed to be on the “todo” list.

So - with 1.5.0 what doesn’t work for you? Did you try decompile/recompile without changing anything? How does the resulting APK fail - does it fail to install, or does it fail after install when started? With what message? [import]uid: 160496 topic_id: 31086 reply_id: 124628[/import]

So I was just about to try some of the other suggestions today. But, I wanted to do one last test to make sure it didn’t work and it seems… to be working now!

absolutely no idea why.

And right now I am not going to question it!

: )
[import]uid: 94868 topic_id: 31086 reply_id: 125056[/import]

Yes, I did a decompile/recompile without making any changes.

I get the “This application encountered a Lua error (see logs) or has been corrupted” error.

I get the error on daily build 912 and the most recent public release 894. But it still works fine in 840 (even after I upgraded apktool to 1.5).

Did any of the other steps change? These are the steps I use in terminal:

[code]

apktool d ‘fileName.apk’ outputFolder
cd outputFolder
apktool b
cd
jarsigner -verbose -keystore keystoreName.keystore ‘outputFolder/dist/fileName.apk’ keyaliasName
–type in password
zipalign -v 4 ‘outputFolder/dist/fileName.apk’ ‘finalFileName.apk’

[/code] [import]uid: 94868 topic_id: 31086 reply_id: 124714[/import]

No, that’s exactly it, and this is exactly the error I was getting before 1.5.0…

Try a clean Mac that has no apktool yet… Install the new apktool on it and do this. If it works, that means yours has old files floating around somewhere. [import]uid: 160496 topic_id: 31086 reply_id: 124715[/import]

I never had an apktool before, and it worked fine for me. I did NOT use the replacement aapt, and I just invoked java on the apktool jar file directly. [import]uid: 143026 topic_id: 31086 reply_id: 124716[/import]

Funny you should mention that – it stopped working for me!

So now if I build copies of my app, they actually don’t work… Whee. [import]uid: 143026 topic_id: 31086 reply_id: 125187[/import]

So I was just about to try some of the other suggestions today. But, I wanted to do one last test to make sure it didn’t work and it seems… to be working now!

absolutely no idea why.

And right now I am not going to question it!

: )
[import]uid: 94868 topic_id: 31086 reply_id: 125056[/import]

Funny you should mention that – it stopped working for me!

So now if I build copies of my app, they actually don’t work… Whee. [import]uid: 143026 topic_id: 31086 reply_id: 125187[/import]

I repackaged my app after installing the apktool & I still get the error asking for the contact list & network access. I’m using build 894.
Any help on getting this working again appreciated. [import]uid: 92238 topic_id: 31086 reply_id: 127014[/import]

Did you edit the AndroidManifest.xml? [import]uid: 160496 topic_id: 31086 reply_id: 127022[/import]

I repackaged my app after installing the apktool & I still get the error asking for the contact list & network access. I’m using build 894.
Any help on getting this working again appreciated. [import]uid: 92238 topic_id: 31086 reply_id: 127014[/import]