|
@@ -132,8 +132,12 @@ class ManageApplication : MultiDexApplication() {
|
132
|
132
|
* 冻结应用true:显示应用可以使用; false:隐藏应用不可用
|
133
|
133
|
*/
|
134
|
134
|
fun setPackageEnabled(pkg: String, enableFlag: Boolean) {
|
135
|
|
- if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
|
136
|
|
- csdkManager?.setPackageEnabled(pkg, enableFlag)
|
|
135
|
+ try {
|
|
136
|
+ if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
|
|
137
|
+ csdkManager?.setPackageEnabled(pkg, enableFlag)
|
|
138
|
+ }
|
|
139
|
+ }catch (e:Exception){
|
|
140
|
+
|
137
|
141
|
}
|
138
|
142
|
}
|
139
|
143
|
|
|
@@ -823,6 +827,36 @@ class ManageApplication : MultiDexApplication() {
|
823
|
827
|
}
|
824
|
828
|
}
|
825
|
829
|
|
|
830
|
+ /**
|
|
831
|
+ * true:启用 recovery 模式热键
|
|
832
|
+ * false:禁用 recovery 模式热键
|
|
833
|
+ */
|
|
834
|
+ fun setCustomRecovery_v3(b: Boolean=false){
|
|
835
|
+ try {
|
|
836
|
+ if (ModelNameUtils.IS_LianxX505f()){
|
|
837
|
+ csdkManager?.customRecovery_v3=b
|
|
838
|
+ }else if (ModelNameUtils.IS_LianxX6e6f()){
|
|
839
|
+ csdkManager?.isCustomRecoveryV3=b
|
|
840
|
+ }
|
|
841
|
+ }catch (e:Exception){
|
|
842
|
+ Log.d("问题==","禁用recovery模式,"+e.toString())
|
|
843
|
+ }
|
|
844
|
+ }
|
|
845
|
+
|
|
846
|
+ /**
|
|
847
|
+ * 禁用谷歌输入法
|
|
848
|
+ */
|
|
849
|
+ fun disallowSetInputMethod_v3(pkgName:String="com.google.android.inputmethod.pinyin",b: Boolean=false){
|
|
850
|
+ try {
|
|
851
|
+ if (ModelNameUtils.IS_LianxX505f()){
|
|
852
|
+ csdkManager?.disallowSetInputMethod_v3(pkgName,b)
|
|
853
|
+ }else if (ModelNameUtils.IS_LianxX6e6f()){
|
|
854
|
+ csdkManager?.disallowSetInputMethodV3(pkgName,b)
|
|
855
|
+ }
|
|
856
|
+ }catch (e:Exception){
|
|
857
|
+ Log.d("问题==","禁用recovery模式,"+e.toString())
|
|
858
|
+ }
|
|
859
|
+ }
|
826
|
860
|
}
|
827
|
861
|
|
828
|
862
|
override fun onCreate() {
|