blob: 970245114880215eb52066ba8efb4fe0af6d4f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/**
* Copyright (C) ARM Limited 2015. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;
import android.os.ServiceManager;
public class Notify {
public static void main(String[] args) throws RemoteException {
for (String service : ServiceManager.listServices()) {
IBinder b = ServiceManager.checkService(service);
if (b != null) {
Parcel p = null;
try {
p = Parcel.obtain();
b.transact(IBinder.SYSPROPS_TRANSACTION, p, null, 0);
} finally {
if (p != null) {
p.recycle();
}
}
}
}
}
}
|