Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd13c000
authored
Mar 20, 2020
by
pye52
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'old-dev' into old-prod
parents
f2f5b364
885de2dc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
app/build.gradle
+0
-2
app/src/main/java/com/bgycc/smartcanteen/util/DangerousUtils.java
+5
-4
daemon/build.gradle
+16
-0
daemon/canteen.jks
+0
-0
No files found.
app/build.gradle
View file @
cd13c000
apply
plugin:
'com.android.application'
apply
plugin:
'com.android.application'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-android-extensions'
android
{
android
{
...
...
app/src/main/java/com/bgycc/smartcanteen/util/DangerousUtils.java
View file @
cd13c000
package
com
.
bgycc
.
smartcanteen
.
util
;
package
com
.
bgycc
.
smartcanteen
.
util
;
import
android.app.PendingIntent
;
import
android.app.PendingIntent
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
...
@@ -8,8 +9,8 @@ import android.support.annotation.RequiresPermission;
...
@@ -8,8 +9,8 @@ import android.support.annotation.RequiresPermission;
import
android.telephony.SmsManager
;
import
android.telephony.SmsManager
;
import
android.telephony.TelephonyManager
;
import
android.telephony.TelephonyManager
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
com.blankj.utilcode.util.LogUtils
;
import
com.blankj.utilcode.util.ShellUtils
;
import
com.blankj.utilcode.util.ShellUtils
;
import
com.blankj.utilcode.util.Utils
;
import
com.blankj.utilcode.util.Utils
;
...
@@ -117,7 +118,7 @@ public class DangerousUtils {
...
@@ -117,7 +118,7 @@ public class DangerousUtils {
&&
commandResult
.
successMsg
.
toLowerCase
().
contains
(
"success"
))
{
&&
commandResult
.
successMsg
.
toLowerCase
().
contains
(
"success"
))
{
return
true
;
return
true
;
}
else
{
}
else
{
Log
.
e
(
"AppUtils"
,
"installAppSilent successMsg: "
+
commandResult
.
successMsg
+
Log
Utils
.
e
(
"AppUtils"
,
"installAppSilent successMsg: "
+
commandResult
.
successMsg
+
", errorMsg: "
+
commandResult
.
errorMsg
);
", errorMsg: "
+
commandResult
.
errorMsg
);
return
false
;
return
false
;
}
}
...
@@ -173,7 +174,7 @@ public class DangerousUtils {
...
@@ -173,7 +174,7 @@ public class DangerousUtils {
&&
commandResult
.
successMsg
.
toLowerCase
().
contains
(
"success"
))
{
&&
commandResult
.
successMsg
.
toLowerCase
().
contains
(
"success"
))
{
return
true
;
return
true
;
}
else
{
}
else
{
Log
.
e
(
"AppUtils"
,
"uninstallAppSilent successMsg: "
+
commandResult
.
successMsg
+
Log
Utils
.
e
(
"AppUtils"
,
"uninstallAppSilent successMsg: "
+
commandResult
.
successMsg
+
", errorMsg: "
+
commandResult
.
errorMsg
);
", errorMsg: "
+
commandResult
.
errorMsg
);
return
false
;
return
false
;
}
}
...
@@ -325,7 +326,7 @@ public class DangerousUtils {
...
@@ -325,7 +326,7 @@ public class DangerousUtils {
setDataEnabledMethod
.
invoke
(
tm
,
enabled
);
setDataEnabledMethod
.
invoke
(
tm
,
enabled
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
Log
.
e
(
"NetworkUtils"
,
"setMobileDataEnabled: "
,
e
);
Log
Utils
.
e
(
"NetworkUtils"
,
"setMobileDataEnabled: "
,
e
);
}
}
return
false
;
return
false
;
}
}
...
...
daemon/build.gradle
View file @
cd13c000
...
@@ -12,6 +12,22 @@ android {
...
@@ -12,6 +12,22 @@ android {
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
}
}
signingConfigs
{
canteen
{
keyAlias
'town'
keyPassword
'maxrocky'
storeFile
file
(
'./canteen.jks'
)
storePassword
'maxrocky'
}
buildTypes
{
debug
{
signingConfig
signingConfigs
.
canteen
}
release
{
signingConfig
signingConfigs
.
canteen
}
}
}
buildTypes
{
buildTypes
{
debug
{
debug
{
minifyEnabled
false
minifyEnabled
false
...
...
daemon/canteen.jks
0 → 100644
View file @
cd13c000
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment