Compare commits
No commits in common. "lineage-21-light" and "lineage-17.1" have entirely different histories.
lineage-21
...
lineage-17
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
/local_manifests_device
|
26
README.md
26
README.md
@ -1,27 +1,27 @@
|
||||
|
||||
## Building "generic" LineageOS GSIs ##
|
||||
## Building PHH-based LineageOS GSIs ##
|
||||
|
||||
Set up your environment by referring to [LineageOS Wiki](https://wiki.lineageos.org/devices/TP1803/build) (mainly "Install the build packages" and "Install the repo command").
|
||||
To get started with building LineageOS GSI, you'll need to get familiar with [Git and Repo](https://source.android.com/source/using-repo.html) as well as [How to build a GSI](https://github.com/phhusson/treble_experimentations/wiki/How-to-build-a-GSI%3F).
|
||||
|
||||
First, open a new Terminal window, which defaults to your home directory. Clone the modified treble_experimentations repo there:
|
||||
|
||||
git clone https://github.com/AndyCGYan/treble_experimentations
|
||||
|
||||
Create a new working directory for your LineageOS build and navigate to it:
|
||||
|
||||
mkdir lineage-21-build-gsi; cd lineage-21-build-gsi
|
||||
mkdir lineage-17.x-build-gsi; cd lineage-17.x-build-gsi
|
||||
|
||||
Initialize your LineageOS workspace:
|
||||
|
||||
repo init -u https://github.com/LineageOS/android.git -b lineage-21.0 --git-lfs
|
||||
repo init -u https://github.com/LineageOS/android.git -b lineage-17.1
|
||||
|
||||
Clone both this and the patches repos:
|
||||
Clone the modified treble patches and this repo:
|
||||
|
||||
git clone https://github.com/AndyCGYan/lineage_build_unified lineage_build_unified -b lineage-21-light
|
||||
git clone https://github.com/AndyCGYan/lineage_patches_unified lineage_patches_unified -b lineage-21-light
|
||||
git clone https://github.com/AndyCGYan/treble_patches treble_patches -b lineage-17.1
|
||||
git clone https://github.com/AndyCGYan/treble_build_los treble_build_los -b lineage-17.1
|
||||
|
||||
Finally, start the build script - for example, to build for all supported archs:
|
||||
Finally, start the build script:
|
||||
|
||||
bash lineage_build_unified/buildbot_unified.sh treble 64VN 64VS 64GN
|
||||
bash treble_build_los/buildbot_treble.sh
|
||||
|
||||
Be sure to update the cloned repos from time to time!
|
||||
|
||||
---
|
||||
|
||||
This script is also used to make device-specific and/or personal builds. To do so, understand the script, and try the `device` and `personal` keywords.
|
||||
|
@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
patches="$(readlink -f -- $1)"
|
||||
|
||||
shopt -s nullglob
|
||||
for project in $(cd $patches; echo *);do
|
||||
p="$(tr _ / <<<$project |sed -e 's;platform/;;g')"
|
||||
[ "$p" == build ] && p=build/make
|
||||
[ "$p" == frameworks/proto/logging ] && p=frameworks/proto_logging
|
||||
[ "$p" == treble/app ] && p=treble_app
|
||||
[ "$p" == vendor/hardware/overlay ] && p=vendor/hardware_overlay
|
||||
[ "$p" == vendor/partner/gms ] && p=vendor/partner_gms
|
||||
pushd $p
|
||||
git clean -fdx; git reset --hard
|
||||
for patch in $patches/$project/*.patch;do
|
||||
if git apply --check $patch;then
|
||||
git am $patch
|
||||
elif patch -f -p1 --dry-run < $patch > /dev/null;then
|
||||
#This will fail
|
||||
git am $patch || true
|
||||
patch -f -p1 < $patch
|
||||
git add -u
|
||||
git am --continue
|
||||
else
|
||||
echo "Failed applying $patch"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
popd
|
||||
done
|
||||
|
132
buildbot_treble.sh
Executable file
132
buildbot_treble.sh
Executable file
@ -0,0 +1,132 @@
|
||||
#!/bin/bash
|
||||
echo ""
|
||||
echo "LineageOS 17.x Treble Buildbot"
|
||||
echo "ATTENTION: this script syncs repo on each run"
|
||||
echo "Executing in 5 seconds - CTRL-C to exit"
|
||||
echo ""
|
||||
sleep 5
|
||||
|
||||
# Abort early on error
|
||||
set -eE
|
||||
trap '(\
|
||||
echo;\
|
||||
echo \!\!\! An error happened during script execution;\
|
||||
echo \!\!\! Please check console output for bad sync,;\
|
||||
echo \!\!\! failed patch application, etc.;\
|
||||
echo\
|
||||
)' ERR
|
||||
|
||||
START=`date +%s`
|
||||
BUILD_DATE="$(date +%Y%m%d)"
|
||||
BL=$PWD/treble_build_los
|
||||
|
||||
echo "Preparing local manifest"
|
||||
mkdir -p .repo/local_manifests
|
||||
cp $BL/manifest.xml .repo/local_manifests/manifest.xml
|
||||
echo ""
|
||||
|
||||
echo "Syncing repos"
|
||||
repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
|
||||
echo ""
|
||||
|
||||
echo "Setting up build environment"
|
||||
source build/envsetup.sh &> /dev/null
|
||||
echo ""
|
||||
|
||||
echo "Reverting LOS FOD implementation"
|
||||
cd frameworks/base
|
||||
git am $BL/patches/0001-Squashed-revert-of-LOS-FOD-implementation.patch
|
||||
cd ../..
|
||||
cd frameworks/native
|
||||
git am $BL/patches/0001-Revert-surfaceflinger-Add-support-for-extension-lib.patch
|
||||
cd ../..
|
||||
cd vendor/lineage
|
||||
git revert 612c5a846ea5aed339fe1275c119ee111faae78c --no-edit # soong: Add flag for fod extension
|
||||
cd ../..
|
||||
echo ""
|
||||
|
||||
echo "Applying PHH patches"
|
||||
rm -f device/*/sepolicy/common/private/genfs_contexts
|
||||
cd device/phh/treble
|
||||
git clean -fdx
|
||||
bash generate.sh lineage
|
||||
cd ../../..
|
||||
bash ~/treble_experimentations/apply-patches.sh treble_patches/patches
|
||||
echo ""
|
||||
|
||||
echo "Applying universal patches"
|
||||
cd frameworks/base
|
||||
git am $BL/patches/0001-UI-Revive-navbar-layout-tuning-via-sysui_nav_bar-tun.patch
|
||||
git am $BL/patches/0001-Disable-vendor-mismatch-warning.patch
|
||||
git am $BL/patches/0001-Allow-selective-signature-spoofing-for-microG.patch
|
||||
cd ../..
|
||||
cd lineage-sdk
|
||||
git am $BL/patches/0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
|
||||
cd ..
|
||||
cd packages/apps/LineageParts
|
||||
git am $BL/patches/0001-LineageParts-Invert-per-app-stretch-to-fullscreen.patch
|
||||
cd ../../..
|
||||
cd vendor/lineage
|
||||
git am $BL/patches/0001-vendor_lineage-Log-privapp-permissions-whitelist-vio.patch
|
||||
cd ../..
|
||||
echo ""
|
||||
|
||||
echo "Applying GSI-specific patches"
|
||||
cd build/make
|
||||
git am $BL/patches/0001-build-Don-t-handle-apns-conf.patch
|
||||
cd ../..
|
||||
cd device/phh/treble
|
||||
git revert 82b15278bad816632dcaeaed623b569978e9840d --no-edit # Update lineage.mk for LineageOS 16.0
|
||||
git am $BL/patches/0001-Remove-fsck-SELinux-labels.patch
|
||||
git am $BL/patches/0001-treble-Add-overlay-lineage.patch
|
||||
git am $BL/patches/0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch
|
||||
git am $BL/patches/0001-treble-Don-t-handle-apns-conf.patch
|
||||
git am $BL/patches/0001-TEMP-treble-Fix-init.treble-environ.rc-hardcode-for-.patch
|
||||
cd ../../..
|
||||
cd frameworks/native
|
||||
git revert 581c22f979af05e48ad4843cdfa9605186d286da --no-edit # Add suspend_resume trace events to the atrace 'freq' category.
|
||||
cd ../..
|
||||
cd hardware/lineage/interfaces
|
||||
git am $BL/patches/0001-cryptfshw-Remove-dependency-on-generated-kernel-head.patch
|
||||
cd ../../..
|
||||
cd system/hardware/interfaces
|
||||
git revert 5c145c49cc83bfe37c740bcfd3f82715ee051122 --no-edit # system_suspend: start early
|
||||
cd ../../..
|
||||
cd system/sepolicy
|
||||
git revert d12551bf1a6e8a9ece6bbb98344a27bde7f9b3e1 --no-edit # sepolicy: Relabel wifi. properties as wifi_prop
|
||||
git am $BL/patches/0001-Revert-sepolicy-Address-denials-for-legacy-last_kmsg.patch
|
||||
cd ../..
|
||||
cd vendor/lineage
|
||||
git am $BL/patches/0001-build_soong-Disable-generated_kernel_headers.patch
|
||||
cd ../..
|
||||
echo ""
|
||||
|
||||
echo "CHECK PATCH STATUS NOW!"
|
||||
sleep 5
|
||||
echo ""
|
||||
|
||||
export WITHOUT_CHECK_API=true
|
||||
export WITH_SU=true
|
||||
mkdir -p ~/build-output/
|
||||
|
||||
buildVariant() {
|
||||
lunch ${1}-userdebug
|
||||
make installclean
|
||||
make -j$(nproc --all) systemimage
|
||||
make vndk-test-sepolicy
|
||||
mv $OUT/system.img ~/build-output/lineage-17.1-$BUILD_DATE-UNOFFICIAL-${1}.img
|
||||
}
|
||||
|
||||
buildVariant treble_arm_avS
|
||||
buildVariant treble_arm_bvS
|
||||
buildVariant treble_a64_avS
|
||||
buildVariant treble_a64_bvS
|
||||
buildVariant treble_arm64_avS
|
||||
buildVariant treble_arm64_bvS
|
||||
ls ~/build-output | grep 'lineage'
|
||||
|
||||
END=`date +%s`
|
||||
ELAPSEDM=$(($(($END-$START))/60))
|
||||
ELAPSEDS=$(($(($END-$START))-$ELAPSEDM*60))
|
||||
echo "Buildbot completed in $ELAPSEDM minutes and $ELAPSEDS seconds"
|
||||
echo ""
|
171
buildbot_treble_personal.sh
Executable file
171
buildbot_treble_personal.sh
Executable file
@ -0,0 +1,171 @@
|
||||
#!/bin/bash
|
||||
echo ""
|
||||
echo "LineageOS 17.x Treble Buildbot - PERSONAL"
|
||||
echo "ATTENTION: this script syncs repo on each run"
|
||||
echo "Executing in 5 seconds - CTRL-C to exit"
|
||||
echo ""
|
||||
sleep 5
|
||||
|
||||
# Abort early on error
|
||||
set -eE
|
||||
trap '(\
|
||||
echo;\
|
||||
echo \!\!\! An error happened during script execution;\
|
||||
echo \!\!\! Please check console output for bad sync,;\
|
||||
echo \!\!\! failed patch application, etc.;\
|
||||
echo\
|
||||
)' ERR
|
||||
|
||||
START=`date +%s`
|
||||
BUILD_DATE="$(date +%Y%m%d)"
|
||||
BL=$PWD/treble_build_los
|
||||
|
||||
echo "Preparing local manifest"
|
||||
mkdir -p .repo/local_manifests
|
||||
cp $BL/manifest.xml .repo/local_manifests/manifest.xml
|
||||
echo ""
|
||||
|
||||
echo "Syncing repos"
|
||||
repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
|
||||
echo ""
|
||||
|
||||
echo "Setting up build environment"
|
||||
source build/envsetup.sh &> /dev/null
|
||||
echo ""
|
||||
|
||||
echo "Reverting LOS FOD implementation"
|
||||
cd frameworks/base
|
||||
git am $BL/patches/0001-Squashed-revert-of-LOS-FOD-implementation.patch
|
||||
cd ../..
|
||||
cd frameworks/native
|
||||
git am $BL/patches/0001-Revert-surfaceflinger-Add-support-for-extension-lib.patch
|
||||
cd ../..
|
||||
cd vendor/lineage
|
||||
git revert 612c5a846ea5aed339fe1275c119ee111faae78c --no-edit # soong: Add flag for fod extension
|
||||
cd ../..
|
||||
echo ""
|
||||
|
||||
echo "Applying PHH patches"
|
||||
rm -f device/*/sepolicy/common/private/genfs_contexts
|
||||
cd device/phh/treble
|
||||
git clean -fdx
|
||||
bash generate.sh lineage
|
||||
cd ../../..
|
||||
bash ~/treble_experimentations/apply-patches.sh treble_patches/patches
|
||||
echo ""
|
||||
|
||||
echo "Applying universal patches"
|
||||
cd frameworks/base
|
||||
git am $BL/patches/0001-UI-Revive-navbar-layout-tuning-via-sysui_nav_bar-tun.patch
|
||||
git am $BL/patches/0001-Disable-vendor-mismatch-warning.patch
|
||||
git am $BL/patches/0001-Allow-selective-signature-spoofing-for-microG.patch
|
||||
cd ../..
|
||||
cd lineage-sdk
|
||||
git am $BL/patches/0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
|
||||
cd ..
|
||||
cd packages/apps/LineageParts
|
||||
git am $BL/patches/0001-LineageParts-Invert-per-app-stretch-to-fullscreen.patch
|
||||
cd ../../..
|
||||
cd vendor/lineage
|
||||
git am $BL/patches/0001-vendor_lineage-Log-privapp-permissions-whitelist-vio.patch
|
||||
cd ../..
|
||||
echo ""
|
||||
|
||||
echo "Applying GSI-specific patches"
|
||||
cd build/make
|
||||
git am $BL/patches/0001-build-Don-t-handle-apns-conf.patch
|
||||
cd ../..
|
||||
cd device/phh/treble
|
||||
git revert 82b15278bad816632dcaeaed623b569978e9840d --no-edit # Update lineage.mk for LineageOS 16.0
|
||||
git am $BL/patches/0001-Remove-fsck-SELinux-labels.patch
|
||||
git am $BL/patches/0001-treble-Add-overlay-lineage.patch
|
||||
git am $BL/patches/0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch
|
||||
git am $BL/patches/0001-treble-Don-t-handle-apns-conf.patch
|
||||
git am $BL/patches/0001-TEMP-treble-Fix-init.treble-environ.rc-hardcode-for-.patch
|
||||
cd ../../..
|
||||
cd frameworks/native
|
||||
git revert 581c22f979af05e48ad4843cdfa9605186d286da --no-edit # Add suspend_resume trace events to the atrace 'freq' category.
|
||||
cd ../..
|
||||
cd hardware/lineage/interfaces
|
||||
git am $BL/patches/0001-cryptfshw-Remove-dependency-on-generated-kernel-head.patch
|
||||
cd ../../..
|
||||
cd system/hardware/interfaces
|
||||
git revert 5c145c49cc83bfe37c740bcfd3f82715ee051122 --no-edit # system_suspend: start early
|
||||
cd ../../..
|
||||
cd system/sepolicy
|
||||
git revert d12551bf1a6e8a9ece6bbb98344a27bde7f9b3e1 --no-edit # sepolicy: Relabel wifi. properties as wifi_prop
|
||||
git am $BL/patches/0001-Revert-sepolicy-Address-denials-for-legacy-last_kmsg.patch
|
||||
cd ../..
|
||||
cd vendor/lineage
|
||||
git am $BL/patches/0001-build_soong-Disable-generated_kernel_headers.patch
|
||||
cd ../..
|
||||
echo ""
|
||||
|
||||
echo "Applying personal patches"
|
||||
cd build/make
|
||||
git am $BL/patches_personal/0001-build-Integrate-prop-modifications-1-2.patch
|
||||
cd ../..
|
||||
cd frameworks/base
|
||||
git am $BL/patches_personal/0001-UI-Disable-left-seascape-navigation-bar-optionally.patch
|
||||
git am $BL/patches_personal/0001-UI-Use-SNAP_FIXED_RATIO-for-multi-window-globally.patch
|
||||
git am $BL/patches_personal/0001-UI-Increase-default-status-bar-height.patch
|
||||
git am $BL/patches_personal/0001-UI-Always-render-windows-into-cutouts.patch
|
||||
git am $BL/patches_personal/0001-UI-Relax-requirement-for-HINT_SUPPORTS_DARK_TEXT.patch
|
||||
git am $BL/patches_personal/0001-UI-Force-dark-QS-scrim.patch
|
||||
git am $BL/patches_personal/0001-TEMP-UI-Restore-status-bar-inset-behaviour.patch
|
||||
git am $BL/patches_personal/0001-Keyguard-Show-shortcuts-by-default.patch
|
||||
git am $BL/patches_personal/0001-Keyguard-Revert-date-and-clock-to-Lollipop-style.patch
|
||||
git am $BL/patches_personal/0001-Keyguard-Fix-clock-position.patch
|
||||
git am $BL/patches_personal/0001-Keyguard-Hide-padlock.patch
|
||||
git am $BL/patches_personal/0001-Keyguard-Refine-indication-text.patch
|
||||
git am $BL/patches_personal/0001-Disable-FP-lockouts.patch
|
||||
git am $BL/patches_personal/0001-Add-MiuiNavbarOverlay.patch
|
||||
cd ../..
|
||||
cd frameworks/opt/net/wifi
|
||||
git am $BL/patches_personal/0001-WiFi-Relax-throttling-greatly-for-foreground-apps.patch
|
||||
cd ../../../..
|
||||
cd frameworks/opt/telephony
|
||||
git am $BL/patches_personal/0001-Telephony-Disable-SPN-retrieval.patch
|
||||
cd ../../..
|
||||
cd lineage-sdk
|
||||
git am $BL/patches_personal/0001-sdk-Do-not-warn-about-SELinux-and-build-signature-st.patch
|
||||
cd ..
|
||||
cd packages/apps/DeskClock
|
||||
git am $BL/patches_personal/0001-DeskClock-Adjust-colors-and-layout.patch
|
||||
git am $BL/patches_personal/0001-DeskClock-Revert-date-and-clock-to-Lollipop-style.patch
|
||||
cd ../../..
|
||||
cd packages/apps/Messaging
|
||||
git am $BL/patches_personal/0001-Messaging-Use-blue-accent.patch
|
||||
cd ../../..
|
||||
cd vendor/lineage
|
||||
git am $BL/patches_personal/0001-vendor_lineage-Ignore-neverallows.-again.patch
|
||||
git am $BL/patches_personal/0001-build-Integrate-prop-modifications-2-2.patch
|
||||
cd ../..
|
||||
git clone https://github.com/kumikooumae/android_vendor_extra vendor/extra # SystemUIWithLegacyRecents
|
||||
echo ""
|
||||
|
||||
echo "CHECK PATCH STATUS NOW!"
|
||||
sleep 5
|
||||
echo ""
|
||||
|
||||
export WITHOUT_CHECK_API=true
|
||||
export WITH_SU=true
|
||||
mkdir -p ~/build-output/
|
||||
|
||||
buildVariant() {
|
||||
lunch ${1}-userdebug
|
||||
make installclean
|
||||
make -j$(nproc --all) systemimage
|
||||
make vndk-test-sepolicy
|
||||
mv $OUT/system.img ~/build-output/lineage-17.1-$BUILD_DATE-UNOFFICIAL-${1}-personal.img
|
||||
}
|
||||
|
||||
buildVariant treble_arm64_bvS
|
||||
ls ~/build-output | grep 'lineage'
|
||||
rm -rf vendor/extra
|
||||
|
||||
END=`date +%s`
|
||||
ELAPSEDM=$(($(($END-$START))/60))
|
||||
ELAPSEDS=$(($(($END-$START))-$ELAPSEDM*60))
|
||||
echo "Buildbot completed in $ELAPSEDM minutes and $ELAPSEDS seconds"
|
||||
echo ""
|
@ -1,166 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo ""
|
||||
echo "LineageOS 21 Unified Buildbot"
|
||||
echo "Executing in 5 seconds - CTRL-C to exit"
|
||||
echo ""
|
||||
sleep 5
|
||||
|
||||
if [ $# -lt 2 ]
|
||||
then
|
||||
echo "Not enough arguments - exiting"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MODE=${1}
|
||||
if [ ${MODE} != "device" ] && [ ${MODE} != "treble" ]
|
||||
then
|
||||
echo "Invalid mode - exiting"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
NOSYNC=false
|
||||
PERSONAL=false
|
||||
SIGNABLE=true
|
||||
for var in "${@:2}"
|
||||
do
|
||||
if [ ${var} == "nosync" ]
|
||||
then
|
||||
NOSYNC=true
|
||||
fi
|
||||
if [ ${var} == "personal" ]
|
||||
then
|
||||
PERSONAL=true
|
||||
SIGNABLE=false
|
||||
fi
|
||||
done
|
||||
if [ ! -d "$HOME/.android-certs" ]; then
|
||||
read -n1 -r -p $"\$HOME/.android-certs not found - CTRL-C to exit, or any other key to continue"
|
||||
echo ""
|
||||
SIGNABLE=false
|
||||
fi
|
||||
|
||||
# Abort early on error
|
||||
set -eE
|
||||
trap '(\
|
||||
echo;\
|
||||
echo \!\!\! An error happened during script execution;\
|
||||
echo \!\!\! Please check console output for bad sync,;\
|
||||
echo \!\!\! failed patch application, etc.;\
|
||||
echo\
|
||||
)' ERR
|
||||
|
||||
START=`date +%s`
|
||||
BUILD_DATE="$(date -u +%Y%m%d)"
|
||||
|
||||
prep_build() {
|
||||
echo "Preparing local manifests"
|
||||
mkdir -p .repo/local_manifests
|
||||
cp ./lineage_build_unified/local_manifests_${MODE}/*.xml .repo/local_manifests
|
||||
echo ""
|
||||
|
||||
echo "Syncing repos"
|
||||
repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
|
||||
echo ""
|
||||
|
||||
echo "Setting up build environment"
|
||||
source build/envsetup.sh &> /dev/null
|
||||
source vendor/lineage/vars/aosp_target_release
|
||||
mkdir -p ~/build-output
|
||||
echo ""
|
||||
|
||||
repopick 321337 -r -f # Deprioritize important developer notifications
|
||||
repopick 321338 -r -f # Allow disabling important developer notifications
|
||||
repopick 321339 -r -f # Allow disabling USB notifications
|
||||
repopick 368923 -r -f # Launcher3: Show clear all button in recents overview
|
||||
}
|
||||
|
||||
apply_patches() {
|
||||
echo "Applying patch group ${1}"
|
||||
bash ./lineage_build_unified/apply_patches.sh ./lineage_patches_unified/${1}
|
||||
}
|
||||
|
||||
prep_device() {
|
||||
:
|
||||
}
|
||||
|
||||
prep_treble() {
|
||||
:
|
||||
}
|
||||
|
||||
finalize_device() {
|
||||
:
|
||||
}
|
||||
|
||||
finalize_treble() {
|
||||
:
|
||||
}
|
||||
|
||||
build_device() {
|
||||
brunch ${1}
|
||||
mv $OUT/lineage-*.zip ~/build-output/lineage-21.0-$BUILD_DATE-UNOFFICIAL-${1}$($PERSONAL && echo "-personal" || echo "").zip
|
||||
}
|
||||
|
||||
build_treble() {
|
||||
case "${1}" in
|
||||
("64VN") TARGET=gsi_arm64_vN;;
|
||||
("64VS") TARGET=gsi_arm64_vS;;
|
||||
("64GN") TARGET=gsi_arm64_gN;;
|
||||
(*) echo "Invalid target - exiting"; exit 1;;
|
||||
esac
|
||||
lunch lineage_${TARGET}-${aosp_target_release}-userdebug
|
||||
make installclean
|
||||
make -j$(lscpu -b -p=Core,Socket | grep -v '^#' | sort -u | wc -l) systemimage
|
||||
SIGNED=false
|
||||
if [ ${SIGNABLE} = true ] && [[ ${TARGET} == *_g? ]]
|
||||
then
|
||||
make -j$(lscpu -b -p=Core,Socket | grep -v '^#' | sort -u | wc -l) target-files-package otatools
|
||||
bash ./lineage_build_unified/sign_target_files.sh $OUT/signed-target_files.zip
|
||||
unzip -joq $OUT/signed-target_files.zip IMAGES/system.img -d $OUT
|
||||
SIGNED=true
|
||||
echo ""
|
||||
fi
|
||||
mv $OUT/system.img ~/build-output/lineage-21.0-$BUILD_DATE-UNOFFICIAL-${TARGET}$(${PERSONAL} && echo "-personal" || echo "")$(${SIGNED} && echo "-signed" || echo "").img
|
||||
}
|
||||
|
||||
if ${NOSYNC}
|
||||
then
|
||||
echo "ATTENTION: syncing/patching skipped!"
|
||||
echo ""
|
||||
echo "Setting up build environment"
|
||||
source build/envsetup.sh &> /dev/null
|
||||
source vendor/lineage/vars/aosp_target_release
|
||||
echo ""
|
||||
else
|
||||
prep_build
|
||||
echo "Applying patches"
|
||||
prep_${MODE}
|
||||
apply_patches patches_platform
|
||||
apply_patches patches_${MODE}
|
||||
if ${PERSONAL}
|
||||
then
|
||||
apply_patches patches_platform_personal
|
||||
apply_patches patches_${MODE}_personal
|
||||
fi
|
||||
finalize_${MODE}
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
||||
for var in "${@:2}"
|
||||
do
|
||||
if [ ${var} == "nosync" ] || [ ${var} == "personal" ]
|
||||
then
|
||||
continue
|
||||
fi
|
||||
echo "Starting $(${PERSONAL} && echo "personal " || echo "")build for ${MODE} ${var}"
|
||||
build_${MODE} ${var}
|
||||
done
|
||||
ls ~/build-output | grep 'lineage' || true
|
||||
|
||||
END=`date +%s`
|
||||
ELAPSEDM=$(($(($END-$START))/60))
|
||||
ELAPSEDS=$(($(($END-$START))-$ELAPSEDM*60))
|
||||
echo "Buildbot completed in $ELAPSEDM minutes and $ELAPSEDS seconds"
|
||||
echo ""
|
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<manifest>
|
||||
<project name="AndyCGYan/android_device_lineage_gsi" path="device/lineage/gsi" remote="github" revision="lineage-21" />
|
||||
<project name="AndyCGYan/android_packages_apps_QcRilAm" path="packages/apps/QcRilAm" remote="github" revision="master" />
|
||||
<project name="TrebleDroid/vendor_hardware_overlay" path="vendor/hardware_overlay" remote="github" revision="pie" />
|
||||
<remove-project name="LineageOS/android_packages_apps_Camera2" />
|
||||
<remote name="gitlab" fetch="https://gitlab.com/" />
|
||||
<project name="MindTheGapps/vendor_gapps" path="vendor/gapps" remote="gitlab" revision="upsilon" />
|
||||
</manifest>
|
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source build/envsetup.sh
|
||||
source vendor/lineage/vars/aosp_target_release
|
||||
lunch lineage_gsi_arm64-$aosp_target_release-userdebug
|
||||
make clobber
|
9
manifest.xml
Normal file
9
manifest.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<manifest>
|
||||
<project name="phhusson/vendor_hardware_overlay" path="vendor/hardware_overlay" remote="github" revision="pie" />
|
||||
<project name="phhusson/device_phh_treble" path="device/phh/treble" remote="github" revision="android-10.0" />
|
||||
<project name="phhusson/vendor_vndk" path="vendor/vndk" remote="github" revision="android-10.0" />
|
||||
<project name="phhusson/vendor_vndk-tests" path="vendor/vndk-tests" remote="github" revision="master" />
|
||||
<project name="phhusson/vendor_interfaces" path="vendor/interfaces" remote="github" revision="pie" />
|
||||
<project name="phhusson/vendor_magisk" path="vendor/magisk" remote="github" revision="android-10.0" />
|
||||
</manifest>
|
120
patches/0001-Allow-selective-signature-spoofing-for-microG.patch
Normal file
120
patches/0001-Allow-selective-signature-spoofing-for-microG.patch
Normal file
@ -0,0 +1,120 @@
|
||||
From 4f35431eb542182d0359dcd62c4bb77f05794261 Mon Sep 17 00:00:00 2001
|
||||
From: Chirayu Desai <chirayudesai1@gmail.com>
|
||||
Date: Wed, 30 Jan 2019 18:18:10 +0530
|
||||
Subject: [PATCH] Allow selective signature spoofing for microG
|
||||
|
||||
* Permission FAKE_PACKAGE_SIGNATURE required
|
||||
* Only microG and FakeStore can spoof signature
|
||||
* Only the official Google signature can be spoofed, the
|
||||
"fake-signature" field is unused.
|
||||
|
||||
Change-Id: I34745f9bf585221d17c28269f74b3e0d0c834abf
|
||||
---
|
||||
core/res/AndroidManifest.xml | 7 +++++
|
||||
core/res/res/values/config.xml | 2 ++
|
||||
core/res/res/values/strings.xml | 4 +++
|
||||
.../server/pm/PackageManagerService.java | 28 +++++++++++++++++--
|
||||
4 files changed, 39 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
|
||||
index 7bcd7a048db..10853678f39 100644
|
||||
--- a/core/res/AndroidManifest.xml
|
||||
+++ b/core/res/AndroidManifest.xml
|
||||
@@ -2655,6 +2655,13 @@
|
||||
android:description="@string/permdesc_getPackageSize"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
+ <!-- @hide Allows an application to change the package signature as
|
||||
+ seen by applications -->
|
||||
+ <permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE"
|
||||
+ android:protectionLevel="dangerous"
|
||||
+ android:label="@string/permlab_fakePackageSignature"
|
||||
+ android:description="@string/permdesc_fakePackageSignature" />
|
||||
+
|
||||
<!-- @deprecated No longer useful, see
|
||||
{@link android.content.pm.PackageManager#addPackageToPreferred}
|
||||
for details. -->
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index a84d23b624b..89754ba11ef 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -1875,6 +1875,8 @@
|
||||
<string-array name="config_locationProviderPackageNames" translatable="false">
|
||||
<!-- The standard AOSP fused location provider -->
|
||||
<item>com.android.location.fused</item>
|
||||
+ <!-- The (faked) microg fused location provider (a free reimplementation) -->
|
||||
+ <item>com.google.android.gms</item>
|
||||
</string-array>
|
||||
|
||||
<!-- This string array can be overriden to enable test location providers initially. -->
|
||||
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
|
||||
index 7e975f68ec3..69932c6ac16 100644
|
||||
--- a/core/res/res/values/strings.xml
|
||||
+++ b/core/res/res/values/strings.xml
|
||||
@@ -830,6 +830,10 @@
|
||||
|
||||
<!-- Permissions -->
|
||||
|
||||
+ <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
+ <string name="permlab_fakePackageSignature">Spoof package signature</string>
|
||||
+ <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
+ <string name="permdesc_fakePackageSignature">Allows the app to pretend to be a different app. Malicious applications might be able to use this to access private application data. Legitimate uses include an emulator pretending to be what it emulates. Grant this permission with caution only!</string>
|
||||
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
<string name="permlab_statusBar">disable or modify status bar</string>
|
||||
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
index 9d287a53af3..205217b3009 100644
|
||||
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
@@ -635,6 +635,11 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
private static final String[] INSTANT_APP_BROADCAST_PERMISSION =
|
||||
new String[] { android.Manifest.permission.ACCESS_INSTANT_APPS };
|
||||
|
||||
+ /**
|
||||
+ * The Google signature faked by microG.
|
||||
+ */
|
||||
+ private static final String MICROG_FAKE_SIGNATURE = "308204433082032ba003020102020900c2e08746644a308d300d06092a864886f70d01010405003074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964301e170d3038303832313233313333345a170d3336303130373233313333345a3074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f696430820120300d06092a864886f70d01010105000382010d00308201080282010100ab562e00d83ba208ae0a966f124e29da11f2ab56d08f58e2cca91303e9b754d372f640a71b1dcb130967624e4656a7776a92193db2e5bfb724a91e77188b0e6a47a43b33d9609b77183145ccdf7b2e586674c9e1565b1f4c6a5955bff251a63dabf9c55c27222252e875e4f8154a645f897168c0b1bfc612eabf785769bb34aa7984dc7e2ea2764cae8307d8c17154d7ee5f64a51a44a602c249054157dc02cd5f5c0e55fbef8519fbe327f0b1511692c5a06f19d18385f5c4dbc2d6b93f68cc2979c70e18ab93866b3bd5db8999552a0e3b4c99df58fb918bedc182ba35e003c1b4b10dd244a8ee24fffd333872ab5221985edab0fc0d0b145b6aa192858e79020103a381d93081d6301d0603551d0e04160414c77d8cc2211756259a7fd382df6be398e4d786a53081a60603551d2304819e30819b8014c77d8cc2211756259a7fd382df6be398e4d786a5a178a4763074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964820900c2e08746644a308d300c0603551d13040530030101ff300d06092a864886f70d010104050003820101006dd252ceef85302c360aaace939bcff2cca904bb5d7a1661f8ae46b2994204d0ff4a68c7ed1a531ec4595a623ce60763b167297a7ae35712c407f208f0cb109429124d7b106219c084ca3eb3f9ad5fb871ef92269a8be28bf16d44c8d9a08e6cb2f005bb3fe2cb96447e868e731076ad45b33f6009ea19c161e62641aa99271dfd5228c5c587875ddb7f452758d661f6cc0cccb7352e424cc4365c523532f7325137593c4ae341f4db41edda0d0b1071a7c440f0fe9ea01cb627ca674369d084bd2fd911ff06cdbf2cfa10dc0f893ae35762919048c7efc64c7144178342f70581c9de573af55b390dd7fdb9418631895d5f759f30112687ff621410c069308a";
|
||||
+
|
||||
final ServiceThread mHandlerThread;
|
||||
|
||||
final PackageHandler mHandler;
|
||||
@@ -4197,8 +4202,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
});
|
||||
}
|
||||
|
||||
- PackageInfo packageInfo = PackageParser.generatePackageInfo(p, gids, flags,
|
||||
- ps.firstInstallTime, ps.lastUpdateTime, permissions, state, userId);
|
||||
+ PackageInfo packageInfo = mayFakeSignature(p, PackageParser.generatePackageInfo(p, gids, flags,
|
||||
+ ps.firstInstallTime, ps.lastUpdateTime, permissions, state, userId),
|
||||
+ permissions);
|
||||
|
||||
if (packageInfo == null) {
|
||||
return null;
|
||||
@@ -4234,6 +4240,24 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
}
|
||||
}
|
||||
|
||||
+ private PackageInfo mayFakeSignature(PackageParser.Package p, PackageInfo pi,
|
||||
+ Set<String> permissions) {
|
||||
+ try {
|
||||
+ if (permissions.contains("android.permission.FAKE_PACKAGE_SIGNATURE")
|
||||
+ && p.applicationInfo.targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1
|
||||
+ && p.mAppMetaData != null) {
|
||||
+ // Only allow microG and FakeStore
|
||||
+ if (p.packageName.equals("com.google.android.gms") || p.packageName.equals("com.android.vending")) {
|
||||
+ pi.signatures = new Signature[] {new Signature(MICROG_FAKE_SIGNATURE)};
|
||||
+ }
|
||||
+ }
|
||||
+ } catch (Throwable t) {
|
||||
+ // We should never die because of any failures, this is system code!
|
||||
+ Log.w("PackageManagerService.FAKE_PACKAGE_SIGNATURE", t);
|
||||
+ }
|
||||
+ return pi;
|
||||
+ }
|
||||
+
|
||||
@Override
|
||||
public void checkPackageStartable(String packageName, int userId) {
|
||||
final int callingUid = Binder.getCallingUid();
|
||||
--
|
||||
2.25.1
|
||||
|
40
patches/0001-Disable-vendor-mismatch-warning.patch
Normal file
40
patches/0001-Disable-vendor-mismatch-warning.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From 9b907d3b202fd3f7a892b50eacd92e4d51877606 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 5 Apr 2018 10:01:19 +0800
|
||||
Subject: [PATCH] Disable vendor mismatch warning
|
||||
|
||||
Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||
---
|
||||
.../server/wm/ActivityTaskManagerService.java | 16 ++--------------
|
||||
1 file changed, 2 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
index ef02fd52999..b6bccb1c21c 100644
|
||||
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
@@ -6486,20 +6486,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
}
|
||||
|
||||
if (!Build.isBuildConsistent()) {
|
||||
- Slog.e(TAG, "Build fingerprint is not consistent, warning user");
|
||||
- mUiHandler.post(() -> {
|
||||
- if (mShowDialogs) {
|
||||
- AlertDialog d = new BaseErrorDialog(mUiContext);
|
||||
- d.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
|
||||
- d.setCancelable(false);
|
||||
- d.setTitle(mUiContext.getText(R.string.android_system_label));
|
||||
- d.setMessage(mUiContext.getText(R.string.system_error_manufacturer));
|
||||
- d.setButton(DialogInterface.BUTTON_POSITIVE,
|
||||
- mUiContext.getText(R.string.ok),
|
||||
- mUiHandler.obtainMessage(DISMISS_DIALOG_UI_MSG, d));
|
||||
- d.show();
|
||||
- }
|
||||
- });
|
||||
+ Slog.e(TAG, "Build fingerprint is not consistent");
|
||||
+ // Do not emit warning about vendor mismatch
|
||||
}
|
||||
}
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,105 @@
|
||||
From 47bf5612cec98931ee3076c307247ac58d07ccff Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 13 Jan 2019 21:44:48 +0800
|
||||
Subject: [PATCH] LineageParts: Invert per-app stretch-to-fullscreen
|
||||
|
||||
Change-Id: Icb02c8dfd84882f736e37d6cd92c35e5eb288faa
|
||||
---
|
||||
res/layout/long_screen_layout.xml | 2 +-
|
||||
res/values-zh-rCN/strings.xml | 6 +++---
|
||||
res/values/strings.xml | 6 +++---
|
||||
res/xml/long_screen_prefs.xml | 2 +-
|
||||
res/xml/parts_catalog.xml | 4 ++--
|
||||
.../lineageparts/applications/LongScreenSettings.java | 2 +-
|
||||
6 files changed, 11 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/res/layout/long_screen_layout.xml b/res/layout/long_screen_layout.xml
|
||||
index 40d0938..1119cef 100644
|
||||
--- a/res/layout/long_screen_layout.xml
|
||||
+++ b/res/layout/long_screen_layout.xml
|
||||
@@ -36,7 +36,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
- android:text="@string/long_screen_settings_no_apps"
|
||||
+ android:text="@string/inverse_long_screen_settings_no_apps"
|
||||
android:textSize="18dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
|
||||
index ee5f7f9..eeed571 100644
|
||||
--- a/res/values-zh-rCN/strings.xml
|
||||
+++ b/res/values-zh-rCN/strings.xml
|
||||
@@ -448,9 +448,9 @@
|
||||
<string name="auto_power_save_summary_on">电量 %s 时自动启用省电</string>
|
||||
<string name="auto_power_save_summary_off">不要自动启用省电</string>
|
||||
<string name="auto_power_save_never">永不</string>
|
||||
- <string name="long_screen_settings_title">全屏应用</string>
|
||||
- <string name="long_screen_settings_summary">强制旧式应用程序使用全屏长宽比</string>
|
||||
- <string name="long_screen_settings_no_apps">无应用</string>
|
||||
+ <string name="inverse_long_screen_settings_title">禁用拉伸全屏</string>
|
||||
+ <string name="inverse_long_screen_settings_summary">对选定的应用禁用拉伸全屏</string>
|
||||
+ <string name="inverse_long_screen_settings_no_apps">无应用</string>
|
||||
<string name="charging_sounds_settings_title">充电提示音</string>
|
||||
<string name="charging_sounds_enabled_title">启用</string>
|
||||
<string name="charging_sounds_enabled_summary">连接或断开电源时发出声音</string>
|
||||
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
||||
index 65d799a..ff23ae9 100644
|
||||
--- a/res/values/strings.xml
|
||||
+++ b/res/values/strings.xml
|
||||
@@ -579,9 +579,9 @@
|
||||
<string name="auto_power_save_never">Never</string>
|
||||
|
||||
<!-- Applications: Long screen -->
|
||||
- <string name="long_screen_settings_title">Full screen apps</string>
|
||||
- <string name="long_screen_settings_summary">Force legacy apps to use full screen aspect ratio</string>
|
||||
- <string name="long_screen_settings_no_apps">No apps</string>
|
||||
+ <string name="inverse_long_screen_settings_title">Disable stretch-to-fullscreen</string>
|
||||
+ <string name="inverse_long_screen_settings_summary">Prevent selected apps from utilizing stretch-to-fullscreen</string>
|
||||
+ <string name="inverse_long_screen_settings_no_apps">No apps</string>
|
||||
|
||||
<!-- Sounds: Charging sounds -->
|
||||
<string name="charging_sounds_settings_title">Charging sounds</string>
|
||||
diff --git a/res/xml/long_screen_prefs.xml b/res/xml/long_screen_prefs.xml
|
||||
index ec947fa..20da90a 100644
|
||||
--- a/res/xml/long_screen_prefs.xml
|
||||
+++ b/res/xml/long_screen_prefs.xml
|
||||
@@ -18,6 +18,6 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:lineage="http://schemas.android.com/apk/res/org.lineageos.lineageparts"
|
||||
android:key="long_screen_settings"
|
||||
- android:title="@string/long_screen_settings_title">
|
||||
+ android:title="@string/inverse_long_screen_settings_title">
|
||||
|
||||
</PreferenceScreen>
|
||||
diff --git a/res/xml/parts_catalog.xml b/res/xml/parts_catalog.xml
|
||||
index a4346c7..e21d7d5 100644
|
||||
--- a/res/xml/parts_catalog.xml
|
||||
+++ b/res/xml/parts_catalog.xml
|
||||
@@ -92,8 +92,8 @@
|
||||
lineage:xmlRes="@xml/perf_profile_settings" />
|
||||
|
||||
<part android:key="long_screen_settings"
|
||||
- android:title="@string/long_screen_settings_title"
|
||||
- android:summary="@string/long_screen_settings_summary"
|
||||
+ android:title="@string/inverse_long_screen_settings_title"
|
||||
+ android:summary="@string/inverse_long_screen_settings_summary"
|
||||
android:fragment="org.lineageos.lineageparts.applications.LongScreenSettings"
|
||||
lineage:xmlRes="@xml/long_screen_prefs" />
|
||||
|
||||
diff --git a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||
index ac04058..50ff8f6 100644
|
||||
--- a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||
+++ b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||
@@ -246,7 +246,7 @@ public class LongScreenSettings extends SettingsPreferenceFragment
|
||||
mApplicationsState.ensureIcon(entry);
|
||||
holder.icon.setImageDrawable(entry.icon);
|
||||
holder.state.setTag(entry);
|
||||
- holder.state.setChecked(mLongScreen.shouldForceLongScreen(entry.info.packageName));
|
||||
+ holder.state.setChecked(!(mLongScreen.shouldForceLongScreen(entry.info.packageName)));
|
||||
return holder.rootView;
|
||||
}
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
29
patches/0001-Remove-fsck-SELinux-labels.patch
Normal file
29
patches/0001-Remove-fsck-SELinux-labels.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 3fb27b3b3ab30a86432d2ca1f8fe5c3802793866 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 23 Oct 2019 09:38:16 +0000
|
||||
Subject: [PATCH] Remove fsck SELinux labels
|
||||
|
||||
These are covered by LOS sepolicy
|
||||
|
||||
Change-Id: I7c63c9aed39afc07b8c80918053154113f848cd9
|
||||
---
|
||||
sepolicy/file_contexts | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
|
||||
index 6da14ac..dfea075 100644
|
||||
--- a/sepolicy/file_contexts
|
||||
+++ b/sepolicy/file_contexts
|
||||
@@ -6,9 +6,6 @@
|
||||
/system/bin/phh-on-data.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/asus-motor u:object_r:phhsu_exec:s0
|
||||
|
||||
-#/system/bin/fsck\.exfat u:object_r:fsck_exec:s0
|
||||
-/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0
|
||||
-
|
||||
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
|
||||
|
||||
/sec_storage(/.*)? u:object_r:teecd_data_file:s0
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,219 @@
|
||||
From f2d91940b4e014d63154a816749150cffd3f1a47 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Cai <peter@typeblog.net>
|
||||
Date: Fri, 28 Feb 2020 10:29:42 +0800
|
||||
Subject: [PATCH] Revert "sepolicy: Address denials for legacy last_kmsg file"
|
||||
|
||||
This reverts commit 1188affe377931f31b6f85d8851c3ddf00ab5567.
|
||||
|
||||
* Some vendor images (like Xiaomi's sm7250 vendor) already defines
|
||||
similar rules for last_kmsg. Having this in system will cause
|
||||
conflicts with prebuilt vendor images.
|
||||
* We can probably move this to somewhere like `device/qcom/sepolicy` or
|
||||
`device/lineage/sepolicy`, putting them in vendor sepolicy to guard
|
||||
them off system-only builds.
|
||||
|
||||
Change-Id: I813c5f56a6e23c96f129c3928dd559fb4c56d9d7
|
||||
---
|
||||
prebuilts/api/29.0/private/compat/26.0/26.0.ignore.cil | 1 -
|
||||
prebuilts/api/29.0/private/compat/27.0/27.0.ignore.cil | 1 -
|
||||
prebuilts/api/29.0/private/compat/28.0/28.0.ignore.cil | 1 -
|
||||
prebuilts/api/29.0/private/genfs_contexts | 1 -
|
||||
prebuilts/api/29.0/private/system_server.te | 1 -
|
||||
prebuilts/api/29.0/public/file.te | 1 -
|
||||
prebuilts/api/29.0/public/init.te | 2 --
|
||||
private/compat/26.0/26.0.ignore.cil | 1 -
|
||||
private/compat/27.0/27.0.ignore.cil | 1 -
|
||||
private/compat/28.0/28.0.ignore.cil | 1 -
|
||||
private/genfs_contexts | 1 -
|
||||
private/system_server.te | 1 -
|
||||
public/file.te | 1 -
|
||||
public/init.te | 2 --
|
||||
14 files changed, 16 deletions(-)
|
||||
|
||||
diff --git a/prebuilts/api/29.0/private/compat/26.0/26.0.ignore.cil b/prebuilts/api/29.0/private/compat/26.0/26.0.ignore.cil
|
||||
index b12f917d..5a908cf2 100644
|
||||
--- a/prebuilts/api/29.0/private/compat/26.0/26.0.ignore.cil
|
||||
+++ b/prebuilts/api/29.0/private/compat/26.0/26.0.ignore.cil
|
||||
@@ -134,7 +134,6 @@
|
||||
perfprofd_service
|
||||
proc_cpu_alignment
|
||||
proc_dt_firmware_android
|
||||
- proc_last_kmsg
|
||||
property_info
|
||||
recovery_socket
|
||||
role_service
|
||||
diff --git a/prebuilts/api/29.0/private/compat/27.0/27.0.ignore.cil b/prebuilts/api/29.0/private/compat/27.0/27.0.ignore.cil
|
||||
index bba68f10..f4bf3ac0 100644
|
||||
--- a/prebuilts/api/29.0/private/compat/27.0/27.0.ignore.cil
|
||||
+++ b/prebuilts/api/29.0/private/compat/27.0/27.0.ignore.cil
|
||||
@@ -121,7 +121,6 @@
|
||||
perfprofd_service
|
||||
proc_cpu_alignment
|
||||
proc_dt_firmware_android
|
||||
- proc_last_kmsg
|
||||
property_info
|
||||
recovery_socket
|
||||
role_service
|
||||
diff --git a/prebuilts/api/29.0/private/compat/28.0/28.0.ignore.cil b/prebuilts/api/29.0/private/compat/28.0/28.0.ignore.cil
|
||||
index 1e46f712..96d649b5 100644
|
||||
--- a/prebuilts/api/29.0/private/compat/28.0/28.0.ignore.cil
|
||||
+++ b/prebuilts/api/29.0/private/compat/28.0/28.0.ignore.cil
|
||||
@@ -106,7 +106,6 @@
|
||||
postinstall_apex_mnt_dir
|
||||
proc_cpu_alignment
|
||||
proc_dt_firmware_android
|
||||
- proc_last_kmsg
|
||||
recovery_socket
|
||||
role_service
|
||||
rollback_service
|
||||
diff --git a/prebuilts/api/29.0/private/genfs_contexts b/prebuilts/api/29.0/private/genfs_contexts
|
||||
index c7603a9a..d9b24d0d 100644
|
||||
--- a/prebuilts/api/29.0/private/genfs_contexts
|
||||
+++ b/prebuilts/api/29.0/private/genfs_contexts
|
||||
@@ -13,7 +13,6 @@ genfscon proc /interrupts u:object_r:proc_interrupts:s0
|
||||
genfscon proc /iomem u:object_r:proc_iomem:s0
|
||||
genfscon proc /keys u:object_r:proc_keys:s0
|
||||
genfscon proc /kmsg u:object_r:proc_kmsg:s0
|
||||
-genfscon proc /last_kmsg u:object_r:proc_last_kmsg:s0
|
||||
genfscon proc /loadavg u:object_r:proc_loadavg:s0
|
||||
genfscon proc /meminfo u:object_r:proc_meminfo:s0
|
||||
genfscon proc /misc u:object_r:proc_misc:s0
|
||||
diff --git a/prebuilts/api/29.0/private/system_server.te b/prebuilts/api/29.0/private/system_server.te
|
||||
index 87f26c4b..73891c92 100644
|
||||
--- a/prebuilts/api/29.0/private/system_server.te
|
||||
+++ b/prebuilts/api/29.0/private/system_server.te
|
||||
@@ -848,7 +848,6 @@ r_dir_file(system_server, proc_net_type)
|
||||
r_dir_file(system_server, proc_qtaguid_stat)
|
||||
allow system_server {
|
||||
proc_cmdline
|
||||
- proc_last_kmsg
|
||||
proc_loadavg
|
||||
proc_meminfo
|
||||
proc_pagetypeinfo
|
||||
diff --git a/prebuilts/api/29.0/public/file.te b/prebuilts/api/29.0/public/file.te
|
||||
index b4c77b1e..96c07324 100644
|
||||
--- a/prebuilts/api/29.0/public/file.te
|
||||
+++ b/prebuilts/api/29.0/public/file.te
|
||||
@@ -34,7 +34,6 @@ type proc_interrupts, fs_type, proc_type;
|
||||
type proc_iomem, fs_type, proc_type;
|
||||
type proc_keys, fs_type, proc_type;
|
||||
type proc_kmsg, fs_type, proc_type;
|
||||
-type proc_last_kmsg, fs_type, proc_type;
|
||||
type proc_loadavg, fs_type, proc_type;
|
||||
type proc_max_map_count, fs_type, proc_type;
|
||||
type proc_meminfo, fs_type, proc_type;
|
||||
diff --git a/prebuilts/api/29.0/public/init.te b/prebuilts/api/29.0/public/init.te
|
||||
index e7e5b651..b4969b1d 100644
|
||||
--- a/prebuilts/api/29.0/public/init.te
|
||||
+++ b/prebuilts/api/29.0/public/init.te
|
||||
@@ -319,7 +319,6 @@ allow init {
|
||||
proc_cmdline
|
||||
proc_diskstats
|
||||
proc_kmsg # Open /proc/kmsg for logd service.
|
||||
- proc_last_kmsg
|
||||
proc_meminfo
|
||||
proc_stat # Read /proc/stat for bootchart.
|
||||
proc_uptime
|
||||
@@ -352,7 +351,6 @@ allow init {
|
||||
allow init {
|
||||
proc_cmdline
|
||||
proc_kmsg
|
||||
- proc_last_kmsg
|
||||
proc_net
|
||||
proc_qtaguid_stat
|
||||
proc_slabinfo
|
||||
diff --git a/private/compat/26.0/26.0.ignore.cil b/private/compat/26.0/26.0.ignore.cil
|
||||
index b12f917d..5a908cf2 100644
|
||||
--- a/private/compat/26.0/26.0.ignore.cil
|
||||
+++ b/private/compat/26.0/26.0.ignore.cil
|
||||
@@ -134,7 +134,6 @@
|
||||
perfprofd_service
|
||||
proc_cpu_alignment
|
||||
proc_dt_firmware_android
|
||||
- proc_last_kmsg
|
||||
property_info
|
||||
recovery_socket
|
||||
role_service
|
||||
diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil
|
||||
index bba68f10..f4bf3ac0 100644
|
||||
--- a/private/compat/27.0/27.0.ignore.cil
|
||||
+++ b/private/compat/27.0/27.0.ignore.cil
|
||||
@@ -121,7 +121,6 @@
|
||||
perfprofd_service
|
||||
proc_cpu_alignment
|
||||
proc_dt_firmware_android
|
||||
- proc_last_kmsg
|
||||
property_info
|
||||
recovery_socket
|
||||
role_service
|
||||
diff --git a/private/compat/28.0/28.0.ignore.cil b/private/compat/28.0/28.0.ignore.cil
|
||||
index 1e46f712..96d649b5 100644
|
||||
--- a/private/compat/28.0/28.0.ignore.cil
|
||||
+++ b/private/compat/28.0/28.0.ignore.cil
|
||||
@@ -106,7 +106,6 @@
|
||||
postinstall_apex_mnt_dir
|
||||
proc_cpu_alignment
|
||||
proc_dt_firmware_android
|
||||
- proc_last_kmsg
|
||||
recovery_socket
|
||||
role_service
|
||||
rollback_service
|
||||
diff --git a/private/genfs_contexts b/private/genfs_contexts
|
||||
index c7603a9a..d9b24d0d 100644
|
||||
--- a/private/genfs_contexts
|
||||
+++ b/private/genfs_contexts
|
||||
@@ -13,7 +13,6 @@ genfscon proc /interrupts u:object_r:proc_interrupts:s0
|
||||
genfscon proc /iomem u:object_r:proc_iomem:s0
|
||||
genfscon proc /keys u:object_r:proc_keys:s0
|
||||
genfscon proc /kmsg u:object_r:proc_kmsg:s0
|
||||
-genfscon proc /last_kmsg u:object_r:proc_last_kmsg:s0
|
||||
genfscon proc /loadavg u:object_r:proc_loadavg:s0
|
||||
genfscon proc /meminfo u:object_r:proc_meminfo:s0
|
||||
genfscon proc /misc u:object_r:proc_misc:s0
|
||||
diff --git a/private/system_server.te b/private/system_server.te
|
||||
index 87f26c4b..73891c92 100644
|
||||
--- a/private/system_server.te
|
||||
+++ b/private/system_server.te
|
||||
@@ -848,7 +848,6 @@ r_dir_file(system_server, proc_net_type)
|
||||
r_dir_file(system_server, proc_qtaguid_stat)
|
||||
allow system_server {
|
||||
proc_cmdline
|
||||
- proc_last_kmsg
|
||||
proc_loadavg
|
||||
proc_meminfo
|
||||
proc_pagetypeinfo
|
||||
diff --git a/public/file.te b/public/file.te
|
||||
index b4c77b1e..96c07324 100644
|
||||
--- a/public/file.te
|
||||
+++ b/public/file.te
|
||||
@@ -34,7 +34,6 @@ type proc_interrupts, fs_type, proc_type;
|
||||
type proc_iomem, fs_type, proc_type;
|
||||
type proc_keys, fs_type, proc_type;
|
||||
type proc_kmsg, fs_type, proc_type;
|
||||
-type proc_last_kmsg, fs_type, proc_type;
|
||||
type proc_loadavg, fs_type, proc_type;
|
||||
type proc_max_map_count, fs_type, proc_type;
|
||||
type proc_meminfo, fs_type, proc_type;
|
||||
diff --git a/public/init.te b/public/init.te
|
||||
index e7e5b651..b4969b1d 100644
|
||||
--- a/public/init.te
|
||||
+++ b/public/init.te
|
||||
@@ -319,7 +319,6 @@ allow init {
|
||||
proc_cmdline
|
||||
proc_diskstats
|
||||
proc_kmsg # Open /proc/kmsg for logd service.
|
||||
- proc_last_kmsg
|
||||
proc_meminfo
|
||||
proc_stat # Read /proc/stat for bootchart.
|
||||
proc_uptime
|
||||
@@ -352,7 +351,6 @@ allow init {
|
||||
allow init {
|
||||
proc_cmdline
|
||||
proc_kmsg
|
||||
- proc_last_kmsg
|
||||
proc_net
|
||||
proc_qtaguid_stat
|
||||
proc_slabinfo
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,106 @@
|
||||
From 7d7802adc9d58e2b3c65eba48e543ac5b8d8813f Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 10 Jun 2020 15:36:26 +0000
|
||||
Subject: [PATCH] Revert "surfaceflinger: Add support for extension lib"
|
||||
|
||||
This reverts commit 470dde656e0ee547f78ac403a6f959e1438c2158.
|
||||
|
||||
Change-Id: I7c7ed49ba33f98e2715e12f24a0b01c937cae5ac
|
||||
---
|
||||
services/surfaceflinger/BufferQueueLayer.cpp | 11 +----------
|
||||
services/surfaceflinger/CompositionEngine/Android.bp | 10 ----------
|
||||
.../CompositionEngine/src/OutputLayer.cpp | 10 +---------
|
||||
3 files changed, 2 insertions(+), 29 deletions(-)
|
||||
|
||||
diff --git a/services/surfaceflinger/BufferQueueLayer.cpp b/services/surfaceflinger/BufferQueueLayer.cpp
|
||||
index 18c74e6c6..eb1bf66cd 100644
|
||||
--- a/services/surfaceflinger/BufferQueueLayer.cpp
|
||||
+++ b/services/surfaceflinger/BufferQueueLayer.cpp
|
||||
@@ -18,7 +18,6 @@
|
||||
#define LOG_TAG "BufferQueueLayer"
|
||||
#define ATRACE_TAG ATRACE_TAG_GRAPHICS
|
||||
#include <compositionengine/Display.h>
|
||||
-#include <compositionengine/FodExtension.h>
|
||||
#include <compositionengine/Layer.h>
|
||||
#include <compositionengine/OutputLayer.h>
|
||||
#include <compositionengine/impl/LayerCompositionState.h>
|
||||
@@ -563,19 +562,11 @@ status_t BufferQueueLayer::setDefaultBufferProperties(uint32_t w, uint32_t h, Pi
|
||||
return BAD_VALUE;
|
||||
}
|
||||
|
||||
- uint64_t usageBits = getEffectiveUsage(0);
|
||||
-
|
||||
- if (mName == FOD_LAYER_NAME) {
|
||||
- usageBits = getFodUsageBits(usageBits, false);
|
||||
- } else if (mName == FOD_TOUCHED_LAYER_NAME) {
|
||||
- usageBits = getFodUsageBits(usageBits, true);
|
||||
- }
|
||||
-
|
||||
mFormat = format;
|
||||
|
||||
setDefaultBufferSize(w, h);
|
||||
mConsumer->setDefaultBufferFormat(format);
|
||||
- mConsumer->setConsumerUsageBits(usageBits);
|
||||
+ mConsumer->setConsumerUsageBits(getEffectiveUsage(0));
|
||||
|
||||
return NO_ERROR;
|
||||
}
|
||||
diff --git a/services/surfaceflinger/CompositionEngine/Android.bp b/services/surfaceflinger/CompositionEngine/Android.bp
|
||||
index fd1c369d8..6f076ad11 100644
|
||||
--- a/services/surfaceflinger/CompositionEngine/Android.bp
|
||||
+++ b/services/surfaceflinger/CompositionEngine/Android.bp
|
||||
@@ -45,7 +45,6 @@ cc_library {
|
||||
"src/DisplayColorProfile.cpp",
|
||||
"src/DisplaySurface.cpp",
|
||||
"src/DumpHelpers.cpp",
|
||||
- "src/FodExtension.cpp",
|
||||
"src/HwcBufferCache.cpp",
|
||||
"src/Layer.cpp",
|
||||
"src/LayerCompositionState.cpp",
|
||||
@@ -57,15 +56,6 @@ cc_library {
|
||||
],
|
||||
local_include_dirs: ["include"],
|
||||
export_include_dirs: ["include"],
|
||||
- product_variables: {
|
||||
- lineage: {
|
||||
- target_surfaceflinger_fod_lib: {
|
||||
- cflags: ["-DTARGET_PROVIDES_FOD_LIB"],
|
||||
- whole_static_libs: ["%s"],
|
||||
- },
|
||||
- },
|
||||
- },
|
||||
-
|
||||
}
|
||||
|
||||
cc_library {
|
||||
diff --git a/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp b/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
|
||||
index 985b598f1..5ce72b087 100644
|
||||
--- a/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
|
||||
+++ b/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <android-base/stringprintf.h>
|
||||
#include <compositionengine/CompositionEngine.h>
|
||||
-#include <compositionengine/FodExtension.h>
|
||||
#include <compositionengine/Layer.h>
|
||||
#include <compositionengine/LayerFE.h>
|
||||
#include <compositionengine/Output.h>
|
||||
@@ -336,14 +335,7 @@ void OutputLayer::writeStateToHWC(bool includeGeometry) const {
|
||||
static_cast<int32_t>(error));
|
||||
}
|
||||
|
||||
- uint32_t z = mState.z;
|
||||
- if (strcmp(mLayerFE->getDebugName(), FOD_LAYER_NAME) == 0) {
|
||||
- z = getFodZOrder(z, false);
|
||||
- } else if (strcmp(mLayerFE->getDebugName(), FOD_TOUCHED_LAYER_NAME) == 0) {
|
||||
- z = getFodZOrder(z, true);
|
||||
- }
|
||||
-
|
||||
- if (auto error = hwcLayer->setZOrder(z); error != HWC2::Error::None) {
|
||||
+ if (auto error = hwcLayer->setZOrder(mState.z); error != HWC2::Error::None) {
|
||||
ALOGE("[%s] Failed to set Z %u: %s (%d)", mLayerFE->getDebugName(), mState.z,
|
||||
to_string(error).c_str(), static_cast<int32_t>(error));
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
1005
patches/0001-Squashed-revert-of-LOS-FOD-implementation.patch
Normal file
1005
patches/0001-Squashed-revert-of-LOS-FOD-implementation.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,25 @@
|
||||
From f0826e489f5b2823d22273a55ef628945fa9819c Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 1 Nov 2019 15:26:10 +0000
|
||||
Subject: [PATCH] [TEMP] treble: Fix init.treble-environ.rc hardcode for LOS
|
||||
|
||||
Refer to https://github.com/phhusson/device_phh_treble/commit/a6aa52f7b11cc7d3f9fbe51356b34ebf0705d775
|
||||
|
||||
Change-Id: I045e140f0eafe13bca07c6e24f31361a3f876a45
|
||||
---
|
||||
environ/init.treble-environ.rc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/environ/init.treble-environ.rc b/environ/init.treble-environ.rc
|
||||
index 4fc8c32..d36ba2c 100644
|
||||
--- a/environ/init.treble-environ.rc
|
||||
+++ b/environ/init.treble-environ.rc
|
||||
@@ -1,4 +1,4 @@
|
||||
# set up the global environment
|
||||
on init
|
||||
export BOOTCLASSPATH /apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.test.base.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar
|
||||
- export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar
|
||||
+ export SYSTEMSERVERCLASSPATH /system/framework/org.lineageos.platform.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,39 @@
|
||||
From 6642bca8a784f2a65cde080935878c830e383ffd Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 3 Nov 2019 03:32:02 +0000
|
||||
Subject: [PATCH] UI: Revive navbar layout tuning via sysui_nav_bar tunable
|
||||
|
||||
Google keeps fixing what ain't broken.
|
||||
This partially undoes https://github.com/LineageOS/android_frameworks_base/commit/e0d5ccd331e694afdc3c8462a1b845df329de2b8
|
||||
|
||||
Change-Id: I7a0fcfc9c27a08100712200d50f295f4bd81494d
|
||||
---
|
||||
.../systemui/statusbar/phone/NavigationBarInflaterView.java | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||
index db58e1364b3..9ebeab07f11 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||
@@ -173,6 +173,7 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||
super.onAttachedToWindow();
|
||||
Dependency.get(TunerService.class).addTunable(this, NAV_BAR_INVERSE);
|
||||
Dependency.get(TunerService.class).addTunable(this, KEY_NAVIGATION_HINT);
|
||||
+ Dependency.get(TunerService.class).addTunable(this, NAV_BAR_VIEWS);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -184,7 +185,9 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||
|
||||
@Override
|
||||
public void onTuningChanged(String key, String newValue) {
|
||||
- if (NAV_BAR_INVERSE.equals(key)) {
|
||||
+ if (NAV_BAR_VIEWS.equals(key)) {
|
||||
+ setNavigationBarLayout(newValue);
|
||||
+ } else if (NAV_BAR_INVERSE.equals(key)) {
|
||||
mInverseLayout = TunerService.parseIntegerSwitch(newValue, false);
|
||||
updateLayoutInversion();
|
||||
} else if (KEY_NAVIGATION_HINT.equals(key)) {
|
||||
--
|
||||
2.17.1
|
||||
|
62
patches/0001-build-Don-t-handle-apns-conf.patch
Normal file
62
patches/0001-build-Don-t-handle-apns-conf.patch
Normal file
@ -0,0 +1,62 @@
|
||||
From 834da871f22f65ee8c8a807c13f9248a4633ecee Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 22 Oct 2019 12:36:03 +0000
|
||||
Subject: [PATCH] build: Don't handle apns-conf
|
||||
|
||||
Leave it to vendor/lineage instead
|
||||
|
||||
Change-Id: I743e2d8ab8b6527c887b4d9bbc219ff4dcf6a9ba
|
||||
---
|
||||
target/product/full_base_telephony.mk | 5 -----
|
||||
target/product/gsi_common.mk | 7 -------
|
||||
target/product/mainline.mk | 4 ----
|
||||
3 files changed, 16 deletions(-)
|
||||
|
||||
diff --git a/target/product/full_base_telephony.mk b/target/product/full_base_telephony.mk
|
||||
index e3442147a..0aa9e7700 100644
|
||||
--- a/target/product/full_base_telephony.mk
|
||||
+++ b/target/product/full_base_telephony.mk
|
||||
@@ -30,10 +30,5 @@ endif
|
||||
PRODUCT_COPY_FILES := \
|
||||
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
||||
|
||||
-ifeq ($(LINEAGE_BUILD),)
|
||||
-PRODUCT_COPY_FILES += \
|
||||
- device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
-endif
|
||||
-
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
||||
diff --git a/target/product/gsi_common.mk b/target/product/gsi_common.mk
|
||||
index dac3a2fcf..b7ef78c23 100644
|
||||
--- a/target/product/gsi_common.mk
|
||||
+++ b/target/product/gsi_common.mk
|
||||
@@ -87,13 +87,6 @@ PRODUCT_PACKAGES += \
|
||||
WAPPushManager \
|
||||
WallpaperPicker \
|
||||
|
||||
-# Telephony:
|
||||
-# Provide a APN configuration to GSI product
|
||||
-ifeq ($(LINEAGE_BUILD),)
|
||||
-PRODUCT_COPY_FILES += \
|
||||
- device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
||||
-endif
|
||||
-
|
||||
# NFC:
|
||||
# Provide a libnfc-nci.conf to GSI product
|
||||
PRODUCT_COPY_FILES += \
|
||||
diff --git a/target/product/mainline.mk b/target/product/mainline.mk
|
||||
index ca16fc656..70da48b25 100644
|
||||
--- a/target/product/mainline.mk
|
||||
+++ b/target/product/mainline.mk
|
||||
@@ -40,7 +40,3 @@ endif
|
||||
PRODUCT_PACKAGES += \
|
||||
PhotoTable \
|
||||
WallpaperPicker \
|
||||
-
|
||||
-ifeq ($(LINEAGE_BUILD),)
|
||||
-PRODUCT_COPY_FILES += device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
||||
-endif
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,40 @@
|
||||
From 33d6a11822e587fba10bb42e4f33e8e79e7162d6 Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 3 Mar 2019 14:07:33 +0800
|
||||
Subject: [PATCH] build_soong: Disable generated_kernel_headers
|
||||
|
||||
...but done in a way so that there's no need to remove generated_kernel_headers from individual projects - thanks @ExpressLuke
|
||||
|
||||
Change-Id: I630857cec208f1830e776bf5031d7bb9bc4435d0
|
||||
---
|
||||
build/soong/Android.bp | 7 -------
|
||||
1 file changed, 7 deletions(-)
|
||||
|
||||
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
|
||||
index 0a2b9689..1bfa7064 100644
|
||||
--- a/build/soong/Android.bp
|
||||
+++ b/build/soong/Android.bp
|
||||
@@ -26,9 +26,6 @@ bootstrap_go_package {
|
||||
lineage_generator {
|
||||
name: "generated_kernel_includes",
|
||||
|
||||
- // The headers make command
|
||||
- cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
|
||||
-
|
||||
// Directories that can be imported by a cc_* module generated_headers property
|
||||
export_include_dirs: [
|
||||
"usr/audio/include/uapi",
|
||||
@@ -36,10 +33,6 @@ lineage_generator {
|
||||
"usr/include/audio/include/uapi",
|
||||
"usr/techpack/audio/include"
|
||||
],
|
||||
-
|
||||
- // Sources for dependency tracking
|
||||
- dep_root: "$(TARGET_KERNEL_SOURCE)",
|
||||
- dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"],
|
||||
}
|
||||
|
||||
cc_library_headers {
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,40 @@
|
||||
From 8a1c7866b848c51ad470fecc330d023dd5556d43 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 24 Dec 2019 15:32:21 +0000
|
||||
Subject: [PATCH] cryptfshw: Remove dependency on generated kernel headers
|
||||
|
||||
Change-Id: I1a95cf9f4391c40bec79d5380ee9a4dc57dbe2ac
|
||||
---
|
||||
cryptfshw/1.0/Android.bp | 2 +-
|
||||
cryptfshw/1.0/qsee/Android.bp | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cryptfshw/1.0/Android.bp b/cryptfshw/1.0/Android.bp
|
||||
index fe511ff..6157075 100644
|
||||
--- a/cryptfshw/1.0/Android.bp
|
||||
+++ b/cryptfshw/1.0/Android.bp
|
||||
@@ -21,7 +21,7 @@ cc_library_static {
|
||||
"CryptfsHwUtils.cpp",
|
||||
],
|
||||
export_include_dirs: ["."],
|
||||
- header_libs: ["generated_kernel_headers"],
|
||||
+ header_libs: ["device_kernel_headers"],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libhidlbase",
|
||||
diff --git a/cryptfshw/1.0/qsee/Android.bp b/cryptfshw/1.0/qsee/Android.bp
|
||||
index b06e286..01cadd4 100644
|
||||
--- a/cryptfshw/1.0/qsee/Android.bp
|
||||
+++ b/cryptfshw/1.0/qsee/Android.bp
|
||||
@@ -38,7 +38,7 @@ cc_binary {
|
||||
},
|
||||
},
|
||||
},
|
||||
- header_libs: ["generated_kernel_headers"],
|
||||
+ header_libs: ["device_kernel_headers"],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libdl",
|
||||
--
|
||||
2.17.1
|
||||
|
26
patches/0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
Normal file
26
patches/0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 95ef97f5aa82c15e47f9313eca4899d89dba5dd0 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 4 Jul 2018 17:59:14 +0800
|
||||
Subject: [PATCH] sdk: Invert per-app stretch-to-fullscreen implementation
|
||||
|
||||
Change-Id: Idf7dab4e1e0c79953fa672f33ec65fecffb37c83
|
||||
---
|
||||
sdk/src/java/org/lineageos/internal/applications/LongScreen.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sdk/src/java/org/lineageos/internal/applications/LongScreen.java b/sdk/src/java/org/lineageos/internal/applications/LongScreen.java
|
||||
index 7fe0d68..26ea349 100644
|
||||
--- a/sdk/src/java/org/lineageos/internal/applications/LongScreen.java
|
||||
+++ b/sdk/src/java/org/lineageos/internal/applications/LongScreen.java
|
||||
@@ -57,7 +57,7 @@ public class LongScreen {
|
||||
}
|
||||
|
||||
public boolean shouldForceLongScreen(String packageName) {
|
||||
- return isSupported() && mApps.contains(packageName);
|
||||
+ return isSupported() && !(mApps.contains(packageName));
|
||||
}
|
||||
|
||||
public Set<String> getApps() {
|
||||
--
|
||||
2.7.4
|
||||
|
117
patches/0001-treble-Add-overlay-lineage.patch
Normal file
117
patches/0001-treble-Add-overlay-lineage.patch
Normal file
@ -0,0 +1,117 @@
|
||||
From b35194fdd618f1ae2682c6d285d92a4ae7d421cc Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 15 Jul 2019 10:43:52 +0000
|
||||
Subject: [PATCH] treble: Add overlay-lineage
|
||||
|
||||
Change-Id: I9d313b1488d98acc7cf37d23820946ee99745426
|
||||
---
|
||||
base.mk | 4 +-
|
||||
.../lineage/res/res/values/config.xml | 81 +++++++++++++++++++
|
||||
2 files changed, 84 insertions(+), 1 deletion(-)
|
||||
create mode 100644 overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
|
||||
|
||||
diff --git a/base.mk b/base.mk
|
||||
index 8636247..f18e1c7 100644
|
||||
--- a/base.mk
|
||||
+++ b/base.mk
|
||||
@@ -11,7 +11,9 @@ PRODUCT_COPY_FILES += \
|
||||
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/phh/treble/sepolicy
|
||||
-DEVICE_PACKAGE_OVERLAYS += device/phh/treble/overlay
|
||||
+DEVICE_PACKAGE_OVERLAYS += \
|
||||
+ device/phh/treble/overlay \
|
||||
+ device/phh/treble/overlay-lineage
|
||||
|
||||
$(call inherit-product, vendor/hardware_overlay/overlay.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
|
||||
new file mode 100644
|
||||
index 0000000..8df673a
|
||||
--- /dev/null
|
||||
+++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
|
||||
@@ -0,0 +1,81 @@
|
||||
+<?xml version="1.0" encoding="utf-8"?>
|
||||
+<!--
|
||||
+ Copyright (C) 2015-2016 The CyanogenMod Project
|
||||
+ 2017-2018 The LineageOS Project
|
||||
+
|
||||
+ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
+ you may not use this file except in compliance with the License.
|
||||
+ You may obtain a copy of the License at
|
||||
+ http://www.apache.org/licenses/LICENSE-2.0
|
||||
+ Unless required by applicable law or agreed to in writing, software
|
||||
+ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
+ See the License for the specific language governing permissions and
|
||||
+ limitations under the License.
|
||||
+-->
|
||||
+<resources>
|
||||
+ <!-- Whether device has screen with higher aspect ratio -->
|
||||
+ <bool name="config_haveHigherAspectRatioScreen">true</bool>
|
||||
+
|
||||
+ <!-- All the capabilities of the LEDs on this device, stored as a bit field.
|
||||
+ This integer should equal the sum of the corresponding value for each
|
||||
+ of the following capabilities present:
|
||||
+ // Device has a color adjustable battery light.
|
||||
+ LIGHTS_RGB_NOTIFICATION_LED = 1
|
||||
+ // Device has a color adjustable notification light.
|
||||
+ LIGHTS_RGB_BATTERY_LED = 2
|
||||
+ LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
|
||||
+ // The notification light has adjustable pulsing capability.
|
||||
+ LIGHTS_PULSATING_LED = 8
|
||||
+ // Device has a multi-segment battery light that is able to
|
||||
+ // use the light brightness value to determine how many
|
||||
+ // segments to show (in order to represent battery level).
|
||||
+ LIGHTS_SEGMENTED_BATTERY_LED = 16
|
||||
+ // The notification light supports HAL adjustable brightness
|
||||
+ // via the alpha channel.
|
||||
+ // Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
|
||||
+ // then HAL support is not necessary for brightness control. In this case,
|
||||
+ // brightness support will be provided by lineage-sdk through the scaling of
|
||||
+ // RGB color values.
|
||||
+ LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
|
||||
+ // Device has a battery light.
|
||||
+ LIGHTS_BATTERY_LED = 64
|
||||
+ // The battery light supports HAL adjustable brightness via
|
||||
+ // the alpha channel.
|
||||
+ // Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
|
||||
+ // support is not necessary for brightness control. In this case,
|
||||
+ // brightness support will be provided by lineage-sdk through the scaling of
|
||||
+ // RGB color values.
|
||||
+ LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
|
||||
+ For example, a device with notification and battery lights that supports
|
||||
+ pulsating and RGB control would set this config to 75. -->
|
||||
+ <integer name="config_deviceLightCapabilities">255</integer>
|
||||
+
|
||||
+ <!-- Hardware keys present on the device, stored as a bit field.
|
||||
+ This integer should equal the sum of the corresponding value for each
|
||||
+ of the following keys present:
|
||||
+ 1 - Home
|
||||
+ 2 - Back
|
||||
+ 4 - Menu
|
||||
+ 8 - Assistant (search)
|
||||
+ 16 - App switch
|
||||
+ 32 - Camera
|
||||
+ 64 - Volume rocker
|
||||
+ For example, a device with Home, Back and Menu keys would set this
|
||||
+ config to 7. -->
|
||||
+ <integer name="config_deviceHardwareKeys">127</integer>
|
||||
+
|
||||
+ <!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
|
||||
+ This integer should equal the sum of the corresponding value for each
|
||||
+ of the following keys present:
|
||||
+ 1 - Home
|
||||
+ 2 - Back
|
||||
+ 4 - Menu
|
||||
+ 8 - Assistant (search)
|
||||
+ 16 - App switch
|
||||
+ 32 - Camera
|
||||
+ 64 - Volume rocker
|
||||
+ For example, a device with Home, Back and Menu keys would set this
|
||||
+ config to 7. -->
|
||||
+ <integer name="config_deviceHardwareWakeKeys">127</integer>
|
||||
+</resources>
|
||||
--
|
||||
2.17.1
|
||||
|
53
patches/0001-treble-Don-t-handle-apns-conf.patch
Normal file
53
patches/0001-treble-Don-t-handle-apns-conf.patch
Normal file
@ -0,0 +1,53 @@
|
||||
From 0e30d9db18a2ff9bbdc99f0b61e666c29850f5af Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 27 Jun 2021 15:37:56 +0000
|
||||
Subject: [PATCH] treble: Don't handle apns-conf
|
||||
|
||||
LineageOS has its own well-maintained copy
|
||||
|
||||
Change-Id: If568101f21098c75879af8b9b6141af179566960
|
||||
---
|
||||
base-pre.mk | 3 ---
|
||||
base.mk | 8 ++------
|
||||
2 files changed, 2 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/base-pre.mk b/base-pre.mk
|
||||
index 6a317e4..e69de29 100644
|
||||
--- a/base-pre.mk
|
||||
+++ b/base-pre.mk
|
||||
@@ -1,3 +0,0 @@
|
||||
-#Use a more decent APN config
|
||||
-PRODUCT_COPY_FILES += \
|
||||
- device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
diff --git a/base.mk b/base.mk
|
||||
index b11fde5..54144f9 100644
|
||||
--- a/base.mk
|
||||
+++ b/base.mk
|
||||
@@ -7,10 +7,6 @@ PRODUCT_COPY_FILES := \
|
||||
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
||||
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
||||
|
||||
-#Use a more decent APN config
|
||||
-PRODUCT_COPY_FILES += \
|
||||
- device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||
-
|
||||
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/phh/treble/sepolicy
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
device/phh/treble/overlay \
|
||||
@@ -31,11 +27,11 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
||||
ro.build.version.security_patch=$(PLATFORM_SECURITY_PATCH) \
|
||||
ro.adb.secure=0 \
|
||||
ro.logd.auditd=true
|
||||
-
|
||||
+
|
||||
#Huawei HiSuite (also other OEM custom programs I guess) it's of no use in AOSP builds
|
||||
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
||||
persist.sys.usb.config=adb \
|
||||
- ro.cust.cdrom=/dev/null
|
||||
+ ro.cust.cdrom=/dev/null
|
||||
|
||||
#VNDK config files
|
||||
PRODUCT_COPY_FILES += \
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 4d6f28cb695c5edf253f03c373485a21cd43d19c Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 10 Sep 2019 02:42:36 +0000
|
||||
Subject: [PATCH] treble: Don't specify config_wallpaperCropperPackage
|
||||
|
||||
Change-Id: I72b59def304779e4bd9a399c01cf1180d15bf444
|
||||
---
|
||||
overlay/frameworks/base/core/res/res/values/config.xml | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
|
||||
index 28c7a28..48ca260 100644
|
||||
--- a/overlay/frameworks/base/core/res/res/values/config.xml
|
||||
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
|
||||
@@ -22,7 +22,6 @@
|
||||
<string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string>
|
||||
<bool name="config_useRoundIcon">true</bool>
|
||||
|
||||
- <string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
<integer name="config_multiuserMaximumUsers">5</integer>
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,30 @@
|
||||
From 7a633a53d8e20e2d976597a332bf5ba855ec1f75 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 5 Sep 2019 02:08:22 +0000
|
||||
Subject: [PATCH] vendor_lineage: Log privapp-permissions whitelist violations
|
||||
instead
|
||||
|
||||
Change-Id: I49dba61f332253e291a65e79ca70d9a07d45bb07
|
||||
---
|
||||
config/common.mk | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/config/common.mk b/config/common.mk
|
||||
index 2fe9cb01..7d971bba 100644
|
||||
--- a/config/common.mk
|
||||
+++ b/config/common.mk
|
||||
@@ -70,9 +70,9 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/lineage/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml
|
||||
|
||||
-# Enforce privapp-permissions whitelist
|
||||
+# Log privapp-permissions whitelist violations
|
||||
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
||||
- ro.control_privapp_permissions=enforce
|
||||
+ ro.control_privapp_permissions=log
|
||||
|
||||
# Include AOSP audio files
|
||||
include vendor/lineage/config/aosp_audio.mk
|
||||
--
|
||||
2.17.1
|
||||
|
387
patches_personal/0001-Add-MiuiNavbarOverlay.patch
Normal file
387
patches_personal/0001-Add-MiuiNavbarOverlay.patch
Normal file
@ -0,0 +1,387 @@
|
||||
From 5a3e4cbc8a46132b5903a30a95359aab886838af Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 03:39:32 +0000
|
||||
Subject: [PATCH] Add MiuiNavbarOverlay
|
||||
|
||||
Change-Id: I0e6791abc3c9521d7dc612df2fec2b041affe7e9
|
||||
---
|
||||
packages/overlays/Android.mk | 1 +
|
||||
.../overlays/MiuiNavbarOverlay/Android.mk | 27 ++++++++++++++++++
|
||||
.../MiuiNavbarOverlay/AndroidManifest.xml | 21 ++++++++++++++
|
||||
.../res/drawable-440dpi-v4/ic_sysbar_back.png | Bin 0 -> 2756 bytes
|
||||
.../ic_sysbar_back_darkmode.png | Bin 0 -> 2547 bytes
|
||||
.../drawable-440dpi-v4/ic_sysbar_docked.png | Bin 0 -> 3642 bytes
|
||||
.../ic_sysbar_docked_darkmode.png | Bin 0 -> 2810 bytes
|
||||
.../res/drawable-440dpi-v4/ic_sysbar_home.png | Bin 0 -> 1362 bytes
|
||||
.../ic_sysbar_home_darkmode.png | Bin 0 -> 980 bytes
|
||||
.../drawable-440dpi-v4/ic_sysbar_recent.png | Bin 0 -> 278 bytes
|
||||
.../ic_sysbar_recent_darkmode.png | Bin 0 -> 205 bytes
|
||||
11 files changed, 49 insertions(+)
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/Android.mk
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back_darkmode.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked_darkmode.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home_darkmode.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent.png
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png
|
||||
|
||||
diff --git a/packages/overlays/Android.mk b/packages/overlays/Android.mk
|
||||
index eecc10158e8..691d4496e09 100644
|
||||
--- a/packages/overlays/Android.mk
|
||||
+++ b/packages/overlays/Android.mk
|
||||
@@ -46,6 +46,7 @@ LOCAL_REQUIRED_MODULES := \
|
||||
IconShapeRoundedRectOverlay \
|
||||
IconShapeSquircleOverlay \
|
||||
IconShapeTeardropOverlay \
|
||||
+ MiuiNavbarOverlay \
|
||||
NavigationBarMode3ButtonOverlay \
|
||||
NavigationBarMode2ButtonOverlay \
|
||||
NavigationBarModeGesturalOverlay \
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/Android.mk b/packages/overlays/MiuiNavbarOverlay/Android.mk
|
||||
new file mode 100644
|
||||
index 00000000000..3a577ef5920
|
||||
--- /dev/null
|
||||
+++ b/packages/overlays/MiuiNavbarOverlay/Android.mk
|
||||
@@ -0,0 +1,27 @@
|
||||
+#
|
||||
+# Copyright (C) 2020, The Android Open Source Project
|
||||
+#
|
||||
+# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
+# you may not use this file except in compliance with the License.
|
||||
+# You may obtain a copy of the License at
|
||||
+#
|
||||
+# http://www.apache.org/licenses/LICENSE-2.0
|
||||
+#
|
||||
+# Unless required by applicable law or agreed to in writing, software
|
||||
+# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
+# See the License for the specific language governing permissions and
|
||||
+# limitations under the License.
|
||||
+#
|
||||
+
|
||||
+LOCAL_PATH:= $(call my-dir)
|
||||
+include $(CLEAR_VARS)
|
||||
+
|
||||
+LOCAL_PRODUCT_MODULE := true
|
||||
+
|
||||
+LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
|
||||
+
|
||||
+LOCAL_PACKAGE_NAME := MiuiNavbarOverlay
|
||||
+LOCAL_SDK_VERSION := current
|
||||
+
|
||||
+include $(BUILD_RRO_PACKAGE)
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml b/packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml
|
||||
new file mode 100644
|
||||
index 00000000000..3956effddfb
|
||||
--- /dev/null
|
||||
+++ b/packages/overlays/MiuiNavbarOverlay/AndroidManifest.xml
|
||||
@@ -0,0 +1,21 @@
|
||||
+<!--
|
||||
+ ~ Copyright (C) 2020 The Android Open Source Project
|
||||
+ ~
|
||||
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
+ ~ you may not use this file except in compliance with the License.
|
||||
+ ~ You may obtain a copy of the License at
|
||||
+ ~
|
||||
+ ~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
+ ~
|
||||
+ ~ Unless required by applicable law or agreed to in writing, software
|
||||
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
+ ~ See the License for the specific language governing permissions and
|
||||
+ ~ limitations under the License.
|
||||
+ -->
|
||||
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
+ package="com.miui.systemui.navbar.overlay"
|
||||
+ android:versionCode="1"
|
||||
+ android:versionName="1.0">
|
||||
+ <overlay android:targetPackage="com.android.systemui" android:priority="1337" android:isStatic="true"/>
|
||||
+</manifest>
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..be2b145b4c698679bfdfdc3e5834ad12a56724c0
|
||||
GIT binary patch
|
||||
literal 2756
|
||||
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
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_back_darkmode.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..4873f84ff7f4750fa3adc70428ffb123502c1051
|
||||
GIT binary patch
|
||||
literal 2547
|
||||
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
|
||||
C-gtlj
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..1c88fc5d571d0ec91b735082cb9c512603b9ceec
|
||||
GIT binary patch
|
||||
literal 3642
|
||||
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
|
||||
D=8d64
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_docked_darkmode.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..fe51e11921ecb35c5535e7c446769af7f66be893
|
||||
GIT binary patch
|
||||
literal 2810
|
||||
zcmcIm3se(V8jh_}EK8-jfcRpFisopZKuAUc4GBuXuz*;Bl4?jMA>=V}5=f#b5>wH&
|
||||
zNOz?^0L5da^%X&CG(sC#P&iP~WhtQrr3fM-rHFt=DYz3}$L@Bwk8?Wb+_`t|{qFa_
|
||||
z|1$?7BQ`j{x#&#{2II^LWk;j4-aZ^1(Dz?ocNs&cxysNu6$az9z&>VSa`P8rFmskj
|
||||
zVq(>?+>M|BmJ|3wI1wUf<w_Kd!2|?pm3)B|QUi&QSfXHH2g=H^fJDf^Zt>%ixJnk3
|
||||
zBnjPtK$~_%#0Yjs1#}@cC=dwHf+&F;Qu6_=T&7TgS_XE47ev?gZ6X$!fT*PmEYmI!
|
||||
zh~-8CEEs_RKLQmmAp24Pe>#CoCDAFqYXJ(0>`x^56Ujb!5*Z{>K_5CW^<YtHh)@JZ
|
||||
zv)50_LcbW;B(+)z5{Vj(hM@5wz=)Vgrqk&}5`{>i;86r#rBkT+TD(HFe42p`sRW2b
|
||||
zsg}SBz|P1|gj3WEEUM|G33BBOtwJ^BCe&d>Eni6_6G(QGCV)c03{IJX$R>mf1w=>&
|
||||
z$svVWg<{DwSY;BdhE+-M|Dc{Z{)qt8wOsCujGxs-E}s#hQir6XW=uKcXVIz{of0BO
|
||||
zLn=505kMiSsG7^|)+j+10`b)_5(C4s=|DwJs|>JM_Q249)mtPAA*@m1UbzFY`D%!P
|
||||
zrI08jJjoYNrpHhypr0Q|_FY4wfh5u-lnV<bBHe#OeLyk=B>VgXie`<Fujc<ESSSER
|
||||
zFe2xpHcRAuF+@}<#8_a)lOPM0!3ZiC)z0VDeGZEiiNGR>3_VaqZwLlBAuKAHPNm{0
|
||||
z1oDKsTrS8_sMLIg0OGJ2SkylRi9`sBXk?nNfF{5T{i$TU(AO8j(?nD{o=Q)INCJ^R
|
||||
z**8%%eV+{rQtVkUeP8$+@BamnpjF71{caw6ZQ9cZ43((R!0M)|XA`u2Y9*5Z6Bz^Y
|
||||
z1@=l{U<LLRfP~noZOQNUz$C3E2|`K#PhL#IRIo^`;Uf@JjC$+Wq#hB~pJ*@JNmGdb
|
||||
zY30P(D<wV+NBf3-In%JvkC~PSDbPNLpbgCy>ah>)lLii(8Kcebzsuc!V$0GuI>awl
|
||||
zKKQ(mz4v(ayJf{4l_4t~-GU<TTtDl?GrKVT^|zvu@hjKN-ORof>8>}smVR9r8}m<W
|
||||
zh&#{G^<3);?tT+Dw<xTy#!Ty>z@Ih*BLgSu?>&<}_;O%Z&v;M!^X~kild63eWir`*
|
||||
zGgOwo$4p=0m@(U{bhg(=0Q)E~d%oe}e8W3>7oOfF)a7)z%WHFk)pLUZ=6(XxafM^!
|
||||
z%0C9IY)gHK87eL*K^nT^`^L1GfodMj!1yM6m)W$nbg^c*tL1TW(75}hj*rJjmfY$r
|
||||
zvTeq7XE*Iw{$tOoHLNcVEHlLSeQEOwyj+1Sws}~h!|369Wm9ZiT$Ge|b6~rc0~J(V
|
||||
zj;?$Dc3_oP>AoM<wJ+4W4~FMgI+^!eFyARCH@qC~YAe3xInY#^b&c=(EXi0uUMv0X
|
||||
z;D*60o#jA3g?+HtVzHbbD-rMgz&T*wg2J3FMWb0SGvoVarMYj-&9~_HN~O}GhEJ+f
|
||||
z7ZrxsK5B5O=qk+F&=Yqm2bs0?lF71k-qWU?O3#zW#m0V8U4K_&?cnCLof)R94ziRC
|
||||
z(-F}PAb=O9(?xv{hD)zJUVBc1KX0XE%{Me1?i!UEHH7n#<sl3TeWderGQMdwljcWn
|
||||
z&)nb^E0tbTz2FwL^4EK;4K&`x)jNDRuQ{H0Z)agnOHb4(Yw3Gs3!dM(KO8jpeZc$a
|
||||
zWzO42zgd-YvO;_<AjP4)Vra~Ey5aiXHLWpE>fi78tTx79DA|(dPy6s$XBVxwd&HAi
|
||||
zm?k&eR_3_PT4voHm+9SesKd$W{If4^wx3wryjn23Fz2w1bTU5pdO=r4bX|D(S<|1Z
|
||||
z)Xtks*6h}VT?sdt#&h3g@y1Gc+OO`n5jxAqY$aFc>o(^d3Ct{)8Y|#%-0h8h&VwF@
|
||||
z9(#9IJ2&~=$nr=mwt4fa-ncSYc~|=x^-0jS&!xwVl=jY6*PFc$a^hN)9z@B7qpJq<
|
||||
zqU(x28(E*UIrHHn@5P(m9TcP`|6^rArF%Fo-J5Ba4C@SgTdQ-*j>bIov~9z6-*+sy
|
||||
z=fY!Y?kr|0nQh0OxXbUSM@b)v4~M<HdYv;z(Q@Pnx*j!M-(NP!X}LsR@~@|>Hi{Q%
|
||||
zE_%fqMn*<>@j>I(+Fs9&zeU$I>%Kl~YR|~L!a39HaBQd5YK^!x8F%w-lb7~%&XZ=H
|
||||
z+e4|_s$}En<A&Wk=G0ta-akY|gU)+zndjDR#+oaapa%~}2zNN^=T@%st`UdfZsX5K
|
||||
z;<{ab<Ri&aN6nciy)qR^J7axe32}Y2(=D4DaiX-{w61nFQ_KIVYk||nl!UxvxgJ=@
|
||||
zPyXaq(EQZ>``&ENi>7hMdC%_F_+PY^hPRo)r3OWZW=K2MPrcDED2RL!Xt8vkJE)zX
|
||||
z-V~oT)Oux5R;-E33*V;tVNb)yb+5NR>W-2ZRjJp$7KAHI+dUEV4C~Ug_)(`b$H#2-
|
||||
z`bQ_KuDK1jhWpnoWa7F50`&#S+^1N^Ir+wKLF%`c_w_FNG}$;%Q}cLP|G-;sNxL%F
|
||||
zjkdIn7B)5DillcP<S(B8-D*l`w7N#LCG5&?4-_@xs>vH$T>QQN$hPt;8`hqev)+b-
|
||||
VfHkC3x%R(PPDlj%Qt&qYzX3LdVM71_
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..20f1d887aedebaadec7f31184bdfe3e662401522
|
||||
GIT binary patch
|
||||
literal 1362
|
||||
zcma)5dsvcZ6eq3COPOfdW%DV^ZrZSmmu5@DVMeK8>Y7WZW@(O;T+M9eB{VT<`aG7k
|
||||
zn)f@oE<`v`G!hdlR3b#c8xe|l8>DE0=1%!ff9^cb_kQR6zW4o|-#O>~uHt;XmYJ+I
|
||||
zK_C#zum>?m;Z6Mb7#YIa&@1aeAQowH-T|Hv{vWHXtnBFM=<e<w92^`Q8&j**TCH|w
|
||||
zW=5ye&3!WP0UQ|_Q79BrskFVly|A!wfjKuf7x4M{d8JaBnwknAkw}F7z<|f&A$<GE
|
||||
z#9}dz$7^nGX0cc_8jVh;L(;OcvZ|`8#>Pg#+uGV-5Af^tdQj5Y*@;G@7g7WV2lw^$
|
||||
z&Cbrcy1D|=)YK%ANCpN5N=ix~<n#IPDIy{wJ3E`nWcKv*3=a<jJ~cJf+S&>ZaQ652
|
||||
zkB^VPe*JoAXb4sSfdMK7NivzNx3?D%jYb1`<#IVVU0q$En!#X*L?S?ds;;h1AP_)}
|
||||
zAPmlOI2^#?IGhE}g|<Kzp-{LW0Lq7!LM=f-K_n8XzP_H#W&;}}s;H>Q%*+JYC=?2V
|
||||
z!GL%y77OKo5-yhu+n_ns)zwrgwWXy6T1_UCp`W0EKp^Dh<v}6PaFC%=sbDCRlamt@
|
||||
z6CeiW0^~4=G>fQ@x1sX<QD1+=qAyI$kd`a0R;^yM1V^rBzv>>;Oz3t0N?$cpk-RL7
|
||||
z-Curq>S*LLrm$bkV3lSj#D<6Y;{swYW|gxi%Zs*{e(6A+T4!*U^3;3jAJaPzMpw75
|
||||
z7$ut5KkB^M^5?QL0f}~RdGFoYzGCL-{5n-sF6Va91!l$rZes=YHif6k(V{Rhzm^#u
|
||||
zalK`;ZDwOVJvHuRU~uxaZ`Dc^TF`p)x#X>!QNDJ?g&SrFgh3=0gAPcLj)}XDS)x}j
|
||||
zQJ<v!mA=U?%l=1~tj%`B)z`KbFE+KKzBz$GdPW=@wWdy+ogj$E`&FZwuZ!Zp<C4}~
|
||||
zVm#p%keE^NFI+55ke}Hcsp&xT<5FtE)tFl*wILQcp5N@wHNu;kTknn!mb^C}u(Xb{
|
||||
zz`fa%H*memyTCaq1Ap2W>D!)vB`lDpEI*IgAvkB_L`bG*pdVVjPYM(XQGXx5K?%)o
|
||||
zLs2>$w}*(t!qJq_*t<Eng8LR58%v)#oqHZo6K-pf@#;>Nf;aRca6{9uQ_PEv<)W-?
|
||||
z(KCaVz2Og5`HT(EW0DOY#`%Z2w?rbt$vWfcc*OArS@cn<@fq^g9Guwf{7Pas%bMNJ
|
||||
zdS?{t^03BBAX+^7!xLN9zWoH>T^@;-lRUM^DZ}5M%WCC|WMSxw>0+B=^sbRM4jZXO
|
||||
z$_Lnf*!02(cHH5lbT?VLt;YvjoU;yD7jgjM%PiY#eFT3yJ0;{s)Z^`kQt+<!k~_Qu
|
||||
zviuCA6KQS^l4A0z$7lHCo-;d7g&3e}+$(1}x<hC;kGbLH_zAlm>$e4s;^kW?4ngm_
|
||||
zE`Q~cX8O<Z(zEsV8qXf?Mb7nT$Cn62o198j$sS3_dA5Umo!g_|H>CWM;Mc75nWk1-
|
||||
zsTCC62DdZ&CLU}r=+K8QH9PflBu(;$$CuS~(S5S#8@}fRZa&GnX#a%YkXXbwx5=MX
|
||||
z``wiJ|MZgXydqYc;eH`$&5TsFXJu)BBv++(-ld-NA|wj=+9rOa!u0;M{>s}ZN=&zg
|
||||
jp|o;zi!=ZHCR`6amaD0~y#7)m{38ggr!VHdM;P%x23q9L
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_home_darkmode.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..96dc83e4a42d70c1b11ac5a55ea5eb8cd75e1e20
|
||||
GIT binary patch
|
||||
literal 980
|
||||
zcmeAS@N?(olHy`uVBq!ia0vp^O(4v{3?%p7eQ=(EfiWY%C&U%V?H>iS4*_MFJ{MqE
|
||||
zmzM<j1v8iwPFQ>B+}+pje*SoQ_Tb9?Tpg9&|JF;%JijfpWO-*ypo^KYc~ESA_nHsA
|
||||
ztz3e$KC_1!6n_!c@R_*xN!py_HCyTq=gggUaniy|?MuCzA69H^h|Zp|b=B<p2PGc`
|
||||
z0>b30*|@*0n4jWq;gIy|zKGh99kpj}USHgEp;$&A80||uT^vIyZoR$k8h+S8g!O?F
|
||||
zcj^bHLXDPyjKZ$qJ6m_`-hKM-Z=Y)^yB^s@+{vH0dq%aAaitu;AQIT=<@xp3rAvP$
|
||||
zy;7MXy;6S{7k&Q3%$mf?)m#uB5~Fl^!4@93r=m)tT64E<TJ6;MO6v5gt#7SPb6q!g
|
||||
zS=4*(tJ=ib0ZZOj6rVo7V5@I<#(RMk0++cf?<&vlvtrdMVZ3YmE^z(23+e$2<s}SK
|
||||
z3ljnsIEfmhoN8+nY~)&eV1{Nl6Oi%vK#S&VmSrqjKFn8_<*>~VU17l9;(OC(gF?VT
|
||||
zew|sHRA+K^s)$ZwynjDjB9%2Z@o9hj@z9yqKg!oksmhKrP8D1bl-3+)o+@o5{UvQu
|
||||
za+deA^S<)eZhOAF(C5HfE5hn~GjCG+m+o&3f0++AEUdr7$EqdsvefBVI!p9|LmNK}
|
||||
z*BAXVwz%BS@myD^`ADnrrX%|0>yoZt>&?Br{aWc8JyVg;b6@KwX1@Ay&*p-y%_*L#
|
||||
z{^ysm=`T&%{PpeY3#V^a$E?)Zo3}Wqvw!=8=ht19w|5|cm|EtWFQ%k?JmTvKOfn3f
|
||||
Lu6{1-oD!M<_NCyP
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..4f0d314e2621d018c3cd2e4267cf4cf82a78943f
|
||||
GIT binary patch
|
||||
literal 278
|
||||
zcmeAS@N?(olHy`uVBq!ia0vp^O(4v{3?%p7eQ+K~IR*HHxB_W3aOlvXS731D$dNyP
|
||||
z{`~&^8>ry@`}c3(z6CO@t*tk0+O&D|W?NfZAou_O|I!nsR|8q1B|(0{3``sX!dw~0
|
||||
z&!m6(D0J#1t5jH`B>TrxD!+gV@;qG}Ln>~)y?T=OumO*&<LOWDj(nQ-FWQ&&(?pJ@
|
||||
znOy%Gk7P>$)d4|WP*!pH)Y~Ek3+0ck%$oDNf%ERC$_@LN)Si65+@j0wqw%{iOg5Zz
|
||||
u=kcQOsZZh^l}((KO_)H0lQP7Be}}|<Jmh~yiM-bb33$5txvX<aXaWF$9A~fq
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png b/packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..f53ec649e615e8491fb6abb63d169ab7e0faa1ce
|
||||
GIT binary patch
|
||||
literal 205
|
||||
zcmeAS@N?(olHy`uVBq!ia0vp^O(4v{3?%p7eQ+K~DF*n2xB}^ZynuIaZ52=vS4ogx
|
||||
zFoXa0-5=lXWwUX~o_?MiC>rSL;uunK>+RLuyayBnTpaC=HT>3}!PR$SSH`j?-mt2r
|
||||
zKs7+%uwa{9mTBst&#^sIIN#?w`Oh@C&bRjEiUzlg7B>c|g@RIyV08!V`R32zx~(4j
|
||||
Q*9XM+boFyt=akR{0CQqV3jhEB
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
3028
patches_personal/0001-DeskClock-Adjust-colors-and-layout.patch
Normal file
3028
patches_personal/0001-DeskClock-Adjust-colors-and-layout.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,561 @@
|
||||
From e2510a51fca5911615bd6fcdc2a437ce4d2a2e8b Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 26 Dec 2018 22:38:54 +0800
|
||||
Subject: [PATCH] DeskClock: Revert date and clock to Lollipop style
|
||||
|
||||
Also added dynamic date format based on alarm presence
|
||||
|
||||
Change-Id: I04ce41d4817c794edb1579dc3a493a1cf1e8d658
|
||||
---
|
||||
res/layout-land/main_clock_frame.xml | 1 +
|
||||
res/layout/date_and_next_alarm_time.xml | 6 ++----
|
||||
res/layout/digital_widget.xml | 4 ++--
|
||||
res/layout/digital_widget_sizer.xml | 2 --
|
||||
res/layout/main_clock_frame.xml | 1 +
|
||||
res/layout/stopwatch_time.xml | 1 -
|
||||
res/layout/timer_setup_time.xml | 2 +-
|
||||
res/layout/world_clock_remote_list_item.xml | 8 +++----
|
||||
res/values-h560dp/dimens.xml | 2 +-
|
||||
res/values-h650dp/dimens.xml | 2 +-
|
||||
res/values-v21/styles.xml | 8 +++----
|
||||
res/values-v23/styles.xml | 2 --
|
||||
res/values/dimens.xml | 10 ++++-----
|
||||
res/values/styles.xml | 5 +++--
|
||||
.../alarmclock/DigitalAppWidgetProvider.java | 10 +++++++--
|
||||
src/com/android/deskclock/ClockFragment.java | 21 ++++++++++++-------
|
||||
src/com/android/deskclock/Screensaver.java | 8 ++++---
|
||||
.../deskclock/ScreensaverActivity.java | 8 ++++---
|
||||
src/com/android/deskclock/Utils.java | 16 ++++++++++++--
|
||||
19 files changed, 70 insertions(+), 47 deletions(-)
|
||||
|
||||
diff --git a/res/layout-land/main_clock_frame.xml b/res/layout-land/main_clock_frame.xml
|
||||
index b72f62333..a1fa3557d 100644
|
||||
--- a/res/layout-land/main_clock_frame.xml
|
||||
+++ b/res/layout-land/main_clock_frame.xml
|
||||
@@ -38,6 +38,7 @@
|
||||
<com.android.deskclock.widget.AutoSizingTextClock
|
||||
android:id="@+id/digital_clock"
|
||||
style="@style/display_time"
|
||||
+ android:fontFamily="sans-serif-thin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="none"
|
||||
diff --git a/res/layout/date_and_next_alarm_time.xml b/res/layout/date_and_next_alarm_time.xml
|
||||
index ad25502a8..e4edff237 100644
|
||||
--- a/res/layout/date_and_next_alarm_time.xml
|
||||
+++ b/res/layout/date_and_next_alarm_time.xml
|
||||
@@ -25,8 +25,7 @@
|
||||
android:id="@+id/date"
|
||||
style="@style/body"
|
||||
android:layout_width="wrap_content"
|
||||
- android:layout_height="wrap_content"
|
||||
- android:textAllCaps="true" />
|
||||
+ android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nextAlarmIcon"
|
||||
@@ -45,7 +44,6 @@
|
||||
android:id="@+id/nextAlarm"
|
||||
style="@style/body"
|
||||
android:layout_width="wrap_content"
|
||||
- android:layout_height="wrap_content"
|
||||
- android:textAllCaps="true" />
|
||||
+ android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
\ No newline at end of file
|
||||
diff --git a/res/layout/digital_widget.xml b/res/layout/digital_widget.xml
|
||||
index c5b4837a6..7e2bae454 100644
|
||||
--- a/res/layout/digital_widget.xml
|
||||
+++ b/res/layout/digital_widget.xml
|
||||
@@ -43,13 +43,13 @@
|
||||
<TextClock
|
||||
android:id="@+id/date"
|
||||
style="@style/widget_label"
|
||||
+ android:fontFamily="sans-serif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:ellipsize="none"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
<ImageView
|
||||
@@ -63,13 +63,13 @@
|
||||
<TextView
|
||||
android:id="@+id/nextAlarm"
|
||||
style="@style/widget_label"
|
||||
+ android:fontFamily="sans-serif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:ellipsize="none"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
diff --git a/res/layout/digital_widget_sizer.xml b/res/layout/digital_widget_sizer.xml
|
||||
index f524cf536..7b08ca590 100644
|
||||
--- a/res/layout/digital_widget_sizer.xml
|
||||
+++ b/res/layout/digital_widget_sizer.xml
|
||||
@@ -46,7 +46,6 @@
|
||||
android:includeFontPadding="false"
|
||||
android:ellipsize="none"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
<!-- This view is drawn to a Bitmap and sent to the widget as an icon. -->
|
||||
@@ -71,7 +70,6 @@
|
||||
android:includeFontPadding="false"
|
||||
android:ellipsize="none"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
diff --git a/res/layout/main_clock_frame.xml b/res/layout/main_clock_frame.xml
|
||||
index ab960728f..2042c5b04 100644
|
||||
--- a/res/layout/main_clock_frame.xml
|
||||
+++ b/res/layout/main_clock_frame.xml
|
||||
@@ -51,6 +51,7 @@
|
||||
<com.android.deskclock.widget.AutoSizingTextClock
|
||||
android:id="@+id/digital_clock"
|
||||
style="@style/display_time"
|
||||
+ android:fontFamily="sans-serif-thin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="none"
|
||||
diff --git a/res/layout/stopwatch_time.xml b/res/layout/stopwatch_time.xml
|
||||
index c1895b488..71320fcd0 100644
|
||||
--- a/res/layout/stopwatch_time.xml
|
||||
+++ b/res/layout/stopwatch_time.xml
|
||||
@@ -42,7 +42,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:duplicateParentState="true"
|
||||
- android:fontFamily="sans-serif"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingEnd="30dp"
|
||||
android:paddingStart="3dp"
|
||||
diff --git a/res/layout/timer_setup_time.xml b/res/layout/timer_setup_time.xml
|
||||
index 947723c00..04a1de608 100644
|
||||
--- a/res/layout/timer_setup_time.xml
|
||||
+++ b/res/layout/timer_setup_time.xml
|
||||
@@ -30,7 +30,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="none"
|
||||
- android:fontFamily="sans-serif"
|
||||
+ android:fontFamily="sans-serif-light"
|
||||
android:fontFeatureSettings="tnum"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
diff --git a/res/layout/world_clock_remote_list_item.xml b/res/layout/world_clock_remote_list_item.xml
|
||||
index 9a69cb517..f5f4eaa21 100644
|
||||
--- a/res/layout/world_clock_remote_list_item.xml
|
||||
+++ b/res/layout/world_clock_remote_list_item.xml
|
||||
@@ -58,13 +58,13 @@
|
||||
<TextView
|
||||
android:id="@+id/city_name_left"
|
||||
style="@style/widget_label"
|
||||
+ android:fontFamily="sans-serif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/city_widget_name_font_size" />
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
<TextView
|
||||
android:id="@+id/city_day_left"
|
||||
style="@style/widget_label"
|
||||
+ android:fontFamily="sans-serif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/style_label_space"
|
||||
@@ -81,7 +82,6 @@
|
||||
android:format24Hour="@string/abbrev_wday"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/city_widget_name_font_size" />
|
||||
|
||||
@@ -120,13 +120,13 @@
|
||||
<TextView
|
||||
android:id="@+id/city_name_right"
|
||||
style="@style/widget_label"
|
||||
+ android:fontFamily="sans-serif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/city_widget_name_font_size" />
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
<TextView
|
||||
android:id="@+id/city_day_right"
|
||||
style="@style/widget_label"
|
||||
+ android:fontFamily="sans-serif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/style_label_space"
|
||||
@@ -143,7 +144,6 @@
|
||||
android:format24Hour="@string/abbrev_wday"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
- android:textAllCaps="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/city_widget_name_font_size" />
|
||||
|
||||
diff --git a/res/values-h560dp/dimens.xml b/res/values-h560dp/dimens.xml
|
||||
index 003a5ad9f..6e25621ab 100644
|
||||
--- a/res/values-h560dp/dimens.xml
|
||||
+++ b/res/values-h560dp/dimens.xml
|
||||
@@ -16,5 +16,5 @@
|
||||
|
||||
<resources>
|
||||
<!-- The maximum size of the font for the time in widgets. -->
|
||||
- <dimen name="widget_max_clock_font_size">96dp</dimen>
|
||||
+ <dimen name="widget_max_clock_font_size">88dp</dimen>
|
||||
</resources>
|
||||
\ No newline at end of file
|
||||
diff --git a/res/values-h650dp/dimens.xml b/res/values-h650dp/dimens.xml
|
||||
index 2cc58cb32..6e25621ab 100644
|
||||
--- a/res/values-h650dp/dimens.xml
|
||||
+++ b/res/values-h650dp/dimens.xml
|
||||
@@ -16,5 +16,5 @@
|
||||
|
||||
<resources>
|
||||
<!-- The maximum size of the font for the time in widgets. -->
|
||||
- <dimen name="widget_max_clock_font_size">100dp</dimen>
|
||||
+ <dimen name="widget_max_clock_font_size">88dp</dimen>
|
||||
</resources>
|
||||
\ No newline at end of file
|
||||
diff --git a/res/values-v21/styles.xml b/res/values-v21/styles.xml
|
||||
index f1dca16c0..7bc382a4d 100644
|
||||
--- a/res/values-v21/styles.xml
|
||||
+++ b/res/values-v21/styles.xml
|
||||
@@ -18,17 +18,17 @@
|
||||
<resources>
|
||||
|
||||
<style name="body">
|
||||
- <item name="android:textSize">14sp</item>
|
||||
+ <item name="android:textSize">16sp</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
- <item name="android:fontFamily">sans-serif-medium</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
</style>
|
||||
|
||||
<style name="PrimaryLabelTextAppearance" parent="PrimaryLabelTextParentAppearance">
|
||||
- <item name="android:fontFamily">sans-serif-medium</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
</style>
|
||||
|
||||
<style name="SecondaryLabelTextAppearance" parent="SecondaryLabelTextParentAppearance">
|
||||
- <item name="android:fontFamily">sans-serif-medium</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
diff --git a/res/values-v23/styles.xml b/res/values-v23/styles.xml
|
||||
index 34dcf5d73..6bf964256 100644
|
||||
--- a/res/values-v23/styles.xml
|
||||
+++ b/res/values-v23/styles.xml
|
||||
@@ -26,8 +26,6 @@
|
||||
</style>
|
||||
|
||||
<style name="widget_label" parent="label">
|
||||
- <item name="android:textAllCaps">true</item>
|
||||
- <item name="android:letterSpacing">0.15</item>
|
||||
<item name="android:shadowRadius">@dimen/widget_shadow_radius</item>
|
||||
<item name="android:shadowColor">@color/widget_shadow_color</item>
|
||||
<item name="android:shadowDx">@dimen/widget_shadow_dx</item>
|
||||
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
|
||||
index 8c11977ac..39973aee8 100644
|
||||
--- a/res/values/dimens.xml
|
||||
+++ b/res/values/dimens.xml
|
||||
@@ -44,7 +44,7 @@
|
||||
<dimen name="alarm_lockscreen_bottom_margin">40dp</dimen>
|
||||
|
||||
<dimen name="main_clock_font_size">64sp</dimen>
|
||||
- <dimen name="main_clock_digital_font_size">90sp</dimen>
|
||||
+ <dimen name="main_clock_digital_font_size">88sp</dimen>
|
||||
<dimen name="main_clock_digital_padding">24dp</dimen>
|
||||
<dimen name="big_font_size">32sp</dimen>
|
||||
<dimen name="label_font_size">16sp</dimen>
|
||||
@@ -98,15 +98,15 @@
|
||||
<dimen name="digital_widget_city_24_medium_font_size">40sp</dimen>
|
||||
|
||||
<!-- The fixed size of the font for the city name / day of week in the city widget. -->
|
||||
- <dimen name="city_widget_name_font_size">10dp</dimen>
|
||||
+ <dimen name="city_widget_name_font_size">12dp</dimen>
|
||||
<!-- The maximum size of the font for the time in widgets. -->
|
||||
<dimen name="widget_max_clock_font_size">88dp</dimen>
|
||||
<dimen name="widget_min_world_city_list_size">80dp</dimen>
|
||||
|
||||
<!-- shadow styles for widget text with drop shadows -->
|
||||
- <item name="widget_shadow_radius" format="float" type="dimen">2.75</item>
|
||||
- <item name="widget_shadow_dx" format="float" type="dimen">2.0</item>
|
||||
- <item name="widget_shadow_dy" format="float" type="dimen">2.0</item>
|
||||
+ <item name="widget_shadow_radius" format="float" type="dimen">0</item>
|
||||
+ <item name="widget_shadow_dx" format="float" type="dimen">0</item>
|
||||
+ <item name="widget_shadow_dy" format="float" type="dimen">0</item>
|
||||
|
||||
<!-- Divider height -->
|
||||
<dimen name="hairline_height">1dp</dimen>
|
||||
diff --git a/res/values/styles.xml b/res/values/styles.xml
|
||||
index f247f655b..1a2f163cd 100644
|
||||
--- a/res/values/styles.xml
|
||||
+++ b/res/values/styles.xml
|
||||
@@ -51,12 +51,13 @@
|
||||
<style name="world_clock_time">
|
||||
<item name="android:textSize">48sp</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
- <item name="android:fontFamily">sans-serif-light</item>
|
||||
+ <item name="android:fontFamily">sans-serif-thin</item>
|
||||
</style>
|
||||
|
||||
<style name="body">
|
||||
- <item name="android:textSize">14sp</item>
|
||||
+ <item name="android:textSize">16sp</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
</style>
|
||||
|
||||
<style name="big_thin">
|
||||
diff --git a/src/com/android/alarmclock/DigitalAppWidgetProvider.java b/src/com/android/alarmclock/DigitalAppWidgetProvider.java
|
||||
index 3be07eca7..86f1d991e 100644
|
||||
--- a/src/com/android/alarmclock/DigitalAppWidgetProvider.java
|
||||
+++ b/src/com/android/alarmclock/DigitalAppWidgetProvider.java
|
||||
@@ -453,7 +453,13 @@ public class DigitalAppWidgetProvider extends AppWidgetProvider {
|
||||
*/
|
||||
private static String getDateFormat(Context context) {
|
||||
final Locale locale = Locale.getDefault();
|
||||
- final String skeleton = context.getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ final String nextAlarmTime = Utils.getNextAlarm(context);
|
||||
+ final String skeleton;
|
||||
+ if (TextUtils.isEmpty(nextAlarmTime)) {
|
||||
+ skeleton = context.getString(R.string.full_wday_month_day_no_year);
|
||||
+ } else {
|
||||
+ skeleton = context.getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ }
|
||||
return DateFormat.getBestDateTimePattern(locale, skeleton);
|
||||
}
|
||||
|
||||
@@ -495,7 +501,7 @@ public class DigitalAppWidgetProvider extends AppWidgetProvider {
|
||||
private int getClockFontSizePx() { return mClockFontSizePx; }
|
||||
private void setClockFontSizePx(int clockFontSizePx) {
|
||||
mClockFontSizePx = clockFontSizePx;
|
||||
- mFontSizePx = max(1, round(clockFontSizePx / 7.5f));
|
||||
+ mFontSizePx = max(1, round(clockFontSizePx / 5.5f));
|
||||
mIconFontSizePx = (int) (mFontSizePx * 1.4f);
|
||||
mIconPaddingPx = mFontSizePx / 3;
|
||||
}
|
||||
diff --git a/src/com/android/deskclock/ClockFragment.java b/src/com/android/deskclock/ClockFragment.java
|
||||
index 1536b55df..6a2767551 100644
|
||||
--- a/src/com/android/deskclock/ClockFragment.java
|
||||
+++ b/src/com/android/deskclock/ClockFragment.java
|
||||
@@ -80,6 +80,7 @@ public final class ClockFragment extends DeskClockFragment {
|
||||
private SelectedCitiesAdapter mCityAdapter;
|
||||
private RecyclerView mCityList;
|
||||
private String mDateFormat;
|
||||
+ private String mDateFormatAlarm;
|
||||
private String mDateFormatForAccessibility;
|
||||
|
||||
/**
|
||||
@@ -103,11 +104,12 @@ public final class ClockFragment extends DeskClockFragment {
|
||||
|
||||
final View fragmentView = inflater.inflate(R.layout.clock_fragment, container, false);
|
||||
|
||||
- mDateFormat = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ mDateFormat = getString(R.string.full_wday_month_day_no_year);
|
||||
+ mDateFormatAlarm = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
mDateFormatForAccessibility = getString(R.string.full_wday_month_day_no_year);
|
||||
|
||||
mCityAdapter = new SelectedCitiesAdapter(getActivity(), mDateFormat,
|
||||
- mDateFormatForAccessibility);
|
||||
+ mDateFormatAlarm, mDateFormatForAccessibility);
|
||||
|
||||
mCityList = (RecyclerView) fragmentView.findViewById(R.id.cities);
|
||||
mCityList.setLayoutManager(new LinearLayoutManager(getActivity()));
|
||||
@@ -129,7 +131,7 @@ public final class ClockFragment extends DeskClockFragment {
|
||||
mDigitalClock = (TextClock) mClockFrame.findViewById(R.id.digital_clock);
|
||||
mAnalogClock = (AnalogClock) mClockFrame.findViewById(R.id.analog_clock);
|
||||
Utils.setClockIconTypeface(mClockFrame);
|
||||
- Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mClockFrame);
|
||||
+ Utils.updateDate(getActivity(), mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, mClockFrame);
|
||||
Utils.setClockStyle(mDigitalClock, mAnalogClock);
|
||||
Utils.setClockSecondsEnabled(mDigitalClock, mAnalogClock);
|
||||
}
|
||||
@@ -146,7 +148,8 @@ public final class ClockFragment extends DeskClockFragment {
|
||||
|
||||
final Activity activity = getActivity();
|
||||
|
||||
- mDateFormat = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ mDateFormat = getString(R.string.full_wday_month_day_no_year);
|
||||
+ mDateFormatAlarm = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
mDateFormatForAccessibility = getString(R.string.full_wday_month_day_no_year);
|
||||
|
||||
// Watch for system events that effect clock time or format.
|
||||
@@ -343,13 +346,15 @@ public final class ClockFragment extends DeskClockFragment {
|
||||
private final Context mContext;
|
||||
private final boolean mIsPortrait;
|
||||
private final boolean mShowHomeClock;
|
||||
- private final String mDateFormat;
|
||||
- private final String mDateFormatForAccessibility;
|
||||
+ private static String mDateFormat;
|
||||
+ private static String mDateFormatAlarm;
|
||||
+ private static String mDateFormatForAccessibility;
|
||||
|
||||
private SelectedCitiesAdapter(Context context, String dateFormat,
|
||||
- String dateFormatForAccessibility) {
|
||||
+ String dateFormatAlarm, String dateFormatForAccessibility) {
|
||||
mContext = context;
|
||||
mDateFormat = dateFormat;
|
||||
+ mDateFormatAlarm = dateFormatAlarm;
|
||||
mDateFormatForAccessibility = dateFormatForAccessibility;
|
||||
mInflater = LayoutInflater.from(context);
|
||||
mIsPortrait = Utils.isPortrait(context);
|
||||
@@ -536,7 +541,7 @@ public final class ClockFragment extends DeskClockFragment {
|
||||
String dateFormatForAccessibility, boolean showHairline) {
|
||||
Utils.refreshAlarm(context, itemView);
|
||||
|
||||
- Utils.updateDate(dateFormat, dateFormatForAccessibility, itemView);
|
||||
+ Utils.updateDate(context, mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, itemView);
|
||||
Utils.setClockStyle(mDigitalClock, mAnalogClock);
|
||||
mHairline.setVisibility(showHairline ? VISIBLE : GONE);
|
||||
|
||||
diff --git a/src/com/android/deskclock/Screensaver.java b/src/com/android/deskclock/Screensaver.java
|
||||
index 427885e68..2619c1d4a 100644
|
||||
--- a/src/com/android/deskclock/Screensaver.java
|
||||
+++ b/src/com/android/deskclock/Screensaver.java
|
||||
@@ -42,6 +42,7 @@ public final class Screensaver extends DreamService {
|
||||
private MoveScreensaverRunnable mPositionUpdater;
|
||||
|
||||
private String mDateFormat;
|
||||
+ private String mDateFormatAlarm;
|
||||
private String mDateFormatForAccessibility;
|
||||
|
||||
private View mContentView;
|
||||
@@ -62,7 +63,7 @@ public final class Screensaver extends DreamService {
|
||||
private final Runnable mMidnightUpdater = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
- Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView);
|
||||
+ Utils.updateDate(Screensaver.this, mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, mContentView);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -83,7 +84,8 @@ public final class Screensaver extends DreamService {
|
||||
setTheme(R.style.Theme_DeskClock);
|
||||
super.onCreate();
|
||||
|
||||
- mDateFormat = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ mDateFormat = getString(R.string.full_wday_month_day_no_year);
|
||||
+ mDateFormatAlarm = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
mDateFormatForAccessibility = getString(R.string.full_wday_month_day_no_year);
|
||||
}
|
||||
|
||||
@@ -128,7 +130,7 @@ public final class Screensaver extends DreamService {
|
||||
getContentResolver().registerContentObserver(uri, false, mSettingsContentObserver);
|
||||
}
|
||||
|
||||
- Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView);
|
||||
+ Utils.updateDate(this, mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, mContentView);
|
||||
Utils.refreshAlarm(this, mContentView);
|
||||
|
||||
startPositionUpdater();
|
||||
diff --git a/src/com/android/deskclock/ScreensaverActivity.java b/src/com/android/deskclock/ScreensaverActivity.java
|
||||
index 656cfc718..fef670c37 100644
|
||||
--- a/src/com/android/deskclock/ScreensaverActivity.java
|
||||
+++ b/src/com/android/deskclock/ScreensaverActivity.java
|
||||
@@ -86,11 +86,12 @@ public class ScreensaverActivity extends BaseActivity {
|
||||
private final Runnable mMidnightUpdater = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
- Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView);
|
||||
+ Utils.updateDate(ScreensaverActivity.this, mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, mContentView);
|
||||
}
|
||||
};
|
||||
|
||||
private String mDateFormat;
|
||||
+ private String mDateFormatAlarm;
|
||||
private String mDateFormatForAccessibility;
|
||||
|
||||
private View mContentView;
|
||||
@@ -102,7 +103,8 @@ public class ScreensaverActivity extends BaseActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
- mDateFormat = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ mDateFormat = getString(R.string.full_wday_month_day_no_year);
|
||||
+ mDateFormatAlarm = getString(R.string.abbrev_wday_month_day_no_year);
|
||||
mDateFormatForAccessibility = getString(R.string.full_wday_month_day_no_year);
|
||||
|
||||
setContentView(R.layout.desk_clock_saver);
|
||||
@@ -159,7 +161,7 @@ public class ScreensaverActivity extends BaseActivity {
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
- Utils.updateDate(mDateFormat, mDateFormatForAccessibility, mContentView);
|
||||
+ Utils.updateDate(ScreensaverActivity.this, mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, mContentView);
|
||||
Utils.refreshAlarm(ScreensaverActivity.this, mContentView);
|
||||
|
||||
startPositionUpdater();
|
||||
diff --git a/src/com/android/deskclock/Utils.java b/src/com/android/deskclock/Utils.java
|
||||
index 0c9daf603..cbab0ede7 100644
|
||||
--- a/src/com/android/deskclock/Utils.java
|
||||
+++ b/src/com/android/deskclock/Utils.java
|
||||
@@ -346,6 +346,11 @@ public class Utils {
|
||||
nextAlarmView.setVisibility(View.GONE);
|
||||
nextAlarmIconView.setVisibility(View.GONE);
|
||||
}
|
||||
+
|
||||
+ String mDateFormat = context.getString(R.string.full_wday_month_day_no_year);
|
||||
+ String mDateFormatAlarm = context.getString(R.string.abbrev_wday_month_day_no_year);
|
||||
+ String mDateFormatForAccessibility = context.getString(R.string.full_wday_month_day_no_year);
|
||||
+ Utils.updateDate(context, mDateFormat, mDateFormatAlarm, mDateFormatForAccessibility, clock);
|
||||
}
|
||||
|
||||
public static void setClockIconTypeface(View clock) {
|
||||
@@ -356,14 +361,21 @@ public class Utils {
|
||||
/**
|
||||
* Clock views can call this to refresh their date.
|
||||
**/
|
||||
- public static void updateDate(String dateSkeleton, String descriptionSkeleton, View clock) {
|
||||
+ public static void updateDate(Context context, String dateSkeleton, String dateSkeletonAlarm, String descriptionSkeleton, View clock) {
|
||||
final TextView dateDisplay = (TextView) clock.findViewById(R.id.date);
|
||||
if (dateDisplay == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final Locale l = Locale.getDefault();
|
||||
- final String datePattern = DateFormat.getBestDateTimePattern(l, dateSkeleton);
|
||||
+ final String datePattern;
|
||||
+ final String alarm = getNextAlarm(context);
|
||||
+ if (!TextUtils.isEmpty(alarm)) {
|
||||
+ datePattern = DateFormat.getBestDateTimePattern(l, dateSkeletonAlarm);
|
||||
+ } else {
|
||||
+ datePattern = DateFormat.getBestDateTimePattern(l, dateSkeleton);
|
||||
+ }
|
||||
+
|
||||
final String descriptionPattern = DateFormat.getBestDateTimePattern(l, descriptionSkeleton);
|
||||
|
||||
final Date now = new Date();
|
||||
--
|
||||
2.17.1
|
||||
|
53
patches_personal/0001-Disable-FP-lockouts.patch
Normal file
53
patches_personal/0001-Disable-FP-lockouts.patch
Normal file
@ -0,0 +1,53 @@
|
||||
From c20aa4ba6aad05f6f6bd747ff89c511cc6e46d8f Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 22 Mar 2019 00:41:20 +0800
|
||||
Subject: [PATCH] Disable FP lockouts
|
||||
|
||||
Both timed and permanent lockouts - GET THE FUCK OUT
|
||||
Android 10 seems to have unified biometrics procedures - only disable lockouts for FP for now
|
||||
|
||||
Change-Id: I2d4b091f3546d4d7903bfb4d5585629212dc9915
|
||||
---
|
||||
.../fingerprint/FingerprintService.java | 19 +------------------
|
||||
1 file changed, 1 insertion(+), 18 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java b/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java
|
||||
index 972b4703860..59bcf3ceedc 100644
|
||||
--- a/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java
|
||||
+++ b/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java
|
||||
@@ -162,15 +162,7 @@ public class FingerprintService extends BiometricServiceBase {
|
||||
|
||||
@Override
|
||||
public int handleFailedAttempt() {
|
||||
- final int currentUser = ActivityManager.getCurrentUser();
|
||||
- mFailedAttempts.put(currentUser, mFailedAttempts.get(currentUser, 0) + 1);
|
||||
- mTimedLockoutCleared.put(ActivityManager.getCurrentUser(), false);
|
||||
-
|
||||
- if (getLockoutMode() != AuthenticationClient.LOCKOUT_NONE) {
|
||||
- scheduleLockoutResetForUser(currentUser);
|
||||
- }
|
||||
-
|
||||
- return super.handleFailedAttempt();
|
||||
+ return AuthenticationClient.LOCKOUT_NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -931,15 +923,6 @@ public class FingerprintService extends BiometricServiceBase {
|
||||
|
||||
@Override
|
||||
protected int getLockoutMode() {
|
||||
- final int currentUser = ActivityManager.getCurrentUser();
|
||||
- final int failedAttempts = mFailedAttempts.get(currentUser, 0);
|
||||
- if (failedAttempts >= MAX_FAILED_ATTEMPTS_LOCKOUT_PERMANENT) {
|
||||
- return AuthenticationClient.LOCKOUT_PERMANENT;
|
||||
- } else if (failedAttempts > 0
|
||||
- && !mTimedLockoutCleared.get(currentUser, false)
|
||||
- && (failedAttempts % MAX_FAILED_ATTEMPTS_LOCKOUT_TIMED == 0)) {
|
||||
- return AuthenticationClient.LOCKOUT_TIMED;
|
||||
- }
|
||||
return AuthenticationClient.LOCKOUT_NONE;
|
||||
}
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
54
patches_personal/0001-Keyguard-Fix-clock-position.patch
Normal file
54
patches_personal/0001-Keyguard-Fix-clock-position.patch
Normal file
@ -0,0 +1,54 @@
|
||||
From d4d4ba1db635471773f4e8a064b38dbfe8a39128 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 11:11:07 +0000
|
||||
Subject: [PATCH] Keyguard: Fix clock position
|
||||
|
||||
New method - way easier than what was done on Pie
|
||||
Still not perfect:
|
||||
- Notification padding has to be taken care of in some other way - directly altering stackScrollerPadding causes visual glitches
|
||||
|
||||
Change-Id: Ia5cebd04c2cb4b324c04019afdf045d5489cf2b8
|
||||
---
|
||||
.../statusbar/phone/KeyguardClockPositionAlgorithm.java | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java
|
||||
index 4e91e4c84e9..0277b341a00 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java
|
||||
@@ -177,7 +177,8 @@ public class KeyguardClockPositionAlgorithm {
|
||||
}
|
||||
|
||||
private int getMaxClockY() {
|
||||
- return mHeight / 2 - mKeyguardStatusHeight - mClockNotificationsMargin;
|
||||
+ // Align the center of the clock at 1/3 of the screen
|
||||
+ return mHeight / 3 - mKeyguardStatusHeight / 2;
|
||||
}
|
||||
|
||||
private int getPreferredClockY() {
|
||||
@@ -214,12 +215,11 @@ public class KeyguardClockPositionAlgorithm {
|
||||
}
|
||||
|
||||
private int getClockY(float panelExpansion) {
|
||||
- // Dark: Align the bottom edge of the clock at about half of the screen:
|
||||
float clockYDark = (mHasCustomClock ? getPreferredClockY() : getMaxClockY())
|
||||
+ burnInPreventionOffsetY();
|
||||
clockYDark = MathUtils.max(0, clockYDark);
|
||||
|
||||
- float clockYRegular = getExpandedPreferredClockY();
|
||||
+ float clockYRegular = getMaxClockY();
|
||||
float clockYBouncer = -mKeyguardStatusHeight;
|
||||
|
||||
// Move clock up while collapsing the shade
|
||||
@@ -240,7 +240,7 @@ public class KeyguardClockPositionAlgorithm {
|
||||
* @return Alpha from 0 to 1.
|
||||
*/
|
||||
private float getClockAlpha(int y) {
|
||||
- float alphaKeyguard = Math.max(0, y / Math.max(1f, getClockY(1f)));
|
||||
+ float alphaKeyguard = Math.max(0, y / Math.max(1f, getMaxClockY()));
|
||||
alphaKeyguard = Interpolators.ACCELERATE.getInterpolation(alphaKeyguard);
|
||||
return MathUtils.lerp(alphaKeyguard, 1f, mDarkAmount);
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
31
patches_personal/0001-Keyguard-Hide-padlock.patch
Normal file
31
patches_personal/0001-Keyguard-Hide-padlock.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From d216c498168b513becb119873fd47b507686fce9 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 06:41:03 +0000
|
||||
Subject: [PATCH] Keyguard: Hide padlock
|
||||
|
||||
It's just fking ugly.
|
||||
Please Google, stop your UI designers.
|
||||
|
||||
Change-Id: Ie91e80ca5c6637a51a8acc72fb28cd6ac2a7abb6
|
||||
---
|
||||
packages/SystemUI/res/values/dimens.xml | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index 352640b7d06..5ab891ddb92 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -757,8 +757,8 @@
|
||||
<dimen name="keyguard_affordance_width">56dp</dimen>
|
||||
|
||||
<!-- The width/height of the unlock icon view on keyguard. -->
|
||||
- <dimen name="keyguard_lock_height">42dp</dimen>
|
||||
- <dimen name="keyguard_lock_width">42dp</dimen>
|
||||
+ <dimen name="keyguard_lock_height">0dp</dimen>
|
||||
+ <dimen name="keyguard_lock_width">0dp</dimen>
|
||||
<dimen name="keyguard_lock_padding">20dp</dimen>
|
||||
|
||||
<dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||
--
|
||||
2.17.1
|
||||
|
103
patches_personal/0001-Keyguard-Refine-indication-text.patch
Normal file
103
patches_personal/0001-Keyguard-Refine-indication-text.patch
Normal file
@ -0,0 +1,103 @@
|
||||
From 050effb33aa01822945cf98e0d53af8c3bcd8e03 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 08:31:36 +0000
|
||||
Subject: [PATCH] Keyguard: Refine indication text
|
||||
|
||||
- Always show "Swipe up to unlock" hint
|
||||
- Put the text in-line with bottom shortcuts
|
||||
- Fix font size inconsistency on reboot
|
||||
- Don't show charging state below lock status message (https://github.com/LineageOS/android_frameworks_base/commit/85e5a5768731d98a56982ee1b9a1b5cc86fb76f0)
|
||||
|
||||
Change-Id: Ib771c35610f712a1de34736e817bcfe616ac37d8
|
||||
---
|
||||
packages/SystemUI/res-keyguard/values/styles.xml | 2 +-
|
||||
packages/SystemUI/res/values-sw600dp-land/dimens.xml | 2 +-
|
||||
packages/SystemUI/res/values-sw600dp/dimens.xml | 2 +-
|
||||
packages/SystemUI/res/values/dimens.xml | 2 +-
|
||||
.../statusbar/KeyguardIndicationController.java | 11 ++---------
|
||||
5 files changed, 6 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
index fc8d0f7392f..63c1ab0a109 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
@@ -121,7 +121,7 @@
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Keyguard.BottomArea">
|
||||
- <item name="android:textSize">16sp</item>
|
||||
+ <item name="android:textSize">14sp</item>
|
||||
<item name="android:maxLines">1</item>
|
||||
<item name="android:textColor">?attr/wallpaperTextColor</item>
|
||||
</style>
|
||||
diff --git a/packages/SystemUI/res/values-sw600dp-land/dimens.xml b/packages/SystemUI/res/values-sw600dp-land/dimens.xml
|
||||
index f2df4b9023b..7719a0ae0ba 100644
|
||||
--- a/packages/SystemUI/res/values-sw600dp-land/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values-sw600dp-land/dimens.xml
|
||||
@@ -18,7 +18,7 @@
|
||||
<resources>
|
||||
<dimen name="keyguard_clock_notifications_margin">36dp</dimen>
|
||||
|
||||
- <dimen name="keyguard_indication_margin_bottom">80dp</dimen>
|
||||
+ <dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||
|
||||
<!-- Screen pinning request width (just a little bit bigger than the three buttons here -->
|
||||
<dimen name="screen_pinning_request_width">490dp</dimen>
|
||||
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
index 89341838f3e..065aa4107c8 100644
|
||||
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
@@ -65,7 +65,7 @@
|
||||
phone hints. -->
|
||||
<dimen name="edge_tap_area_width">80dp</dimen>
|
||||
|
||||
- <dimen name="keyguard_indication_margin_bottom">90dp</dimen>
|
||||
+ <dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<dimen name="system_icons_keyguard_padding_end">2dp</dimen>
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index ef4a8d524ee..566df2853b9 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -765,7 +765,7 @@
|
||||
<dimen name="keyguard_lock_width">0dp</dimen>
|
||||
<dimen name="keyguard_lock_padding">20dp</dimen>
|
||||
|
||||
- <dimen name="keyguard_indication_margin_bottom">40dp</dimen>
|
||||
+ <dimen name="keyguard_indication_margin_bottom">20dp</dimen>
|
||||
|
||||
<!-- The text size for battery level -->
|
||||
<dimen name="battery_level_text_size">12sp</dimen>
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
index 0644a0ff737..289a875704d 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
@@ -432,14 +432,7 @@ public class KeyguardIndicationController implements StateListener,
|
||||
mTextView.setTextColor(mTransientTextColorState);
|
||||
} else if (!TextUtils.isEmpty(trustGrantedIndication)
|
||||
&& mKeyguardUpdateMonitor.getUserHasTrust(userId)) {
|
||||
- if (powerIndication != null) {
|
||||
- String indication = mContext.getResources().getString(
|
||||
- R.string.keyguard_indication_trust_unlocked_plugged_in,
|
||||
- trustGrantedIndication, powerIndication);
|
||||
- mTextView.switchIndication(indication);
|
||||
- } else {
|
||||
- mTextView.switchIndication(trustGrantedIndication);
|
||||
- }
|
||||
+ mTextView.switchIndication(trustGrantedIndication);
|
||||
mTextView.setTextColor(mInitialTextColorState);
|
||||
} else if (!TextUtils.isEmpty(mAlignmentIndication)) {
|
||||
mTextView.switchIndication(mAlignmentIndication);
|
||||
@@ -460,7 +453,7 @@ public class KeyguardIndicationController implements StateListener,
|
||||
mTextView.switchIndication(trustManagedIndication);
|
||||
mTextView.setTextColor(mInitialTextColorState);
|
||||
} else {
|
||||
- mTextView.switchIndication(mRestingIndication);
|
||||
+ mTextView.switchIndication(R.string.keyguard_unlock);
|
||||
mTextView.setTextColor(mInitialTextColorState);
|
||||
}
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,246 @@
|
||||
From a4141da232bd5c4143933c3af127bb35758b82b2 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 07:52:36 +0000
|
||||
Subject: [PATCH] Keyguard: Revert date and clock to Lollipop style
|
||||
|
||||
Also ported dynamic date format based on alarm presence from Oreo
|
||||
|
||||
Change-Id: I0f61c641ffb2a3e1e6b4da738792ee4ac1d77434
|
||||
---
|
||||
.../layout/keyguard_clock_switch.xml | 3 ---
|
||||
.../layout/keyguard_status_view.xml | 1 -
|
||||
.../res-keyguard/values-h560dp/dimens.xml | 2 +-
|
||||
.../res-keyguard/values-h650dp/dimens.xml | 2 +-
|
||||
.../SystemUI/res-keyguard/values/dimens.xml | 6 ++---
|
||||
.../SystemUI/res-keyguard/values/strings.xml | 4 ++--
|
||||
.../SystemUI/res-keyguard/values/styles.xml | 18 ++++-----------
|
||||
.../res/layout/keyguard_status_bar.xml | 2 +-
|
||||
.../keyguard/KeyguardSliceProvider.java | 22 +++++++++++--------
|
||||
9 files changed, 25 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||
index bf2963cd0b7..5fb06f38bd4 100644
|
||||
--- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||
@@ -36,8 +36,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
- android:paddingBottom="@dimen/title_clock_padding"
|
||||
- android:letterSpacing="0.02"
|
||||
android:textColor="?attr/wallpaperTextColor"
|
||||
android:singleLine="true"
|
||||
style="@style/widget_big"
|
||||
@@ -51,7 +49,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
- android:letterSpacing="0.03"
|
||||
android:textColor="?attr/wallpaperTextColor"
|
||||
android:singleLine="true"
|
||||
style="@style/widget_title_bold"
|
||||
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
|
||||
index 10cd3cba713..9845a02399b 100644
|
||||
--- a/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
|
||||
@@ -67,7 +67,6 @@
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textColor="?attr/wallpaperTextColorSecondary"
|
||||
android:textSize="@dimen/widget_label_font_size"
|
||||
- android:letterSpacing="0.05"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true" />
|
||||
<com.android.systemui.statusbar.phone.NotificationIconContainer
|
||||
diff --git a/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml b/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml
|
||||
index 669f8fb642d..345b3d9c707 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values-h560dp/dimens.xml
|
||||
@@ -16,5 +16,5 @@
|
||||
-->
|
||||
|
||||
<resources>
|
||||
- <dimen name="widget_big_font_size">54dp</dimen>
|
||||
+ <dimen name="widget_big_font_size">88dp</dimen>
|
||||
</resources>
|
||||
diff --git a/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml b/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml
|
||||
index 669f8fb642d..345b3d9c707 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values-h650dp/dimens.xml
|
||||
@@ -16,5 +16,5 @@
|
||||
-->
|
||||
|
||||
<resources>
|
||||
- <dimen name="widget_big_font_size">54dp</dimen>
|
||||
+ <dimen name="widget_big_font_size">88dp</dimen>
|
||||
</resources>
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/dimens.xml b/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||
index f9389ce24d9..cf3a8d79712 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||
@@ -42,13 +42,13 @@
|
||||
<dimen name="eca_overlap">-10dip</dimen>
|
||||
|
||||
<!-- Slice header -->
|
||||
- <dimen name="widget_title_font_size">24dp</dimen>
|
||||
+ <dimen name="widget_title_font_size">16dp</dimen>
|
||||
<dimen name="header_subtitle_padding">12dp</dimen>
|
||||
<dimen name="header_icon_size">16dp</dimen>
|
||||
<!-- Slice subtitle -->
|
||||
- <dimen name="widget_label_font_size">18dp</dimen>
|
||||
+ <dimen name="widget_label_font_size">16dp</dimen>
|
||||
<!-- Clock without header -->
|
||||
- <dimen name="widget_big_font_size">54dp</dimen>
|
||||
+ <dimen name="widget_big_font_size">88dp</dimen>
|
||||
<dimen name="bottom_text_spacing_digital">0dp</dimen>
|
||||
<dimen name="title_clock_padding">4dp</dimen>
|
||||
<!-- Clock with header -->
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/strings.xml b/packages/SystemUI/res-keyguard/values/strings.xml
|
||||
index 0fe7084bb14..ad7957b2cea 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/strings.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/strings.xml
|
||||
@@ -116,9 +116,9 @@
|
||||
<string name="keyguard_carrier_name_with_sim_locked_template" translatable="false"><xliff:g id="carrier">%s</xliff:g> (<xliff:g id="message">%s</xliff:g>)</string>
|
||||
|
||||
<!-- Time format strings for fall-back clock widget -->
|
||||
- <string name="keyguard_widget_12_hours_format" translatable="false">h:mm</string>
|
||||
+ <string name="keyguard_widget_12_hours_format" translatable="false">hh:mm</string>
|
||||
<!-- Time format strings for fall-back clock widget -->
|
||||
- <string name="keyguard_widget_24_hours_format" translatable="false">kk:mm</string>
|
||||
+ <string name="keyguard_widget_24_hours_format" translatable="false">HH:mm</string>
|
||||
<!-- The character used in keyguard_widget_12_hours_format and keyguard_widget_24_hours_format
|
||||
to represent a ":". -->
|
||||
<string name="keyguard_fancy_colon" translatable="false"></string>
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
index 67c4458de2f..fc8d0f7392f 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
@@ -62,29 +62,23 @@
|
||||
<style name="widget_big">
|
||||
<item name="android:textSize">@dimen/widget_big_font_size</item>
|
||||
<item name="android:paddingBottom">@dimen/bottom_text_spacing_digital</item>
|
||||
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
+ <item name="android:fontFamily">sans-serif-thin</item>
|
||||
<item name="android:fontFeatureSettings">@*android:string/config_headlineFontFeatureSettings</item>
|
||||
<item name="android:ellipsize">none</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
</style>
|
||||
<style name="widget_title_bold">
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textSize">@dimen/widget_title_font_size</item>
|
||||
<item name="android:paddingBottom">@dimen/widget_vertical_padding_clock</item>
|
||||
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
<item name="android:ellipsize">none</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
</style>
|
||||
<style name="widget_small_bold">
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textSize">@dimen/widget_small_font_size</item>
|
||||
<item name="android:paddingBottom">@dimen/bottom_text_spacing_digital</item>
|
||||
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
<item name="android:ellipsize">none</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
</style>
|
||||
|
||||
<style name="BouncerSecurityContainer">
|
||||
@@ -116,9 +110,7 @@
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:ellipsize">end</item>
|
||||
<item name="android:maxLines">2</item>
|
||||
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
+ <item name="android:fontFamily">sans-serif</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Keyguard.Secondary">
|
||||
@@ -132,8 +124,6 @@
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:maxLines">1</item>
|
||||
<item name="android:textColor">?attr/wallpaperTextColor</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
index 2b22cc196db..58343800c2e 100644
|
||||
--- a/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
+++ b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
@@ -73,7 +73,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:ellipsize="marquee"
|
||||
android:textDirection="locale"
|
||||
- android:textAppearance="@style/TextAppearance.StatusBar.Clock"
|
||||
+ android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?attr/wallpaperTextColorSecondary"
|
||||
android:singleLine="true"
|
||||
systemui:showMissingSim="true"
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
|
||||
index 50c50065915..474c62ea196 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
|
||||
@@ -91,7 +91,7 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||
* Only show alarms that will ring within N hours.
|
||||
*/
|
||||
@VisibleForTesting
|
||||
- static final int ALARM_VISIBILITY_HOURS = 12;
|
||||
+ static final int ALARM_VISIBILITY_HOURS = 24;
|
||||
|
||||
private static KeyguardSliceProvider sInstance;
|
||||
|
||||
@@ -318,7 +318,10 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||
mNextAlarmController.addCallback(this);
|
||||
mZenModeController = new ZenModeControllerImpl(getContext(), mHandler);
|
||||
mZenModeController.addCallback(this);
|
||||
- mDatePattern = getContext().getString(R.string.system_ui_aod_date_pattern);
|
||||
+ boolean isNextAlarmPresent = withinNHoursLocked(mNextAlarmInfo, ALARM_VISIBILITY_HOURS);
|
||||
+ mDatePattern = getContext().getString(isNextAlarmPresent
|
||||
+ ? R.string.abbrev_wday_month_day_no_year_alarm
|
||||
+ : R.string.abbrev_wday_month_day_no_year);
|
||||
mPendingIntent = PendingIntent.getActivity(getContext(), 0,
|
||||
new Intent(getContext(), KeyguardSliceProvider.class), 0);
|
||||
mMediaWakeLock = new SettableWakeLock(WakeLock.createPartial(getContext(), "media"),
|
||||
@@ -359,14 +362,17 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||
synchronized (this) {
|
||||
if (withinNHoursLocked(mNextAlarmInfo, ALARM_VISIBILITY_HOURS)) {
|
||||
String pattern = android.text.format.DateFormat.is24HourFormat(getContext(),
|
||||
- ActivityManager.getCurrentUser()) ? "HH:mm" : "h:mm";
|
||||
+ ActivityManager.getCurrentUser()) ? "E HH:mm" : "E hh:mm";
|
||||
mNextAlarm = android.text.format.DateFormat.format(pattern,
|
||||
mNextAlarmInfo.getTriggerTime()).toString();
|
||||
+ mDatePattern = getContext().getString(R.string.abbrev_wday_month_day_no_year_alarm);
|
||||
} else {
|
||||
mNextAlarm = "";
|
||||
+ mDatePattern = getContext().getString(R.string.abbrev_wday_month_day_no_year);
|
||||
}
|
||||
}
|
||||
notifyChange();
|
||||
+ updateClockLocked();
|
||||
}
|
||||
|
||||
private boolean withinNHoursLocked(AlarmManager.AlarmClockInfo alarmClockInfo, int hours) {
|
||||
@@ -415,12 +421,10 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||
}
|
||||
|
||||
protected String getFormattedDateLocked() {
|
||||
- if (mDateFormat == null) {
|
||||
- final Locale l = Locale.getDefault();
|
||||
- DateFormat format = DateFormat.getInstanceForSkeleton(mDatePattern, l);
|
||||
- format.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE);
|
||||
- mDateFormat = format;
|
||||
- }
|
||||
+ final Locale l = Locale.getDefault();
|
||||
+ DateFormat format = DateFormat.getInstanceForSkeleton(mDatePattern, l);
|
||||
+ format.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE);
|
||||
+ mDateFormat = format;
|
||||
mCurrentTime.setTime(System.currentTimeMillis());
|
||||
return mDateFormat.format(mCurrentTime);
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,30 @@
|
||||
From 1fcb9bc8c09a5ac6ebeec38d9b01c68f91b37ccc Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 27 Dec 2018 16:38:19 +0800
|
||||
Subject: [PATCH] Keyguard: Show shortcuts by default
|
||||
|
||||
Change-Id: I5655e0be26cec61214735719dffcda810286cd41
|
||||
---
|
||||
packages/SystemUI/res/values/config.xml | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
||||
index 754487f2f23..2a9651009d5 100644
|
||||
--- a/packages/SystemUI/res/values/config.xml
|
||||
+++ b/packages/SystemUI/res/values/config.xml
|
||||
@@ -69,10 +69,10 @@
|
||||
<integer translatable="false" name="config_search_panel_view_vibration_duration">20</integer>
|
||||
|
||||
<!-- Show mic or phone affordance on Keyguard -->
|
||||
- <bool name="config_keyguardShowLeftAffordance">false</bool>
|
||||
+ <bool name="config_keyguardShowLeftAffordance">true</bool>
|
||||
|
||||
<!-- Show camera affordance on Keyguard -->
|
||||
- <bool name="config_keyguardShowCameraAffordance">false</bool>
|
||||
+ <bool name="config_keyguardShowCameraAffordance">true</bool>
|
||||
|
||||
<!-- The length of the vibration when the notification pops open. -->
|
||||
<integer name="one_finger_pop_duration_ms">10</integer>
|
||||
--
|
||||
2.17.1
|
||||
|
6527
patches_personal/0001-Messaging-Use-blue-accent.patch
Normal file
6527
patches_personal/0001-Messaging-Use-blue-accent.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
From 75b4ad8f26b5fafaf4acac63be76f77340c060fc Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 3 Jun 2020 01:26:13 +0000
|
||||
Subject: [PATCH] [TEMP] UI: Restore status bar inset behaviour
|
||||
|
||||
FFS Google!
|
||||
Offending commits:
|
||||
https://android.googlesource.com/platform/frameworks/base/+/ae242892e2ba416cfbf5fd707069faf2350ace9c
|
||||
https://android.googlesource.com/platform/frameworks/base/+/60023559ea0219273e0680a7b559392230172fd6
|
||||
Issue tracker:
|
||||
https://issuetracker.google.com/issues/158019858
|
||||
|
||||
Change-Id: Icbea8ff375b990d1af803d7cdd99d8cb8be77279
|
||||
---
|
||||
packages/SystemUI/res/layout/super_status_bar.xml | 3 +--
|
||||
.../android/systemui/statusbar/phone/PhoneStatusBarView.java | 4 ----
|
||||
2 files changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/layout/super_status_bar.xml b/packages/SystemUI/res/layout/super_status_bar.xml
|
||||
index c7dcbf60851..d7da49563c0 100644
|
||||
--- a/packages/SystemUI/res/layout/super_status_bar.xml
|
||||
+++ b/packages/SystemUI/res/layout/super_status_bar.xml
|
||||
@@ -64,8 +64,7 @@
|
||||
android:id="@+id/status_bar_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
- android:background="@drawable/system_bar_background"
|
||||
- sysui:ignoreRightInset="true" />
|
||||
+ android:background="@drawable/system_bar_background" />
|
||||
|
||||
<include layout="@layout/status_bar_expanded"
|
||||
android:layout_width="match_parent"
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
|
||||
index 3d705da65f2..1ce9766f350 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
|
||||
@@ -399,10 +399,6 @@ public class PhoneStatusBarView extends PanelBar {
|
||||
Point size = new Point();
|
||||
display.getRealSize(size);
|
||||
|
||||
- if (rotationOrientation != RotationUtils.ROTATION_NONE) {
|
||||
- return new Pair<>(cutout.getSafeInsetLeft(), cutout.getSafeInsetRight());
|
||||
- }
|
||||
-
|
||||
Rect bounds = new Rect();
|
||||
boundsFromDirection(cutout, Gravity.TOP, bounds);
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
60
patches_personal/0001-Telephony-Disable-SPN-retrieval.patch
Normal file
60
patches_personal/0001-Telephony-Disable-SPN-retrieval.patch
Normal file
@ -0,0 +1,60 @@
|
||||
From b4b8f5d0f94edfd28a22d61b04f7777999a53768 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 8 Jun 2021 12:00:26 +0000
|
||||
Subject: [PATCH] Telephony: Disable SPN retrieval
|
||||
|
||||
Kills "double carrier name" on lock screen
|
||||
Not ideal, but not worth wasting more time on
|
||||
|
||||
Change-Id: I06dd17989194590972e526de85dbacf74eff805e
|
||||
---
|
||||
.../internal/telephony/uicc/IccRecords.java | 22 +++++--------------
|
||||
1 file changed, 6 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/src/java/com/android/internal/telephony/uicc/IccRecords.java b/src/java/com/android/internal/telephony/uicc/IccRecords.java
|
||||
index 7944f6f4d..2ac7a913b 100644
|
||||
--- a/src/java/com/android/internal/telephony/uicc/IccRecords.java
|
||||
+++ b/src/java/com/android/internal/telephony/uicc/IccRecords.java
|
||||
@@ -683,33 +683,23 @@ public abstract class IccRecords extends Handler implements IccConstants {
|
||||
}
|
||||
|
||||
/**
|
||||
- * Return Service Provider Name stored in SIM (EF_SPN=0x6F46) or in RUIM (EF_RUIM_SPN=0x6F41).
|
||||
+ * Return null, disabling Service Provider Name.
|
||||
*
|
||||
- * @return null if SIM is not yet ready or no RUIM entry
|
||||
+ * @return null
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public String getServiceProviderName() {
|
||||
- if (mCarrierTestOverride.isInTestMode() && mCarrierTestOverride.getFakeSpn() != null) {
|
||||
- return mCarrierTestOverride.getFakeSpn();
|
||||
- }
|
||||
- return mSpn;
|
||||
+ return null;
|
||||
}
|
||||
|
||||
/**
|
||||
- * Return Service Provider Name stored in SIM (EF_SPN=0x6F46) or in RUIM (EF_RUIM_SPN=0x6F41) or
|
||||
- * the brand override. The brand override has higher priority than the SPN from SIM.
|
||||
+ * Return null, disabling Service Provider Name.
|
||||
*
|
||||
- * @return service provider name.
|
||||
+ * @return null
|
||||
*/
|
||||
@Nullable
|
||||
public String getServiceProviderNameWithBrandOverride() {
|
||||
- if (mParentApp != null && mParentApp.getUiccProfile() != null) {
|
||||
- String brandOverride = mParentApp.getUiccProfile().getOperatorBrandOverride();
|
||||
- if (!TextUtils.isEmpty(brandOverride)) {
|
||||
- return brandOverride;
|
||||
- }
|
||||
- }
|
||||
- return mSpn;
|
||||
+ return null;
|
||||
}
|
||||
|
||||
protected void setServiceProviderName(String spn) {
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,76 @@
|
||||
From 397a0ba3d50c23e8e1ac45b1673c66ccaa9f0560 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 13 Sep 2020 03:55:54 +0000
|
||||
Subject: [PATCH] UI: Always render windows into cutouts
|
||||
|
||||
Eliminates black letterboxing in landscape mode
|
||||
|
||||
Change-Id: Ice5688b48844c341bd1166f7b4efe0bfc4c664bf
|
||||
---
|
||||
.../com/android/server/wm/DisplayPolicy.java | 50 -------------------
|
||||
1 file changed, 50 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
index 7d9f58376a0..6090835c1e0 100644
|
||||
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
@@ -2270,56 +2270,6 @@ public class DisplayPolicy {
|
||||
final boolean floatingInScreenWindow = !attrs.isFullscreen() && layoutInScreen
|
||||
&& type != TYPE_BASE_APPLICATION;
|
||||
|
||||
- // Ensure that windows with a DEFAULT or NEVER display cutout mode are laid out in
|
||||
- // the cutout safe zone.
|
||||
- if (cutoutMode != LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES) {
|
||||
- final Rect displayCutoutSafeExceptMaybeBars = sTmpDisplayCutoutSafeExceptMaybeBarsRect;
|
||||
- displayCutoutSafeExceptMaybeBars.set(displayFrames.mDisplayCutoutSafe);
|
||||
- if (layoutInScreen && layoutInsetDecor && !requestedFullscreen
|
||||
- && cutoutMode == LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT) {
|
||||
- // At the top we have the status bar, so apps that are
|
||||
- // LAYOUT_IN_SCREEN | LAYOUT_INSET_DECOR but not FULLSCREEN
|
||||
- // already expect that there's an inset there and we don't need to exclude
|
||||
- // the window from that area.
|
||||
- displayCutoutSafeExceptMaybeBars.top = Integer.MIN_VALUE;
|
||||
- }
|
||||
- if (layoutInScreen && layoutInsetDecor && !requestedHideNavigation
|
||||
- && cutoutMode == LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT) {
|
||||
- // Same for the navigation bar.
|
||||
- switch (mNavigationBarPosition) {
|
||||
- case NAV_BAR_BOTTOM:
|
||||
- displayCutoutSafeExceptMaybeBars.bottom = Integer.MAX_VALUE;
|
||||
- break;
|
||||
- case NAV_BAR_RIGHT:
|
||||
- displayCutoutSafeExceptMaybeBars.right = Integer.MAX_VALUE;
|
||||
- break;
|
||||
- case NAV_BAR_LEFT:
|
||||
- displayCutoutSafeExceptMaybeBars.left = Integer.MIN_VALUE;
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
- if (type == TYPE_INPUT_METHOD && mNavigationBarPosition == NAV_BAR_BOTTOM) {
|
||||
- // The IME can always extend under the bottom cutout if the navbar is there.
|
||||
- displayCutoutSafeExceptMaybeBars.bottom = Integer.MAX_VALUE;
|
||||
- }
|
||||
- // Windows that are attached to a parent and laid out in said parent already avoid
|
||||
- // the cutout according to that parent and don't need to be further constrained.
|
||||
- // Floating IN_SCREEN windows get what they ask for and lay out in the full screen.
|
||||
- // They will later be cropped or shifted using the displayFrame in WindowState,
|
||||
- // which prevents overlap with the DisplayCutout.
|
||||
- if (!attachedInParent && !floatingInScreenWindow) {
|
||||
- sTmpRect.set(pf);
|
||||
- pf.intersectUnchecked(displayCutoutSafeExceptMaybeBars);
|
||||
- windowFrames.setParentFrameWasClippedByDisplayCutout(!sTmpRect.equals(pf));
|
||||
- }
|
||||
- // Make sure that NO_LIMITS windows clipped to the display don't extend under the
|
||||
- // cutout.
|
||||
- df.intersectUnchecked(displayCutoutSafeExceptMaybeBars);
|
||||
- }
|
||||
-
|
||||
- // Content should never appear in the cutout.
|
||||
- cf.intersectUnchecked(displayFrames.mDisplayCutoutSafe);
|
||||
-
|
||||
// TYPE_SYSTEM_ERROR is above the NavigationBar so it can't be allowed to extend over it.
|
||||
// Also, we don't allow windows in multi-window mode to extend out of the screen.
|
||||
if ((fl & FLAG_LAYOUT_NO_LIMITS) != 0 && type != TYPE_SYSTEM_ERROR
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,57 @@
|
||||
From ed75e73424f9c7f56e29a3c29d528ba8c585fb84 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 9 Mar 2018 15:41:26 +0800
|
||||
Subject: [PATCH] UI: Disable left (seascape) navigation bar optionally
|
||||
|
||||
Toggle this behaviour with property "persist.ui.seascape.disable"
|
||||
|
||||
Change-Id: Ieb58efa4b59feeb0c4ac70e497f4c59aa04210d6
|
||||
---
|
||||
.../systemui/statusbar/phone/ReverseLinearLayout.java | 6 ++++++
|
||||
services/core/java/com/android/server/wm/DisplayPolicy.java | 5 +++--
|
||||
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java
|
||||
index d3ec187ef20..01d87cd12f7 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ReverseLinearLayout.java
|
||||
@@ -16,6 +16,7 @@ package com.android.systemui.statusbar.phone;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.content.Context;
|
||||
+import android.os.SystemProperties;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
@@ -86,6 +87,11 @@ public class ReverseLinearLayout extends LinearLayout {
|
||||
boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL;
|
||||
boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder;
|
||||
|
||||
+ boolean isSeascapeDisabled = SystemProperties.getBoolean("persist.ui.seascape.disable", false);
|
||||
+ if (isSeascapeDisabled) {
|
||||
+ isLayoutReverse = isLayoutRtl ^ true;
|
||||
+ }
|
||||
+
|
||||
if (mIsLayoutReverse != isLayoutReverse) {
|
||||
// reversity changed, swap the order of all views.
|
||||
int childCount = getChildCount();
|
||||
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
index cf87203893c..7153337031c 100644
|
||||
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
@@ -3001,9 +3001,10 @@ public class DisplayPolicy {
|
||||
@NavigationBarPosition
|
||||
int navigationBarPosition(int displayWidth, int displayHeight, int displayRotation) {
|
||||
if (navigationBarCanMove() && displayWidth > displayHeight) {
|
||||
- if (displayRotation == Surface.ROTATION_270) {
|
||||
+ boolean isSeascapeDisabled = SystemProperties.getBoolean("persist.ui.seascape.disable", false);
|
||||
+ if (displayRotation == Surface.ROTATION_270 && !isSeascapeDisabled) {
|
||||
return NAV_BAR_LEFT;
|
||||
- } else if (displayRotation == Surface.ROTATION_90) {
|
||||
+ } else {
|
||||
return NAV_BAR_RIGHT;
|
||||
}
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
107
patches_personal/0001-UI-Force-dark-QS-scrim.patch
Normal file
107
patches_personal/0001-UI-Force-dark-QS-scrim.patch
Normal file
@ -0,0 +1,107 @@
|
||||
From d9afc7a0cee04b08f20a16abc23384cf4e1028d8 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 29 Jun 2021 23:01:07 +0000
|
||||
Subject: [PATCH] UI: Force dark QS scrim
|
||||
|
||||
Side effect from using light wallpapers
|
||||
|
||||
Change-Id: I241dfd7cf8d8bfce1503e7872c5359c380fdbfed
|
||||
---
|
||||
.../systemui/qs/QuickStatusBarHeader.java | 5 -----
|
||||
.../stack/NotificationStackScrollLayout.java | 2 +-
|
||||
.../statusbar/phone/ScrimController.java | 21 ++++++-------------
|
||||
3 files changed, 7 insertions(+), 21 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
index d4a1f1877b2..5623c78d535 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
@@ -376,11 +376,6 @@ public class QuickStatusBarHeader extends RelativeLayout implements
|
||||
protected void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
updateResources();
|
||||
-
|
||||
- // Update color schemes in landscape to use wallpaperTextColor
|
||||
- boolean shouldUseWallpaperTextColor =
|
||||
- newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE;
|
||||
- mClockView.useWallpaperTextColor(shouldUseWallpaperTextColor);
|
||||
}
|
||||
|
||||
@Override
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
|
||||
index 389033f6657..a30940da5d8 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
|
||||
@@ -674,7 +674,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
||||
@Override
|
||||
@ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
|
||||
public void onThemeChanged() {
|
||||
- final boolean useDarkText = mColorExtractor.getNeutralColors().supportsDarkText();
|
||||
+ final boolean useDarkText = false;
|
||||
updateDecorViews(useDarkText);
|
||||
|
||||
updateFooter();
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
index dee8c0f8ef6..5f591cfed16 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
@@ -36,9 +36,7 @@ import android.view.animation.DecelerateInterpolator;
|
||||
import android.view.animation.Interpolator;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
-import com.android.internal.colorextraction.ColorExtractor;
|
||||
import com.android.internal.colorextraction.ColorExtractor.GradientColors;
|
||||
-import com.android.internal.colorextraction.ColorExtractor.OnColorsChangedListener;
|
||||
import com.android.internal.graphics.ColorUtils;
|
||||
import com.android.internal.util.function.TriConsumer;
|
||||
import com.android.keyguard.KeyguardUpdateMonitor;
|
||||
@@ -64,8 +62,7 @@ import java.util.function.Consumer;
|
||||
* Controls both the scrim behind the notifications and in front of the notifications (when a
|
||||
* security method gets shown).
|
||||
*/
|
||||
-public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnColorsChangedListener,
|
||||
- Dumpable {
|
||||
+public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dumpable {
|
||||
|
||||
static final String TAG = "ScrimController";
|
||||
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||
@@ -134,7 +131,6 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||
private final KeyguardVisibilityCallback mKeyguardVisibilityCallback;
|
||||
private final Handler mHandler;
|
||||
|
||||
- private final SysuiColorExtractor mColorExtractor;
|
||||
private GradientColors mColors;
|
||||
private boolean mNeedsDrawableColorUpdate;
|
||||
|
||||
@@ -208,9 +204,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||
}
|
||||
});
|
||||
|
||||
- mColorExtractor = Dependency.get(SysuiColorExtractor.class);
|
||||
- mColorExtractor.addOnColorsChangedListener(this);
|
||||
- mColors = mColorExtractor.getNeutralColors();
|
||||
+ mColors = new GradientColors();
|
||||
+ mColors.setMainColor(-14671580);
|
||||
+ mColors.setSecondaryColor(-14671580);
|
||||
+ mColors.setColorPalette(new int[] {-14671580});
|
||||
+ mColors.setSupportsDarkText(false);
|
||||
mNeedsDrawableColorUpdate = true;
|
||||
|
||||
final ScrimState[] states = ScrimState.values();
|
||||
@@ -896,13 +894,6 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||
// Don't care in the base class.
|
||||
}
|
||||
|
||||
- @Override
|
||||
- public void onColorsChanged(ColorExtractor colorExtractor, int which) {
|
||||
- mColors = mColorExtractor.getNeutralColors();
|
||||
- mNeedsDrawableColorUpdate = true;
|
||||
- scheduleUpdate();
|
||||
- }
|
||||
-
|
||||
@VisibleForTesting
|
||||
protected WakeLock createWakeLock() {
|
||||
return new DelayedWakeLock(mHandler, WakeLock.createPartial(mContext, "Scrims"));
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,26 @@
|
||||
From 662e078824cf187c6d374bd94cb339d7f4de68f5 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 3 Jun 2020 01:31:34 +0000
|
||||
Subject: [PATCH] UI: Increase default status bar height
|
||||
|
||||
Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
||||
---
|
||||
core/res/res/values/dimens.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
|
||||
index 3edfb36982f..9070808d2c1 100644
|
||||
--- a/core/res/res/values/dimens.xml
|
||||
+++ b/core/res/res/values/dimens.xml
|
||||
@@ -34,7 +34,7 @@
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height">@dimen/status_bar_height_portrait</dimen>
|
||||
<!-- Height of the status bar in portrait -->
|
||||
- <dimen name="status_bar_height_portrait">24dp</dimen>
|
||||
+ <dimen name="status_bar_height_portrait">28dp</dimen>
|
||||
<!-- Height of the status bar in landscape -->
|
||||
<dimen name="status_bar_height_landscape">@dimen/status_bar_height_portrait</dimen>
|
||||
<!-- Height of area above QQS where battery/time go -->
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,28 @@
|
||||
From 87cde9497d121fec5bb85b1023f43d8eeaed2ec1 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 29 Jun 2021 22:57:01 +0000
|
||||
Subject: [PATCH] UI: Relax requirement for HINT_SUPPORTS_DARK_TEXT
|
||||
|
||||
I decide what's good enough for a wallpaper!
|
||||
|
||||
Change-Id: I5ccd85b3df12e53746a4ac6cbc37ba8d11f6c336
|
||||
---
|
||||
core/java/android/app/WallpaperColors.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/java/android/app/WallpaperColors.java b/core/java/android/app/WallpaperColors.java
|
||||
index e4818b27434..67208f0ebed 100644
|
||||
--- a/core/java/android/app/WallpaperColors.java
|
||||
+++ b/core/java/android/app/WallpaperColors.java
|
||||
@@ -413,7 +413,7 @@ public final class WallpaperColors implements Parcelable {
|
||||
|
||||
int hints = 0;
|
||||
double meanLuminance = totalLuminance / pixels.length;
|
||||
- if (meanLuminance > BRIGHT_IMAGE_MEAN_LUMINANCE && darkPixels < maxDarkPixels) {
|
||||
+ if (meanLuminance > BRIGHT_IMAGE_MEAN_LUMINANCE) {
|
||||
hints |= HINT_SUPPORTS_DARK_TEXT;
|
||||
}
|
||||
if (meanLuminance < DARK_THEME_MEAN_LUMINANCE) {
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,70 @@
|
||||
From 8f572e3b192b198f097df65ea093a92604bb65a0 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 26 Apr 2020 08:56:13 +0000
|
||||
Subject: [PATCH] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
||||
|
||||
Enables multiple snap targets under landscape for phone UI
|
||||
|
||||
Change-Id: I36e08f1e277dca0b0f9f99418671026e61b01496
|
||||
---
|
||||
core/res/res/values-land/config.xml | 19 -------------------
|
||||
core/res/res/values-sw600dp/config.xml | 2 --
|
||||
core/res/res/values/config.xml | 2 +-
|
||||
3 files changed, 1 insertion(+), 22 deletions(-)
|
||||
delete mode 100644 core/res/res/values-land/config.xml
|
||||
|
||||
diff --git a/core/res/res/values-land/config.xml b/core/res/res/values-land/config.xml
|
||||
deleted file mode 100644
|
||||
index 7308dc5882c..00000000000
|
||||
--- a/core/res/res/values-land/config.xml
|
||||
+++ /dev/null
|
||||
@@ -1,19 +0,0 @@
|
||||
-<?xml version="1.0" encoding="utf-8"?>
|
||||
-<!--
|
||||
- ~ Copyright (C) 2015 The Android Open Source Project
|
||||
- ~
|
||||
- ~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
- ~ you may not use this file except in compliance with the License.
|
||||
- ~ You may obtain a copy of the License at
|
||||
- ~
|
||||
- ~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
- ~
|
||||
- ~ Unless required by applicable law or agreed to in writing, software
|
||||
- ~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
- ~ See the License for the specific language governing permissions and
|
||||
- ~ limitations under the License
|
||||
- -->
|
||||
-<resources>
|
||||
- <integer name="config_dockedStackDividerSnapMode">2</integer>
|
||||
-</resources>
|
||||
\ No newline at end of file
|
||||
diff --git a/core/res/res/values-sw600dp/config.xml b/core/res/res/values-sw600dp/config.xml
|
||||
index e2c8d8a57e8..d1a0920862b 100644
|
||||
--- a/core/res/res/values-sw600dp/config.xml
|
||||
+++ b/core/res/res/values-sw600dp/config.xml
|
||||
@@ -40,8 +40,6 @@
|
||||
<!-- Use a larger scaling span for larger screen devices. -->
|
||||
<dimen name="config_minScalingSpan">32mm</dimen>
|
||||
|
||||
- <integer name="config_dockedStackDividerSnapMode">1</integer>
|
||||
-
|
||||
<!-- The snap mode to use for picture-in-picture. These values correspond to constants defined
|
||||
in PipSnapAlgorithm and should not be changed independently.
|
||||
0 - Snap to the four corners
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index d4b9b5d7fbc..0a8de3d1130 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -3385,7 +3385,7 @@
|
||||
1 - 3 snap targets: fixed ratio, 1:1, (1 - fixed ratio)
|
||||
2 - 1 snap target: 1:1
|
||||
-->
|
||||
- <integer name="config_dockedStackDividerSnapMode">0</integer>
|
||||
+ <integer name="config_dockedStackDividerSnapMode">1</integer>
|
||||
|
||||
<!-- The maximum aspect ratio (longerSide/shorterSide) that is treated as close-to-square. The
|
||||
orientation requests from apps would be ignored if the display is close-to-square. -->
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,28 @@
|
||||
From e89e2d8f376fcb77078ba06138afa395f91ab55d Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 5 Jun 2019 05:10:00 +0000
|
||||
Subject: [PATCH] WiFi: Relax throttling greatly for foreground apps
|
||||
|
||||
...to the extent that it virtually doesn't exist
|
||||
|
||||
Change-Id: Ic01d08ef9c09de128ac08ecebb52aa7f90cf9e4e
|
||||
---
|
||||
service/java/com/android/server/wifi/ScanRequestProxy.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/service/java/com/android/server/wifi/ScanRequestProxy.java b/service/java/com/android/server/wifi/ScanRequestProxy.java
|
||||
index 0a9a446ab..3cedc343e 100644
|
||||
--- a/service/java/com/android/server/wifi/ScanRequestProxy.java
|
||||
+++ b/service/java/com/android/server/wifi/ScanRequestProxy.java
|
||||
@@ -67,7 +67,7 @@ public class ScanRequestProxy {
|
||||
private static final String TAG = "WifiScanRequestProxy";
|
||||
|
||||
@VisibleForTesting
|
||||
- public static final int SCAN_REQUEST_THROTTLE_TIME_WINDOW_FG_APPS_MS = 120 * 1000;
|
||||
+ public static final int SCAN_REQUEST_THROTTLE_TIME_WINDOW_FG_APPS_MS = 1;
|
||||
@VisibleForTesting
|
||||
public static final int SCAN_REQUEST_THROTTLE_MAX_IN_TIME_WINDOW_FG_APPS = 4;
|
||||
@VisibleForTesting
|
||||
--
|
||||
2.17.1
|
||||
|
@ -0,0 +1,46 @@
|
||||
From 490252cfe49048a08c99bfdcfde1d02c12f79e5b Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 09:08:43 +0000
|
||||
Subject: [PATCH] build: Integrate prop modifications (1/2)
|
||||
|
||||
Change-Id: I24f54937e3e542b7c29ea86d24e3f523583a0c61
|
||||
---
|
||||
tools/buildinfo.sh | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
|
||||
index d7f3b96a3..f23b67e97 100755
|
||||
--- a/tools/buildinfo.sh
|
||||
+++ b/tools/buildinfo.sh
|
||||
@@ -4,7 +4,7 @@ echo "# begin build properties"
|
||||
echo "# autogenerated by buildinfo.sh"
|
||||
|
||||
echo "ro.build.id=$BUILD_ID"
|
||||
-echo "ro.build.display.id=$BUILD_DISPLAY_ID"
|
||||
+echo "ro.build.display.id=$BUILD_ID"
|
||||
echo "ro.build.version.incremental=$BUILD_NUMBER"
|
||||
echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
|
||||
echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
|
||||
@@ -15,7 +15,7 @@ echo "ro.build.version.release=$PLATFORM_VERSION"
|
||||
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
|
||||
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
|
||||
echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
|
||||
-echo "ro.build.date=`$DATE`"
|
||||
+echo "ro.build.date=`$DATE +\"%B %-d, %Y\"`"
|
||||
echo "ro.build.date.utc=`$DATE +%s`"
|
||||
echo "ro.build.type=$TARGET_BUILD_TYPE"
|
||||
echo "ro.build.user=$BUILD_USERNAME"
|
||||
@@ -56,5 +56,10 @@ if [ -n "$BUILD_THUMBPRINT" ] ; then
|
||||
fi
|
||||
|
||||
echo "ro.lineage.device=$LINEAGE_DEVICE"
|
||||
+echo "ro.lineage.version=LineageOS 17.1 Self-built CGMod"
|
||||
+echo "ro.lineage.display.version=LineageOS 17.1 Self-built CGMod"
|
||||
+echo "ro.modversion=LineageOS 17.1 Self-built CGMod"
|
||||
+
|
||||
+echo "lockscreen.rot_override=true"
|
||||
|
||||
echo "# end build properties"
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,36 @@
|
||||
From 2ca9b6c8cc63b5726c682b77ece6d7112e6652b9 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 09:09:15 +0000
|
||||
Subject: [PATCH] build: Integrate prop modifications (2/2)
|
||||
|
||||
Change-Id: I076973f902ab20011964e50955e4326c18d5b34e
|
||||
---
|
||||
build/core/main_version.mk | 7 +------
|
||||
1 file changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/build/core/main_version.mk b/build/core/main_version.mk
|
||||
index dddeee77..dd86cbfd 100644
|
||||
--- a/build/core/main_version.mk
|
||||
+++ b/build/core/main_version.mk
|
||||
@@ -5,17 +5,12 @@ ADDITIONAL_BUILD_PROPERTIES += \
|
||||
endif
|
||||
|
||||
# LineageOS System Version
|
||||
+# Do not set Display Versions here, due to Makefile not playing nice with spaces
|
||||
ADDITIONAL_BUILD_PROPERTIES += \
|
||||
- ro.lineage.version=$(LINEAGE_VERSION) \
|
||||
ro.lineage.releasetype=$(LINEAGE_BUILDTYPE) \
|
||||
ro.lineage.build.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR) \
|
||||
- ro.modversion=$(LINEAGE_VERSION) \
|
||||
ro.lineagelegal.url=https://lineageos.org/legal
|
||||
|
||||
-# LineageOS Platform Display Version
|
||||
-ADDITIONAL_BUILD_PROPERTIES += \
|
||||
- ro.lineage.display.version=$(LINEAGE_DISPLAY_VERSION)
|
||||
-
|
||||
# LineageOS Platform SDK Version
|
||||
ADDITIONAL_BUILD_PROPERTIES += \
|
||||
ro.lineage.build.version.plat.sdk=$(LINEAGE_PLATFORM_SDK_VERSION)
|
||||
--
|
||||
2.25.1
|
||||
|
@ -0,0 +1,33 @@
|
||||
From 8a3d38d3148713836c12d85f7fc4a6a366cc00e4 Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 4 Mar 2019 14:27:56 +0800
|
||||
Subject: [PATCH] sdk: Do not warn about SELinux and build signature status
|
||||
|
||||
Change-Id: I6e1ca9f2c2f7763364a9a370f444dfe8059d0563
|
||||
---
|
||||
.../org/lineageos/platform/internal/TrustInterfaceService.java | 9 ---------
|
||||
1 file changed, 9 deletions(-)
|
||||
|
||||
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java b/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java
|
||||
index 2dcb938..e9f2dca 100644
|
||||
--- a/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java
|
||||
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java
|
||||
@@ -197,15 +197,6 @@ public class TrustInterfaceService extends LineageSystemService {
|
||||
}
|
||||
|
||||
private void runTestInternal() {
|
||||
- int selinuxStatus = getSELinuxStatus();
|
||||
- if (selinuxStatus != TrustInterface.TRUST_FEATURE_LEVEL_GOOD) {
|
||||
- postNotificationForFeatureInternal(TrustInterface.TRUST_WARN_SELINUX);
|
||||
- }
|
||||
-
|
||||
- int keysStatus = getKeysStatus();
|
||||
- if (keysStatus != TrustInterface.TRUST_FEATURE_LEVEL_GOOD) {
|
||||
- postNotificationForFeatureInternal(TrustInterface.TRUST_WARN_PUBLIC_KEY);
|
||||
- }
|
||||
}
|
||||
|
||||
/* Utils */
|
||||
--
|
||||
2.7.4
|
||||
|
@ -0,0 +1,30 @@
|
||||
From c2a1592dde677fa4e9ee2c3ebe0585e51aee43ef Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 1 Jul 2019 07:03:04 +0000
|
||||
Subject: [PATCH] vendor_lineage: Ignore neverallows... again
|
||||
|
||||
Because unofficial builds are better than no builds!
|
||||
|
||||
Change-Id: I4b19d09b28f79c6f5020bf03fdf8931145bca03a
|
||||
---
|
||||
build/core/config.mk | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/build/core/config.mk b/build/core/config.mk
|
||||
index f2e595ff..d6d036a9 100644
|
||||
--- a/build/core/config.mk
|
||||
+++ b/build/core/config.mk
|
||||
@@ -20,5 +20,10 @@ FRAMEWORK_LINEAGE_PLATFORM_API_FILE := $(TOPDIR)lineage-sdk/api/lineage_current.
|
||||
FRAMEWORK_LINEAGE_PLATFORM_REMOVED_API_FILE := $(TOPDIR)lineage-sdk/api/lineage_removed.txt
|
||||
FRAMEWORK_LINEAGE_API_NEEDS_UPDATE_TEXT := $(TOPDIR)vendor/lineage/build/core/apicheck_msg_current.txt
|
||||
|
||||
+# We modify several neverallows, so let the build proceed
|
||||
+ifneq ($(TARGET_BUILD_VARIANT),user)
|
||||
+SELINUX_IGNORE_NEVERALLOWS := true
|
||||
+endif
|
||||
+
|
||||
# Rules for QCOM targets
|
||||
include $(TOPDIR)vendor/lineage/build/core/qcom_target.mk
|
||||
--
|
||||
2.17.1
|
||||
|
@ -1,132 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
OUTFILE="$1"
|
||||
|
||||
if [ -z "$OUTFILE" ]; then
|
||||
OUTFILE="signed-target_files.zip"
|
||||
fi
|
||||
|
||||
sign_target_files_apks -o -d ~/.android-certs --allow_gsi_debug_sepolicy \
|
||||
--extra_apks AdServicesApk.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks FederatedCompute.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks HalfSheetUX.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks HealthConnectBackupRestore.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks HealthConnectController.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks OsuLogin.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks SafetyCenterResources.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks ServiceConnectivityResources.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks ServiceUwbResources.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks ServiceWifiResources.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks WifiDialog.apk=$HOME/.android-certs/releasekey \
|
||||
--extra_apks com.android.adbd.apex=$HOME/.android-certs/com.android.adbd \
|
||||
--extra_apks com.android.adservices.apex=$HOME/.android-certs/com.android.adservices \
|
||||
--extra_apks com.android.adservices.api.apex=$HOME/.android-certs/com.android.adservices.api \
|
||||
--extra_apks com.android.appsearch.apex=$HOME/.android-certs/com.android.appsearch \
|
||||
--extra_apks com.android.art.apex=$HOME/.android-certs/com.android.art \
|
||||
--extra_apks com.android.bluetooth.apex=$HOME/.android-certs/com.android.bluetooth \
|
||||
--extra_apks com.android.btservices.apex=$HOME/.android-certs/com.android.btservices \
|
||||
--extra_apks com.android.cellbroadcast.apex=$HOME/.android-certs/com.android.cellbroadcast \
|
||||
--extra_apks com.android.compos.apex=$HOME/.android-certs/com.android.compos \
|
||||
--extra_apks com.android.configinfrastructure.apex=$HOME/.android-certs/com.android.configinfrastructure \
|
||||
--extra_apks com.android.connectivity.resources.apex=$HOME/.android-certs/com.android.connectivity.resources \
|
||||
--extra_apks com.android.conscrypt.apex=$HOME/.android-certs/com.android.conscrypt \
|
||||
--extra_apks com.android.devicelock.apex=$HOME/.android-certs/com.android.devicelock \
|
||||
--extra_apks com.android.extservices.apex=$HOME/.android-certs/com.android.extservices \
|
||||
--extra_apks com.android.graphics.pdf.apex=$HOME/.android-certs/com.android.graphics.pdf \
|
||||
--extra_apks com.android.hardware.biometrics.face.virtual.apex=$HOME/.android-certs/com.android.hardware.biometrics.face.virtual \
|
||||
--extra_apks com.android.hardware.biometrics.fingerprint.virtual.apex=$HOME/.android-certs/com.android.hardware.biometrics.fingerprint.virtual \
|
||||
--extra_apks com.android.hardware.boot.apex=$HOME/.android-certs/com.android.hardware.boot \
|
||||
--extra_apks com.android.hardware.cas.apex=$HOME/.android-certs/com.android.hardware.cas \
|
||||
--extra_apks com.android.hardware.wifi.apex=$HOME/.android-certs/com.android.hardware.wifi \
|
||||
--extra_apks com.android.healthfitness.apex=$HOME/.android-certs/com.android.healthfitness \
|
||||
--extra_apks com.android.hotspot2.osulogin.apex=$HOME/.android-certs/com.android.hotspot2.osulogin \
|
||||
--extra_apks com.android.i18n.apex=$HOME/.android-certs/com.android.i18n \
|
||||
--extra_apks com.android.ipsec.apex=$HOME/.android-certs/com.android.ipsec \
|
||||
--extra_apks com.android.media.apex=$HOME/.android-certs/com.android.media \
|
||||
--extra_apks com.android.media.swcodec.apex=$HOME/.android-certs/com.android.media.swcodec \
|
||||
--extra_apks com.android.mediaprovider.apex=$HOME/.android-certs/com.android.mediaprovider \
|
||||
--extra_apks com.android.nearby.halfsheet.apex=$HOME/.android-certs/com.android.nearby.halfsheet \
|
||||
--extra_apks com.android.networkstack.tethering.apex=$HOME/.android-certs/com.android.networkstack.tethering \
|
||||
--extra_apks com.android.neuralnetworks.apex=$HOME/.android-certs/com.android.neuralnetworks \
|
||||
--extra_apks com.android.ondevicepersonalization.apex=$HOME/.android-certs/com.android.ondevicepersonalization \
|
||||
--extra_apks com.android.os.statsd.apex=$HOME/.android-certs/com.android.os.statsd \
|
||||
--extra_apks com.android.permission.apex=$HOME/.android-certs/com.android.permission \
|
||||
--extra_apks com.android.resolv.apex=$HOME/.android-certs/com.android.resolv \
|
||||
--extra_apks com.android.rkpd.apex=$HOME/.android-certs/com.android.rkpd \
|
||||
--extra_apks com.android.runtime.apex=$HOME/.android-certs/com.android.runtime \
|
||||
--extra_apks com.android.safetycenter.resources.apex=$HOME/.android-certs/com.android.safetycenter.resources \
|
||||
--extra_apks com.android.scheduling.apex=$HOME/.android-certs/com.android.scheduling \
|
||||
--extra_apks com.android.sdkext.apex=$HOME/.android-certs/com.android.sdkext \
|
||||
--extra_apks com.android.support.apexer.apex=$HOME/.android-certs/com.android.support.apexer \
|
||||
--extra_apks com.android.telephony.apex=$HOME/.android-certs/com.android.telephony \
|
||||
--extra_apks com.android.telephonymodules.apex=$HOME/.android-certs/com.android.telephonymodules \
|
||||
--extra_apks com.android.tethering.apex=$HOME/.android-certs/com.android.tethering \
|
||||
--extra_apks com.android.tzdata.apex=$HOME/.android-certs/com.android.tzdata \
|
||||
--extra_apks com.android.uwb.apex=$HOME/.android-certs/com.android.uwb \
|
||||
--extra_apks com.android.uwb.resources.apex=$HOME/.android-certs/com.android.uwb.resources \
|
||||
--extra_apks com.android.virt.apex=$HOME/.android-certs/com.android.virt \
|
||||
--extra_apks com.android.vndk.current.apex=$HOME/.android-certs/com.android.vndk.current \
|
||||
--extra_apks com.android.vndk.current.on_vendor.apex=$HOME/.android-certs/com.android.vndk.current.on_vendor \
|
||||
--extra_apks com.android.wifi.apex=$HOME/.android-certs/com.android.wifi \
|
||||
--extra_apks com.android.wifi.dialog.apex=$HOME/.android-certs/com.android.wifi.dialog \
|
||||
--extra_apks com.android.wifi.resources.apex=$HOME/.android-certs/com.android.wifi.resources \
|
||||
--extra_apks com.google.pixel.camera.hal.apex=$HOME/.android-certs/com.google.pixel.camera.hal \
|
||||
--extra_apks com.google.pixel.vibrator.hal.apex=$HOME/.android-certs/com.google.pixel.vibrator.hal \
|
||||
--extra_apks com.qorvo.uwb.apex=$HOME/.android-certs/com.qorvo.uwb \
|
||||
--extra_apex_payload_key com.android.adbd.apex=$HOME/.android-certs/com.android.adbd.pem \
|
||||
--extra_apex_payload_key com.android.adservices.apex=$HOME/.android-certs/com.android.adservices.pem \
|
||||
--extra_apex_payload_key com.android.adservices.api.apex=$HOME/.android-certs/com.android.adservices.api.pem \
|
||||
--extra_apex_payload_key com.android.appsearch.apex=$HOME/.android-certs/com.android.appsearch.pem \
|
||||
--extra_apex_payload_key com.android.art.apex=$HOME/.android-certs/com.android.art.pem \
|
||||
--extra_apex_payload_key com.android.bluetooth.apex=$HOME/.android-certs/com.android.bluetooth.pem \
|
||||
--extra_apex_payload_key com.android.btservices.apex=$HOME/.android-certs/com.android.btservices.pem \
|
||||
--extra_apex_payload_key com.android.cellbroadcast.apex=$HOME/.android-certs/com.android.cellbroadcast.pem \
|
||||
--extra_apex_payload_key com.android.compos.apex=$HOME/.android-certs/com.android.compos.pem \
|
||||
--extra_apex_payload_key com.android.configinfrastructure.apex=$HOME/.android-certs/com.android.configinfrastructure.pem \
|
||||
--extra_apex_payload_key com.android.connectivity.resources.apex=$HOME/.android-certs/com.android.connectivity.resources.pem \
|
||||
--extra_apex_payload_key com.android.conscrypt.apex=$HOME/.android-certs/com.android.conscrypt.pem \
|
||||
--extra_apex_payload_key com.android.devicelock.apex=$HOME/.android-certs/com.android.devicelock.pem \
|
||||
--extra_apex_payload_key com.android.extservices.apex=$HOME/.android-certs/com.android.extservices.pem \
|
||||
--extra_apex_payload_key com.android.graphics.pdf.apex=$HOME/.android-certs/com.android.graphics.pdf.pem \
|
||||
--extra_apex_payload_key com.android.hardware.biometrics.face.virtual.apex=$HOME/.android-certs/com.android.hardware.biometrics.face.virtual.pem \
|
||||
--extra_apex_payload_key com.android.hardware.biometrics.fingerprint.virtual.apex=$HOME/.android-certs/com.android.hardware.biometrics.fingerprint.virtual.pem \
|
||||
--extra_apex_payload_key com.android.hardware.boot.apex=$HOME/.android-certs/com.android.hardware.boot.pem \
|
||||
--extra_apex_payload_key com.android.hardware.cas.apex=$HOME/.android-certs/com.android.hardware.cas.pem \
|
||||
--extra_apex_payload_key com.android.hardware.wifi.apex=$HOME/.android-certs/com.android.hardware.wifi.pem \
|
||||
--extra_apex_payload_key com.android.healthfitness.apex=$HOME/.android-certs/com.android.healthfitness.pem \
|
||||
--extra_apex_payload_key com.android.hotspot2.osulogin.apex=$HOME/.android-certs/com.android.hotspot2.osulogin.pem \
|
||||
--extra_apex_payload_key com.android.i18n.apex=$HOME/.android-certs/com.android.i18n.pem \
|
||||
--extra_apex_payload_key com.android.ipsec.apex=$HOME/.android-certs/com.android.ipsec.pem \
|
||||
--extra_apex_payload_key com.android.media.apex=$HOME/.android-certs/com.android.media.pem \
|
||||
--extra_apex_payload_key com.android.media.swcodec.apex=$HOME/.android-certs/com.android.media.swcodec.pem \
|
||||
--extra_apex_payload_key com.android.mediaprovider.apex=$HOME/.android-certs/com.android.mediaprovider.pem \
|
||||
--extra_apex_payload_key com.android.nearby.halfsheet.apex=$HOME/.android-certs/com.android.nearby.halfsheet.pem \
|
||||
--extra_apex_payload_key com.android.networkstack.tethering.apex=$HOME/.android-certs/com.android.networkstack.tethering.pem \
|
||||
--extra_apex_payload_key com.android.neuralnetworks.apex=$HOME/.android-certs/com.android.neuralnetworks.pem \
|
||||
--extra_apex_payload_key com.android.ondevicepersonalization.apex=$HOME/.android-certs/com.android.ondevicepersonalization.pem \
|
||||
--extra_apex_payload_key com.android.os.statsd.apex=$HOME/.android-certs/com.android.os.statsd.pem \
|
||||
--extra_apex_payload_key com.android.permission.apex=$HOME/.android-certs/com.android.permission.pem \
|
||||
--extra_apex_payload_key com.android.resolv.apex=$HOME/.android-certs/com.android.resolv.pem \
|
||||
--extra_apex_payload_key com.android.rkpd.apex=$HOME/.android-certs/com.android.rkpd.pem \
|
||||
--extra_apex_payload_key com.android.runtime.apex=$HOME/.android-certs/com.android.runtime.pem \
|
||||
--extra_apex_payload_key com.android.safetycenter.resources.apex=$HOME/.android-certs/com.android.safetycenter.resources.pem \
|
||||
--extra_apex_payload_key com.android.scheduling.apex=$HOME/.android-certs/com.android.scheduling.pem \
|
||||
--extra_apex_payload_key com.android.sdkext.apex=$HOME/.android-certs/com.android.sdkext.pem \
|
||||
--extra_apex_payload_key com.android.support.apexer.apex=$HOME/.android-certs/com.android.support.apexer.pem \
|
||||
--extra_apex_payload_key com.android.telephony.apex=$HOME/.android-certs/com.android.telephony.pem \
|
||||
--extra_apex_payload_key com.android.telephonymodules.apex=$HOME/.android-certs/com.android.telephonymodules.pem \
|
||||
--extra_apex_payload_key com.android.tethering.apex=$HOME/.android-certs/com.android.tethering.pem \
|
||||
--extra_apex_payload_key com.android.tzdata.apex=$HOME/.android-certs/com.android.tzdata.pem \
|
||||
--extra_apex_payload_key com.android.uwb.apex=$HOME/.android-certs/com.android.uwb.pem \
|
||||
--extra_apex_payload_key com.android.uwb.resources.apex=$HOME/.android-certs/com.android.uwb.resources.pem \
|
||||
--extra_apex_payload_key com.android.virt.apex=$HOME/.android-certs/com.android.virt.pem \
|
||||
--extra_apex_payload_key com.android.vndk.current.apex=$HOME/.android-certs/com.android.vndk.current.pem \
|
||||
--extra_apex_payload_key com.android.vndk.current.on_vendor.apex=$HOME/.android-certs/com.android.vndk.current.on_vendor.pem \
|
||||
--extra_apex_payload_key com.android.wifi.apex=$HOME/.android-certs/com.android.wifi.pem \
|
||||
--extra_apex_payload_key com.android.wifi.dialog.apex=$HOME/.android-certs/com.android.wifi.dialog.pem \
|
||||
--extra_apex_payload_key com.android.wifi.resources.apex=$HOME/.android-certs/com.android.wifi.resources.pem \
|
||||
--extra_apex_payload_key com.google.pixel.camera.hal.apex=$HOME/.android-certs/com.google.pixel.camera.hal.pem \
|
||||
--extra_apex_payload_key com.google.pixel.vibrator.hal.apex=$HOME/.android-certs/com.google.pixel.vibrator.hal.pem \
|
||||
--extra_apex_payload_key com.qorvo.uwb.apex=$HOME/.android-certs/com.qorvo.uwb.pem \
|
||||
$OUT/obj/PACKAGING/target_files_intermediates/*-target_files*.zip \
|
||||
$OUTFILE
|
Loading…
x
Reference in New Issue
Block a user