Why is my app requesting permissions for contacts, camera, etc?

Hello, please get back to me?

At this time, there is no option to remove these. That said, this should not prohibit you from publishing your app in most markets (I can only speak for the US market)

if you search the forms you will see other posts on this topic

Does that mean that I have to make a privacy thing? Is there anything that you can link me to help me make one?

here is a copy of my privacy policy

if you make edit this version and make your own, save it as a html file. make a google site and host it there. that’ll be the cheapest and easiest route.

1 Like

Do you mean a google sites like a google doc but on the sites thing? Thank you so much

yep! check out sites.google.com

Thank you! I have it working now. Just a quick question: how long does it normally take for the app to go on the Google Play store? I submitted my app and it said it was rolling out. This is my first time publishing an app to the Google Play store.

The first time you publish it may take a couple days. After that it should be get quick. When I update my app, it’s nearly instant after I upload the new apk. In my apple App Store account, the first approval took days. Every update takes around 8 hr to bublish after I submit

I’m getting the same error when I got to upload an app to the Play store.

"Error

Your app has an APK with version code 1 that requests the following permission(s): android.permission.CAMERA, android.permission.RECORD_AUDIO, android.permission.READ_PHONE_STATE, android.permission.READ_CONTACTS. Apps using these permissions in an APK are required to have a privacy policy set."

I don’t use those permissions and don’t want a privacy policy.

I haven’t spent MONTHS making an app to run into this. Please find a fix ASAP so I can actually release an app, or refund me, because Thunkable is useless if I can’t make apps and release them just because the use permissions my app doesn’t even need.

I keep running into brick walls with Thunkable and it’s starting to get beyond frustrating.

This needs an urgent fix and it was posted in December 2018 that “Long term” there would be a fix. 16 months is Long Term as far as most people are concerned…

Try www.iubenda.com

I found out a way to correct my app. But this is NOT recommended for those who are not willing to get stuck in with this etc. or understand what they are doing - but it’s not that difficult. Still, I can’t be held responsible if you do this and for some reason Google blocks this kind of upload in the future, or it causes any other problems for you, business, or your users etc.

Okay, disclaimer over!

Right, because I don’t believe in accepting the status-quo (at least for technology)…

I downloaded:

  • Java Development Kit (latest)
  • Android Studio (latest)
  • APK Editor Studio

(I first just got the APK Editor but the Keystore feature wasn’t working and I was getting an error so I got JDK and Android Studio to ensure everything works correctly!)

I then downloaded my Thunk APK making sure to add relevant version Numbers. I also Exported my Keystore and password (at the bottom of Thunk App Settings).


Obviously your key will have actual letters, mine is hidden as this will be a live app

Once you’ve installed all that and got your APK/ Keystore, open your APK with the editor and click the Shield icon (with a keyhole), which is the ‘Edit application permissions’ (or Ctrl+Shift+P)

apk-editor-1

Then use the permission browser to remove the 4 aforementioned permissions

  • android.permission.CAMERA,
  • android.permission.RECORD_AUDIO,
  • android.permission.READ_PHONE_STATE,
  • android.permission.READ_CONTACTS.

I also removed all the calendar ones, Bluetooth ones and the fingerprint one, and any others I felt shouldn’t be there, but that’s up to you and obviously depends on your app (so don’t remove anything you think you’ll need!). If unsure, don’t do this AT ALL…

Next you need to add your Keystore and password.

Click the key icon
apk-editor-3

by the way if you don’t have these icons click settings (three cogs on the left of the key), or click Settings > Options and you need to go to ‘Toolbar’, and drag the items to the left, that you want on the toolbar:

Now to add your existing keystore (click the Key icon or hit Ctrl+K)
keystore-editor

Now point the Keystore path to your downloaded Keystore from Thunk, and pop the password you get from the download put in both blue boxes I’ve highlighted. The Alias can be whatever you like.

Once you’re done here’s a step you ALMOST CERTAINLY SHOULDN’T DO. But I did because the size of the APK was 40mb for a app that had basically nothing except a few pngs and json files. Which is insane, and something I’ve been meaning to nag Thunkable about because Google cares about this (and i got my APK down to 25Mb!).
It even mentions this here: https://developer.android.com/platform/technology/app-bundle

Anyway, the next stage is removing some library files which are likley unneeded. This depends on the version of Android you are catering too and if you are creating internal apps for your business and have all your phones on a specific version of Android, you can likley go ahead with this.

Okay so in the Project Manager click the Open Contents button (Ctrl+E)

You’ll see an Explorer window open inside a directory in your temp folder, with some files that for your APK, one of them being lib, you’ll see it will be a large folder.

Open it and you’ll see a few more folders
lib-folder-2

I deleted

  • armeabi (because it’s for very old versions of Android I won’t be supporting)
  • x86 and
  • x86_64 (which are both more for desktop versions or possibly tablets).

I removed them on an assumption and please don’t remove them if you think you may need them or don’t know what they do. More info here: https://developer.android.com/ndk/guides/abis

A note on changing what versions of Android can use your app. On the right side of the APK editor is the Manifest. You can change what version you use here. I made mine 23, which is 6.0 Marshmallow. Again, not recommended if you think your app will be used by people with older phones (they won’t be able to install it).
apk-editor-manifest
Now you’re done and it’s time to save!

Once done hit save on the Project Manager (Ctrl+Alt+S)


there is of course a menu option for this, and most other commands I’ve mentioned…

Then save your app to the Desktop or a folder if you have one and upload it. Mine got down to 24Mb from about 38Mb, but I hope to reduce that in the future.

The warning triangle you see it to tell you that your APK is still too big and it doesn’t use all the code. But it’s still okay to submit to the Play store.

I also removed a bunch of Thunkable images from the assets folder, but they weren’t very big files so I didn’t include instruction.

Hope this helps someone! :blush::+1:

  • Did you use this instructional?

0 voters

5 Likes

2 posts were merged into an existing topic: Error permission read_phone_state while upload in google play store

Hey there - I really appreciate your guide to fixing this issue with Thunkable apps. I’ve had several apps now removed due to them requiring permissions by default that I do not even need. I followed the steps you posted and got everything to work but when I am uploading the new .apk file on my Google Play console, I get an error telling me the signature is not valid and I cannot upload the update. Do you have any time to chat directly about this? Thanks so much

1 Like

This worked for me on Enterprise / Managed Play Store. It could be that Google doesn’t like the new signature, I’m not sure why it doesn’t work.