summaryrefslogtreecommitdiff
path: root/core/java/android/os/ServiceManagerNative.java
Commit message (Collapse)AuthorAgeFilesLines
* Add ServiceManager.registerForNotificationsYifan Hong2021-11-121-1/+1
| | | | | | | Add the API to call into IServiceManager.registerForNotifications. Test: pass Change-Id: Ia74d8a1bd5be767a076560bf8ee4af3095b4623a
* ServiceManagerNative: add getConnectionInfoDevin Moore2021-09-101-0/+4
| | | | | | | | | Check vintf manifest for connection info for a given service. Test: build Bug: 198207801 Change-Id: Ic9b4277de2bf13c429ba4921f1196b921b2a47de
* ServiceManagerNative: update for updatableViaApexSteven Moreland2021-04-211-0/+4
| | | | | | | | See if a VINTF instance is updatable via APEX. Bug: 185832616 Test: N/A Change-Id: I3413707eb18beae1ac417a92e9082655f6d07f11
* WatchDog: support dumping AIDL HALsSteven Moreland2021-01-281-0/+4
| | | | | | | | | | | | | | | | | Similar to how HIDL HALs are here, we don't know the commandline of the service, so we can dump them based on service name prefixes. Power stats and lights are added here, for parity w/ HIDL since these hvae been converted to AIDL. Fixes: 175322136 Test: after `adb shell am hang`, we can verify the light service is dumped, when it wasn't before: vsoc_x86_64:/data/anr # cat anr_2021-01-28-22-42-44-969 | grep light Cmd line: /vendor/bin/hw/android.hardware.lights-service.example Change-Id: I8c8b0cff0c102221875114015a5524c03cfb5b5c
* ServiceManager: add getDeclaredInstancesSteven Moreland2020-09-241-0/+4
| | | | | | | | | Corresponding to change in IServiceManager API, for finding out what instances of a VINTF service are installed. Bug: 168715768 Test: manual Change-Id: Ic54b0cfd1bd42e45dc66858dbd614db7ba22083f
* Use waitForDeclaredService to get Lights HALRobin Lee2020-04-241-1/+1
| | | | | | | | | | | | | | | | We cache the reference to the HAL and use a DeathRecipient to keep track of whether it's still good. Adds waitForService and waitForDeclaredService to the ServiceManager Java implementation because they were missing. Test: atest LightsManagerTest Test: atest LightsServiceTest Bug: 152509747 Bug: 154631113 Bug: 154627432 Bug: 154629168 Change-Id: Ife8471f3a7e47b48bb31015ddf40f1d7fef6240f
* Merge "ServiceManagerProxy: New method implementations" am: b2d8eb58a2 am: ↵Automerger Merge Worker2019-12-231-0/+9
|\ | | | | | | | | | | b88261b982 am: 3990bf8ba0 Change-Id: I876a25019dc9245671e1ffe53b7e3627877693ff
| * ServiceManagerProxy: New method implementationsJon Spivack2019-12-091-0/+9
| | | | | | | | | | | | | | | | This class only exists for UnsupportedAppUsage. These methods and implementations are required for compilation but should never be called. Bug: 143108344 Test: Manual (compilation and boot) Change-Id: I27111ae35ca57f7cb80b0439f78edd7f204408e9
* | Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
|/ | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I534e3fd1305e2f4af076986770033478448a665c
* ServiceManagerProxy: implement new methodSteven Moreland2019-10-281-0/+4
| | | | | | | | | This class is hanging around for UnsupportedAppUsage. Adding additional method to fix compilation, but it should never be called. Bug: 135686713 Test: compilation fixed Change-Id: I58022af86a53239990e057936826d0f1214acc6f
* ServiceManagerProxy: add APIs.Steven Moreland2019-08-291-0/+10
| | | | | | | | | This class is hanging around for UnsupportedApiUsage. Adding additional APIs here which do nothing in order to satisfy the inherited interface. Bug: 136027762 Test: compile :) Change-Id: I47b57c6876afd77b47083bf905ade9951ff0b42d
* AIDL it! IServiceManagerSteven Moreland2019-07-091-64/+20
| | | | | | | Bug: 135768100 Test: boot Change-Id: I7f8b5d07d4937804e8b0838936f8984ca7d08efa (cherry picked from commit 7b152971e4df5e2c2b6b0e60d0c8538512772cc1)
* Remove references to setPermissionController.Steven Moreland2019-06-211-11/+0
| | | | | | | | This method isn't implemented/used/etc.. Bug: 135768100 Test: TH Change-Id: Ic2e27f5685cc16562815fcaf1226bc7789f8d882
* ServiceManagerNative: delete unused methodsSteven Moreland2019-06-211-68/+7
| | | | | | | | | | | | This class is never instantiated (and should be deleted in the future), doesn't need to inherit from anything, and only has one method that is used (to get an instance of BpServiceManager defined here). Deleting unused code, and we can delete the class once apps stop linking against it. Bug: 135768100 Test: TH Change-Id: Ie19e099551b10599a4b7bab29b35d78d66cd3442
* Add @UnsupportedAppUsage annotationsAndrei Onea2019-03-181-0/+4
| | | | | | | | | | | | | | | | | For packages: android.os This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Merged-In: I4ece0a3f37f88fc2508cb965092aed7cabc61819 Change-Id: I0d942254f06c1a355fb906640e223ad34cced6ab
* Pass dumpsys priority to IServiceManagerVishnu Nair2017-09-251-49/+53
| | | | | | | | | | | | | Modify IServiceManager to accept supported dumpsys priority as a bitmask with NORMAL being the default priority. Change listServices to return a list of services filtered by the priority or all services when the priority is set to ALL. BUG:27429130 Test: manual verification Change-Id: If367ace2f37f918043f1b330568d8560676d9b78
* Add callback hack to find out when to load system properties.Dianne Hackborn2012-05-091-8/+28
| | | | | | | | Use this to reload the trace and layout bounds properties. This is ONLY for debugging. Change-Id: I1c4bdb52c823520c352c5bac45fa9ee31160793c
* Some hardening of isolated processes by restricting access to services.Dianne Hackborn2012-02-091-2/+4
| | | | | | | | | | | | | | | Services now must explicitly opt in to being accessed by isolated processes. Currently only the activity manager and surface flinger allow this. Activity manager is needed so that we can actually bring up the process; SurfaceFlinger is needed to be able to get the display information for creating the Configuration. The SurfaceFlinger should be safe because the app doesn't have access to the window manager so can't actually get a surface to do anything with. The activity manager now protects most of its entry points against isolated processes. Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+174
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-174/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+174