summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2022-06-24 16:51:15 +0000
committer Vishnu Nair <vishnun@google.com> 2022-06-29 21:44:35 +0000
commit7309b4f0829c7154581f4e85f094bf3c8ab4644f (patch)
tree61df76c144d237c36cf092858b1dea8bdd11880c /libs/androidfw/StringPool.cpp
parent7e0149d26f2cda611f8479accf31d02bba8608d1 (diff)
BBQ: Attach calling thread to jvm if needed
When BBQ is destroyed from a native thread created by the app, getEnv fails because the calling thread is not attached to the jvm. To fix this, check the result when getting the env from the jvm and attach the current thread if needed. Test: app in bug doesnt crash when resumed Fixes: 236780458 Change-Id: Ib82b9b372167df60ad230ac309099db9f4a1a1fc (cherry picked from commit 00ba9e8c24cc8bfe78042138a0e81f0e6fe56e9e)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions