File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -34,4 +34,18 @@ PATCH=$(cat << EOF
3434 return-object v0
3535EOF
3636)
37- patch_insert_after " $PATCH_IDENTITY " " $LIB " " $REGEX " " $PATCH " " $FILE "
37+ patch_insert_after " $PATCH_IDENTITY " " $LIB " " $REGEX " " $PATCH " " $FILE "
38+
39+ # patch #3: checkTrustedRecursive (variation)
40+ PATCH_IDENTITY=e81e9cc2f4ddda4955e42da3a277ec9a-2
41+ LIB=' conscrypt.jar'
42+ FILE=" com/android/org/conscrypt/TrustManagerImpl.smali"
43+ REGEX=' .method private blacklist checkTrustedRecursive\(\[Ljava\/security\/cert\/X509Certificate;\[B\[BLjava\/lang\/String;ZLjava\/util\/List;Ljava\/util\/List;Ljava\/util\/Set;\)Ljava\/util\/List;.*?\.line \d+\n'
44+ PATCH=$( cat << EOF
45+ $( android_logcat $LIB " _checkTrustedRecursive" )
46+ new-instance v0, Ljava/util/ArrayList;
47+ invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
48+ return-object v0
49+ EOF
50+ )
51+ patch_insert_after " $PATCH_IDENTITY " " $LIB " " $REGEX " " $PATCH " " $FILE "
You can’t perform that action at this time.
0 commit comments