Update v9.3.0: Enhanced Security with Telegram Integration

- Incremented version to 9.3.0 (versionCode: 93000)
- Added Telegram integration for device notifications
- Implemented token-based verification system
- Enhanced device registry with IP/country detection
- Added split token verification for admin/user validation
- Improved dashboard with real-time notifications
- Enhanced blocking system with token verification
- Added geo-location tracking for devices
- Improved device management interface
- Enhanced security controls and monitoring

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
renato97
2025-11-23 22:10:21 +01:00
parent d326f4c549
commit adadb89232
16 changed files with 1039 additions and 47 deletions

View File

@@ -97,8 +97,8 @@ public class MainActivity extends AppCompatActivity {
}
@Override
public void onBlocked(String reason) {
showBlockedDialog(reason);
public void onBlocked(String reason, String tokenPart) {
showBlockedDialog(reason, tokenPart);
}
@Override
@@ -307,7 +307,7 @@ public class MainActivity extends AppCompatActivity {
}
}
private void showBlockedDialog(String reason) {
private void showBlockedDialog(String reason, String tokenPart) {
if (isFinishing()) {
return;
}
@@ -317,9 +317,15 @@ public class MainActivity extends AppCompatActivity {
if (blockedDialog != null && blockedDialog.isShowing()) {
blockedDialog.dismiss();
}
StringBuilder messageBuilder = new StringBuilder();
messageBuilder.append(getString(R.string.device_blocked_message, finalReason));
if (!TextUtils.isEmpty(tokenPart)) {
messageBuilder.append("\n\n")
.append(getString(R.string.device_blocked_token_hint, tokenPart));
}
blockedDialog = new AlertDialog.Builder(this)
.setTitle(R.string.device_blocked_title)
.setMessage(getString(R.string.device_blocked_message, finalReason))
.setMessage(messageBuilder.toString())
.setCancelable(false)
.setPositiveButton(R.string.device_blocked_close,
(dialog, which) -> finish())