Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 79ea4abb18 | |||
| 22d36cba60 | |||
| 6d4d09a49e | |||
| 4c11814f06 | |||
| ee0b49f465 | |||
| 9d985b6f07 | |||
| b34694838c |
@@ -12,7 +12,7 @@ android {
|
||||
compileSdkVersion 29
|
||||
defaultConfig {
|
||||
applicationId "com.jiaoguanyi.appstore"
|
||||
minSdkVersion 20
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 29
|
||||
|
||||
// versionCode 105
|
||||
@@ -50,14 +50,14 @@ android {
|
||||
productFlavors {
|
||||
official {
|
||||
flavorDimensions "default"
|
||||
versionCode 1035
|
||||
versionName "2.0.3.5"
|
||||
versionCode 1036
|
||||
versionName "2.0.3.6"
|
||||
/*********************************极光推送************************************/
|
||||
manifestPlaceholders = [
|
||||
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",
|
||||
JPUSH_APPKEY : "20f70bbeb78bad23eddd08d0", //JPush上注册的包名对应的appkey.
|
||||
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
|
||||
channel_value : "official",
|
||||
channel_value: "official",
|
||||
]
|
||||
signingConfig signingConfigs.debug
|
||||
/*********************************极光推送end************************************/
|
||||
@@ -76,7 +76,7 @@ android {
|
||||
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",
|
||||
JPUSH_APPKEY : "52d81643665bb2cadacf0e9e", //JPush上注册的包名对应的appkey.
|
||||
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
|
||||
channel_value : "beta"
|
||||
channel_value: "beta"
|
||||
]
|
||||
signingConfig signingConfigs.debug
|
||||
/*********************************极光推送end************************************/
|
||||
@@ -95,7 +95,7 @@ android {
|
||||
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",
|
||||
JPUSH_APPKEY : "a98c8a210687b4bb43c39c39", //JPush上注册的包名对应的appkey.
|
||||
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
|
||||
channel_value : "zhongyou"
|
||||
channel_value: "zhongyou"
|
||||
]
|
||||
signingConfig signingConfigs.debug
|
||||
/*********************************极光推送end************************************/
|
||||
@@ -105,15 +105,15 @@ android {
|
||||
|
||||
newl {
|
||||
flavorDimensions "default"
|
||||
// versionCode 167
|
||||
versionCode 1033
|
||||
versionName "1.2.7"
|
||||
versionCode 169
|
||||
// versionCode 1036
|
||||
versionName "1.2.9"
|
||||
/*********************************极光推送************************************/
|
||||
manifestPlaceholders = [
|
||||
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",
|
||||
JPUSH_APPKEY : "52d81643665bb2cadacf0e9e", //JPush上注册的包名对应的appkey.
|
||||
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
|
||||
channel_value : "newl"
|
||||
channel_value: "newl"
|
||||
]
|
||||
signingConfig signingConfigs.debug
|
||||
/*********************************极光推送end************************************/
|
||||
@@ -135,7 +135,7 @@ android {
|
||||
keyPassword "123456"
|
||||
v2SigningEnabled false
|
||||
}
|
||||
|
||||
|
||||
release {// 签名文件
|
||||
storeFile file("src/main/doc/xueshibaoos.jks")
|
||||
storePassword "123456"
|
||||
@@ -191,7 +191,9 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
// implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
compileOnly files('src/main/libs/classes.jar')
|
||||
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
||||
implementation 'androidx.cardview:cardview:1.0.0'
|
||||
@@ -226,4 +228,27 @@ dependencies {
|
||||
annotationProcessor 'com.arialyy.aria:compiler:3.8.15'
|
||||
implementation 'com.amap.api:location:5.1.0'
|
||||
//高德地图定位
|
||||
implementation 'org.zeroturnaround:zt-zip:1.13'
|
||||
//压缩文件解压
|
||||
}
|
||||
|
||||
preBuild {
|
||||
doLast {
|
||||
def imlFile = file( project.name + ".iml")
|
||||
println 'Change ' + project.name + '.iml order'
|
||||
try {
|
||||
def parsedXml = (new XmlParser()).parse(imlFile)
|
||||
def jdkNode = parsedXml.component[1].orderEntry.find { it.'@type' == 'jdk' }
|
||||
parsedXml.component[1].remove(jdkNode)
|
||||
def sdkString = "Android API " + android.compileSdkVersion.substring("android-".length()) + " Platform"
|
||||
println 'what' + sdkString
|
||||
new Node(parsedXml.component[1], 'orderEntry', ['type': 'jdk', 'jdkName': sdkString, 'jdkType': 'Android SDK'])
|
||||
groovy.xml.XmlUtil.serialize(parsedXml, new FileOutputStream(imlFile))
|
||||
} catch (FileNotFoundException e) {
|
||||
// nop, iml not found
|
||||
println "no iml found"
|
||||
}
|
||||
}
|
||||
//https://www.pianshen.com/article/93481144911/
|
||||
//使用系统编译后的framework.jar
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.jiaoguanyi.appstore"
|
||||
package="com.mjsheng.myappstore"
|
||||
android:sharedUserId="android.uid.system">
|
||||
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
||||
@@ -82,7 +82,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||
|
||||
<application
|
||||
android:name="com.jiaoguanyi.appstore.base.BaseApplication"
|
||||
android:name="com.mjsheng.myappstore.base.BaseApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
@@ -91,8 +91,8 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity android:name="com.jiaoguanyi.appstore.activity.TopActivity" />
|
||||
<activity android:name="com.jiaoguanyi.appstore.activity.SplashActivity">
|
||||
<activity android:name="com.mjsheng.myappstore.activity.TopActivity" />
|
||||
<activity android:name="com.mjsheng.myappstore.activity.HomeActivity">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
@@ -101,7 +101,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.jiaoguanyi.appstore.activity.MainActivity"
|
||||
android:name="com.mjsheng.myappstore.activity.MainActivity"
|
||||
android:excludeFromRecents="true"
|
||||
android:launchMode="singleTop">
|
||||
<!-- <intent-filter>-->
|
||||
@@ -111,16 +111,16 @@
|
||||
<!-- </intent-filter>-->
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.jiaoguanyi.appstore.activity.OldActivity"
|
||||
android:name="com.mjsheng.myappstore.activity.OldActivity"
|
||||
android:excludeFromRecents="true"
|
||||
android:launchMode="singleTop" />
|
||||
<!-- <service android:name=".server.MyDownloadService" />-->
|
||||
<service android:name="com.jiaoguanyi.appstore.server.GuardService" />
|
||||
<service android:name="com.mjsheng.myappstore.server.GuardService" />
|
||||
<service
|
||||
android:name="com.jiaoguanyi.appstore.server.StepService"
|
||||
android:name="com.mjsheng.myappstore.server.StepService"
|
||||
android:exported="true" />
|
||||
<service
|
||||
android:name="com.jiaoguanyi.appstore.server.MainService"
|
||||
android:name="com.mjsheng.myappstore.server.MainService"
|
||||
android:enabled="true"
|
||||
android:exported="true">
|
||||
<intent-filter android:priority="1000">
|
||||
@@ -139,7 +139,7 @@
|
||||
<!-- </service>-->
|
||||
|
||||
<receiver
|
||||
android:name="com.jiaoguanyi.appstore.receiver.NewAppReceiver"
|
||||
android:name="com.mjsheng.myappstore.receiver.NewAppReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:permission="com.example.broadcast.permission">
|
||||
@@ -152,11 +152,11 @@
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<receiver
|
||||
android:name="com.jiaoguanyi.appstore.utils.InstallResultReceiver"
|
||||
android:name="com.mjsheng.myappstore.utils.InstallResultReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="true" />
|
||||
<receiver
|
||||
android:name="com.jiaoguanyi.appstore.receiver.BootReceiver"
|
||||
android:name="com.mjsheng.myappstore.receiver.BootReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="true">
|
||||
<intent-filter android:priority="1000">
|
||||
@@ -198,7 +198,7 @@
|
||||
<!-- </intent-filter> -->
|
||||
<!-- </receiver> -->
|
||||
<receiver
|
||||
android:name="com.jiaoguanyi.appstore.receiver.MyJPushReceiver"
|
||||
android:name="com.mjsheng.myappstore.receiver.MyJPushReceiver"
|
||||
android:enabled="true">
|
||||
<intent-filter>
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
<!-- Since JCore2.0.0 Required SDK核心功能 -->
|
||||
<!-- 这个Service要继承JCommonService -->
|
||||
<service
|
||||
android:name="com.jiaoguanyi.appstore.jpush.PushService"
|
||||
android:name="com.mjsheng.myappstore.jpush.PushService"
|
||||
android:process=":pushcore">
|
||||
<intent-filter>
|
||||
<action android:name="cn.jiguang.user.service.action" />
|
||||
@@ -347,7 +347,7 @@
|
||||
</service>
|
||||
<!-- User defined. For test only 用户自定义的广播接收器 -->
|
||||
<receiver
|
||||
android:name="com.jiaoguanyi.appstore.jpush.MyReceiver"
|
||||
android:name="com.mjsheng.myappstore.jpush.MyReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
@@ -365,7 +365,7 @@
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<!-- User defined. For test only 用户自定义接收消息器,3.0.7开始支持,目前新tag/alias接口设置结果会在该广播接收器对应的方法中回调 -->
|
||||
<receiver android:name="com.jiaoguanyi.appstore.jpush.MyJPushMessageReceiver">
|
||||
<receiver android:name="com.mjsheng.myappstore.jpush.MyJPushMessageReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// KeepAliveConnection.aidl
|
||||
package com.jiaoguanyi.appstore;
|
||||
package com.mjsheng.myappstore;
|
||||
|
||||
// Declare any non-default types here with import statements
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
package com.jiaoguanyi.appstore.base;
|
||||
|
||||
public interface BaseView {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package com.jiaoguanyi.appstore.utils;
|
||||
|
||||
public class XAPKUtils {
|
||||
}
|
||||
@@ -1,36 +1,31 @@
|
||||
package com.jiaoguanyi.appstore.activity;
|
||||
package com.mjsheng.myappstore.activity;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.StatusBarManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Bitmap;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.os.Handler;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.jiaoguanyi.appstore.BuildConfig;
|
||||
import com.jiaoguanyi.appstore.R;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.R;
|
||||
import com.lzy.okgo.model.HttpHeaders;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
|
||||
public class SplashActivity extends AppCompatActivity {
|
||||
private static String TAG = SplashActivity.class.getSimpleName();
|
||||
public class HomeActivity extends AppCompatActivity {
|
||||
private static String TAG = HomeActivity.class.getSimpleName();
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -39,7 +34,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
new Handler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
startActivity(new Intent(SplashActivity.this, MainActivity.class));
|
||||
startActivity(new Intent(HomeActivity.this, MainActivity.class));
|
||||
finish();
|
||||
}
|
||||
}, 2000);
|
||||
@@ -52,9 +47,26 @@ public class SplashActivity extends AppCompatActivity {
|
||||
private void DebugTest() {
|
||||
// Utils.getHardware(this);
|
||||
hookWebView();
|
||||
setWebView();
|
||||
// setWebView();
|
||||
// hideStatusBar();
|
||||
Log.e(TAG, "DebugTest: " + HttpHeaders.getUserAgent());
|
||||
boolean qch_force_app = Settings.System.putString(getContentResolver(), "qch_launcher_icon_app", "");
|
||||
Log.e(TAG, "DebugTest: "+ Settings.System.getString(getContentResolver(), "qch_launcher_icon_app"));
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
private void hideStatusBar() {
|
||||
StatusBarManager mStatusBarManager = (StatusBarManager) getApplicationContext().getSystemService(Context.STATUS_BAR_SERVICE);
|
||||
mStatusBarManager.disable(StatusBarManager.DISABLE_HOME);//隐藏home键
|
||||
mStatusBarManager.disable(StatusBarManager.DISABLE_BACK);//隐藏返回键
|
||||
mStatusBarManager.disable(StatusBarManager.DISABLE_RECENT | StatusBarManager.DISABLE_HOME);
|
||||
mStatusBarManager.disable(StatusBarManager.DISABLE_BACK | StatusBarManager.DISABLE_RECENT | StatusBarManager.DISABLE_HOME);
|
||||
mStatusBarManager.disable(StatusBarManager.DISABLE_RECENT);//隐藏recent键
|
||||
mStatusBarManager.disable(StatusBarManager.DISABLE_NONE);//显示隐藏的虚拟按键
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void bootanimotion() {
|
||||
// File file = new File(Environment.getExternalStorageDirectory() + File.separator + "bootanimation.zip");
|
||||
// String path0 = "/data/local/qchmedia/bootanimation.zip";
|
||||
@@ -102,7 +114,8 @@ public class SplashActivity extends AppCompatActivity {
|
||||
}
|
||||
});
|
||||
}
|
||||
public static void hookWebView(){
|
||||
|
||||
public static void hookWebView() {
|
||||
int sdkInt = Build.VERSION.SDK_INT;
|
||||
try {
|
||||
Class<?> factoryClass = Class.forName("android.webkit.WebViewFactory");
|
||||
@@ -110,7 +123,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
field.setAccessible(true);
|
||||
Object sProviderInstance = field.get(null);
|
||||
if (sProviderInstance != null) {
|
||||
Log.i(TAG,"sProviderInstance isn't null");
|
||||
Log.i(TAG, "sProviderInstance isn't null");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -120,7 +133,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
} else if (sdkInt == 22) {
|
||||
getProviderClassMethod = factoryClass.getDeclaredMethod("getFactoryClass");
|
||||
} else {
|
||||
Log.i(TAG,"Don't need to Hook WebView");
|
||||
Log.i(TAG, "Don't need to Hook WebView");
|
||||
return;
|
||||
}
|
||||
getProviderClassMethod.setAccessible(true);
|
||||
@@ -128,7 +141,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
Class<?> delegateClass = Class.forName("android.webkit.WebViewDelegate");
|
||||
Constructor<?> delegateConstructor = delegateClass.getDeclaredConstructor();
|
||||
delegateConstructor.setAccessible(true);
|
||||
if(sdkInt < 26){//低于Android O版本
|
||||
if (sdkInt < 26) {//低于Android O版本
|
||||
Constructor<?> providerConstructor = factoryProviderClass.getConstructor(delegateClass);
|
||||
if (providerConstructor != null) {
|
||||
providerConstructor.setAccessible(true);
|
||||
@@ -137,24 +150,24 @@ public class SplashActivity extends AppCompatActivity {
|
||||
} else {
|
||||
Field chromiumMethodName = factoryClass.getDeclaredField("CHROMIUM_WEBVIEW_FACTORY_METHOD");
|
||||
chromiumMethodName.setAccessible(true);
|
||||
String chromiumMethodNameStr = (String)chromiumMethodName.get(null);
|
||||
String chromiumMethodNameStr = (String) chromiumMethodName.get(null);
|
||||
if (chromiumMethodNameStr == null) {
|
||||
chromiumMethodNameStr = "create";
|
||||
}
|
||||
Method staticFactory = factoryProviderClass.getMethod(chromiumMethodNameStr, delegateClass);
|
||||
if (staticFactory!=null){
|
||||
if (staticFactory != null) {
|
||||
sProviderInstance = staticFactory.invoke(null, delegateConstructor.newInstance());
|
||||
}
|
||||
}
|
||||
|
||||
if (sProviderInstance != null){
|
||||
if (sProviderInstance != null) {
|
||||
field.set("sProviderInstance", sProviderInstance);
|
||||
Log.i(TAG,"Hook success!");
|
||||
Log.i(TAG, "Hook success!");
|
||||
} else {
|
||||
Log.i(TAG,"Hook failed!");
|
||||
Log.i(TAG, "Hook failed!");
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
Log.w(TAG,e);
|
||||
Log.w(TAG, e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.activity;
|
||||
package com.mjsheng.myappstore.activity;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.BroadcastReceiver;
|
||||
@@ -7,6 +7,7 @@ import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
@@ -16,16 +17,16 @@ import android.widget.TextView;
|
||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.jiaoguanyi.appstore.BuildConfig;
|
||||
import com.jiaoguanyi.appstore.R;
|
||||
import com.jiaoguanyi.appstore.base.BaseActivity;
|
||||
import com.jiaoguanyi.appstore.utils.ApkUtils;
|
||||
import com.jiaoguanyi.appstore.utils.ExampleUtil;
|
||||
import com.jiaoguanyi.appstore.utils.JGYUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SaveListUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SysSettingUtils;
|
||||
import com.jiaoguanyi.appstore.utils.ToastUtil;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.R;
|
||||
import com.mjsheng.myappstore.base.BaseActivity;
|
||||
import com.mjsheng.myappstore.utils.ApkUtils;
|
||||
import com.mjsheng.myappstore.utils.ExampleUtil;
|
||||
import com.mjsheng.myappstore.utils.JGYUtils;
|
||||
import com.mjsheng.myappstore.utils.SaveListUtils;
|
||||
import com.mjsheng.myappstore.utils.SysSettingUtils;
|
||||
import com.mjsheng.myappstore.utils.ToastUtil;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@@ -299,6 +300,7 @@ public class MainActivity extends BaseActivity implements MainContact.MainView {
|
||||
|
||||
@Override
|
||||
public void getBrowserBookmarksFinished() {
|
||||
mPresenter.getBrowserWhiteList();
|
||||
mPresenter.getDesktopIcon();
|
||||
}
|
||||
|
||||
@@ -367,6 +369,26 @@ public class MainActivity extends BaseActivity implements MainContact.MainView {
|
||||
mPresenter.detachView();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
lazyExit();
|
||||
return true;
|
||||
}
|
||||
return super.onKeyDown(keyCode, event);
|
||||
}
|
||||
|
||||
private long mPreClickTime;
|
||||
|
||||
private void lazyExit() {
|
||||
if (System.currentTimeMillis() - mPreClickTime > 3000) {
|
||||
ToastUtil.show("再按一次,退出");
|
||||
mPreClickTime = System.currentTimeMillis();
|
||||
} else {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
@OnClick({R.id.back, R.id.chkupd})
|
||||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
@@ -425,17 +447,6 @@ public class MainActivity extends BaseActivity implements MainContact.MainView {
|
||||
.subscribe(mObserver);
|
||||
}
|
||||
|
||||
private long mPreClickTime;
|
||||
|
||||
private void lazyExit() {
|
||||
if (System.currentTimeMillis() - mPreClickTime > 1000) {
|
||||
ToastUtil.show("再按一次,退出");
|
||||
mPreClickTime = System.currentTimeMillis();
|
||||
} else {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
//jiguang
|
||||
public void registerMessageReceiver() {
|
||||
mMessageReceiver = new MessageReceiver();
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.jiaoguanyi.appstore.activity;
|
||||
package com.mjsheng.myappstore.activity;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.jiaoguanyi.appstore.base.BasePresenter;
|
||||
import com.jiaoguanyi.appstore.base.BaseView;
|
||||
import com.mjsheng.myappstore.base.BasePresenter;
|
||||
import com.mjsheng.myappstore.base.BaseView;
|
||||
|
||||
public class MainContact {
|
||||
public interface MainView extends BaseView {
|
||||
@@ -108,6 +108,8 @@ public class MainContact {
|
||||
//获取浏览器上网管控设置
|
||||
void getBrowserBookmarks(String whitelist);
|
||||
//获取浏览器书签设置管控
|
||||
void getBrowserWhiteList();
|
||||
//设置白名单的url
|
||||
void getDesktopIcon();
|
||||
//获取应用图标桌面可见性管控
|
||||
void getAppAutoStartUpdateAndNet();
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.activity;
|
||||
package com.mjsheng.myappstore.activity;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
@@ -18,29 +18,29 @@ import com.google.gson.Gson;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParser;
|
||||
import com.jiaoguanyi.appstore.BuildConfig;
|
||||
import com.jiaoguanyi.appstore.base.BaseApplication;
|
||||
import com.jiaoguanyi.appstore.bean.Appground;
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.bean.Batch;
|
||||
import com.jiaoguanyi.appstore.bean.BrowserBookmarks;
|
||||
import com.jiaoguanyi.appstore.bean.BrowserData;
|
||||
import com.jiaoguanyi.appstore.bean.Desktop;
|
||||
import com.jiaoguanyi.appstore.bean.ForceDownloadBean;
|
||||
import com.jiaoguanyi.appstore.bean.LogoImg;
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchBean;
|
||||
import com.jiaoguanyi.appstore.bean.NewAppground;
|
||||
import com.jiaoguanyi.appstore.bean.StudentsInfo;
|
||||
import com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper;
|
||||
import com.jiaoguanyi.appstore.manager.NetInterfaceManager;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.UpdateDeviceInfoApi;
|
||||
import com.jiaoguanyi.appstore.server.MainService;
|
||||
import com.jiaoguanyi.appstore.utils.ApkUtils;
|
||||
import com.jiaoguanyi.appstore.utils.JGYUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SPUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SysSettingUtils;
|
||||
import com.jiaoguanyi.appstore.utils.TimeUtils;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.base.BaseApplication;
|
||||
import com.mjsheng.myappstore.bean.Appground;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.bean.Batch;
|
||||
import com.mjsheng.myappstore.bean.BrowserBookmarks;
|
||||
import com.mjsheng.myappstore.bean.BrowserData;
|
||||
import com.mjsheng.myappstore.bean.ForceDownloadBean;
|
||||
import com.mjsheng.myappstore.bean.LogoImg;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchBean;
|
||||
import com.mjsheng.myappstore.bean.NewAppground;
|
||||
import com.mjsheng.myappstore.bean.StudentsInfo;
|
||||
import com.mjsheng.myappstore.jpush.TagAliasOperatorHelper;
|
||||
import com.mjsheng.myappstore.manager.NetInterfaceManager;
|
||||
import com.mjsheng.myappstore.network.api.newapi.UpdateDeviceInfoApi;
|
||||
import com.mjsheng.myappstore.server.MainService;
|
||||
import com.mjsheng.myappstore.utils.ApkUtils;
|
||||
import com.mjsheng.myappstore.utils.JGYUtils;
|
||||
import com.mjsheng.myappstore.utils.SPUtils;
|
||||
import com.mjsheng.myappstore.utils.SysSettingUtils;
|
||||
import com.mjsheng.myappstore.utils.TimeUtils;
|
||||
import com.mjsheng.myappstore.utils.URLUtils;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
@@ -57,8 +57,8 @@ import io.reactivex.disposables.Disposable;
|
||||
import io.reactivex.schedulers.Schedulers;
|
||||
import okhttp3.ResponseBody;
|
||||
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.ACTION_SET;
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.sequence;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.ACTION_SET;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.sequence;
|
||||
|
||||
public class MainPresenter implements MainContact.Presenter {
|
||||
private static final String TAG = MainPresenter.class.getSimpleName();
|
||||
@@ -80,6 +80,11 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
this.mView = null;
|
||||
}
|
||||
|
||||
private boolean isOfficialVersion() {
|
||||
String channelValue = JGYUtils.getInstance().getStringMetaData();
|
||||
return "official".equals(channelValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过sn获取用户信息
|
||||
*/
|
||||
@@ -268,8 +273,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void updateDeviceInfo() {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
if ("official".equals(channel_value)) {
|
||||
if (isOfficialVersion()) {
|
||||
mView.updateDeviceInfoFinished();
|
||||
return;
|
||||
}
|
||||
@@ -328,8 +332,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void getSnTimeControl() {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
if ("official".equals(channel_value)) {
|
||||
if (isOfficialVersion()) {
|
||||
mView.getSnTimeControlFinished();
|
||||
return;
|
||||
}
|
||||
@@ -551,8 +554,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void checkTestUpdate() {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
if ("official".equals(channel_value)) {
|
||||
if (isOfficialVersion()) {
|
||||
mView.checkTestUpdateFinished();
|
||||
return;
|
||||
}
|
||||
@@ -617,10 +619,15 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
int code = jsonObject.get("code").getAsInt();
|
||||
if (code == 200) {
|
||||
String data = jsonObject.get("data").getAsJsonObject().get("result").getAsString();
|
||||
JGYUtils.getInstance().writeAppPackageList(data);
|
||||
boolean write = Settings.System.putString(mContext.getContentResolver(), "only_jgy_shortcut_list", data);
|
||||
Log.e(TAG, "onNext: only_jgy_shortcut_list: " + write);
|
||||
//开机图标
|
||||
JGYUtils.getInstance().writeAppPackageList(mContext, data);
|
||||
mView.getAppLimitFinished(data);
|
||||
} else {
|
||||
mView.getAppLimitFinished("");
|
||||
boolean write = Settings.System.putString(mContext.getContentResolver(), "only_jgy_shortcut_list", "");
|
||||
Log.e(TAG, "onNext: only_jgy_shortcut_list: " + write);
|
||||
Log.e("getAppLimit", "onNext: " + bodyString);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
@@ -644,8 +651,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void getDeviceBatch(String packageList) {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
if ("official".equals(channel_value)) {
|
||||
if (isOfficialVersion()) {
|
||||
mView.getDeviceBatchFinished();
|
||||
return;
|
||||
}
|
||||
@@ -763,16 +769,18 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
Log.e("getBrowserList", "onNext: ");
|
||||
if (browserDataBaseResponse.code == 200) {
|
||||
String white = browserDataBaseResponse.data.getWhite();
|
||||
mView.getBrowserListFinished(white);
|
||||
|
||||
if (!TextUtils.isEmpty(white)) {
|
||||
String homePage = Settings.System.getString(mContext.getContentResolver(), "homepagURL");
|
||||
if (!white.contains(homePage) && !TextUtils.isEmpty(homePage)) {
|
||||
if (!TextUtils.isEmpty(homePage) && !white.contains(homePage)) {
|
||||
white += "," + homePage;
|
||||
}
|
||||
boolean whiteList = Settings.System.putString(mContext.getContentResolver(), "DeselectBrowserArray", white);
|
||||
Log.e("getBrowserList", "setBrowserList white: " + white + ":" + whiteList);
|
||||
mView.getBrowserListFinished(white);
|
||||
} else {
|
||||
Settings.System.putString(mContext.getContentResolver(), "DeselectBrowserArray", " ");
|
||||
mView.getBrowserListFinished("");
|
||||
}
|
||||
String black = browserDataBaseResponse.data.getBlack();
|
||||
if (!TextUtils.isEmpty(black)) {
|
||||
@@ -814,15 +822,15 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
@Override
|
||||
public void onNext(@NonNull BaseResponse<BrowserBookmarks> browserBookmarksBaseResponse) {
|
||||
Log.e("getBrowserBookmarks", "onNext: ");
|
||||
String whiteString = whitelist;
|
||||
StringBuilder whiteString = new StringBuilder(whitelist);
|
||||
if (browserBookmarksBaseResponse.code == 200) {
|
||||
//主页
|
||||
String homepagURL = browserBookmarksBaseResponse.data.getHomepage();
|
||||
boolean home = Settings.System.putString(mContext.getContentResolver(), "homepagURL", homepagURL);
|
||||
Log.e("getBrowserBookmarks", "onNext: homepagURL: save homepagURL = " + home);
|
||||
if (whiteLists.size() <= 0 || !whiteLists.contains(homepagURL)) {
|
||||
whiteString += "," + homepagURL;
|
||||
boolean white = Settings.System.putString(mContext.getContentResolver(), "DeselectBrowserArray", whiteString);
|
||||
whiteString.append(",").append(homepagURL);
|
||||
boolean white = Settings.System.putString(mContext.getContentResolver(), "DeselectBrowserArray", whiteString.toString());
|
||||
Log.e("getBrowserBookmarks", "onNext: homepagURL: add to whiteList = " + whiteString + "write: " + white);
|
||||
}
|
||||
|
||||
@@ -884,6 +892,11 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getBrowserWhiteList() {
|
||||
new URLUtils(mContext).setBrowserList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getDesktopIcon() {
|
||||
NetInterfaceManager.getInstance()
|
||||
@@ -984,6 +997,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
Log.e("getAppIDControl", "onNext: ");
|
||||
try {
|
||||
String bodyString = responseBody.string();
|
||||
Log.e("getAppIDControl", "bodyString: " + bodyString);
|
||||
JsonObject jsonObject = JsonParser.parseString(bodyString).getAsJsonObject();
|
||||
int code = jsonObject.get("code").getAsInt();
|
||||
if (code == 200) {
|
||||
@@ -1020,8 +1034,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void setAppinsideWeb() {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
if ("official".equals(channel_value)) {
|
||||
if (isOfficialVersion()) {
|
||||
getAppinsideWeb();
|
||||
} else {
|
||||
getNewAppinsideWeb();
|
||||
@@ -1083,6 +1096,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
@Override
|
||||
public void onComplete() {
|
||||
Log.e("getNewAppinsideWeb", "onComplete: ");
|
||||
mView.setAppinsideWebFinished();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1135,6 +1149,10 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void setLogoImg() {
|
||||
if (isOfficialVersion()) {
|
||||
mView.setLogoImgFinished();
|
||||
return;
|
||||
}
|
||||
NetInterfaceManager.getInstance()
|
||||
.getLogoImgObservable()
|
||||
.subscribe(new Observer<BaseResponse<LogoImg>>() {
|
||||
@@ -1178,9 +1196,8 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void getScreenLockState() {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
int locked = Settings.System.getInt(mContext.getContentResolver(), "qch_unlock_ipad", 1);
|
||||
if ("official".equals(channel_value) || locked == 1) {
|
||||
if (isOfficialVersion() || locked == 1) {
|
||||
mView.setScreenLockStateFinished(false, "");
|
||||
return;
|
||||
}
|
||||
@@ -1222,8 +1239,7 @@ public class MainPresenter implements MainContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void getDefaultDesktop() {
|
||||
String channel_value = JGYUtils.getInstance().getStringMetaData();
|
||||
if ("official".equals(channel_value)) {
|
||||
if (isOfficialVersion()) {
|
||||
mView.getDefaultDesktopFinished();
|
||||
return;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.activity;
|
||||
package com.mjsheng.myappstore.activity;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.AlertDialog;
|
||||
@@ -36,33 +36,33 @@ import com.blankj.utilcode.util.EncryptUtils;
|
||||
import com.blankj.utilcode.util.PathUtils;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.callback.StringCallback;
|
||||
import com.jiaoguanyi.appstore.BuildConfig;
|
||||
import com.jiaoguanyi.appstore.R;
|
||||
import com.jiaoguanyi.appstore.base.BaseApplication;
|
||||
import com.jiaoguanyi.appstore.bean.ForceDownloadBean;
|
||||
import com.jiaoguanyi.appstore.bean.ForceDownloadData;
|
||||
import com.jiaoguanyi.appstore.bean.LzyResponse;
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchBean;
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchData;
|
||||
import com.jiaoguanyi.appstore.bean.StudentsInfo;
|
||||
import com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper;
|
||||
import com.jiaoguanyi.appstore.manager.NetInterfaceManager;
|
||||
import com.jiaoguanyi.appstore.network.HTTPInterface;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.jiaoguanyi.appstore.network.api.AppLimitApi;
|
||||
import com.jiaoguanyi.appstore.network.api.DeselectBrowserIDApi;
|
||||
import com.jiaoguanyi.appstore.network.api.DeselectIDApi;
|
||||
import com.jiaoguanyi.appstore.network.api.ForceDownloadApi;
|
||||
import com.jiaoguanyi.appstore.network.api.NetAndLaunchApi;
|
||||
import com.jiaoguanyi.appstore.network.api.SystemSettingApi;
|
||||
import com.jiaoguanyi.appstore.utils.ApkUtils;
|
||||
import com.jiaoguanyi.appstore.utils.ExampleUtil;
|
||||
import com.jiaoguanyi.appstore.utils.JGYUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SPUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SaveListUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SysSettingUtils;
|
||||
import com.jiaoguanyi.appstore.utils.ToastUtil;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.R;
|
||||
import com.mjsheng.myappstore.base.BaseApplication;
|
||||
import com.mjsheng.myappstore.bean.ForceDownloadBean;
|
||||
import com.mjsheng.myappstore.bean.ForceDownloadData;
|
||||
import com.mjsheng.myappstore.bean.LzyResponse;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchBean;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchData;
|
||||
import com.mjsheng.myappstore.bean.StudentsInfo;
|
||||
import com.mjsheng.myappstore.jpush.TagAliasOperatorHelper;
|
||||
import com.mjsheng.myappstore.manager.NetInterfaceManager;
|
||||
import com.mjsheng.myappstore.network.HTTPInterface;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.network.api.AppLimitApi;
|
||||
import com.mjsheng.myappstore.network.api.DeselectBrowserIDApi;
|
||||
import com.mjsheng.myappstore.network.api.DeselectIDApi;
|
||||
import com.mjsheng.myappstore.network.api.ForceDownloadApi;
|
||||
import com.mjsheng.myappstore.network.api.NetAndLaunchApi;
|
||||
import com.mjsheng.myappstore.network.api.SystemSettingApi;
|
||||
import com.mjsheng.myappstore.utils.ApkUtils;
|
||||
import com.mjsheng.myappstore.utils.ExampleUtil;
|
||||
import com.mjsheng.myappstore.utils.JGYUtils;
|
||||
import com.mjsheng.myappstore.utils.SPUtils;
|
||||
import com.mjsheng.myappstore.utils.SaveListUtils;
|
||||
import com.mjsheng.myappstore.utils.SysSettingUtils;
|
||||
import com.mjsheng.myappstore.utils.ToastUtil;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@@ -85,13 +85,12 @@ import okhttp3.ResponseBody;
|
||||
import rx.Observable;
|
||||
import rx.functions.Action1;
|
||||
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.ACTION_SET;
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.TagAliasBean;
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.sequence;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.ACTION_SET;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.TagAliasBean;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.sequence;
|
||||
|
||||
public class OldActivity extends AppCompatActivity {
|
||||
private static final String TAG = OldActivity.class.getSimpleName();
|
||||
private long mPreClickTime;
|
||||
private Context mContext;
|
||||
private final String ACTION_HrReceiver_JGY_DIS = "qch_jgy_network_disallow";
|
||||
private final String ACTION_HrReceiver_JGY = "qch_jgy_network_allow";
|
||||
@@ -999,6 +998,7 @@ public class OldActivity extends AppCompatActivity {
|
||||
|
||||
// 用来计算返回键的点击间隔时间
|
||||
private long exitTime = 0;
|
||||
private long mPreClickTime;
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
@@ -1041,7 +1041,7 @@ public class OldActivity extends AppCompatActivity {
|
||||
case 200:
|
||||
JSONObject data = jsonObject.getJSONObject("data");
|
||||
String result = data.optString("result");
|
||||
writeAppPackageList(result);
|
||||
// writeAppPackageList(result);
|
||||
break;
|
||||
default:
|
||||
Log.e("mjhseng", "getAppLimitApi---code is -200");
|
||||
@@ -1065,39 +1065,6 @@ public class OldActivity extends AppCompatActivity {
|
||||
});
|
||||
}
|
||||
|
||||
private void writeAppPackageList(String result) {
|
||||
String appstore = "com.jiaoguanyi.appstore";
|
||||
String store = "com.jiaoguanyi.store";
|
||||
String info = "com.info.sn";
|
||||
// String iflytek = "com.estrongs.android.pop";
|
||||
String jgy1 = "com.uiuios.jgy1";
|
||||
String jgy2 = "com.uiuios.jgy2";
|
||||
if (!TextUtils.isEmpty(result)) {
|
||||
Log.e("writeAppPackageList", result);
|
||||
if (!result.contains(appstore)) {
|
||||
result = result + "," + appstore;
|
||||
}
|
||||
if (!result.contains(store)) {
|
||||
result = result + "," + store;
|
||||
}
|
||||
if (!result.contains(jgy1)) {
|
||||
result = result + "," + jgy1;
|
||||
}
|
||||
if (!result.contains(jgy2)) {
|
||||
result = result + "," + jgy2;
|
||||
}
|
||||
if (!result.contains(info)) {
|
||||
result = result + "," + info;
|
||||
}
|
||||
//人脸识别
|
||||
boolean b = Settings.System.putString(getContentResolver(), "qch_app_forbid", result);
|
||||
Log.e("mjsheng", "qch_app_forbid is :" + b + Settings.System.getString(getContentResolver(), "qch_app_forbid"));
|
||||
|
||||
} else {
|
||||
Log.e("mjsheng", "writeAppPackageList is null:");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void getDeselectID() {
|
||||
DeselectIDApi deselectIDApi = NetInterfaceManager.getDeselectIDApi();
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.jiaoguanyi.appstore.activity;
|
||||
package com.mjsheng.myappstore.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.os.Bundle;
|
||||
import android.view.KeyEvent;
|
||||
|
||||
import com.jiaoguanyi.appstore.R;
|
||||
import com.mjsheng.myappstore.R;
|
||||
|
||||
public class TopActivity extends AppCompatActivity {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.base;
|
||||
package com.mjsheng.myappstore.base;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.jiaoguanyi.appstore.base;
|
||||
package com.mjsheng.myappstore.base;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
@@ -14,7 +15,6 @@ import android.os.Looper;
|
||||
import android.os.PowerManager;
|
||||
import android.os.Process;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.multidex.MultiDexApplication;
|
||||
@@ -23,29 +23,32 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.amap.api.location.AMapLocationClient;
|
||||
import com.arialyy.aria.core.Aria;
|
||||
import com.arialyy.aria.core.download.DownloadEntity;
|
||||
import com.mjsheng.myappstore.manager.FileManager;
|
||||
import com.mjsheng.myappstore.receiver.BootReceiver;
|
||||
import com.mjsheng.myappstore.utils.XAPKUtils;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.cache.CacheEntity;
|
||||
import com.lzy.okgo.cache.CacheMode;
|
||||
import com.lzy.okgo.callback.StringCallback;
|
||||
import com.lzy.okgo.cookie.store.PersistentCookieStore;
|
||||
import com.jiaoguanyi.appstore.BuildConfig;
|
||||
import com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper;
|
||||
import com.jiaoguanyi.appstore.manager.AmapManager;
|
||||
import com.jiaoguanyi.appstore.manager.NetInterfaceManager;
|
||||
import com.jiaoguanyi.appstore.network.HTTPInterface;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.GetLockStateApi;
|
||||
import com.jiaoguanyi.appstore.receiver.NewAppReceiver;
|
||||
import com.jiaoguanyi.appstore.server.GuardService;
|
||||
import com.jiaoguanyi.appstore.server.MainService;
|
||||
import com.jiaoguanyi.appstore.server.StepService;
|
||||
import com.jiaoguanyi.appstore.statistics.AppInformation;
|
||||
import com.jiaoguanyi.appstore.statistics.StatisticsInfo;
|
||||
import com.jiaoguanyi.appstore.utils.JGYUtils;
|
||||
import com.jiaoguanyi.appstore.utils.NetworkUtils;
|
||||
import com.jiaoguanyi.appstore.utils.SystemUtils;
|
||||
import com.jiaoguanyi.appstore.utils.ToastUtil;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.jpush.TagAliasOperatorHelper;
|
||||
import com.mjsheng.myappstore.manager.AmapManager;
|
||||
import com.mjsheng.myappstore.manager.NetInterfaceManager;
|
||||
import com.mjsheng.myappstore.network.HTTPInterface;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.network.api.newapi.GetLockStateApi;
|
||||
import com.mjsheng.myappstore.receiver.NewAppReceiver;
|
||||
import com.mjsheng.myappstore.server.GuardService;
|
||||
import com.mjsheng.myappstore.server.MainService;
|
||||
import com.mjsheng.myappstore.server.StepService;
|
||||
import com.mjsheng.myappstore.statistics.AppInformation;
|
||||
import com.mjsheng.myappstore.statistics.StatisticsInfo;
|
||||
import com.mjsheng.myappstore.utils.JGYUtils;
|
||||
import com.mjsheng.myappstore.utils.NetworkUtils;
|
||||
import com.mjsheng.myappstore.utils.SystemUtils;
|
||||
import com.mjsheng.myappstore.utils.ToastUtil;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
@@ -74,11 +77,12 @@ import rx.functions.Action1;
|
||||
*/
|
||||
|
||||
//public class MyApplication extends MultiDexApplication implements Thread.UncaughtExceptionHandler {
|
||||
public class BaseApplication extends MultiDexApplication{
|
||||
public class BaseApplication extends MultiDexApplication {
|
||||
private final String TAG = BaseApplication.class.getSimpleName();
|
||||
|
||||
public static Context context;
|
||||
private static BaseApplication instance;
|
||||
private Handler mHandler = new Handler();
|
||||
|
||||
|
||||
public static Context getAppContext() {
|
||||
@@ -106,6 +110,8 @@ public class BaseApplication extends MultiDexApplication{
|
||||
private void init() {
|
||||
NetInterfaceManager.init(this);
|
||||
JGYUtils.init(this);
|
||||
XAPKUtils.init(this);
|
||||
FileManager.init(this);
|
||||
Configuration config = getResources().getConfiguration();
|
||||
int smallestScreenWidthDp = config.smallestScreenWidthDp;
|
||||
Log.e("mjsheng", "smallestScreenWidthDp=" + smallestScreenWidthDp);
|
||||
@@ -201,6 +207,13 @@ public class BaseApplication extends MultiDexApplication{
|
||||
|
||||
private ScreenReceiver screenReceiver;
|
||||
|
||||
|
||||
Long time1 = 0L;
|
||||
Long time2 = 0L;
|
||||
|
||||
Long time3 = 0L;
|
||||
Long time4 = 0L;
|
||||
|
||||
public class ScreenReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
@@ -213,55 +226,52 @@ public class BaseApplication extends MultiDexApplication{
|
||||
aMapLocationClient.stopLocation();
|
||||
aMapLocationClient.startLocation();
|
||||
getLockState("2", String.valueOf(time));
|
||||
}
|
||||
// else if (action.equals(Intent.ACTION_USER_PRESENT)) {
|
||||
//// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
//// /*在8.0以上 除了开机广播其他广播基本上没有用
|
||||
//// *当静默安装升级时,app不会被唤醒,只有通过显示广播唤醒
|
||||
//// * */
|
||||
//// mHandler.postDelayed(new Runnable() {
|
||||
//// @Override
|
||||
//// public void run() {
|
||||
//// Intent intent1 = new Intent(BootReceiver.BOOT_COMPLETED);
|
||||
//// intent1.setComponent(new ComponentName("com.jiaoguanyi.store", "com.mjsheng.myappstore.receiver.BootReceiver"));
|
||||
//// // 携带数据
|
||||
////// intent1.putExtra("test", "我是来测 A 应用的Android 8.0 系统静态广播的测试数据");
|
||||
//// // 启动发送广播
|
||||
//// sendBroadcast(intent1);
|
||||
////
|
||||
//// time2 = System.currentTimeMillis();
|
||||
//// if ((time2 - time1) > 60 * 1000) {
|
||||
//// //可能会多次触发,1分钟之内不执行
|
||||
//// //application中启动服务,startcommand执行会两次
|
||||
//// startService(new Intent(context, InitJpushServer.class));
|
||||
//// startService(new Intent(context, StepService.class));
|
||||
//// startService(new Intent(context, GuardService.class));
|
||||
//// time1 = time2;
|
||||
//// }
|
||||
//// }
|
||||
//// }, 5000);
|
||||
////
|
||||
//// }
|
||||
//// }
|
||||
//// else if (action.equals(Intent.ACTION_SCREEN_OFF)) {
|
||||
//// mHandler.postDelayed(new Runnable() {
|
||||
//// @Override
|
||||
//// public void run() {
|
||||
//// long time = System.currentTimeMillis();
|
||||
//// getLockState("1", String.valueOf(time));
|
||||
//// if (time3 - System.currentTimeMillis() >= 10000) {
|
||||
//// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
//// Intent intent1 = new Intent(BootReceiver.BOOT_COMPLETED);
|
||||
//// intent1.setComponent(new ComponentName("com.jiaoguanyi.store", "com.mjsheng.myappstore.receiver.BootReceiver"));
|
||||
//// sendBroadcast(intent1);
|
||||
//// deleteScreenshots();
|
||||
//// }
|
||||
//// }
|
||||
//// time3 = System.currentTimeMillis();
|
||||
//// }
|
||||
//// }, 10000);
|
||||
//// }
|
||||
else if (action.equals("android.intent.action.FACTORY_RESET")
|
||||
} else if (action.equals(Intent.ACTION_USER_PRESENT)) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
/*在8.0以上 除了开机广播其他广播基本上没有用
|
||||
*当静默安装升级时,app不会被唤醒,只有通过显示广播唤醒
|
||||
* */
|
||||
mHandler.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Intent intent1 = new Intent(BootReceiver.BOOT_COMPLETED);
|
||||
intent1.setComponent(new ComponentName("com.jiaoguanyi.store", "com.mjsheng.myappstore.receiver.BootReceiver"));
|
||||
// 携带数据
|
||||
// intent1.putExtra("test", "我是来测 A 应用的Android 8.0 系统静态广播的测试数据");
|
||||
// 启动发送广播
|
||||
sendBroadcast(intent1);
|
||||
|
||||
time2 = System.currentTimeMillis();
|
||||
if ((time2 - time1) > 60 * 1000) {
|
||||
//可能会多次触发,1分钟之内不执行
|
||||
//application中启动服务,startcommand执行会两次
|
||||
startService(new Intent(context, MainService.class));
|
||||
startService(new Intent(context, StepService.class));
|
||||
startService(new Intent(context, GuardService.class));
|
||||
time1 = time2;
|
||||
}
|
||||
}
|
||||
}, 5000);
|
||||
|
||||
}
|
||||
} else if (action.equals(Intent.ACTION_SCREEN_OFF)) {
|
||||
mHandler.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
long time = System.currentTimeMillis();
|
||||
getLockState("1", String.valueOf(time));
|
||||
if (time3 - System.currentTimeMillis() >= 10000) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
Intent intent1 = new Intent(BootReceiver.BOOT_COMPLETED);
|
||||
intent1.setComponent(new ComponentName("com.jiaoguanyi.store", "com.mjsheng.myappstore.receiver.BootReceiver"));
|
||||
sendBroadcast(intent1);
|
||||
deleteScreenshots();
|
||||
}
|
||||
}
|
||||
time3 = System.currentTimeMillis();
|
||||
}
|
||||
}, 10000);
|
||||
} else if (action.equals("android.intent.action.FACTORY_RESET")
|
||||
|| action.equals("android.intent.action.MASTER_CLEAR")
|
||||
//MASTER_CLEAR 7.0可以监听
|
||||
|| action.equals("android.intent.action.MASTER_CLEAR_NOTIFICATION")
|
||||
@@ -689,7 +699,7 @@ public class BaseApplication extends MultiDexApplication{
|
||||
if (code == 200) {
|
||||
com.alibaba.fastjson.JSONObject resultJson = JSON.parseObject(data);
|
||||
String result = resultJson.getString("result");
|
||||
writeAppPackageList(result);
|
||||
// writeAppPackageList(result);
|
||||
// setAPPUsage(allList);
|
||||
} else {
|
||||
// setAPPUsage();
|
||||
@@ -703,24 +713,6 @@ public class BaseApplication extends MultiDexApplication{
|
||||
});
|
||||
}
|
||||
|
||||
private void writeAppPackageList(String result) {
|
||||
String appstore = "com.jiaoguanyi.appstore";
|
||||
String store = "com.jiaoguanyi.store";
|
||||
if (!TextUtils.isEmpty(result)) {
|
||||
Log.e("writeAppPackageList", result);
|
||||
if (!result.contains(appstore)) {
|
||||
result = result + "," + appstore;
|
||||
}
|
||||
if (!result.contains(store)) {
|
||||
result = result + "," + store;
|
||||
}
|
||||
Settings.System.putString(context.getContentResolver(), "qch_app_forbid", result);
|
||||
Log.e("mjsheng", "qch_app_forbid :" + result);
|
||||
} else {
|
||||
Log.e("mjsheng", "writeAppPackageList is null:");
|
||||
Settings.System.putString(context.getContentResolver(), "qch_app_forbid", appstore + "," + store);
|
||||
}
|
||||
}
|
||||
|
||||
private void catchException() {
|
||||
Thread.setDefaultUncaughtExceptionHandler(
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.base;
|
||||
package com.mjsheng.myappstore.base;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.mjsheng.myappstore.base;
|
||||
|
||||
public interface BaseView {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
@@ -11,9 +11,9 @@ import android.content.pm.ResolveInfo;
|
||||
import android.database.Cursor;
|
||||
import android.util.Log;
|
||||
|
||||
import com.jiaoguanyi.appstore.database.DBHelper;
|
||||
import com.jiaoguanyi.appstore.database.DBSqlBuilder;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.database.DBHelper;
|
||||
import com.mjsheng.myappstore.database.DBSqlBuilder;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2017/1/10.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.JsonIOException;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Expansions implements Serializable {
|
||||
private String file;
|
||||
//包内文件地址
|
||||
private String install_location;
|
||||
//安装位置
|
||||
private String install_path;
|
||||
//安装地址
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public String getInstall_location() {
|
||||
return install_location;
|
||||
}
|
||||
|
||||
public void setInstall_location(String install_location) {
|
||||
this.install_location = install_location;
|
||||
}
|
||||
|
||||
public String getInstall_path() {
|
||||
return install_path;
|
||||
}
|
||||
|
||||
public void setInstall_path(String install_path) {
|
||||
this.install_path = install_path;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.lzy.okgo.callback.AbsCallback;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -6,7 +6,8 @@ public class NewAppground implements Serializable {
|
||||
private static final long serialVersionUID = -2071117846816082338L;
|
||||
private String packages;
|
||||
private String address;
|
||||
private String type;
|
||||
private int type;
|
||||
//type=1白 =0黑
|
||||
|
||||
public String getPackages() {
|
||||
return packages;
|
||||
@@ -24,11 +25,11 @@ public class NewAppground implements Serializable {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/9.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
public class SearchBean {
|
||||
private String category;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
24
app/src/main/java/com/mjsheng/myappstore/bean/SplitApks.java
Normal file
24
app/src/main/java/com/mjsheng/myappstore/bean/SplitApks.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class SplitApks implements Serializable {
|
||||
private String file;
|
||||
private String id;
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.bean;
|
||||
package com.mjsheng.myappstore.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.comm;
|
||||
package com.mjsheng.myappstore.comm;
|
||||
|
||||
|
||||
public class CommonDatas {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.database;
|
||||
package com.mjsheng.myappstore.database;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.database;
|
||||
package com.mjsheng.myappstore.database;
|
||||
|
||||
public class DBSqlBuilder {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.jiaoguanyi.appstore.base.BaseApplication;
|
||||
import com.mjsheng.myappstore.base.BaseApplication;
|
||||
|
||||
import cn.jpush.android.api.CustomMessage;
|
||||
import cn.jpush.android.api.JPushMessage;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@@ -6,7 +6,7 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.jiaoguanyi.appstore.activity.MainActivity;
|
||||
import com.mjsheng.myappstore.activity.MainActivity;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import cn.jpush.android.service.JCommonService;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush;
|
||||
package com.mjsheng.myappstore.jpush;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.jiaoguanyi.appstore.jpush.invalid;
|
||||
package com.mjsheng.myappstore.jpush.invalid;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import com.jiaoguanyi.appstore.jpush.Logger;
|
||||
import com.mjsheng.myappstore.jpush.Logger;
|
||||
|
||||
import cn.jpush.android.api.JPushInterface;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush.invalid;
|
||||
package com.mjsheng.myappstore.jpush.invalid;
|
||||
|
||||
|
||||
//public class MainActivity extends InstrumentedActivity implements OnClickListener{
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush.invalid;
|
||||
package com.mjsheng.myappstore.jpush.invalid;
|
||||
|
||||
//public class PushSetActivity extends InstrumentedActivity implements OnClickListener {
|
||||
// private static final String TAG = "JIGUANG-Example";
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush.invalid;
|
||||
package com.mjsheng.myappstore.jpush.invalid;
|
||||
|
||||
//public class SettingActivity extends InstrumentedActivity implements OnClickListener {
|
||||
// TimePicker startTime;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.jpush.invalid;
|
||||
package com.mjsheng.myappstore.jpush.invalid;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.log;
|
||||
package com.mjsheng.myappstore.log;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.log;
|
||||
package com.mjsheng.myappstore.log;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.manager;
|
||||
package com.mjsheng.myappstore.manager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
@@ -7,7 +7,7 @@ import com.amap.api.location.AMapLocation;
|
||||
import com.amap.api.location.AMapLocationClient;
|
||||
import com.amap.api.location.AMapLocationClientOption;
|
||||
import com.amap.api.location.AMapLocationListener;
|
||||
import com.jiaoguanyi.appstore.utils.SPUtils;
|
||||
import com.mjsheng.myappstore.utils.SPUtils;
|
||||
|
||||
public class AmapManager {
|
||||
private static AmapManager sInstance;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.manager;
|
||||
package com.mjsheng.myappstore.manager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
@@ -1,50 +1,49 @@
|
||||
package com.jiaoguanyi.appstore.manager;
|
||||
package com.mjsheng.myappstore.manager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Environment;
|
||||
|
||||
import com.jiaoguanyi.appstore.BuildConfig;
|
||||
import com.jiaoguanyi.appstore.bean.Appground;
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.bean.BrowserBookmarks;
|
||||
import com.jiaoguanyi.appstore.bean.BrowserData;
|
||||
import com.jiaoguanyi.appstore.bean.Desktop;
|
||||
import com.jiaoguanyi.appstore.bean.ForceDownloadBean;
|
||||
import com.jiaoguanyi.appstore.bean.LogoImg;
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchBean;
|
||||
import com.jiaoguanyi.appstore.bean.NewAppground;
|
||||
import com.jiaoguanyi.appstore.bean.StudentsInfo;
|
||||
import com.jiaoguanyi.appstore.network.api.AppLimitApi;
|
||||
import com.jiaoguanyi.appstore.network.api.BrankPicApi;
|
||||
import com.jiaoguanyi.appstore.network.api.CategoryPicApi;
|
||||
import com.jiaoguanyi.appstore.network.api.DeselectBrowserIDApi;
|
||||
import com.jiaoguanyi.appstore.network.api.DeselectIDApi;
|
||||
import com.jiaoguanyi.appstore.network.api.ForceDownloadApi;
|
||||
import com.jiaoguanyi.appstore.network.api.NetAndLaunchApi;
|
||||
import com.jiaoguanyi.appstore.network.api.ProjectPicApi;
|
||||
import com.jiaoguanyi.appstore.network.api.RankAppApi;
|
||||
import com.jiaoguanyi.appstore.network.api.SystemSettingApi;
|
||||
import com.jiaoguanyi.appstore.network.api.UploadAppInfoApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.AppinsideWebApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.BrowserBookmarksApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.BrowserListApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.CheckTestUpdateApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.CheckUpdateApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.DesktopIconApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.DevicesLockedStateApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.GetBatchApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.GetDesktopApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.GetLockStateApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.JpushTagsApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.LogoImgApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.MACAddressApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.NewAppinsideWebApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.ScreenLockStateApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.SnTimeControl;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.StudentsInfosApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.TopAppControlApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.UpdateDeviceInfoApi;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.BuildConfig;
|
||||
import com.mjsheng.myappstore.bean.Appground;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.bean.BrowserBookmarks;
|
||||
import com.mjsheng.myappstore.bean.BrowserData;
|
||||
import com.mjsheng.myappstore.bean.ForceDownloadBean;
|
||||
import com.mjsheng.myappstore.bean.LogoImg;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchBean;
|
||||
import com.mjsheng.myappstore.bean.NewAppground;
|
||||
import com.mjsheng.myappstore.bean.StudentsInfo;
|
||||
import com.mjsheng.myappstore.network.api.AppLimitApi;
|
||||
import com.mjsheng.myappstore.network.api.BrankPicApi;
|
||||
import com.mjsheng.myappstore.network.api.CategoryPicApi;
|
||||
import com.mjsheng.myappstore.network.api.DeselectBrowserIDApi;
|
||||
import com.mjsheng.myappstore.network.api.DeselectIDApi;
|
||||
import com.mjsheng.myappstore.network.api.ForceDownloadApi;
|
||||
import com.mjsheng.myappstore.network.api.NetAndLaunchApi;
|
||||
import com.mjsheng.myappstore.network.api.ProjectPicApi;
|
||||
import com.mjsheng.myappstore.network.api.RankAppApi;
|
||||
import com.mjsheng.myappstore.network.api.SystemSettingApi;
|
||||
import com.mjsheng.myappstore.network.api.UploadAppInfoApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.AppinsideWebApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.BrowserBookmarksApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.BrowserListApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.CheckTestUpdateApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.CheckUpdateApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.DesktopIconApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.DevicesLockedStateApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.GetBatchApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.GetDesktopApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.GetLockStateApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.JpushTagsApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.LogoImgApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.MACAddressApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.NewAppinsideWebApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.ScreenLockStateApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.SnTimeControl;
|
||||
import com.mjsheng.myappstore.network.api.newapi.StudentsInfosApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.TopAppControlApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.UpdateDeviceInfoApi;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network;
|
||||
package com.mjsheng.myappstore.network;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
@@ -16,25 +16,26 @@ import android.util.Log;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONException;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.mjsheng.myappstore.utils.URLUtils;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.callback.StringCallback;
|
||||
import com.jiaoguanyi.appstore.base.BaseApplication;
|
||||
import com.jiaoguanyi.appstore.bean.Appground;
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchBean;
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchData;
|
||||
import com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper;
|
||||
import com.jiaoguanyi.appstore.manager.NetInterfaceManager;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.SnTimeControl;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.TopAppControlApi;
|
||||
import com.jiaoguanyi.appstore.network.api.newapi.UpdateDeviceInfoApi;
|
||||
import com.jiaoguanyi.appstore.server.MainService;
|
||||
import com.jiaoguanyi.appstore.utils.ApkUtils;
|
||||
import com.jiaoguanyi.appstore.utils.ForegroundAppUtil;
|
||||
import com.jiaoguanyi.appstore.utils.Logger;
|
||||
import com.jiaoguanyi.appstore.utils.SPUtils;
|
||||
import com.jiaoguanyi.appstore.utils.TimeUtils;
|
||||
import com.jiaoguanyi.appstore.utils.Utils;
|
||||
import com.mjsheng.myappstore.base.BaseApplication;
|
||||
import com.mjsheng.myappstore.bean.Appground;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchBean;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchData;
|
||||
import com.mjsheng.myappstore.jpush.TagAliasOperatorHelper;
|
||||
import com.mjsheng.myappstore.manager.NetInterfaceManager;
|
||||
import com.mjsheng.myappstore.network.api.newapi.SnTimeControl;
|
||||
import com.mjsheng.myappstore.network.api.newapi.TopAppControlApi;
|
||||
import com.mjsheng.myappstore.network.api.newapi.UpdateDeviceInfoApi;
|
||||
import com.mjsheng.myappstore.server.MainService;
|
||||
import com.mjsheng.myappstore.utils.ApkUtils;
|
||||
import com.mjsheng.myappstore.utils.ForegroundAppUtil;
|
||||
import com.mjsheng.myappstore.utils.Logger;
|
||||
import com.mjsheng.myappstore.utils.SPUtils;
|
||||
import com.mjsheng.myappstore.utils.TimeUtils;
|
||||
import com.mjsheng.myappstore.utils.Utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
@@ -50,8 +51,8 @@ import okhttp3.Call;
|
||||
import okhttp3.Response;
|
||||
import okhttp3.ResponseBody;
|
||||
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.ACTION_SET;
|
||||
import static com.jiaoguanyi.appstore.jpush.TagAliasOperatorHelper.sequence;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.ACTION_SET;
|
||||
import static com.mjsheng.myappstore.jpush.TagAliasOperatorHelper.sequence;
|
||||
|
||||
public class HTTPInterface {
|
||||
// //获取我的设备接口
|
||||
@@ -502,10 +503,12 @@ public class HTTPInterface {
|
||||
String white = data.getString("white");
|
||||
String homePage = Settings.System.getString(context.getContentResolver(), "homepagURL");
|
||||
if (!TextUtils.isEmpty(white)) {
|
||||
if (!white.contains(homePage) && !TextUtils.isEmpty(homePage)) {
|
||||
if (!TextUtils.isEmpty(homePage) && !white.contains(homePage)) {
|
||||
white += "," + homePage;
|
||||
}
|
||||
boolean whiteList = Settings.System.putString(context.getContentResolver(), "DeselectBrowserArray", white);
|
||||
new URLUtils(context).setBrowserList();
|
||||
|
||||
Log.e("SystemSetting", "setBrowserList----white-----" + whiteList + ":" + white);
|
||||
} else {
|
||||
Settings.System.putString(context.getContentResolver(), "DeselectBrowserArray", " ");
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network;
|
||||
package com.mjsheng.myappstore.network;
|
||||
|
||||
import com.jiaoguanyi.appstore.manager.NetInterfaceManager;
|
||||
import com.mjsheng.myappstore.manager.NetInterfaceManager;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.CommonPicBean;
|
||||
import com.mjsheng.myappstore.bean.CommonPicBean;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.CategoryPicBean;
|
||||
import com.mjsheng.myappstore.bean.CategoryPicBean;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.ForceDownloadBean;
|
||||
import com.mjsheng.myappstore.bean.ForceDownloadBean;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.NetAndLaunchBean;
|
||||
import com.mjsheng.myappstore.bean.NetAndLaunchBean;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.CommonPicBean;
|
||||
import com.mjsheng.myappstore.bean.CommonPicBean;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.AppInfoBean;
|
||||
import com.mjsheng.myappstore.bean.AppInfoBean;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api;
|
||||
package com.mjsheng.myappstore.network.api;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,9 +1,9 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.Appground;
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.Appground;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.bean.BrowserBookmarks;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.bean.BrowserBookmarks;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.bean.BrowserData;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.bean.BrowserData;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.GET;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.ResponseBody;
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.jiaoguanyi.appstore.network.api.newapi;
|
||||
package com.mjsheng.myappstore.network.api.newapi;
|
||||
|
||||
import com.jiaoguanyi.appstore.bean.BaseResponse;
|
||||
import com.jiaoguanyi.appstore.network.URLAddress;
|
||||
import com.mjsheng.myappstore.bean.BaseResponse;
|
||||
import com.mjsheng.myappstore.network.URLAddress;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import retrofit2.http.GET;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user