この記事のポイント
- 「Android AICore」アプリv0.release.prod_aicore_20250918.00_RC05.812693481 アップデート後のアプリ内コードから、バックグラウンド処理の大幅な改善内容を発見
- Androidのバックグラウンドタスク実行 API「WorkManager」の実装に使用されていた古い「AlarmManager」ベースの内部コンポーネント「androidx.work.impl.background.systemalarm.SystemAlarmService」と、それに関連する多数の応答コンポーネント「BroadcastReceiver」に関する記述が削除
- 新しい「JobScheduler」ベースの内部コンポーネント「SystemJobService」に一本化
Google Pixel デバイス「Pixel 8」以降の Google Pixel デバイスにインストールされている最先端大規模言語モデル「Gemini Nano」帰属アプリ「Android AICore」に対し、2025 年 10 月 9 日(木)前後にアプリバージョン v0.release.prod_aicore_20250918.00_RC05.812693481 アップデートが配信開始されました。
「Android AICore」アプリは「Gemini Nano」の動作を効率化するための、ある意味システムアプリです。アップデートはそれなりに定期的に配信されますが、直接的な新機能の追加などは特におこなわれません。しかし今回の「Android AICore」アプリv0.release.prod_aicore_20250918.00_RC05.812693481 アップデート後のアプリ内コードから、バックグラウンド処理の大幅な改善内容を発見しました。
具体的には、Androidのバックグラウンドタスク実行 API「WorkManager」の実装に使用されていた古い「AlarmManager」ベースの内部コンポーネント「androidx.work.impl.background.systemalarm.SystemAlarmService」と、それに関連する多数の応答コンポーネント「BroadcastReceiver」に関する記述が削除され、新しい「JobScheduler」ベースの内部コンポーネント「SystemJobService」に一本化されました。これにより、「Android AICore」アプリにおけるバックグラウンド処理が大幅に効率化され、電力効率の改善などの恩恵が期待されています。
- 削除された「AlarmManager」ベースコンポーネント
<service
android:name="androidx.work.impl.background.systemalarm.SystemAlarmService"
android:enabled="@bool/enable_system_alarm_service_default"
android:exported="false"
android:directBootAware="false"/>
<receiver
android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy"
android:enabled="false"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<receiver
android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy"
android:enabled="false"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BATTERY_OKAY"/>
<action android:name="android.intent.action.BATTERY_LOW"/>
</intent-filter>
</receiver>
<receiver
android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy"
android:enabled="false"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.DEVICE_STORAGE_LOW"/>
<action android:name="android.intent.action.DEVICE_STORAGE_OK"/>
</intent-filter>
</receiver>
<receiver
android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy"
android:enabled="false"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
<receiver
android:name="androidx.work.impl.background.systemalarm.RescheduleReceiver"
android:enabled="false"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.TIME_SET"/>
<action android:name="android.intent.action.TIMEZONE_CHANGED"/>
</intent-filter>
</receiver>
<receiver
android:name="androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver"
android:enabled="@bool/enable_system_alarm_service_default"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="androidx.work.impl.background.systemalarm.UpdateProxies"/>
</intent-filter>
</receiver>
- 「Android AICore」アプリv0.release.prod_aicore_20250918.00_RC05.812693481 アップデート後
アップデート後、上記の古いコンポーネントが削除され、以下のコンポーネントのみに一本化されました。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="295453"
android:versionName="0.release.prod_aicore_20250918.00_RC05.812693481"
... >
<receiver
android:name="androidx.work.impl.background.systemalarm.RescheduleReceiver"
android:enabled="false"
android:exported="false"
android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
コメントを残す