version:1.0.0
update:增加混淆,优化其他包名 bugfixes:
This commit is contained in:
@@ -58,7 +58,7 @@ public class EmergencyActivity extends BaseMvvmActivity<EmergencyViewModel, Acti
|
||||
|
||||
//发送紧急广播
|
||||
Intent bootIntent = new Intent(BootReceiver.SOS);
|
||||
bootIntent.setComponent(new ComponentName("com.uiuios.sn", "com.uiuios.sn.receiver.BootReceiver"));
|
||||
bootIntent.setComponent(new ComponentName("com.xxpatx.sn", "com.xxpatx.sn.receiver.BootReceiver"));
|
||||
sendBroadcast(bootIntent);
|
||||
AmapManager.getInstance().startLocation();
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@ public class MainActivity extends BaseMvvmActivity<MainViewModel, PhoneActivityM
|
||||
|
||||
@Override
|
||||
public void onRemoteConnected() {
|
||||
Log.e(TAG, "onRemoteConnected: ");
|
||||
setDefaultDesktop();
|
||||
}
|
||||
|
||||
|
||||
@@ -175,18 +175,17 @@ public class WeatherActivity extends BaseMvvmActivity<WeatherViewModel, Activity
|
||||
if (weatherNowBean != null) {
|
||||
if (Code.OK == weatherNowBean.getCode()) {
|
||||
WeatherNowBean.NowBaseBean now = weatherNowBean.getNow();
|
||||
Log.d("getWeatherNow: ", "onSuccess: now " + new Gson().toJson(now));
|
||||
Log.d("getWeatherNowData: ", "onSuccess: now " + new Gson().toJson(now));
|
||||
mViewDataBinding.setNowBaseBean(now);
|
||||
Toaster.show("刷新成功");
|
||||
} else {
|
||||
//在此查看返回数据失败的原因
|
||||
Code code = weatherNowBean.getCode();
|
||||
Log.d("getWeatherNow: ", "failed code: " + code);
|
||||
Log.d("getWeatherNowData: ", "failed code: " + code);
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG, "getWeatherNow: weatherNowBean is null");
|
||||
Log.e(TAG, "getWeatherNowData: weatherNowBean is null");
|
||||
Toaster.show("获取天气失败");
|
||||
mViewModel.getWeatherCache();
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -207,6 +206,7 @@ public class WeatherActivity extends BaseMvvmActivity<WeatherViewModel, Activity
|
||||
}
|
||||
|
||||
private void getWeather() {
|
||||
// mViewModel.getWeatherCache();
|
||||
String district = mMMKV.decodeString(CommonConfig.MANUALLY_SELECT_LOCATION_DISTRICT, CommonConfig.DEFAULT_LOCATION_DISTRICT);
|
||||
String tude = mMMKV.decodeString(CommonConfig.MANUALLY_SELECT_LOCATION_TUDE, CommonConfig.DEFAULT_LOCATION_TUDE);
|
||||
if (TextUtils.isEmpty(tude)) {
|
||||
|
||||
@@ -7,6 +7,7 @@ import androidx.lifecycle.MutableLiveData;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.hjq.toast.Toaster;
|
||||
import com.jeremyliao.liveeventbus.LiveEventBus;
|
||||
import com.qweather.sdk.bean.base.Lang;
|
||||
import com.qweather.sdk.bean.base.Unit;
|
||||
import com.qweather.sdk.bean.weather.WeatherDailyBean;
|
||||
@@ -207,6 +208,10 @@ public class WeatherViewModel extends BaseViewModel<ActivityWeatherBinding, Acti
|
||||
String jsonString = new Gson().toJson(weatherBean);
|
||||
mMMKV.encode(CommonConfig.WEATHER_NOW_KEY, jsonString);
|
||||
mWeatherNowData.setValue(weatherBean);
|
||||
WeatherNowBean.NowBaseBean now = weatherBean.getNow();
|
||||
LiveEventBus
|
||||
.get("some_key1")
|
||||
.post(now);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -221,16 +226,20 @@ public class WeatherViewModel extends BaseViewModel<ActivityWeatherBinding, Acti
|
||||
QWeather.getWeather7D(getCtx(), locationTude, new QWeather.OnResultWeatherDailyListener() {
|
||||
@Override
|
||||
public void onError(Throwable throwable) {
|
||||
Log.e("getWeather", "onError: " + throwable.getMessage());
|
||||
Log.e("getWeather7D", "onError: " + throwable.getMessage());
|
||||
// mWeatherDailyData.setValue(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(WeatherDailyBean weatherDailyBean) {
|
||||
String jsonString = new Gson().toJson(weatherDailyBean);
|
||||
Log.d("getWeather", "onSuccess: " + jsonString);
|
||||
Log.d("getWeather7D", "onSuccess: " + jsonString);
|
||||
mMMKV.encode(CommonConfig.WEATHER_DAILY_KEY, jsonString);
|
||||
mWeatherDailyData.setValue(weatherDailyBean);
|
||||
WeatherDailyBean.DailyBean dailyBean = weatherDailyBean.getDaily().get(0);
|
||||
LiveEventBus
|
||||
.get("some_key3")
|
||||
.post(dailyBean);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public class BaseApplication extends Application {
|
||||
ShortcutUtils.init(this);
|
||||
|
||||
AmapManager.init(this);
|
||||
HeConfig.init("HE2210211540591362", "fe42a7bb59b14eefb27eea4fb2c40e99");
|
||||
HeConfig.init("HE2407111551551292", "28301b41b0ae42c2b6cecf12862ade1f");
|
||||
//切换至开发版服务
|
||||
HeConfig.switchToDevService();
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ public class AppListFragment extends BaseFragment {
|
||||
ApkUtils.openApp(mContext, "com.uiui.videoplayer");
|
||||
break;
|
||||
case "aios.appstore":
|
||||
ApkUtils.openApp(mContext, "com.uiuios.appstore");
|
||||
ApkUtils.openApp(mContext, "com.xxpatx.store");
|
||||
break;
|
||||
case "com.android.dialer":
|
||||
// int aole_call_forbid = Settings.System.getInt(mContext.getContentResolver(), "aole_call_forbid", 0);
|
||||
@@ -259,8 +259,8 @@ public class AppListFragment extends BaseFragment {
|
||||
// }
|
||||
break;
|
||||
case "com.xxpatx.os":
|
||||
case "com.uiuios.sn":
|
||||
case "com.uiuios.appstore":
|
||||
case "com.xxpatx.sn":
|
||||
case "com.xxpatx.store":
|
||||
case "com.uiuios.browser":
|
||||
ApkUtils.openPackage(v.getContext(), desktopIcon.getPackage(), desktopIcon.getClazz());
|
||||
AppUsedTimeUtils.getInstance().setAppPackageName(desktopIcon.getPackage());
|
||||
@@ -295,7 +295,7 @@ public class AppListFragment extends BaseFragment {
|
||||
}
|
||||
switch (pkg) {
|
||||
case "aios.exit":
|
||||
case "com.uiuios.sn":
|
||||
case "com.xxpatx.sn":
|
||||
case "aios.daily.app":
|
||||
case "aios.appstore":
|
||||
break;
|
||||
|
||||
@@ -511,7 +511,7 @@ public class CustomFragment extends BaseMvvmFragment<CustomViewModel, FragmentCu
|
||||
mViewDataBinding.clActivation.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
ApkUtils.openPackage(mContext, "com.uiuios.sn");
|
||||
ApkUtils.openPackage(mContext, "com.xxpatx.sn");
|
||||
}
|
||||
});
|
||||
mViewDataBinding.clControl.setOnClickListener(new View.OnClickListener() {
|
||||
|
||||
@@ -543,7 +543,7 @@ public class HomeFragment extends BaseMvvmFragment<HomeViewModel, FragmentHomeBi
|
||||
}
|
||||
|
||||
public void toAppstore(View view) {
|
||||
if (!ApkUtils.openPackage(mContext, "com.uiuios.appstore")) {
|
||||
if (!ApkUtils.openPackage(mContext, "com.xxpatx.store")) {
|
||||
Toaster.show("打开失败,请检查应用是否安装");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ public class SettingsFragment extends BaseMvvmFragment<SettingsViewModel, Fragme
|
||||
public class BtnClick {
|
||||
|
||||
public void toSn(View view) {
|
||||
if (!ApkUtils.openPackage(mContext, "com.uiuios.sn")) {
|
||||
if (!ApkUtils.openPackage(mContext, "com.xxpatx.sn")) {
|
||||
Toaster.show("打开失败,请检查应用是否安装");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,9 +106,9 @@ public class RemoteManager {
|
||||
if (mIGetInfoInterface == null) {
|
||||
//这是连接aidl服务的代码
|
||||
Intent intent = new Intent();
|
||||
intent.setAction("com.uiuios.sn.IGetInfoInterface");
|
||||
intent.setPackage("com.uiuios.sn");
|
||||
intent.setComponent(new ComponentName("com.uiuios.sn", "com.uiuios.sn.service.RemoteService"));
|
||||
intent.setAction("com.xxpatx.sn.IGetInfoInterface");
|
||||
intent.setPackage("com.xxpatx.sn");
|
||||
intent.setComponent(new ComponentName("com.xxpatx.sn", "com.xxpatx.sn.service.RemoteService"));
|
||||
mContext.bindService(intent, mIGetInfoConnection, Context.BIND_AUTO_CREATE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.xxpatx.os.network;
|
||||
|
||||
public class UrlAddress {
|
||||
public static final String ROOT_URL = "https://led.zuoyepad.com/android/";
|
||||
public static final String ROOT_URL = "https://ghapi.mdmsaas.cn/";
|
||||
/*百度地图*/
|
||||
@Deprecated
|
||||
public static final String AMAP_ROOT_URL = "https://api.map.baidu.com/";
|
||||
|
||||
@@ -67,9 +67,9 @@ public class ApkUtils {
|
||||
this.add("com.uiui.videoplayer");
|
||||
// this.add("com.uiui.health");
|
||||
this.add("com.tencent.android.qqdownloader");
|
||||
// this.add("com.uiuios.appstore");
|
||||
// this.add("com.xxpatx.store");
|
||||
this.add("com.joytv.live");
|
||||
this.add("com.uiuios.appstore");
|
||||
this.add("com.xxpatx.store");
|
||||
this.add("com.teclast.zyos");
|
||||
this.add("com.teclast.zy");
|
||||
this.add("com.teclast.zyappstore");
|
||||
@@ -81,9 +81,9 @@ public class ApkUtils {
|
||||
}};
|
||||
|
||||
public static HashSet<String> showPackageName = new HashSet<String>() {{
|
||||
this.add("com.uiuios.sn");
|
||||
this.add("com.xxpatx.sn");
|
||||
this.add("com.uiuios.browser");
|
||||
// this.add("com.uiuios.appstore");
|
||||
// this.add("com.xxpatx.store");
|
||||
this.add("com.android.dialer");
|
||||
this.add("com.android.gallery3d");
|
||||
this.add("com.android.settings");
|
||||
@@ -158,14 +158,14 @@ public class ApkUtils {
|
||||
this.add("com.android.gallery3d");
|
||||
this.add("com.android.camera2");
|
||||
this.add("com.android.settings");
|
||||
this.add("com.uiuios.sn");
|
||||
this.add("com.uiuios.appstore");
|
||||
this.add("com.xxpatx.sn");
|
||||
this.add("com.xxpatx.store");
|
||||
}};
|
||||
|
||||
private static List<String> hideApp = new ArrayList<String>() {{
|
||||
this.add("com.uiuios.sn");
|
||||
this.add("com.xxpatx.sn");
|
||||
this.add("com.xxpatx.os");
|
||||
this.add("com.uiuios.appstore");
|
||||
this.add("com.xxpatx.store");
|
||||
this.add("com.android.quicksearchbox");
|
||||
this.add("com.android.stk");
|
||||
this.add("com.debug.loggerui");
|
||||
@@ -249,7 +249,7 @@ public class ApkUtils {
|
||||
resolveInfos.add(resolveInfo);
|
||||
}
|
||||
} else {
|
||||
if ("com.uiuios.sn".equals(pkg)) {
|
||||
if ("com.xxpatx.sn".equals(pkg)) {
|
||||
resolveInfos.add(resolveInfo);
|
||||
} else {
|
||||
Log.e(TAG, "queryFilterAppInfo: pkgSet ! contains " + pkg);
|
||||
@@ -322,7 +322,7 @@ public class ApkUtils {
|
||||
}
|
||||
|
||||
public static final HashSet<String> phoneShowPackageName = new HashSet<String>() {{
|
||||
this.add("com.uiuios.sn");
|
||||
this.add("com.xxpatx.sn");
|
||||
// this.add("com.uiuios.browser");
|
||||
// this.add("com.android.dialer");
|
||||
// this.add("com.android.gallery3d");
|
||||
@@ -377,7 +377,7 @@ public class ApkUtils {
|
||||
resolveInfos.add(resolveInfo);
|
||||
}
|
||||
} else {
|
||||
// if ("com.uiuios.sn".equals(pkg)) {
|
||||
// if ("com.xxpatx.sn".equals(pkg)) {
|
||||
// resolveInfos.add(resolveInfo);
|
||||
// } else {
|
||||
Log.e(TAG, "getAppstoreAppInfo: pkgSet ! contains " + pkg);
|
||||
|
||||
@@ -7,8 +7,8 @@ import java.util.List;
|
||||
|
||||
public class IconUtils {
|
||||
public static List<String> appClassNameList = new ArrayList<String>() {{
|
||||
this.add("com.uiuios.sn");//设别信息
|
||||
this.add("com.uiuios.appstore");//应用市场
|
||||
this.add("com.xxpatx.sn");//设备信息
|
||||
this.add("com.xxpatx.store");//应用市场
|
||||
this.add("aios.appstore");//应用市场
|
||||
this.add("com.uiui.weather");//天气
|
||||
this.add("com.android.browser");//浏览器
|
||||
|
||||
Reference in New Issue
Block a user