Questions about removing permissions from APK?

0 favourites
  • 4 posts
  • I followed tutorial about removing unnecessary permissions from an apk, I used the older apktool that he included in the tutorial on an apk compiled with 2.0.2, but noticed after the fact he stated in the comments that a newer version of the apk tool was needed for 2.0.2 compiles. I tested the apk on a device and everything was working correctly, and wanted to see if I could upload to google play, when I uploaded the file it told me that my apk was using services that only work on api level 9+ and I need to change the minsdk to 9 in the manifest, which is a quick fix and would just not support Froyo devices. Not sure exactly why I get this warning on the recompiled apk after removing a couple permissions, is it because I'm using the old apktool he had on the tutorial? Anybody encountered any problems with 2.0.2 compiles using the old apk tool from the tutorial?

  • Because you need to set the minimum Android version when you compile with CJS.

    You can just change the variable in Manifest.xml when you decompile, you will see a line on top like so:

    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />

    Change the minSdkVersion to 9+ or whatever you need and build it again with apktool.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Because you need to set the minimum Android version when you compile with CJS.

    You can just change the variable in Manifest.xml when you decompile, you will see a line on top like so:

    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />

    Change the minSdkVersion to 9+ or whatever you need and build it again with apktool.

    Thanks for the quick reply , yeah I already recompiled with the corrected manifest before that last post, I was just wondering why you were recommeneding a new apktool version for 2.0.2 compiled apps, if there were any problems that were encountered used the version of apktool you uploaded with 2.0.2 compiles.

  • > Because you need to set the minimum Android version when you compile with CJS.

    >

    > You can just change the variable in Manifest.xml when you decompile, you will see a line on top like so:

    >

    > <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />

    >

    > Change the minSdkVersion to 9+ or whatever you need and build it again with apktool.

    >

    Thanks for the quick reply , yeah I already recompiled with the corrected manifest before that last post, I was just wondering why you were recommeneding a new apktool version for 2.0.2 compiled apps, if there were any problems that were encountered used the version of apktool you uploaded with 2.0.2 compiles.

    Some users couldn't build after a recompile with the older apktool. The apktool I posted works fine for me for 2.0.2, but it does not work for Intel XDK built APKs.

    So just use whatever works for you, its all the same in the end. Glad it works fine for you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)