Merge pull request #1245 from Universal-Debloater-Alliance/doc-adb-pack-url

docs: add proper source for package-ID format
This commit is contained in:
Anonymoussaurus 2026-01-10 16:01:15 +01:00 committed by GitHub
commit 686b41084e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,8 +270,9 @@ pub const fn is_pkg_component(s: &[u8]) -> bool {
#[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Eq, Hash)]
pub struct PackageId(Box<str>);
impl PackageId {
/// Creates a package-ID if it's valid according to
/// <https://developer.android.com/build/configure-app-module#set-application-id>
/// Creates a package-ID if it's valid according to:
/// - <https://developer.android.com/guide/topics/manifest/manifest-element.html#package>
/// - <https://developer.android.com/build/configure-app-module#set-application-id>
pub fn new(p_id: Box<str>) -> Option<Self> {
let mut components = p_id.split('.');
for _ in 0..2 {