Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add DuressPassword feature.

Đang mở
#440 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
android, kotlin
Lĩnh vực
authentication, security

Hướng nghiên cứu

The payload names no repository files; the work centres on the Android device-admin APIs it cites, DevicePolicyManager.wipeData and setMaximumFailedPasswordsForWipe, plus the uses-policies manifest entries and the target SDK limits. Start by deciding whether a keyboard app can legitimately hold device-admin rights, which is a design question for maintainers before any code. Done would mean a maintainer-approved design and a reviewed security model, not just a working wipe.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature request needs triage
Checklist
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.
Feature description

Add DuressPassword feature.

Hello, pls add DuressPassword feature (wipe phone data when DuressPassword entered). On most firmwares keyboards can work on lock screen and you can do it. You can use

DevicePolicyManager.wipeData(flags);

or if target sdk >=34 , this may not work and you can use instead it:

DevicePolicyManager.setMaximumFailedPasswordsForWipe(AdminReceiver, 1);

before send incorrect (Duress) password to system.

You need for first variant:

     <uses-policies>
       <wipe-data />
    </uses-policies>
and target sdk <=33

For second:

       <uses-policies>
        <wipe-data />
        <watch-login/>
      </uses-policies> 

and any target sdk.

To store duress password just use hash , for example sha256 or Argon.

Example how to do it you can see via this apps:
DuressKeyboard (target sdk<=33):
https://github.com/pofesk0/lastcodeduresskeyboard

https://f-droid.org/packages/duress.keyboard

DuressKeyboardLite (target sdk>=34 and you can use this example for any sdk 8+ if you want):

https://github.com/pofesk0/DuressKeyboardLite

https://f-droid.org/packages/duress.keyboard.lite

Why do you want this feature?

This feature need to help people under duress to wipe phone data by entering special panic code without unlock phone.

Additional information

No response

Ngôn ngữ chính
Kotlin
Star
678
Fork
84
Merge trung bình
5 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FossifyOrg/Keyboard

Tất cả issue của FossifyOrg/Keyboard

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.