mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
android: update certificate check
This commit is contained in:
committed by
Alibek Omarov #SupportRMS
parent
9feaee3e28
commit
59ef64c821
13
.gitignore
vendored
13
.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
# Build data
|
# Build data
|
||||||
|
build/
|
||||||
libs/armeabi*
|
libs/armeabi*
|
||||||
libs/x86
|
libs/x86
|
||||||
obj
|
obj
|
||||||
@@ -21,7 +21,12 @@ android/res/values/git-rev.xml
|
|||||||
android/src/in/celest/xash3d/XashConfig.java
|
android/src/in/celest/xash3d/XashConfig.java
|
||||||
android/lib
|
android/lib
|
||||||
|
|
||||||
|
# Waf
|
||||||
|
build_current
|
||||||
|
*waf-*/
|
||||||
|
*waf3-*/
|
||||||
|
.lock-waf*
|
||||||
|
*.lastbuildstate
|
||||||
|
*.unsuccessfulbuild
|
||||||
|
__pycache__
|
||||||
*.pyc
|
*.pyc
|
||||||
.lock-*
|
|
||||||
.waf*
|
|
||||||
build*/
|
|
||||||
|
|||||||
@@ -492,6 +492,11 @@ public class XashActivity extends Activity {
|
|||||||
mEngineReady = true;
|
mEngineReady = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean checkCstrike( String gamelibdir, String packagename, String signature )
|
||||||
|
{
|
||||||
|
return ( !FWGSLib.checkGameLibDir( gamelibdir, packagename ) ||
|
||||||
|
CertCheck.dumbCertificateCheck( getContext(), packagename, signature, false ) );
|
||||||
|
}
|
||||||
|
|
||||||
private boolean setupEnvironment()
|
private boolean setupEnvironment()
|
||||||
{
|
{
|
||||||
@@ -512,10 +517,7 @@ public class XashActivity extends Activity {
|
|||||||
mMinWidth = 640;
|
mMinWidth = 640;
|
||||||
mMinHeight = 300;
|
mMinHeight = 300;
|
||||||
|
|
||||||
final String allowed = "in.celest.xash3d.cs16client";
|
if ( !checkCstrike( gamelibdir, "su.xash.cs16client", "AtsVnfclsm6zLW/qxxPk970zgfA=" ) && !checkCstrike( gamelibdir, "in.celest.xash3d.cs16client", null ) )
|
||||||
|
|
||||||
if( !FWGSLib.checkGameLibDir( gamelibdir, allowed ) ||
|
|
||||||
CertCheck.dumbCertificateCheck( getContext(), allowed, null, true ) )
|
|
||||||
{
|
{
|
||||||
finish();
|
finish();
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user