Skip to content

Commit 4b58f8f

Browse files
committed
Add @SystemService support for new services in API 21 and 22
1 parent 0273cd3 commit 4b58f8f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/model/AndroidSystemServices.java‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public AndroidSystemServices() {
3838
registeredServices.put("android.appwidget.AppWidgetManager", "android.content.Context.APPWIDGET_SERVICE");
3939
registeredServices.put("android.media.AudioManager", "android.content.Context.AUDIO_SERVICE");
4040
registeredServices.put("android.app.backup.IBackupManager", "android.content.Context.BACKUP_SERVICE");
41+
registeredServices.put("android.os.BatteryManager", "android.content.Context.BATTERY_SERVICE");
4142
registeredServices.put("android.bluetooth.BluetoothManager", "android.content.Context.BLUETOOTH_SERVICE");
4243
registeredServices.put("android.hardware.camera2.CameraManager", "android.content.Context.CAMERA_SERVICE");
4344
registeredServices.put("android.view.accessibility.CaptioningManager", "android.content.Context.CAPTIONING_SERVICE");
@@ -50,36 +51,51 @@ public AndroidSystemServices() {
5051
registeredServices.put("android.hardware.display.DisplayManager", "android.content.Context.DISPLAY_SERVICE");
5152
registeredServices.put("android.app.DownloadManager", "android.content.Context.DOWNLOAD_SERVICE");
5253
registeredServices.put("android.os.DropBoxManager", "android.content.Context.DROPBOX_SERVICE");
54+
registeredServices.put("android.net.EthernetManager", "android.content.Context.ETHERNET_SERVICE");
55+
registeredServices.put("android.service.fingerprint.FingerprintManager", "android.content.Context.FINGERPRINT_SERVICE");
56+
registeredServices.put("android.hardware.hdmi.HdmiControlManager", "android.content.Context.HDMI_CONTROL_SERVICE");
5357
registeredServices.put("android.hardware.input.InputManager", "android.content.Context.INPUT_SERVICE");
5458
registeredServices.put("android.view.inputmethod.InputMethodManager", "android.content.Context.INPUT_METHOD_SERVICE");
59+
registeredServices.put("android.app.job.JobScheduler", "android.content.Context.JOB_SCHEDULER_SERVICE");
5560
registeredServices.put("android.app.KeyguardManager", "android.content.Context.KEYGUARD_SERVICE");
61+
registeredServices.put("android.content.pm.LauncherApps", "android.content.Context.LAUNCHER_APPS_SERVICE");
5662
registeredServices.put("android.view.LayoutInflater", "android.content.Context.LAYOUT_INFLATER_SERVICE");
5763
registeredServices.put("android.location.LocationManager", "android.content.Context.LOCATION_SERVICE");
64+
registeredServices.put("android.media.projection.MediaProjectionManager", "android.content.Context.MEDIA_PROJECTION_SERVICE");
5865
registeredServices.put("android.media.MediaRouter", "android.content.Context.MEDIA_ROUTER_SERVICE");
66+
registeredServices.put("android.media.session.MediaSessionManager", "android.content.Context.MEDIA_SESSION_SERVICE");
67+
registeredServices.put("android.net.NetworkScoreManager", "android.content.Context.NETWORK_SCORE_SERVICE");
5968
registeredServices.put("android.net.NetworkManagementService", "android.content.Context.NETWORKMANAGEMENT_SERVICE");
6069
registeredServices.put("android.net.NetworkPolicyManager", "android.content.Context.NETWORK_POLICY_SERVICE");
6170
registeredServices.put("android.net.NetworkStatsService", "android.content.Context.NETWORK_STATS_SERVICE");
6271
registeredServices.put("android.nfc.NfcManager", "android.content.Context.NFC_SERVICE");
6372
registeredServices.put("android.app.NotificationManager", "android.content.Context.NOTIFICATION_SERVICE");
6473
registeredServices.put("android.net.nsd.NsdManager", "android.content.Context.NSD_SERVICE");
74+
registeredServices.put("android.service.persistentdata.PersistentDataBlockManager", "android.content.Context.PERSISTENT_DATA_BLOCK_SERVICE");
6575
registeredServices.put("android.print.PrintManager", "android.content.Context.PRINT_SERVICE");
6676
registeredServices.put("android.os.PowerManager", "android.content.Context.POWER_SERVICE");
77+
registeredServices.put("android.content.RestrictionsManager", "android.content.Context.RESTRICTIONS_SERVICE");
6778
registeredServices.put("android.app.SearchManager", "android.content.Context.SEARCH_SERVICE");
6879
registeredServices.put("android.hardware.SerialManager", "android.content.Context.SERIAL_SERVICE");
6980
registeredServices.put("android.hardware.SensorManager", "android.content.Context.SENSOR_SERVICE");
7081
registeredServices.put("android.net.sip.SipManager", "android.content.Context.SIP_SERVICE");
7182
registeredServices.put("android.app.StatusBarManager", "android.content.Context.STATUS_BAR_SERVICE");
7283
registeredServices.put("android.os.storage.StorageManager", "android.content.Context.STORAGE_SERVICE");
84+
registeredServices.put("android.telephony.SubscriptionManager", "android.content.Context.TELEPHONY_SUBSCRIPTION_SERVICE");
85+
registeredServices.put("android.telecom.TelecomManager", "android.content.Context.TELECOM_SERVICE");
7386
registeredServices.put("android.telephony.TelephonyManager", "android.content.Context.TELEPHONY_SERVICE");
7487
registeredServices.put("android.view.textservice.TextServicesManager", "android.content.Context.TEXT_SERVICES_MANAGER_SERVICE");
7588
registeredServices.put("android.net.ThrottleManager", "android.content.Context.THROTTLE_SERVICE");
89+
registeredServices.put("android.media.tv.TvInputManager", "android.content.Context.TV_INPUT_SERVICE");
7690
registeredServices.put("android.app.UiModeManager", "android.content.Context.UI_MODE_SERVICE");
7791
registeredServices.put("android.os.IUpdateLock", "android.content.Context.UPDATE_LOCK_SERVICE");
92+
registeredServices.put("android.app.usage.UsageStatsManager", "android.content.Context.USAGE_STATS_SERVICE");
7893
registeredServices.put("android.hardware.usb.UsbManager", "android.content.Context.USB_SERVICE");
7994
registeredServices.put("android.os.UserManager", "android.content.Context.USER_SERVICE");
8095
registeredServices.put("android.os.Vibrator", "android.content.Context.VIBRATOR_SERVICE");
8196
registeredServices.put("android.app.WallpaperManager", "android.content.Context.WALLPAPER_SERVICE");
8297
registeredServices.put("android.net.wifi.WifiManager", "android.content.Context.WIFI_SERVICE");
98+
registeredServices.put("android.net.wifi.passpoint.WifiPasspointManager", "android.content.Context.WIFI_PASSPOINT_SERVICE");
8399
registeredServices.put("android.net.wifi.p2p.WifiP2pManager", "android.content.Context.WIFI_P2P_SERVICE");
84100
registeredServices.put("android.view.WindowManager", "android.content.Context.WINDOW_SERVICE");
85101
}

0 commit comments

Comments
 (0)