-
public class SystemServiceHelper
-
-
Method Summary
Modifier and Type Method Description static IBindergetSystemService(@NonNull() String name)Returns a reference to a service with the given name. static IntegergetTransactionCode(@NonNull() String className, @NonNull() String methodName)Returns transaction code from given class and method name. static ParcelobtainParcel(@NonNull() String serviceName, @NonNull() String interfaceName, @NonNull() String methodName)Obtain a new data parcel for transactRemote. static ParcelobtainParcel(@NonNull() String serviceName, @NonNull() String interfaceName, @NonNull() String className, @NonNull() String methodName)Obtain a new data parcel for transactRemote. -
-
Method Detail
-
getSystemService
static IBinder getSystemService(@NonNull() String name)
Returns a reference to a service with the given name.
- Parameters:
name- the name of the service to get such as "package" for android.content.pm.
-
getTransactionCode
@Deprecated() static Integer getTransactionCode(@NonNull() String className, @NonNull() String methodName)
Returns transaction code from given class and method name.
- Parameters:
className- class name such as "android.content.pm.methodName- method name such as "getInstalledPackages"
-
obtainParcel
@Deprecated() static Parcel obtainParcel(@NonNull() String serviceName, @NonNull() String interfaceName, @NonNull() String methodName)
Obtain a new data parcel for transactRemote.
- Parameters:
serviceName- system service nameinterfaceName- class name for reflectionmethodName- method name for reflection
-
obtainParcel
@Deprecated() static Parcel obtainParcel(@NonNull() String serviceName, @NonNull() String interfaceName, @NonNull() String className, @NonNull() String methodName)
Obtain a new data parcel for transactRemote.
- Parameters:
serviceName- system service nameinterfaceName- interface nameclassName- class name for reflectionmethodName- method name for reflection
-
-
-
-