Android Question Android 6 new permission system?

ilan

Expert
Licensed User
Longtime User
hi

i would like to use my app with android 6 too and i heard i need to make changes to the manifest file but how?

what should i do to use my app also on android 6 but without making any problems for older android version?

this is my manifest:

AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
SetApplicationAttribute(android:largeHeap,"true")
AddPermission(android.permission.READ_PHONE_STATE)
AddPermission(android.permission.RECORD_AUDIO)
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.PROCESS_OUTGOING_CALLS)
AddPermission("android.permission.READ_CONTACTS")
AddReceiverText(callrecsag,
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>)
AddReceiverText(callrecsag,
<intent-filter>
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>)
'End of default text.

'AdMob
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
 

ilan

Expert
Licensed User
Longtime User
i am working on an call recorder now and it seems like its not working on android 6

the recorder does not start recording

on my phone it is working (5.1) so it should not be a problem of android 6?
 
Last edited:
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Looks good ( though did not record a call)

Screenshot_2016-05-27-09-02-21.png Screenshot_2016-05-27-09-02-32.png
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
ok 4 (android 6 users) tried my call recorder and none worked, is there something i can do to make it work??

(the question is if the audio recording is not working or the android.intent.action.PHONE_STATE needs a manual permission?)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
so it seems like it is not possible for now.

unfortunately Android 6 seem to have changed this and access to VOICE_CALL audio now requires CAPTURE_AUDIO_OUTPUT which only available system apps that come with your phone

thanx @Erel :)
 
Upvote 0
Top