From e17929c09b75bdd2ebec13097e976fba7f44b9f1 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Thu, 7 May 2026 15:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BA=94=E7=94=A8=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D=E7=AA=97=E5=8F=A3=E7=BC=96=E8=AF=91=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpsrelaysentinel/README.md | 12 +++- .../src/beta/res/values/strings.xml | 1 + gpsrelaysentinel/src/main/AndroidManifest.xml | 2 + .../gpsrelaysentinel/AboutActivity.java | 58 +++++++++++++++++++ .../src/main/res/layout/activity_about.xml | 33 +++++++++++ .../src/main/res/values/strings.xml | 5 +- 6 files changed, 109 insertions(+), 2 deletions(-) create mode 100644 gpsrelaysentinel/src/main/java/cc/winboll/studio/gpsrelaysentinel/AboutActivity.java create mode 100644 gpsrelaysentinel/src/main/res/layout/activity_about.xml diff --git a/gpsrelaysentinel/README.md b/gpsrelaysentinel/README.md index 71122c3..7d91612 100644 --- a/gpsrelaysentinel/README.md +++ b/gpsrelaysentinel/README.md @@ -2,7 +2,17 @@ ## 介绍 -GPSRelaySentinel 是一款基于安卓平台的综合工具应用,集成 Termux 终端模拟器、二维码扫描、网络请求等功能。 +### GPSRelaySentinel 应用描述 + +#### 中文描述 : +GPSRelaySentinel 是一款专业的 GPS 定位中继守护工具,支持真实系统 GPS 定位监听与模拟 GPS 坐标仿真双模式运行。应用后台常驻前台服务,实时接收系统 GPS 位置数据,内置订阅者步长阈值判断机制,可对多个 GPS 订阅视图进行定点推送管理。 +提供可视化模拟控制面板,支持选择八大方位、自定义模拟移动距离,自动计算偏移目标经纬度;配备模拟模式勾选开关,可一键切换真实 GPS 工作模式与虚拟仿真模式。模拟状态下系统会接管自定义模拟坐标,忽略原生真实定位数据;普通模式则正常使用设备 GPS 原始位置。 +界面采用深色极简风格,全控件灰色文字与灰色边框统一视觉设计,集成日志实时输出面板,方便调试定位轨迹与订阅推送状态,适合定位开发测试、虚拟位置仿真、GPS 中继转发等场景使用。 + +#### English Description : +GPSRelaySentinel is a professional GPS relay and guardian tool, supporting dual modes of real system GPS location monitoring and simulated GPS coordinate simulation. It runs as a foreground persistent background service, receives real-time system GPS location data, and builds-in subscriber step threshold judgment mechanism to manage fixed-point push for multiple GPS subscription views. +It provides a visual simulation control panel, supports eight direction selections and custom simulated moving distance, and automatically calculates offset target latitude and longitude. With a simulation mode checkbox, you can one-click switch between real GPS working mode and virtual simulation mode. +In simulation mode, the app takes over custom simulated coordinates and ignores original real location data; in normal mode, it uses the device’s native GPS position normally. The UI adopts a dark minimalist design with unified gray text and gray borders for all controls, and integrates a real-time log output panel for debugging location tracks and subscription push status. It is suitable for location development testing, virtual position simulation, GPS relay forwarding and other scenarios. ## 技术栈 diff --git a/gpsrelaysentinel/src/beta/res/values/strings.xml b/gpsrelaysentinel/src/beta/res/values/strings.xml index 033bca6..c9ff784 100644 --- a/gpsrelaysentinel/src/beta/res/values/strings.xml +++ b/gpsrelaysentinel/src/beta/res/values/strings.xml @@ -2,5 +2,6 @@ GPSRelaySentinel★ + 一款支持真实/模拟定位的GPS中继工具,可后台常驻,实现位置数据转发、调试与仿真,适配开发测试使用。 diff --git a/gpsrelaysentinel/src/main/AndroidManifest.xml b/gpsrelaysentinel/src/main/AndroidManifest.xml index 1d557fb..6662d6d 100644 --- a/gpsrelaysentinel/src/main/AndroidManifest.xml +++ b/gpsrelaysentinel/src/main/AndroidManifest.xml @@ -55,6 +55,8 @@ + + \ No newline at end of file diff --git a/gpsrelaysentinel/src/main/java/cc/winboll/studio/gpsrelaysentinel/AboutActivity.java b/gpsrelaysentinel/src/main/java/cc/winboll/studio/gpsrelaysentinel/AboutActivity.java new file mode 100644 index 0000000..f275611 --- /dev/null +++ b/gpsrelaysentinel/src/main/java/cc/winboll/studio/gpsrelaysentinel/AboutActivity.java @@ -0,0 +1,58 @@ +package cc.winboll.studio.gpsrelaysentinel; + +import android.app.Activity; +import android.os.Bundle; + +/** + * @Author 豆包&ZhanGSKen + * @Date 2026/05/07 15:39 + */ +import android.os.Bundle; +import android.view.View; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; +import cc.winboll.studio.libappbase.LogUtils; +import cc.winboll.studio.libappbase.models.APPInfo; +import cc.winboll.studio.libappbase.views.AboutView; + +public class AboutActivity extends AppCompatActivity { + + public static final String TAG = "AboutActivity"; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_about); + + Toolbar toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + }); + + AboutView aboutView = findViewById(R.id.aboutview); + aboutView.setAPPInfo(genDefaultAppInfo()); + } + + private APPInfo genDefaultAppInfo() { + LogUtils.d(TAG, "genDefaultAppInfo() 调用"); + String branchName = "gpsrelaysentinel"; + APPInfo appInfo = new APPInfo(); + appInfo.setAppName("GPSRelaySentinel"); + appInfo.setAppIcon(R.drawable.ic_winboll); + appInfo.setAppDescription(getString(R.string.app_description)); + appInfo.setAppGitName("WinBoLL"); + appInfo.setAppGitOwner("Studio"); + appInfo.setAppGitAPPBranch(branchName); + appInfo.setAppGitAPPSubProjectFolder(branchName); + appInfo.setAppHomePage("https://www.winboll.cc/apks/index.php?project=GPSRelaySentinel"); + appInfo.setAppAPKName("GPSRelaySentinel"); + appInfo.setAppAPKFolderName("GPSRelaySentinel"); + LogUtils.d(TAG, "genDefaultAppInfo: 应用信息已生成"); + return appInfo; + } +} diff --git a/gpsrelaysentinel/src/main/res/layout/activity_about.xml b/gpsrelaysentinel/src/main/res/layout/activity_about.xml new file mode 100644 index 0000000..bfd895f --- /dev/null +++ b/gpsrelaysentinel/src/main/res/layout/activity_about.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + diff --git a/gpsrelaysentinel/src/main/res/values/strings.xml b/gpsrelaysentinel/src/main/res/values/strings.xml index d24f481..3d0aaa4 100644 --- a/gpsrelaysentinel/src/main/res/values/strings.xml +++ b/gpsrelaysentinel/src/main/res/values/strings.xml @@ -1,4 +1,7 @@ + + GPSRelaySentinel - + A GPS relay tool supporting real and simulated positioning, running in background for location forwarding, debugging and simulation. +