summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptGL.java
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2016-03-18 16:09:06 -0700
committerAlex Klyubin <klyubin@google.com>2016-03-18 17:08:46 -0700
commit0722ffcd0699406efe21d2bd69cc8c1708fe858c (patch)
treef7b03be63716ceb581dcc1b4efb99ec6847f542a /rs/java/android/renderscript/RenderScriptGL.java
parent46b5258138c82692191ff261cfa7e119f963b778 (diff)
Unbreak verifying v2 signatures of large APKs.
The original implementation of APK Signature Scheme v2 verification mmapped the whole APK. This does not work on devices with limited amount of contiguous free logical memory, especially on 32-bit devices where logical address space is relatively small. For example, a 500 MB APK is unlikely to mmap on a Nexus 6. This commit fixes the issue by switching the verification strategy to mmapping each individual 1 MB chunk of the APK, digesting it, and then immediately munmapping. This is about 5-10% slower than mmapping the whole APK in one go. Bug: 27613575 Change-Id: I4167d5a7720c1bb87a0edad5d4f2607f7d554b56
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptGL.java')
0 files changed, 0 insertions, 0 deletions