From b74bf01597be16e41810b71457e1721b93e36462 Mon Sep 17 00:00:00 2001 From: Grant Miller Date: Fri, 20 Jul 2018 00:04:13 -0500 Subject: [PATCH] Detect androidboot.bootchg=true Observed on Samsung Galaxy S4 --- main/postmarketos-mkinitfs/APKBUILD | 6 +++--- main/postmarketos-mkinitfs/init_functions.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main/postmarketos-mkinitfs/APKBUILD b/main/postmarketos-mkinitfs/APKBUILD index 0093a267a..9b302a7ba 100644 --- a/main/postmarketos-mkinitfs/APKBUILD +++ b/main/postmarketos-mkinitfs/APKBUILD @@ -1,6 +1,6 @@ pkgname=postmarketos-mkinitfs -pkgver=0.6.6 -pkgrel=3 +pkgver=0.6.7 +pkgrel=0 pkgdesc="Tool to generate initramfs images for postmarketOS" url="https://postmarketos.org" # multipath-tools: kpartx @@ -24,5 +24,5 @@ package() { mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/" } sha512sums="d5abfe9a1298069e6722555c6e16223b09b36af65d879feb64d540aa6cbc009a3aa7f00528bcf656370ec37cc64f925c72ebb77813961cd6ebf22107b57ea029 init.sh.in -40beaa5e1e8f539b5c5ab1bb213fef95dd944ce808e99a9d36439a0f94d350b9a36e6760189a6c262eb64e73b14341e0833da2e2a19f390cfab2385a2493c2bd init_functions.sh +3b029db5eea5f5f2ad486fdcd944340f5c8de04b0d46aaf63c69d181ba87c4d209e3e32d35c9a6f87f214a4303390bd61b5fe980cf533b17d479d42275a6f9ae init_functions.sh e6bf0d326297c7061275156eb9ff354662e740ee5c1ef9e0aab3be80aa50fd32ca5fdaa33a2dfb0431fece3c98c5fea3c40a6f706237aac256b05e92100b8381 mkinitfs.sh" diff --git a/main/postmarketos-mkinitfs/init_functions.sh b/main/postmarketos-mkinitfs/init_functions.sh index 2c7ab3be2..f690d0362 100644 --- a/main/postmarketos-mkinitfs/init_functions.sh +++ b/main/postmarketos-mkinitfs/init_functions.sh @@ -301,6 +301,7 @@ start_charging_mode(){ androidboot.huawei_type=oem_rtc startup=0x00010004 lpcharge=1 + androidboot.bootchg=true " # shellcheck disable=SC2086 grep -Eq "$(echo $chargingmodes | tr ' ' '|')" /proc/cmdline || return