New TalkBack package

This commit is contained in:
Pierre Rudloff 2018-03-31 13:14:12 +02:00
parent 4b40d5c0e7
commit b9d60fd44d
2 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,36 @@
Categories:System
License:Apache-2.0
Web Site:https://support.google.com/accessibility/android/answer/6283677?hl=en
Source Code:https://github.com/google/talkback
Issue Tracker:
Auto Name:TalkBack
Summary:Accessibility improvements
Description:
TalkBack is an Accessibility Service that helps blind and vision-impaired users
interact with their devices more easily.
This application adds spoken, audible, and vibration feedback to your device.
It comes pre-installed on many devices so you won't be able to install this if
that is the case.
It's only activated if you explicitly turn on Accessibility:
# Go to Settings
# Select Accessibility
# Enable TalkBack checkboxes
.
Repo Type:git
Repo:https://github.com/google/talkback.git
Build:5.0.7_aosp,50007000
commit=12bdf2063e121a021f050c94cf5ebb2489c8af8a
patch=play-services-50007000.patch
gradle=yes
output=build/outputs/apk/com.android.talkback-aosp-release.apk
prebuild=rm libs/*.jar
Auto Update Mode:None
Update Check Mode:None

View file

@ -0,0 +1,73 @@
diff --git a/base.gradle b/base.gradle
index 228d859..441df5a 100644
--- a/base.gradle
+++ b/base.gradle
@@ -15,10 +15,6 @@ buildscript {
repositories {
mavenCentral()
- maven {
- // TODO: Remove this after support library v24 public release.
- url "$rootDir/prebuilts/fullsdk/extras/android/m2repository"
- }
}
android {
diff --git a/build.gradle b/build.gradle
index ffb4460..8ea8d2c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,7 +27,6 @@ android {
}
dependencies {
- compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:support-v4:24.0.0'
}
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index 04948e9..9532e39 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -282,10 +282,6 @@
android:directBootAware="true"
android:enabled="@bool/atLeastL" >
</activity>
-
- <meta-data
- android:name="com.google.android.gms.version"
- android:value="@integer/google_play_services_version" />
</application>
</manifest>
diff --git a/src/main/java/com/android/talkback/TalkBackPreferencesActivity.java b/src/main/java/com/android/talkback/TalkBackPreferencesActivity.java
index ba3bd6b..781e1c5 100644
--- a/src/main/java/com/android/talkback/TalkBackPreferencesActivity.java
+++ b/src/main/java/com/android/talkback/TalkBackPreferencesActivity.java
@@ -61,8 +61,6 @@ import com.android.utils.AccessibilityEventUtils;
import com.android.utils.LogUtils;
import com.android.utils.PackageManagerUtils;
import com.android.utils.SharedPreferencesUtils;
-import com.google.android.gms.common.ConnectionResult;
-import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.marvin.talkback.TalkBackService;
import java.util.HashSet;
@@ -957,17 +955,6 @@ public class TalkBackPreferencesActivity extends Activity {
return;
}
- if (GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity)
- != ConnectionResult.SUCCESS) {
- // Not needed, but playing safe since this is hard to test outside of China
- playStoreButton.setIntent(null);
- final PreferenceGroup category = (PreferenceGroup)
- findPreferenceByResId(R.string.pref_category_miscellaneous_key);
- if (category != null) {
- category.removePreference(playStoreButton);
- }
- }
-
if (playStoreButton.getIntent() != null &&
activity.getPackageManager().queryIntentActivities(
playStoreButton.getIntent(), 0).size() == 0) {