Skip to content

Commit 4d43f3c

Browse files
committed
1 parent fa86886 commit 4d43f3c

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

VirtualApp/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ android {
2323
applicationId "io.va.exposed64"
2424
minSdkVersion 21
2525
targetSdkVersion 23
26-
versionCode 203
27-
versionName "0.20.3"
26+
versionCode 210
27+
versionName "0.21.0"
2828
multiDexEnabled false
2929
android {
3030
defaultConfig {

VirtualApp/lib/src/main/java/android/app/ClientTransactionHandler.java

+20
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,26 @@ public abstract LoadedApk getPackageInfoNoCheck(ApplicationInfo ai,
149149
public abstract void handleFixedRotationAdjustments(IBinder token,
150150
DisplayAdjustments.FixedRotationAdjustments fixedRotationAdjustments);
151151

152+
/**
153+
* Add {@link ActivityThread.ActivityClientRecord} that is preparing to be launched.
154+
* @param token Activity token.
155+
* @param activity An initialized instance of {@link ActivityThread.ActivityClientRecord} to use during launch.
156+
*/
157+
public abstract void addLaunchingActivity(IBinder token, ActivityThread.ActivityClientRecord activity);
158+
159+
/**
160+
* Get {@link ActivityThread.ActivityClientRecord} that is preparing to be launched.
161+
* @param token Activity token.
162+
* @return An initialized instance of {@link ActivityThread.ActivityClientRecord} to use during launch.
163+
*/
164+
public abstract ActivityThread.ActivityClientRecord getLaunchingActivity(IBinder token);
165+
166+
/**
167+
* Remove {@link ActivityThread.ActivityClientRecord} from the launching activity list.
168+
* @param token Activity token.
169+
*/
170+
public abstract void removeLaunchingActivity(IBinder token);
171+
152172
/**
153173
* Get {@link ActivityThread.ActivityClientRecord} instance that corresponds to the
154174
* provided token.

VirtualApp/lib/src/main/java/android/app/TransactionHandlerProxy.java

+15
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,21 @@ public void handleFixedRotationAdjustments(IBinder token, DisplayAdjustments.Fix
216216
originalHandler.handleFixedRotationAdjustments(token, fixedRotationAdjustments);
217217
}
218218

219+
@Override
220+
public void addLaunchingActivity(IBinder token, ActivityClientRecord activity) {
221+
originalHandler.addLaunchingActivity(token, activity);
222+
}
223+
224+
@Override
225+
public ActivityClientRecord getLaunchingActivity(IBinder token) {
226+
return originalHandler.getLaunchingActivity(token);
227+
}
228+
229+
@Override
230+
public void removeLaunchingActivity(IBinder token) {
231+
originalHandler.removeLaunchingActivity(token);
232+
}
233+
219234
@Override
220235
public ActivityClientRecord getActivityClient(IBinder token) {
221236
Log.i(TAG, "getActivityClient : " + token);

0 commit comments

Comments
 (0)