-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add @SystemService support for new services in API 21 and 22 #1379
Add @SystemService support for new services in API 21 and 22 #1379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hidden API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no issue. just saw that and wonderd what it means. i'm ok with it if it works. have you tested to use that to inject a field? i once played with an hidden api and had to use reflection to use it as the android.jar that is used for compilation did not contain the method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, these services are intended for custom Android builds. See the release notes:
and even hidden system services (useful for custom Android builds)
Actually these Services classes are not available in the normal android.jar at compile time, so this only works if you are building against the AOSP tree or you create a custom internal jar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually i just noticed that i missed some of the new hidden services. I will add them later today.
|
ah okay. so these are support for those who do "special" apps ;) then its ok. |
f03584a to
5f82cee
Compare
|
PR updated. |
Add @SystemService support for new services in API 21 and 22
|
Thanks. |
Implements #1378.