mirror of
https://github.com/Enyby/APK-Info.git
synced 2026-09-22 18:16:10 +00:00
Detect old or no Java
This commit is contained in:
1 parent
c749dcee81
commit
84d5937d2e
2 files changed
+6
No files matched your search
Binary file not shown.
@@ -179,6 +179,7 @@ $strYes = IniRead($IniFile, $LangSection, "Yes", "Yes")
|
||||
$strNo = IniRead($IniFile, $LangSection, "No", "No")
|
||||
$strNotFound = IniRead($IniFile, $LangSection, "NotFound", "Not found")
|
||||
$strNoUpdatesFound = IniRead($IniFile, $LangSection, "NoUpdatesFound", "No updates found")
|
||||
$strNeedJava = IniRead($IniFile, $LangSection, "NeedJava", 'Need Java 1.8 or higher.')
|
||||
|
||||
$strUses = IniRead($IniFile, $LangSection, "Uses", "uses")
|
||||
$strImplied = IniRead($IniFile, $LangSection, "Implied", "implied")
|
||||
@@ -1001,6 +1002,11 @@ Func _getSignature($prmAPK, $load, $process = False)
|
||||
If $process == False Then $process = _Run('apksigner', '"' & $JavaPath & 'java" -jar "' & $toolsDir & 'apksigner.jar" verify --v --print-certs "' & $prmAPK & '"', $STDERR_CHILD + $STDOUT_CHILD)
|
||||
$output &= _readAll($process, 'apksigner stdout')
|
||||
$output &= _readAll($process, 'apksigner stderr', False)
|
||||
|
||||
If $output == '' Or StringInStr($output, 'java.lang.UnsupportedClassVersionError') Or StringInStr($output, 'Unsupported major.minor version') Then
|
||||
$output = $strNeedJava & @CRLF & @CRLF & $output
|
||||
EndIf
|
||||
|
||||
GUICtrlSetState($btnSignatureLoad, $GUI_HIDE)
|
||||
Else
|
||||
GUICtrlSetState($btnSignatureLoad, $GUI_SHOW)
|
||||
|
||||
Reference in new issue
Block a user