Add version code/name to submit

This commit is contained in:
M66B 2016-07-08 17:55:05 +02:00
parent e6a8a6b572
commit dceb2fd682
2 changed files with 3 additions and 2 deletions

3
FAQ.md
View File

@ -374,8 +374,7 @@ The following data will be shared:
* The [SHA256](https://en.wikipedia.org/wiki/SHA-2) hashed [Android ID](https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID)
* The [Android version](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html)
* The application package name
* The localized application name
* The application name and version
* Whether Wi-Fi and mobile connections will be blocked or allowed and which conditions apply (when screen on, roaming)
* Whether access attempts will be notified
* Which internet addresses (protocol, version, host, port) will be allowed and blocked

View File

@ -174,6 +174,8 @@ public class ServiceJob extends JobService {
// Add application data
bundle.putString("package", rule.info.packageName);
bundle.putInt("version_code", rule.info.versionCode);
bundle.putString("version_name", rule.info.versionName);
bundle.putString("label", rule.info.applicationInfo.loadLabel(pm).toString());
// Cancel overlapping jobs