[Request] Add unattended updates

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

The issue names no file or test, so start by finding where the app currently performs package installs and auto-updates in the Kotlin Android code. Read the linked PackageInstaller.SessionParams documentation to see how setRequireUserAction, InstallConstraints and setRequestUpdateOwnership fit into that flow. Done would mean a maintainer agrees on the approach and the install path can run unattended on a supported Android version; the scope is still open, so confirm it in the thread first.

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

Mô tả

enhancement
Guidelines
  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I'm not requesting app support for a specific repo — that's up to repo maintainers
  • I understand this might not get built (Droid-ify is maintained by a single person)
Problem

Auto updates need shizuku or root. This is kind of annoying. Thus, please add unattended updates

Proposed solution

Android offers an API for that.
setRequireUserAction(USER_ACTION_NOT_REQUIRED) can be used for that
(See: https://developer.android.com/reference/kotlin/android/content/pm/PackageInstaller.SessionParams )

Extras

InstallConstraints and setRequestUpdateOwnership(true) might also be needed
No response

Ngôn ngữ chính
Kotlin
Star
7.8k
Fork
237
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 Droid-ify/client

Tất cả issue của Droid-ify/client

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.