fixed conflict

This commit is contained in:
lixiaopeng
2022-08-16 15:32:41 +08:00
parent 16417621c2
commit a1d9fed999
47 changed files with 97 additions and 8464 deletions

View File

@@ -432,7 +432,7 @@ class MoGoAutopilotProvider :
* 向左变道
*/
override fun sendOperatorChangeLaneLeft() {
Log.d("liyz", "MoGoAutopilotProvider sendOperatorChangeLaneLeft -------> ")
// Log.d("liyz", "MoGoAutopilotProvider sendOperatorChangeLaneLeft -------> ")
AdasManager.getInstance().sendOperatorCmdChangeLaneLeft()
}
@@ -440,7 +440,7 @@ class MoGoAutopilotProvider :
* 向右变道
*/
override fun sendOperatorChangeLaneRight() {
Log.d("liyz", "MoGoAutopilotProvider sendOperatorChangeLaneRight -------> ")
// Log.d("liyz", "MoGoAutopilotProvider sendOperatorChangeLaneRight -------> ")
AdasManager.getInstance().sendOperatorCmdChangeLaneRight()
}
@@ -448,7 +448,7 @@ class MoGoAutopilotProvider :
* 发送设置加速度 acc>0加速 acc<0减速 acc=0复位
*/
override fun sendOperatorSetAcceleratedSpeed(cc: Double) {
Log.d("liyz", "MoGoAutopilotProvider sendOperatorSetAcceleratedSpeed cc $cc ")
// Log.d("liyz", "MoGoAutopilotProvider sendOperatorSetAcceleratedSpeed cc $cc ")
AdasManager.getInstance().sendOperatorCmdSetAcceleratedSpeed(cc)
}
@@ -456,7 +456,7 @@ class MoGoAutopilotProvider :
* 鸣笛 value 1: honk 2: stop honking
*/
override fun sendOperatorSetHorn(value: Double) {
Log.d("liyz", "MoGoAutopilotProvider sendOperatorSetHorn value $value ")
// Log.d("liyz", "MoGoAutopilotProvider sendOperatorSetHorn value $value ")
AdasManager.getInstance().sendOperatorCmdSetHorn(value)
}

View File

@@ -261,7 +261,6 @@ class DebugSettingView @JvmOverloads constructor(
}
}
btnOpenAllGestures.setOnClickListener {
MogoMapUIController.getInstance().setAllGesturesEnabled(true)
}

View File

@@ -4,6 +4,7 @@ import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_ALIAS_CODE
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_LINK_INIT;
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_LINK_LOG_CONNECT_STATUS;
import static com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.M_HMI;
import static com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.M_MAP;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
@@ -31,6 +32,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager;
import com.mogo.eagle.core.function.call.setting.CallerSkinModeListenerManager;
import com.mogo.eagle.core.function.hmi.R;
import com.mogo.eagle.core.function.main.moujie.BluetoothMonitorReceiver;
import com.mogo.eagle.core.function.main.moujie.ConnectBluetoothEvent;
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils;
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr;
@@ -45,9 +47,11 @@ import com.zhjt.service.chain.TracingConstants;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Timer;
@@ -69,6 +73,8 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
private Timer timerAcc;
private BluetoothMonitorReceiver mBluetoothReceiver = null;
private BluetoothAdapter mBluetoothAdapter;
private List<BluetoothDevice> mAreadlyConnectedList = new ArrayList<>();//已连接设备集合
@Override
@@ -78,12 +84,22 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
EventBus.getDefault().register(this);
CallerLogger.INSTANCE.i(M_HMI + TAG, "onCreate");
SharedPrefsMgr.getInstance(getContext()).putBoolean("BLUETOOTH", false);
// initBluetooth();
// mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
}
@Override
protected void onResume() {
super.onResume();
initBluetooth();
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (!mBluetoothAdapter.isEnabled()) {
mBluetoothAdapter.enable();
}
mBluetoothAdapter.startDiscovery();
showBondedDevice(mBluetoothAdapter);
}
@Override
protected void initViews() {
@@ -190,28 +206,24 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { //向上长按 开启自动驾驶
setMapControl();
long currentTime = System.currentTimeMillis() / (1000);
long oldTime = SharedPrefsMgr.getInstance(getContext()).getLong("old_time_up", 0);
// Log.d("liyz", "time = " + (currentTime - oldTime));
if (currentTime - oldTime > 8) {
if (currentTime - oldTime > 6) {
SharedPrefsMgr.getInstance(getContext()).putLong("old_time_up", System.currentTimeMillis() / 1000);
// ToastUtils.showShort("长按 ↑↑↑ 开启自动驾驶");
CallerAutoPilotManager.INSTANCE.setControlAutopilotCarAuto(true);
}
recoverMapControl();
return true;
} else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { //下和中间键盘长按,减速为-2
setMapControl();
long currentTime = System.currentTimeMillis() / (1000);
long oldTime = SharedPrefsMgr.getInstance(getContext()).getLong("old_time_down", 0);
if (currentTime - oldTime > 8) {
if (currentTime - oldTime > 6) {
SharedPrefsMgr.getInstance(getContext()).putLong("old_time_down", System.currentTimeMillis() / 1000);
// ToastUtils.showShort("长按 ↓↓↓ 减速 -2 ");
sendAcc(true, -2);
}
recoverMapControl();
return true;
}
return super.onKeyDown(keyCode, event);
@@ -221,16 +233,12 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
public boolean dispatchTouchEvent(MotionEvent event) {
// Log.d("liyz", "dispatchTouchEvent event.getX() = " + event.getX() + "--event.getY() = " + event.getY() + "--action = " + event.getAction());
if (event.getX() == -1469.6875 && event.getY() == 530.0) { //向左变道
setMapControl();
// ToastUtils.showShort("← 向左变道");
// MogoMapUIController.getInstance().setLockMode( true );
CallerAutoPilotManager.INSTANCE.sendOperatorChangeLaneLeft();
recoverMapControl();
return true;
} else if (event.getX() == -1096.25 && event.getY() == 132.5) { //鸣笛
setMapControl();
// ToastUtils.showShort("↑ 鸣笛 ");
CallerAutoPilotManager.INSTANCE.sendOperatorSetHorn(1);
@@ -245,29 +253,20 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
}
}, 500);
recoverMapControl();
return true;
} else if (event.getX() == -863.4375 && event.getY() == 690.0) { //向右变道
setMapControl();
CallerAutoPilotManager.INSTANCE.sendOperatorChangeLaneRight();
// ToastUtils.showShort("→ 向右变道");
recoverMapControl();
return true;
} else if (event.getX() == -1096.25 && event.getY() == 1099.0) { // -1减速
setMapControl();
sendAcc(true, -1);
// ToastUtils.showShort("↓ 减速 -1 ");
recoverMapControl();
return true;
} else if (event.getX() == -1096.25 && event.getY() == 690.0) { //复原
setMapControl();
// ToastUtils.showShort("O 复原 ");
sendAcc(false, 0.0);
recoverMapControl();
return true;
}
@@ -340,20 +339,6 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
}
}
private void setMapControl() {
// UiThreadHandler.removeCallbacks(delayRunnable);
// MogoMapUIController.getInstance().setScrollGesturesEnable(false);
}
private void recoverMapControl() {
// UiThreadHandler.postDelayed(delayRunnable, 5_00L);
}
private Runnable delayRunnable = () -> {
MogoMapUIController.getInstance().setScrollGesturesEnable(true);
};
/**
* 初始化蓝牙广播
*/
@@ -371,19 +356,31 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
registerReceiver(this.mBluetoothReceiver, intentFilter);
}
/**
* 查找蓝牙连接过的蓝牙设备
*
* @param bluetoothAdapter
*/
private void showBondedDevice(BluetoothAdapter bluetoothAdapter) {
mAreadlyConnectedList.clear();
Set<BluetoothDevice> deviceList = bluetoothAdapter.getBondedDevices();
for (BluetoothDevice device : deviceList) {
Log.d("liyz", "Name:" + device.getName() + " Mac:" + device.getAddress());
try {
//使用反射调用获取设备连接状态方法
Method isConnectedMethod = BluetoothDevice.class.getDeclaredMethod("isConnected", (Class[]) null);
isConnectedMethod.setAccessible(true);
boolean isConnected = (boolean) isConnectedMethod.invoke(device, (Object[]) null);
Log.d("liyz", "isConnected" + isConnected);
isConnected = (boolean) isConnectedMethod.invoke(device, (Object[]) null);
Log.e("liyz", "showBondedDevice Name:" + device.getName() + " Mac:" + device.getAddress() + "---isConnected = " + isConnected);
// Log.e("liyz", "showBondedDevice Name:" + device.getName() + " Mac:" + device.getAddress() + "---isConnected = " + isConnected);
mAreadlyConnectedList.add(device);
if (device.getName().equals("JX-05")) {
SharedPrefsMgr.getInstance(getContext()).putString("BT_MAC", device.getAddress());
}
if (!isConnected) {
UiThreadHandler.postDelayed(() -> {
connectBluetooth(); //主动连接一次
}, 4000L);
}
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
@@ -394,6 +391,41 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
}
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void onAutoConnection(ConnectBluetoothEvent event) {
connectBluetooth();
}
/**
* 主动连接最近的一次连接
*/
private void connectBluetooth() {
// Log.d("liyz", "connectBluetooth ----> size() = " + mAreadlyConnectedList.size());
if (mAreadlyConnectedList.size() > 0) {
try {
Method method = BluetoothDevice.class.getMethod("createBond");
String macAddress = SharedPrefsMgr.getInstance(getContext()).getString("BT_MAC");
int pos = -1;
for (int i = 0; i < mAreadlyConnectedList.size(); i++) {
if (macAddress.equals(mAreadlyConnectedList.get(i).getAddress())) {
pos = i;
}
}
// Log.d("liyz", "connectBluetooth macAddress = " + macAddress + "---pos = " + pos);
method.invoke(mAreadlyConnectedList.get(pos));
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}
}
}

View File

@@ -5,10 +5,13 @@ import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr;
import org.greenrobot.eventbus.EventBus;
/**
* @author lixiaopeng
* @description
@@ -29,6 +32,7 @@ public class BluetoothMonitorReceiver extends BroadcastReceiver {
break;
case BluetoothAdapter.STATE_ON:
// Toast.makeText(context, "蓝牙已经打开", Toast.LENGTH_SHORT).show();
EventBus.getDefault().post(new ConnectBluetoothEvent());
break;
case BluetoothAdapter.STATE_TURNING_OFF:
// Toast.makeText(context, "蓝牙正在关闭", Toast.LENGTH_SHORT).show();
@@ -41,12 +45,15 @@ public class BluetoothMonitorReceiver extends BroadcastReceiver {
case BluetoothDevice.ACTION_ACL_CONNECTED:
// Toast.makeText(context, "蓝牙设备已连接", Toast.LENGTH_SHORT).show();
SharedPrefsMgr.getInstance(context).putBoolean("BLUETOOTH", true);
// Log.d("liyz", "蓝牙设备已连接 ----> ");
// SharedPrefsMgr.getInstance(context).putBoolean("BLUETOOTH", true);
break;
case BluetoothDevice.ACTION_ACL_DISCONNECTED:
SharedPrefsMgr.getInstance(context).putBoolean("BLUETOOTH", false);
// SharedPrefsMgr.getInstance(context).putBoolean("BLUETOOTH", false);
// Log.d("liyz", "蓝牙设备已断开 ----> ");
// Toast.makeText(context, "蓝牙设备已断开", Toast.LENGTH_SHORT).show();
EventBus.getDefault().post(new ConnectBluetoothEvent());
break;
}

View File

@@ -0,0 +1,10 @@
package com.mogo.eagle.core.function.main.moujie;
/**
* @author lixiaopeng
* @description 连接蓝牙事件
* @since 2022/8/16
*/
public class ConnectBluetoothEvent {
}

View File

@@ -1,18 +0,0 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.zhidao.support.adas.high.other;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String LIBRARY_PACKAGE_NAME = "com.zhidao.support.adas.high.other";
/**
* @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME
*/
@Deprecated
public static final String APPLICATION_ID = "com.zhidao.support.adas.high.other";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 2090000;
public static final String VERSION_NAME = "2.9.0";
}

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zhidao.support.adas.high.other"
android:versionCode="2090000"
android:versionName="2.9.0" >
<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<application android:usesCleartextTraffic="true" >
<activity
android:name="com.zhidao.support.adas.high.other.permission.PermissionLongBackgroundRunningDialog"
android:theme="@style/PermissionLongBackgroundRunningDialogStyle" />
<activity
android:name="com.zhidao.support.adas.high.other.router.RouterActivity"
android:theme="@style/NoActionBar" />
</application>
</manifest>

View File

@@ -1 +0,0 @@
[{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":2090000,"versionName":"2.9.0","enabled":true,"outputFile":"mogo-adas-other-debug.aar","fullName":"debug","baseName":"debug"},"path":"AndroidManifest.xml","properties":{"packageId":"com.zhidao.support.adas.high.other","split":""}}]

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/mogo-core-data/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/mogo-core-data/src/debug/jniLibs"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/function-impl/mogo-core-function-dispatch/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/function-impl/mogo-core-function-dispatch/src/debug/shaders"/></dataSet></merger>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/function-impl/mogo-core-function-dispatch/src/main/assets"/><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/function-impl/mogo-core-function-dispatch/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/core/function-impl/mogo-core-function-dispatch/src/debug/assets"/></dataSet></merger>

View File

@@ -1,7 +0,0 @@
#Mon Jul 11 16:06:02 CST 2022
/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/drawable/bg_adas_dialog.xml=/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/intermediates/packaged_res/debug/drawable/bg_adas_dialog.xml
/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/anim/dialog_in.xml=/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/intermediates/packaged_res/debug/anim/dialog_in.xml
/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/layout/fragment_router.xml=/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/intermediates/packaged_res/debug/layout/fragment_router.xml
/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/layout/dialog_adas_permission_long_background_running.xml=/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/intermediates/packaged_res/debug/layout/dialog_adas_permission_long_background_running.xml
/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/anim/dialog_out.xml=/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/intermediates/packaged_res/debug/anim/dialog_out.xml
/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/layout/activity_router.xml=/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/intermediates/packaged_res/debug/layout/activity_router.xml

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">adas-backgrounder-permission</string>
<style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="PermissionLongBackgroundRunningDialogStyle" parent="Theme.AppCompat.Dialog">
<!--设置dialog的背景-->
<item name="android:windowBackground">@android:color/transparent</item>
<!--设置Dialog的windowFrame框为无-->
<item name="android:windowFrame">@null</item>
<!--设置无标题-->
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<!--是否浮现在activity之上-->
<item name="android:windowIsFloating">true</item>
<!--是否半透明-->
<item name="android:windowIsTranslucent">true</item>
<!--设置窗口内容不覆盖-->
<item name="android:windowContentOverlay">@null</item>
<!--背景是否模糊显示-->
<item name="android:backgroundDimEnabled">true</item>
</style>
</resources>

View File

@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res"/><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/generated/res/rs/debug"/><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res"><file name="dialog_in" path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/anim/dialog_in.xml" qualifiers="" type="anim"/><file name="dialog_out" path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/anim/dialog_out.xml" qualifiers="" type="anim"/><file name="bg_adas_dialog" path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/drawable/bg_adas_dialog.xml" qualifiers="" type="drawable"/><file name="activity_router" path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/layout/activity_router.xml" qualifiers="" type="layout"/><file name="fragment_router" path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/layout/fragment_router.xml" qualifiers="" type="layout"/><file name="dialog_adas_permission_long_background_running" path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/layout/dialog_adas_permission_long_background_running.xml" qualifiers="" type="layout"/><file path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/values/styles.xml" qualifiers=""><style name="PermissionLongBackgroundRunningDialogStyle" parent="Theme.AppCompat.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowFrame">@null</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:backgroundDimEnabled">true</item>
</style><style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style></file><file path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/res/values/strings.xml" qualifiers=""><string name="app_name">adas-backgrounder-permission</string></file></source><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/generated/res/rs/debug"/><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/debug/res"/></dataSet><mergedItems/></merger>

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zhidao.support.adas.high.other"
android:versionCode="2090000"
android:versionName="2.9.0" >
<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<application android:usesCleartextTraffic="true" >
<activity
android:name="com.zhidao.support.adas.high.other.permission.PermissionLongBackgroundRunningDialog"
android:theme="@style/PermissionLongBackgroundRunningDialogStyle" />
<activity
android:name="com.zhidao.support.adas.high.other.router.RouterActivity"
android:theme="@style/NoActionBar" />
</application>
</manifest>

View File

@@ -1,21 +0,0 @@
R_DEF: Internal format may change without notice
local
anim dialog_in
anim dialog_out
drawable bg_adas_dialog
id btn_close_battery_optimizations
id close
id constraintLayout
id hint_battery
id progressbar
id refresh
id tabs
id view
id view_pager
id web_view
layout activity_router
layout dialog_adas_permission_long_background_running
layout fragment_router
string app_name
style NoActionBar
style PermissionLongBackgroundRunningDialogStyle

View File

@@ -1,40 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.zhidao.support.adas.high.other"
4 android:versionCode="2090000"
5 android:versionName="2.9.0" >
6
7 <uses-sdk
8 android:minSdkVersion="21"
8-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
9 android:targetSdkVersion="21" />
9-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
10
11 <uses-permission android:name="android.permission.INTERNET" />
11-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:4:5-67
11-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:4:22-64
12 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
12-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:5:5-79
12-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:5:22-76
13 <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
13-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:6:5-95
13-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:6:22-92
14
15 <application android:usesCleartextTraffic="true" >
15-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:8:5-18:19
15-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:10:9-44
16 <activity
16-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:12:9-14:81
17 android:name="com.zhidao.support.adas.high.other.permission.PermissionLongBackgroundRunningDialog"
17-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:13:13-77
18 android:theme="@style/PermissionLongBackgroundRunningDialogStyle" />
18-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:14:13-78
19 <activity
19-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:15:9-17:50
20 android:name="com.zhidao.support.adas.high.other.router.RouterActivity"
20-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:16:13-50
21 android:theme="@style/NoActionBar" />
21-->/Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:17:13-47
22 </application>
23
24</manifest>

View File

@@ -1 +0,0 @@
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":2090000,"versionName":"2.9.0","enabled":true,"outputFile":"mogo-adas-other-debug.aar","fullName":"debug","baseName":"debug"},"path":"../../library_manifest/debug/AndroidManifest.xml","properties":{"packageId":"com.zhidao.support.adas.high.other","split":""}}]

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="300"
android:fromYDelta="50%"
android:toYDelta="100%" />
<alpha
android:duration="300"
android:fromAlpha="0"
android:toAlpha="1" />
</set>

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="300"
android:fromYDelta="50%"
android:toYDelta="0" />
<alpha
android:duration="300"
android:fromAlpha="0"
android:toAlpha="1" />
</set>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FAFFFFFF" />
<stroke
android:width="0.8dp"
android:color="#81666666" />
<!-- 圆角 -->
<corners android:radius="6dp" />
</shape>

View File

@@ -1,65 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".router.RouterActivity">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.cardview.widget.CardView
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="10dp">
<Button
android:id="@+id/close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="返回" />
<Button
android:id="@+id/refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="刷新" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="输入路由器用户名/密码->点击“登录”->点击“连接用户”查看当前列表中是否存在IP是“192.168.X.102”的设备"
android:textColor="#000000"
android:textStyle="bold" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@id/view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tabs" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_adas_dialog"
android:orientation="vertical"
android:padding="10dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<TextView
android:id="@+id/hint_battery"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="电池优化:优化"
android:textColor="#000000" />
<Button
android:id="@+id/btn_close_battery_optimizations"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="关闭" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:text="开启池优化功能,会影响熄屏或休眠后网络连接"
android:textColor="#696969" />
</LinearLayout>

View File

@@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".router.PlaceholderFragment">
<WebView
android:id="@+id/web_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="@+id/constraintLayout"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintTop_creator="1" />
<ProgressBar
android:id="@+id/progressbar"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="3dip"
android:max="100"
android:progress="0"
android:visibility="gone"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="@+id/constraintLayout"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintTop_creator="1" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">adas-backgrounder-permission</string>
<style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="PermissionLongBackgroundRunningDialogStyle" parent="Theme.AppCompat.Dialog">
<!--设置dialog的背景-->
<item name="android:windowBackground">@android:color/transparent</item>
<!--设置Dialog的windowFrame框为无-->
<item name="android:windowFrame">@null</item>
<!--设置无标题-->
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<!--是否浮现在activity之上-->
<item name="android:windowIsFloating">true</item>
<!--是否半透明-->
<item name="android:windowIsTranslucent">true</item>
<!--设置窗口内容不覆盖-->
<item name="android:windowContentOverlay">@null</item>
<!--背景是否模糊显示-->
<item name="android:backgroundDimEnabled">true</item>
</style>
</resources>

View File

@@ -1,65 +0,0 @@
-- Merging decision tree log ---
manifest
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
package
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:2:5-49
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
android:versionName
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
android:versionCode
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:1-19:12
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
xmlns:android
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:1:11-69
uses-permission#android.permission.INTERNET
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:4:5-67
android:name
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:4:22-64
uses-permission#android.permission.ACCESS_NETWORK_STATE
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:5:5-79
android:name
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:5:22-76
uses-permission#android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:6:5-95
android:name
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:6:22-92
application
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:8:5-18:19
android:usesCleartextTraffic
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:10:9-44
activity#com.zhidao.support.adas.high.other.permission.PermissionLongBackgroundRunningDialog
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:12:9-14:81
android:theme
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:14:13-78
android:name
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:13:13-77
activity#com.zhidao.support.adas.high.other.router.RouterActivity
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:15:9-17:50
android:theme
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:17:13-47
android:name
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml:16:13-50
uses-sdk
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml reason: use-sdk injection requested
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
android:targetSdkVersion
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
android:minSdkVersion
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
ADDED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml
INJECTED from /Users/admin/Android/ADAS/MoGoEagleEye/libraries/mogo-adas-other/src/main/AndroidManifest.xml