-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
487 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
213 changes: 121 additions & 92 deletions
213
app/src/main/java/com/sollyu/android/appenv/activitys/ActivityDetail.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
* This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. | ||
*/ | ||
|
||
@file:Suppress("UNUSED_PARAMETER") | ||
|
||
package com.sollyu.android.appenv.activitys | ||
|
||
import android.app.Activity | ||
|
@@ -219,7 +221,7 @@ class ActivitySettings : ActivityBase() { | |
.content(R.string.settings_use_data_local_tmp_content) | ||
.positiveText(android.R.string.ok) | ||
.negativeText(android.R.string.cancel) | ||
.onPositive { dialog, which -> | ||
.onPositive { _, _ -> | ||
if (Shell.SU.available()) { | ||
try { | ||
Settings.Instance.isUseDataLocalTmpConfig = true | ||
|
@@ -236,7 +238,7 @@ class ActivitySettings : ActivityBase() { | |
SettingsXposed.Save() | ||
SettingsXposed.Reload() | ||
} | ||
.onNegative { dialog, which -> | ||
.onNegative { _, _ -> | ||
Settings.Instance.isUseDataLocalTmpConfig = false | ||
oiwAppDataConfig.switch.isEnabled = !Settings.Instance.isUseDataLocalTmpConfig | ||
oiwUseDataLocalTmp.setCheckedImmediatelyNoEvent(Settings.Instance.isUseDataLocalTmpConfig) | ||
|
@@ -310,7 +312,7 @@ class ActivitySettings : ActivityBase() { | |
private fun onBtnClickThinks(view: View) { | ||
MaterialDialog.Builder(activity) | ||
.title(R.string.settings_thinks) | ||
.items(arrayListOf("[email protected]")) | ||
.items(arrayListOf("[email protected]", "AdroitAdorKhan(Github)", "tiann(Github)", "david082321(Github)")) | ||
.positiveText(android.R.string.ok) | ||
.show() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
app/src/main/java/com/sollyu/android/appenv/bean/BeanHookInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* Copyright © 2017 Sollyu <https://www.sollyu.com/> | ||
* | ||
* Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. | ||
* | ||
* This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. | ||
*/ | ||
package com.sollyu.android.appenv.bean | ||
|
||
import com.alibaba.fastjson.JSON | ||
import com.alibaba.fastjson.JSONObject | ||
import com.alibaba.fastjson.annotation.JSONField | ||
|
||
class BeanHookInfo { | ||
@JSONField(name = "android.os.Build.ro.product.manufacturer") | ||
var buildManufacturer:String? = null | ||
|
||
@JSONField(name = "android.os.Build.ro.product.model") | ||
var buildModel:String? = null | ||
|
||
@JSONField(name = "android.os.Build.ro.serialno") | ||
var buildSerial:String? = null | ||
|
||
@JSONField(name = "android.os.Build.VERSION.RELEASE") | ||
var buildVersionName:String? = null | ||
|
||
@JSONField(name = "android.os.SystemProperties.android_id") | ||
var androidId:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getLine1Number") | ||
var simLine1Number:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getDeviceId") | ||
var simGetDeviceId:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getSubscriberId") | ||
var simSubscriberId:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getSimOperator") | ||
var simOperator:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getSimCountryIso") | ||
var simCountryIso:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getSimOperatorName") | ||
var simOperatorName:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getSimSerialNumber") | ||
var simSerialNumber:String? = null | ||
|
||
@JSONField(name = "android.telephony.TelephonyManager.getSimState") | ||
var simStatus:String? = null | ||
|
||
@JSONField(name = "android.net.NetworkInfo.getType") | ||
var phoneNetworkType:String? = null | ||
|
||
@JSONField(name = "android.net.wifi.WifiInfo.getSSID") | ||
var wifiName:String? = null | ||
|
||
@JSONField(name = "android.net.wifi.WifiInfo.getBSSID") | ||
var wifiBssid:String? = null | ||
|
||
@JSONField(name = "android.net.wifi.WifiInfo.getMacAddress") | ||
var wifiMacAddress:String? = null | ||
|
||
@JSONField(name = "android.content.res.language") | ||
var language:String? = null | ||
|
||
@JSONField(name = "android.content.res.display.dpi") | ||
var displayDpi:String? = null | ||
|
||
@JSONField(serialize = false) | ||
override fun toString(): String { | ||
return JSON.toJSONString(this) | ||
} | ||
|
||
fun toJSON():JSONObject{ | ||
return JSON.parseObject(toString()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.