Skip to content

Commit

Permalink
[droid] Set Android 5.0 as minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnKaijser committed Apr 26, 2016
1 parent ded3cfc commit 9a1f2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/android/packaging/xbmc/AndroidManifest.xml.in
Expand Up @@ -5,7 +5,7 @@
android:versionCode="@APP_VERSION_CODE@"
android:versionName="@APP_VERSION@" >

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

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down

1 comment on commit 9a1f2df

@robcore
Copy link

@robcore robcore commented on 9a1f2df Jul 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of 5.0, <uses-permission android:name="android.permission.GET_TASKS" /> is deprecated and will no longer work as it used to. It will result in these log messages when included in your manifest:

W/ActivityManager( 1288): getTasks: caller 10165 does not hold REAL_GET_TASKS; limiting output

Unfortunately, there are only workarounds as opposed to comparable permissions, as its replacement "REAL_GET_TASKS" is a signature level permission restricted to either system apps or apps that share the same signature.

One semi workaround for platforms < 6.0 can be found here https://stackoverflow.com/questions/30619349/android-5-1-1-and-above-getrunningappprocesses-returns-my-application-packag/32366476#32366476

Good luck!

Please sign in to comment.