This commit is contained in:
lucky 2022-07-17 20:15:53 +03:00
parent 409fe57a3f
commit 930c6d3f17
20 changed files with 212 additions and 91 deletions

View File

@ -1,29 +0,0 @@
# This workflow executes several linters on changed files based on languages used in your code base whenever
# you push a code or open a pull request.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/github/super-linter
name: Lint Code Base
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -12,7 +12,7 @@ Lock a device and wipe its data on emergency.
height="80">](https://play.google.com/store/apps/details?id=me.lucky.wasted)
<img
src="https://raw.githubusercontent.com/x13a/Wasted/main/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png"
src="fastlane/metadata/android/en-US/images/phoneScreenshots/1.png"
width="30%"
height="30%">
@ -27,9 +27,8 @@ Also you can:
* fire when a fake messenger app is launched
* fire when a duress password is entered (companion app: [Duress](https://github.com/x13a/Duress))
The app works in `Work Profile` too. Use [Shelter](https://github.com/PeterCxy/Shelter) to install
risky apps and `Wasted` in it. Then you can wipe this profile data with one click without wiping
the whole device.
The app works in `Work Profile` too, but with limitations. Use it to install risky apps and
`Wasted` in it. Then you can wipe this profile data with one click without wiping the whole device.
Only encrypted device may guarantee that the data will not be recoverable.
@ -45,30 +44,13 @@ Only encrypted device may guarantee that the data will not be recoverable.
* FOREGROUND_SERVICE - receive lock and USB state events
* RECEIVE_BOOT_COMPLETED - persist lock job and foreground service across reboots
## Example
Broadcast:
```sh
$ adb shell am broadcast \
-a me.lucky.wasted.action.TRIGGER \
-n me.lucky.wasted/.TriggerReceiver \
-e code "b49a6576-0c27-4f03-b96b-da53501022ba"
```
## Localization
Is `Wasted` not in your language, or the translation is incorrect or incomplete? Get involved on
[Crowdin](https://crwd.in/me-lucky-wasted).
[<img
src="https://user-images.githubusercontent.com/53379023/153461055-50169c86-b187-40c7-8ec8-97d5e93660b8.png"
alt="Crowdin"
height="51">](https://crwd.in/me-lucky-wasted)
height="51"
src="https://badges.crowdin.net/badge/dark/crowdin-on-light@2x.png"
alt="Crowdin">](https://crwd.in/me-lucky-wasted)
## License
[![GNU GPLv3 Image](https://www.gnu.org/graphics/gplv3-127x51.png)](https://www.gnu.org/licenses/gpl-3.0.en.html)
This application is Free Software: You can use, study share and improve it at your will.
Specifically you can redistribute and/or modify it under the terms of the
[GNU General Public License v3](https://www.gnu.org/licenses/gpl.html) as published by the Free
Software Foundation.
[![GNU GPLv3 Image](https://www.gnu.org/graphics/gplv3-127x51.png)](https://www.gnu.org/licenses/gpl-3.0.en.html)

View File

@ -1,12 +0,0 @@
# Security Policy
## Supported Versions
| Version | Supported |
| ------- | ------------------ |
| 1.5.x | :white_check_mark: |
| < 1.5 | :x: |
## Reporting a Vulnerability
Contact: 44uaanjm0@relay.firefox.com

View File

@ -10,8 +10,8 @@ android {
applicationId "me.lucky.wasted"
minSdk 23
targetSdk 32
versionCode 37
versionName "1.5.8"
versionCode 38
versionName "1.5.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
@ -40,7 +40,7 @@ android {
dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
@ -48,7 +48,11 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.security:security-crypto:1.0.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
// https://issuetracker.google.com/issues/238425626
implementation('androidx.preference:preference-ktx:1.2.0') {
exclude group: 'androidx.lifecycle', module:'lifecycle-viewmodel'
exclude group: 'androidx.lifecycle', module:'lifecycle-viewmodel-ktx'
}
implementation 'androidx.biometric:biometric:1.1.0'
implementation 'androidx.drawerlayout:drawerlayout:1.1.1'
implementation 'info.guardianproject.panic:panic:1.0'

View File

@ -43,10 +43,10 @@ open class MainActivity : AppCompatActivity() {
prefs = Preferences(this)
prefsdb = Preferences(this, encrypted = false)
prefs.copyTo(prefsdb)
NotificationManager(this).createNotificationChannels()
}
private fun init2() {
NotificationManager(this).createNotificationChannels()
replaceFragment(MainFragment())
}

View File

@ -41,6 +41,12 @@ class NotificationListenerService : NotificationListenerService() {
override fun onListenerConnected() {
super.onListenerConnected()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
migrateNotificationFilter(0, null)
migrateNotificationFilter(
FLAG_FILTER_TYPE_CONVERSATIONS
or FLAG_FILTER_TYPE_ALERTING
or FLAG_FILTER_TYPE_SILENT
or FLAG_FILTER_TYPE_ONGOING,
null,
)
}
}

View File

@ -71,6 +71,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?attr/textAppearanceTitleMedium"
android:theme="@style/Theme.Wasted.ToggleButton"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

View File

@ -4,18 +4,44 @@
<string name="wipe_data_checkbox">Borrar datos</string>
<string name="wipe_embedded_sim_checkbox">Borrar eSIM</string>
<string name="panic_app_dialog_title">Confirmar aplicación de pánico</string>
<string name="panic_app_dialog_message">¿Está seguro de que desea permitir que %1$s active acciones de pánico destructivas\?</string>
<string name="panic_app_dialog_message">¿Está seguro de que desea permitir que %1$s active acciones de pánico destructivas\\?</string>
<string name="panic_app_unknown_app">una aplicación desconocida</string>
<string name="allow">Permitir</string>
<string name="tile_label">Modo avión</string>
<string name="shortcut_label">Pánico</string>
<string name="trigger_lock_description">Limpia un dispositivo cuando no fue desbloqueado por N días.</string>
<string name="trigger_lock_time_hint">tiempo</string>
<string name="trigger_lock_time_error">7d / 48h / 120m</string>
<string name="trigger_lock_time_helper_text">Cuánto tiempo de espera. Modificadores: [d]ías [h]oras [m]inutos</string>
<string name="trigger_tile_delay_description">Retraso seguro antes de que se dispare. Te da algo de tiempo para cancelar el disparo si tocas el mosaico accidentalmente.</string>
<string name="notification_channel_default_name">Predeterminado</string>
<string name="foreground_service_notification_title">Guardia</string>
<string name="foreground_service_notification_title">Guardián</string>
<string name="trigger_panic_kit">PanicKit</string>
<string name="trigger_tile">Título</string>
<string name="trigger_tile">Mosaico</string>
<string name="trigger_shortcut">Acceso directo</string>
<string name="trigger_broadcast">Transmisión</string>
<string name="trigger_broadcast">Difusión</string>
<string name="trigger_notification">Notificación</string>
<string name="trigger_lock">Bloqueo</string>
<string name="trigger_usb">USB</string>
<string name="trigger_application">Aplicación</string>
<string name="copied_popup">Copiado</string>
<string name="main">Principal</string>
<string name="settings">Ajustes</string>
<string name="edit">Editar</string>
<string name="goto_button">GOTO</string>
<string name="authentication">Autenticación</string>
<string name="edit_secret_hint">secreto</string>
<string name="edit_secret_helper_text">Use un secreto lo suficientemente fuerte.</string>
<string name="edit_secret_error">¡No debe estar en blanco!</string>
<string name="trigger_panic_kit_description">Habilite el respondedor de pánico. PanicKit es una colección de herramientas para crear \"botones de pánico\" que pueden desencadenar una respuesta en todo el sistema cuando el usuario se encuentra en una situación ansiosa o peligrosa. Permite que las aplicaciones de activación y las aplicaciones de respuesta se conecten entre sí de forma segura y sencilla. El usuario interactúa con la aplicación de activación cuando se encuentra en una situación de pánico. Las aplicaciones de respuesta reciben esa señal de activación y ejecutan individualmente los pasos para los que fueron configuradas.</string>
<string name="trigger_tile_description">Habilite el servicio de mosaicos. Es un botón en el panel de configuración rápida cuando se desliza desde la parte superior de la pantalla. Este botón imitará el modo avión.</string>
<string name="trigger_shortcut_description">Habilitar icono de acceso directo. Es un botón que verás cuando hagas un toque prolongado en el ícono Wasted.</string>
<string name="trigger_broadcast_description">Habilitar receptor de transmisión. Es útil para comunicarse con otras aplicaciones de Android. Por ejemplo, puede disparar Wasted desde Tasker usando esto.</string>
<string name="trigger_notification_description">Habilite el detector de notificaciones del dispositivo. Escaneará todas las notificaciones a las que tenga acceso en busca del código secreto. Cuando lo encuentre, se disparará.</string>
<string name="trigger_lock_description">Habilite el programador de trabajos de bloqueo. Programará un trabajo cada vez que bloquee un dispositivo y lo cancelará cada vez que desbloquee un dispositivo. Cuando no desbloquea un dispositivo durante X tiempo, se activará un trabajo.</string>
<string name="trigger_usb_description">Habilite el receptor de estado USB. Cuando realiza una conexión de datos USB mientras un dispositivo está bloqueado, se activará. No debe dispararse en el cargador, solo en el dispositivo y el accesorio.</string>
<string name="trigger_application_description">Habilitar aplicación falsa. Agregará aplicaciones de mensajería falsas. Lanzarlos disparará Wasted.</string>
<string name="signal">Signal</string>
<string name="telegram">Telegram</string>
<string name="threema">Threema</string>
<string name="session">Sesión</string>
</resources>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Wasted</string>
<string name="wipe_data_checkbox">Suppression des données</string>
<string name="wipe_embedded_sim_checkbox">Suppression de l\'eSIM</string>
<string name="wipe_data_checkbox">Effacer les données</string>
<string name="wipe_embedded_sim_checkbox">Effacer l\'eSIM</string>
<string name="panic_app_dialog_title">Confirmer l\'application de panique</string>
<string name="panic_app_dialog_message">Êtes-vous sûr de vouloir permettre à %1$s de déclencher des actions de panique destructrices.\\?</string>
<string name="panic_app_unknown_app">une application inconnue</string>
@ -27,12 +27,12 @@
<string name="main">Accueil</string>
<string name="settings">Réglages</string>
<string name="edit">Éditer</string>
<string name="goto_button">GOTO</string>
<string name="goto_button">Aller à</string>
<string name="authentication">Authentification</string>
<string name="edit_secret_hint">secret</string>
<string name="edit_secret_helper_text">Utiliser un secret suffisamment fort.</string>
<string name="edit_secret_error">Ne doit pas être vide!</string>
<string name="trigger_panic_kit_description">Activer le répondeur de panique. PanicKit est une collection d\'outils permettant de créer des "boutons de panique" qui peuvent déclencher une réponse à l\'échelle du système lorsque l\'utilisateur se trouve dans une situation anxieuse ou dangereuse. Il permet aux applications de déclenchement et aux applications de réponse de se connecter facilement et en toute sécurité. L\'utilisateur s\'engage avec l\'application de déclenchement lorsqu\'il est dans une situation problématique. Les applications de réponse reçoivent ce signal de déclenchement et exécutent individuellement les étapes pour lesquelles elles ont été configurées.</string>
<string name="trigger_panic_kit_description">Activer le répondeur de panique. PanicKit est une collection d\'outils permettant de créer des \"boutons de panique\" qui peuvent déclencher une réponse à l\'échelle du système lorsque l\'utilisateur se trouve dans une situation anxieuse ou dangereuse. Il permet aux applications de déclenchement et aux applications de réponse de se connecter facilement et en toute sécurité. L\'utilisateur s\'engage avec l\'application de déclenchement lorsqu\'il est dans une situation problématique. Les applications de réponse reçoivent ce signal de déclenchement et exécutent individuellement les étapes pour lesquelles elles ont été configurées.</string>
<string name="trigger_tile_description">Activer le service de tuiles rapide. Il s\'agit d\'un bouton dans le panneau des paramètres rapides lorsque vous balayez depuis le haut de l\'écran. Ce bouton imitera le mode avion.</string>
<string name="trigger_shortcut_description">Activer le raccourci d\'icône. Il s\'agit d\'un bouton que vous verrez lorsque vous appuyez longuement sur l\'icône de Wasted.</string>
<string name="trigger_broadcast_description">Activez le récepteur de diffusion. Il est utile pour communiquer avec d\'autres applications Android. Par exemple, vous pouvez lancer Wasted depuis Tasker en utilisant ceci.</string>

View File

@ -8,5 +8,10 @@
<item name="colorSecondary">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Customize your theme here. -->
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="Theme.Wasted.ToggleButton" parent="Theme.Wasted">
<item name="colorAccent">@color/green_500</item>
</style>
</resources>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Extraviado</string>
<string name="wipe_data_checkbox">Limpar dados</string>
<string name="wipe_embedded_sim_checkbox">Limpar SIM embutido</string>
<string name="panic_app_dialog_title">Confirmar aplicativo de pânico</string>
<string name="panic_app_dialog_message">Você tem certeza que deseja permitir %1$s disparar ações de pânico destrutivas?</string>
<string name="panic_app_unknown_app">um aplicativo desconhecido</string>
<string name="allow">Permitir</string>
<string name="tile_label">Modo avião</string>
<string name="shortcut_label">Pânico</string>
<string name="trigger_lock_time_hint">período</string>
<string name="trigger_lock_time_error">7d / 48h / 120m</string>
<string name="trigger_lock_time_helper_text">Quanto tempo esperar. Unidades: [d]ias [h]oras [m]inutos</string>
<string name="trigger_tile_delay_description">Atraso de precaução antes de disparar. Concede algum tempo para cancelar o disparo caso a barra seja pressionada acidentalmente.</string>
<string name="notification_channel_default_name">Padrão</string>
<string name="foreground_service_notification_title">Guarda</string>
<string name="trigger_panic_kit">PanicKit</string>
<string name="trigger_tile">Barra</string>
<string name="trigger_shortcut">Atalho</string>
<string name="trigger_broadcast">Difusão</string>
<string name="trigger_notification">Notificação</string>
<string name="trigger_lock">Bloqueio</string>
<string name="trigger_usb">USB</string>
<string name="trigger_application">Aplicativo</string>
<string name="copied_popup">Copiado</string>
<string name="main">Principal</string>
<string name="settings">Configurações</string>
<string name="edit">Editar</string>
<string name="goto_button">Permitir acesso</string>
<string name="authentication">Autenticação</string>
<string name="edit_secret_hint">segredo</string>
<string name="edit_secret_helper_text">Usar um segredo suficientemente forte.</string>
<string name="edit_secret_error">Não pode ser vazio!</string>
<string name="trigger_panic_kit_description">Habilitar reator de pânico. PanicKit é uma coleção de ferramentas para criação de \"botões de pânico\" que podem disparar uma reação do sistema quando o usuário está ansioso ou numa situação perigosa. Ela habilita aplicativos engatilhados e reatores a se conectarem de modo seguro e fácil. O usuário ativa um aplicativo de disparo quando numa situação de pânico. O aplicativo reator recebe o sinal de disparo e executa os passos que foi configurado a tomar.</string>
<string name="trigger_tile_description">Habilitar o serviço de barra. É um botão que aparece no painel de configurações rápidas ao se arrastar do topo da tela. Este botão imitará o botão do modo avião.</string>
<string name="trigger_shortcut_description">Habilitar atalho de ícone. É um botão que você verá ao segurar sobre o ícone do Extraviado.</string>
<string name="trigger_broadcast_description">Habilitar o receptor de difusão. Útil para comunicar com outros aplicativos. Por exemplo, você pode disparar o Extraviado a partir do Tasker por difusão.</string>
<string name="trigger_notification_description">Habilitar escuta de notificações. Irá vasculhar pelo código secreto em todas as notificações as quais tem acesso. Caso encontrado, dispara.</string>
<string name="trigger_lock_description">Habilitar cronômetro de bloqueio. Irá iniciar um cronômetro sempre que o dispositivo for bloqueado e cancela-lo sempre que o dispositivo for desbloqueado. Caso o dispositivo não for desbloqueado por certo período, dispara.</string>
<string name="trigger_usb_description">Habilitar receptor de estado USB. Dispara ao fazer uma conexão USB enquanto o dispositivo está bloqueado. Não deve disparar com o mero carregamento, mas apenas ao conectar um dispositivo ou acessório.</string>
<string name="trigger_application_description">Habilitar aplicativo falso. Irá adicionar um aplicativo de mensagens falso. Abri-lo irá disparar o Extraviado.</string>
<string name="signal">Signal</string>
<string name="telegram">Telegram</string>
<string name="threema">Threema</string>
<string name="session">Session</string>
</resources>

View File

@ -3,19 +3,46 @@
<string name="app_name">Wasted</string>
<string name="wipe_data_checkbox">Стерти дані</string>
<string name="wipe_embedded_sim_checkbox">Стерти дані eSIM</string>
<string name="panic_app_dialog_title">Confirm panic app</string>
<string name="panic_app_dialog_message">Are you sure that you want to allow %1$s to trigger destructive panic actions\?</string>
<string name="panic_app_dialog_title">Підтвердьте додаток паніки</string>
<string name="panic_app_dialog_message">Ви впевнені, що хочете дозволити %1$s запускати руйнівні дії паніки\\?</string>
<string name="panic_app_unknown_app">невідомий додаток</string>
<string name="allow">Allow</string>
<string name="allow">Дозволити</string>
<string name="tile_label">Режим польоту</string>
<string name="shortcut_label">Тривога</string>
<string name="trigger_lock_description">Видалення пристрою, коли його не було розблоковано протягом N днів.</string>
<string name="trigger_lock_time_hint">час</string>
<string name="trigger_lock_time_error">7д / 48г / 120х</string>
<string name="trigger_lock_time_helper_text">Скільки часу чекати. Модифікатори: [d] днів [h] години [m] хвилини</string>
<string name="trigger_tile_delay_description">Безпечна затримка, перш ніж він спрацює. Дає вам деякий час, щоб скасувати вогонь, якщо ви випадково торкнетеся плитки.</string>
<string name="notification_channel_default_name">За замовчуванням</string>
<string name="foreground_service_notification_title">Захисник</string>
<string name="trigger_panic_kit">PanicKit</string>
<string name="trigger_tile">Tile</string>
<string name="trigger_shortcut">Гарячі клавіші</string>
<string name="trigger_tile">Плитка</string>
<string name="trigger_shortcut">Ярлик</string>
<string name="trigger_broadcast">Трансляція</string>
<string name="trigger_notification">Сповіщення</string>
<string name="trigger_lock">Блокування</string>
<string name="trigger_usb">USB</string>
<string name="trigger_application">Додаток</string>
<string name="copied_popup">Скопійовано</string>
<string name="main">Головна</string>
<string name="settings">Налаштування</string>
<string name="edit">Редагувати</string>
<string name="goto_button">Доступ до сповіщень</string>
<string name="authentication">Автентифікація</string>
<string name="edit_secret_hint">ключ</string>
<string name="edit_secret_helper_text">Використовуйте досить надійний ключ.</string>
<string name="edit_secret_error">Не має бути пустим!</string>
<string name="trigger_panic_kit_description">Увімкнути систему реагування на паніку. PanicKit — це набір інструментів для створення «тривожних кнопок», які можуть викликати реакцію всієї системи, коли користувач перебуває в тривожній або небезпечній ситуації.
Це дозволяє програмам-тригерам і програмам-відповідачам безпечно та легко підключатися одна до одної. Користувач взаємодіє з додатком-тригером у ситуації паніки. Програми-відповідачі отримують цей тригерний сигнал і окремо виконують кроки, на які вони були налаштовані.</string>
<string name="trigger_tile_description">Увімкнути службу Tile. Це кнопка на панелі швидких налаштувань, коли ви проводите пальцем від верхнього краю екрана. Ця кнопка імітує режим польоту.</string>
<string name="trigger_shortcut_description">Увімкнути ярлик значка. Це кнопка, яку ви побачите, коли зробите довге натискання на піктограму Wasted.</string>
<string name="trigger_broadcast_description">Увімкнути трансляційний приймач. Це корисно для спілкування з іншими програмами Android. Наприклад, ви можете запустити Wasted з Tasker за допомогою цього.</string>
<string name="trigger_notification_description">Увімкнути прослуховувач сповіщень пристрою. Він скануватиме всі сповіщення, до яких має доступ, на предмет секретного коду. Коли його знайдуть, він спрацює.</string>
<string name="trigger_lock_description">Видалення пристрою, коли його не було розблоковано протягом N днів.</string>
<string name="trigger_usb_description">Увімкнути приймач стану USB. Коли ви встановлюєте USB-підключення для передачі даних, коли пристрій заблоковано, він спрацює. Він не повинен стояти на зарядний пристрій, лише на пристрій і аксесуар.</string>
<string name="trigger_application_description">Увімкнути фейковий додаток. Він додасть підроблені додатки для обміну повідомленнями. Їх запуск призведе до запуску Wasted.</string>
<string name="signal">Signal</string>
<string name="telegram">Telegram</string>
<string name="threema">Threema</string>
<string name="session">Session</string>
</resources>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Wasted</string>
<string name="wipe_data_checkbox">抹除資料</string>
<string name="wipe_embedded_sim_checkbox">抹除eSIM</string>
<string name="panic_app_dialog_title">確認緊急按鈕APP</string>
<string name="panic_app_dialog_message">你確定允許由%1$s來觸發毀滅性緊急動作嗎?</string>
<string name="panic_app_unknown_app">一個未知的應用</string>
<string name="allow">允許</string>
<string name="tile_label">飛航模式</string>
<string name="shortcut_label">Panic</string>
<string name="trigger_lock_time_hint">時間長度</string>
<string name="trigger_lock_time_error">7日/48時/120分</string>
<string name="trigger_lock_time_helper_text">等待時長。[d]日[h]時[m]分</string>
<string name="trigger_tile_delay_description">觸發前延遲。若意外誤觸能有時間取消。</string>
<string name="notification_channel_default_name">預設值</string>
<string name="foreground_service_notification_title">Guard</string>
<string name="trigger_panic_kit">緊急按鈕工具</string>
<string name="trigger_tile">下拉通知欄</string>
<string name="trigger_shortcut">捷徑</string>
<string name="trigger_broadcast">系統廣播Broadcast</string>
<string name="trigger_notification">通知</string>
<string name="trigger_lock">鎖定裝置</string>
<string name="trigger_usb">USB</string>
<string name="trigger_application">偽裝應用程式</string>
<string name="copied_popup">已複製</string>
<string name="main">主要</string>
<string name="settings">設定</string>
<string name="edit">編輯</string>
<string name="goto_button">前往設置</string>
<string name="authentication">驗證</string>
<string name="edit_secret_hint">密鑰</string>
<string name="edit_secret_helper_text">請使用夠強密鑰</string>
<string name="edit_secret_error">不能空白!</string>
<string name="trigger_panic_kit_description">開啟恐慌回應器。PanicKit是一套用來創建\"緊急按鈕\"的工具,當使用者處於焦慮或緊急情況下,\"緊急按鈕\"能用來觸發全系統並做出回應。它讓觸發APP與回應APP之間能安全並輕易的彼此溝通。使用者在緊急情況下啟動觸發APP回應APP接收到該觸發訊號獨自執行預先設定好的步驟。</string>
<string name="trigger_tile_description">開啟tile服務。當你從螢幕頂端下滑通知欄時會有快速設定按鈕。按鈕會偽裝成飛航模式。</string>
<string name="trigger_shortcut_description">開啟圖示捷徑。當你長按Wasted圖示時會出現按鈕選單。</string>
<string name="trigger_broadcast_description">開啟系統廣播接收器。與其他Android App通訊時特別有用。例如你可以用自動化工具(如Tasker) 來觸發Wasted。</string>
<string name="trigger_notification_description">開啟裝置通知監聽。將會掃描能存取的所有通知當發現指定密鑰時會觸發Wasted。</string>
<string name="trigger_lock_description">開啟鎖定任務排程器。將會在每次你螢幕鎖定裝置時啟動,並在每次你解鎖螢幕時取消。
當你特定時間內未解鎖裝置時會觸發Wasted。</string>
<string name="trigger_usb_description">開啟USB狀態接收器。在裝置鎖定狀態下連接USB資料傳輸會觸發Wasted。只有連接其他裝置或配件時會觸發充電器不會。</string>
<string name="trigger_application_description">開啟偽裝APP。會新增假的通訊APP圖示點開APP會觸發Wasted。</string>
<string name="signal">Signal</string>
<string name="telegram">Telegram</string>
<string name="threema">Threema</string>
<string name="session">Session</string>
</resources>

View File

@ -6,6 +6,7 @@
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="green_500">#4CAF50</color>
<color name="secret_1">#FFD600</color>
<color name="secret_0">#E13741</color>
</resources>

View File

@ -37,7 +37,7 @@
<string name="trigger_shortcut_description">Enable icon shortcut. It is a button you will see when you make a long tap on the Wasted icon.</string>
<string name="trigger_broadcast_description">Enable broadcast receiver. It is useful to communicate with another Android apps. For example you can fire Wasted from Tasker using this.</string>
<string name="trigger_notification_description">Enable device notification listener. It will scan all notifications it has access to for the secret code. When found it will fire.</string>
<string name="trigger_lock_description">Enable lock job scheduler. It will schedule a job every time you lock a device and cancel it every time you unlock a device. When you do not unlock a device for X time a job will fire.</string>
<string name="trigger_lock_description">Enable lock job scheduler. It will schedule a job every time you turn off a device screen and cancel it every time you unlock a device. When you do not unlock a device for X time a job will fire.</string>
<string name="trigger_usb_description">Enable USB state receiver. When you make a USB data connection while a device is locked it will fire. It must not fire on charger, only on device and accessory.</string>
<string name="trigger_application_description">Enable fake application. It will add fake messenger applications. Launching them will fire Wasted.</string>
<string name="signal">Signal</string>

View File

@ -8,5 +8,10 @@
<item name="colorSecondary">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Customize your theme here. -->
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="Theme.Wasted.ToggleButton" parent="Theme.Wasted">
<item name="colorAccent">@color/green_500</item>
</style>
</resources>

View File

@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0"
// NOTE: Do not place your application dependencies here; they belong

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,10 @@
prepare Android 13
fix Samsung Android 12 notification trigger
add Portuguese Brazilian translation, thanks to Hermógenes Oliveira (hermogenes)
add Chinese Traditional translation, thanks to rdol724
update Spanish, Ukrainian, French translations
Thanks to:
Pier Gotta Perez (piegope)
GNCanva
Nathanaël Gagnepain (@Ilithy)

View File

@ -9,8 +9,8 @@ Also you can:
* fire when a fake messenger app is launched
* fire when a duress password is entered (companion app: [Duress](https://github.com/x13a/Duress))
The app works in Work Profile too. Use Shelter to install risky apps and Wasted in it. Then you can
wipe this profile data with one click without wiping the whole device.
The app works in Work Profile too, but with limitations. Use it to install risky apps and
Wasted in it. Then you can wipe this profile data with one click without wiping the whole device.
Only encrypted device may guarantee that the data will not be recoverable.