Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.github.libxposed.service;

parcelable HookedProcess {
int uid;
int pid;
String processName;
boolean upToDate;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package io.github.libxposed.service;
import io.github.libxposed.service.HookedProcess;
import io.github.libxposed.service.IXposedScopeCallback;

interface IXposedService {
Expand All @@ -23,6 +24,7 @@ interface IXposedService {
List<String> getScope() = 10;
oneway void requestScope(String packageName, IXposedScopeCallback callback) = 11;
String removeScope(String packageName) = 12;
List<HookedProcess> getRunningTargets() = 13;

// remote preference utilities
Bundle requestRemotePreferences(String group) = 20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,22 @@ public String removeScope(@NonNull String packageName) {
}
}

/**
* Get a list of currently running processes that are hooked by the module. Note that one app may
* have multiple processes, and you should use uid instead of processName to identify apps.
*
* @return The list of hooked processes
* @throws ServiceException If the service is dead or an error occurred
*/
@NonNull
public List<HookedProcess> getRunningTargets() {
try {
return mService.getRunningTargets();
} catch (RemoteException e) {
throw new ServiceException(e);
}
}

/**
* Get remote preferences from Xposed framework. If the group does not exist, it will be created.
*
Expand Down