update targetSdkVersion to 35 in all projects

targetSdkVersion should be set to the highest available version.
Otherwise, AGDKTunnel used to cause warnings about obsolete application
being installed.

Also this CL fixes AndroidManifest.xml files because any application
that has Activity now has to specify this: android:exported="true"

Test: run AGDKTunnel
Bug: N/A
Change-Id: I9252a98d28a07e2815b7cdbd465d8d2efddd8eba
diff --git a/game-activity/build.gradle b/game-activity/build.gradle
index 07c9fbe..4c2d9ad 100644
--- a/game-activity/build.gradle
+++ b/game-activity/build.gradle
@@ -9,7 +9,7 @@
 
     defaultConfig {
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
 
diff --git a/game-text-input/build.gradle b/game-text-input/build.gradle
index 06bc565..d6f46f7 100644
--- a/game-text-input/build.gradle
+++ b/game-text-input/build.gradle
@@ -11,7 +11,7 @@
 
     defaultConfig {
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
 
diff --git a/games-controller/build.gradle b/games-controller/build.gradle
index 8e742b9..dd34e31 100644
--- a/games-controller/build.gradle
+++ b/games-controller/build.gradle
@@ -28,7 +28,7 @@
     defaultConfig {
         minSdkVersion 19
         compileSdkVersion 31
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.1"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/games-frame-pacing/build.gradle b/games-frame-pacing/build.gradle
index 2c44cf0..0b8a9d9 100644
--- a/games-frame-pacing/build.gradle
+++ b/games-frame-pacing/build.gradle
@@ -30,7 +30,7 @@
     defaultConfig {
         minSdkVersion 19
         compileSdkVersion 31
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.1"
 
diff --git a/games-frame-pacing/extras/build.gradle b/games-frame-pacing/extras/build.gradle
index 0ec473b..e9e0d89 100644
--- a/games-frame-pacing/extras/build.gradle
+++ b/games-frame-pacing/extras/build.gradle
@@ -7,7 +7,7 @@
     compileSdkVersion 31
     defaultConfig {
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/games-memory-advice/build.gradle b/games-memory-advice/build.gradle
index 6bf141c..4eeb050 100644
--- a/games-memory-advice/build.gradle
+++ b/games-memory-advice/build.gradle
@@ -24,7 +24,7 @@
     defaultConfig {
         minSdkVersion 19
         compileSdkVersion 31
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.1"
 
@@ -93,4 +93,4 @@
 
 repositories {
     mavenCentral()
-}
\ No newline at end of file
+}
diff --git a/games-performance-tuner/build.gradle b/games-performance-tuner/build.gradle
index 4351189..bc2391c 100644
--- a/games-performance-tuner/build.gradle
+++ b/games-performance-tuner/build.gradle
@@ -24,7 +24,7 @@
     defaultConfig {
         minSdkVersion 19
         compileSdkVersion 31
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.1"
 
diff --git a/samples/agdktunnel/app/build.gradle b/samples/agdktunnel/app/build.gradle
index 5aae97d..7f2f3dd 100644
--- a/samples/agdktunnel/app/build.gradle
+++ b/samples/agdktunnel/app/build.gradle
@@ -33,7 +33,7 @@
     defaultConfig {
         applicationId 'com.google.sample.agdktunnel'
         minSdkVersion 24
-        targetSdkVersion 30
+        targetSdkVersion 35
         versionCode     1
         versionName    '1.0.3'
 
diff --git a/samples/agdktunnel/app/src/main/AndroidManifest.xml b/samples/agdktunnel/app/src/main/AndroidManifest.xml
index 662744c..4574cea 100644
--- a/samples/agdktunnel/app/src/main/AndroidManifest.xml
+++ b/samples/agdktunnel/app/src/main/AndroidManifest.xml
@@ -31,6 +31,7 @@
     <meta-data android:name="com.google.android.gms.games.APP_ID"
         android:value="@string/game_services_project_id"/>
     <activity android:name=".AGDKTunnelActivity"
+        android:exported="true"
         android:label="@string/app_name"
         android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
         android:screenOrientation="sensorLandscape"
diff --git a/samples/bouncyball/app/build.gradle b/samples/bouncyball/app/build.gradle
index b66cf72..7e57c2a 100644
--- a/samples/bouncyball/app/build.gradle
+++ b/samples/bouncyball/app/build.gradle
@@ -6,7 +6,7 @@
     defaultConfig {
         applicationId "com.prefabulated.swappy"
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 4
         versionName "1.1.2"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/samples/game_controller/gameactivity/app/build.gradle b/samples/game_controller/gameactivity/app/build.gradle
index 8d12989..9dbe30b 100644
--- a/samples/game_controller/gameactivity/app/build.gradle
+++ b/samples/game_controller/gameactivity/app/build.gradle
@@ -23,7 +23,7 @@
     defaultConfig {
         applicationId 'com.google.android.games.paddleboat.gamecontrollersample'
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode     2
         versionName    '1.1'
         externalNativeBuild {
diff --git a/samples/game_controller/nativeactivity/app/build.gradle b/samples/game_controller/nativeactivity/app/build.gradle
index 9a46fb7..cf1559a 100644
--- a/samples/game_controller/nativeactivity/app/build.gradle
+++ b/samples/game_controller/nativeactivity/app/build.gradle
@@ -23,7 +23,7 @@
     defaultConfig {
         applicationId 'com.google.android.games.paddleboat.gamecontrollersample'
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode     2
         versionName    '1.1'
         externalNativeBuild {
diff --git a/samples/game_text_input/game_text_input_testbed/app/build.gradle b/samples/game_text_input/game_text_input_testbed/app/build.gradle
index 7c77d69..60d632a 100644
--- a/samples/game_text_input/game_text_input_testbed/app/build.gradle
+++ b/samples/game_text_input/game_text_input_testbed/app/build.gradle
@@ -3,12 +3,12 @@
 }
 
 android {
-    compileSdkVersion 30
+    compileSdkVersion 34
 
     defaultConfig {
         applicationId "com.gametextinput.testbed"
         minSdkVersion 19
-        targetSdkVersion 30
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
 
diff --git a/samples/game_text_input/game_text_input_testbed/app/src/main/AndroidManifest.xml b/samples/game_text_input/game_text_input_testbed/app/src/main/AndroidManifest.xml
index b8304ef..fd32d57 100644
--- a/samples/game_text_input/game_text_input_testbed/app/src/main/AndroidManifest.xml
+++ b/samples/game_text_input/game_text_input_testbed/app/src/main/AndroidManifest.xml
@@ -9,7 +9,10 @@
         android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:theme="@style/Theme.GameTextInputTestbed">
-        <activity android:name=".MainActivity">
+
+        <activity android:name=".MainActivity"
+          android:exported="true"
+          >
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
 
@@ -18,4 +21,4 @@
         </activity>
     </application>
 
-</manifest>
\ No newline at end of file
+</manifest>
diff --git a/samples/memory_advice/hogger/app/build.gradle b/samples/memory_advice/hogger/app/build.gradle
index 778e367..9fd6e39 100644
--- a/samples/memory_advice/hogger/app/build.gradle
+++ b/samples/memory_advice/hogger/app/build.gradle
@@ -9,7 +9,7 @@
     defaultConfig {
         applicationId "com.memory_advice.hogger"
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 17
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -48,4 +48,4 @@
     implementation 'com.google.android.material:material:1.1.0'
     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
     implementation project(':games-memory-advice')
-}
\ No newline at end of file
+}
diff --git a/samples/memory_advice/java_lib_sample/app/build.gradle b/samples/memory_advice/java_lib_sample/app/build.gradle
index cf07de6..7719ef6 100644
--- a/samples/memory_advice/java_lib_sample/app/build.gradle
+++ b/samples/memory_advice/java_lib_sample/app/build.gradle
@@ -7,7 +7,7 @@
     defaultConfig {
         applicationId "com.google.android.apps.internal.games.memoryadvice_exampleclient"
         minSdkVersion 21
-        targetSdkVersion 29
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
     }
diff --git a/samples/tuningfork/experimentsdemo/app/build.gradle b/samples/tuningfork/experimentsdemo/app/build.gradle
index 12bfb3e..8772106 100644
--- a/samples/tuningfork/experimentsdemo/app/build.gradle
+++ b/samples/tuningfork/experimentsdemo/app/build.gradle
@@ -8,7 +8,7 @@
     defaultConfig {
         applicationId "com.tuningfork.experimentsdemo"
         minSdkVersion 19
-        targetSdkVersion 28
+        targetSdkVersion 35
         versionCode 17
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/samples/tuningfork/experimentsdemo/app/src/main/AndroidManifest.xml b/samples/tuningfork/experimentsdemo/app/src/main/AndroidManifest.xml
index 3a53061..4cf4c72 100644
--- a/samples/tuningfork/experimentsdemo/app/src/main/AndroidManifest.xml
+++ b/samples/tuningfork/experimentsdemo/app/src/main/AndroidManifest.xml
@@ -9,11 +9,12 @@
         android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:theme="@style/AppTheme"
-    	android:usesCleartextTraffic="true"
+        android:usesCleartextTraffic="true"
         tools:ignore="GoogleAppIndexingWarning"
         tools:targetApi="28">
     <activity
         android:name=".TFTestActivity"
+        android:exported="true"
         android:screenOrientation="portrait">
         <intent-filter>
             <action android:name="android.intent.action.MAIN" />
diff --git a/samples/tuningfork/insightsdemo/app/build.gradle b/samples/tuningfork/insightsdemo/app/build.gradle
index 33968a0..0234644 100644
--- a/samples/tuningfork/insightsdemo/app/build.gradle
+++ b/samples/tuningfork/insightsdemo/app/build.gradle
@@ -10,7 +10,7 @@
     defaultConfig {
         applicationId "com.tuningfork.insightsdemo"
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 31
         versionName "1.0.2"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/test/memory_advice/testapp/app/build.gradle b/test/memory_advice/testapp/app/build.gradle
index 8a250c9..bc4bb6e 100644
--- a/test/memory_advice/testapp/app/build.gradle
+++ b/test/memory_advice/testapp/app/build.gradle
@@ -5,7 +5,7 @@
     defaultConfig {
         applicationId "com.memory_advice.testapp"
         minSdkVersion 15
-        targetSdkVersion 29
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/test/swappy/testapp/app/build.gradle b/test/swappy/testapp/app/build.gradle
index ae5a538..76ca760 100644
--- a/test/swappy/testapp/app/build.gradle
+++ b/test/swappy/testapp/app/build.gradle
@@ -5,7 +5,7 @@
     defaultConfig {
         applicationId "com.swappy.testapp"
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/test/tuningfork/metrics/app/build.gradle b/test/tuningfork/metrics/app/build.gradle
index f6366da..c8a4e78 100644
--- a/test/tuningfork/metrics/app/build.gradle
+++ b/test/tuningfork/metrics/app/build.gradle
@@ -9,7 +9,7 @@
     defaultConfig {
         applicationId "test.tuningfork.metricstest"
         minSdkVersion 21
-        targetSdkVersion 30
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
 
diff --git a/test/tuningfork/testapp/app/build.gradle b/test/tuningfork/testapp/app/build.gradle
index fe250f1..2cf371e 100644
--- a/test/tuningfork/testapp/app/build.gradle
+++ b/test/tuningfork/testapp/app/build.gradle
@@ -5,7 +5,7 @@
     defaultConfig {
         applicationId "com.tuningfork.testapp"
         minSdkVersion 19
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode 1
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/third_party/cube/app/build.gradle b/third_party/cube/app/build.gradle
index dc7b939..3bccaaf 100644
--- a/third_party/cube/app/build.gradle
+++ b/third_party/cube/app/build.gradle
@@ -27,7 +27,7 @@
     defaultConfig {
         applicationId 'com.samples.cube'
         minSdkVersion    24 // Official vulkan support starts in version 24
-        targetSdkVersion 31
+        targetSdkVersion 35
         versionCode  2
         versionName '0.0.2'
         externalNativeBuild {