Check preload dex (#1834)

This commit is contained in:
南宫雪珊 2022-04-11 19:48:11 +08:00 committed by GitHub
parent 9a022f4c17
commit 4fcf2308df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ public class LSPApplicationService extends ILSPApplicationService.Stub {
Log.d(TAG, "LSPApplicationService.onTransact: code=" + code);
if (code == DEX_TRANSACTION_CODE) {
var shm = ConfigManager.getInstance().getPreloadDex();
if (shm == null) return false;
// assume that write only a fd
shm.writeToParcel(reply, 0);
reply.writeLong(shm.getSize());