Created
April 12, 2025 13:48
-
-
Save dgleba/72059dfd4937a6efbf3094baaf4870dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 410a-lineageOS 22.1 redfin | |
following: build yourself, and installation on: https://wiki.lineageos.org/devices/redfin/ | |
------------ | |
# plan.. | |
sync repo | |
add themuppets muppets.yml. repo sync vendor/google/redfin | |
breakfast redfin | |
brunch redfin | |
------------ | |
# setup.. | |
# albe@hpz4-790:/ap/code/androidrom/lineage410$ | |
pdir=/ap/code/androidrom/lineage410 | |
mkdir -p ${pdir} | |
cd ${pdir} | |
echo ${pdir} | |
sudo apt update | |
sudo apt install -y bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev | |
sudo apt install -y git-lfs libelf-dev lz4 | |
git lfs install | |
sudo apt-get -y install android-sdk-platform-tools | |
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo | |
chmod a+x ~/bin/repo | |
------------ | |
# repo sync: | |
date | |
repo init -u https://github.com/LineageOS/android.git -b lineage-22.1 --git-lfs --no-clone-bundle | |
export USE_CCACHE=1; | |
export CCACHE_EXEC=/usr/bin/ccache; | |
ccache -M 50G; | |
ccache -o compression=true; | |
date | |
repo sync | |
date | |
------------ | |
make the muppets.xml. | |
https://luk1337.github.io/muppets/ | |
cd /ap/code/androidrom/lineage410 | |
mkdir -p .repo/local_manifests | |
fil0=.repo/local_manifests/muppets.xml | |
tee $fil0 <<- 'HEREDOC' | |
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<project name="TheMuppets/proprietary_vendor_google_redfin" path="vendor/google/redfin" remote="github"/> | |
</manifest> | |
HEREDOC | |
cat $fil0 | |
rm -rf vendor/google/redfin | |
repo sync vendor/google/redfin | |
------------ | |
rm /home/albe/.cache/ccache | |
mkdir -p /home/albe/.cache/ccache/tmp | |
cd /home/albe/.cache/ccache/; ll; | |
ccache -p | grep _dir | |
------------ | |
# redfin build... | |
#cd /ap/code/androidrom/lineage410/ | |
cd ${pdir} | |
echo ${pdir} | |
swapon --show; | |
export USE_CCACHE=1; | |
export CCACHE_EXEC=/usr/bin/ccache; | |
ccache -M 52G; | |
ccache -o compression=true; | |
date; sleep 3; echo dgenv1..; | |
source build/envsetup.sh | |
date; sleep 1;echo dgrm..; | |
rm -rf out; | |
date; sleep 6; echo dgbrkfst redf..; | |
breakfast redfin; | |
date | |
------------ | |
date; sleep 1; | |
#cd /ap/code/androidrom/lineage406f | |
cd ${pdir} | |
echo ${pdir} | |
date; sleep 1; echo dgbrunc, redf..; | |
croot | |
brunch redfin | |
#no. it won't work.. mka SystemUI | |
date | |
================================================= | |
2025-04-11 20:35:04 - common.py - INFO : Running: "java -Xmx4096m -Djava.library.path=out/host/linux-x86/lib64 -jar out/host/linux-x86/framework/s | |
ignapk.jar -w build/make/target/product/security/testkey.x509.pem build/make/target/product/security/testkey.pk8 /ap/code/androidrom/lineage410/out/soo | |
ng/.temp/tmpdsifvrhz.zip out/target/product/redfin/lineage_redfin-ota.zip" | |
2025-04-11 20:35:07 - ota_from_target_files.py - INFO : done. | |
[100% 200921/200921] build out/target/product/redfin/lineage-22.1-20250411-UNOFFICIAL-redfin.zip | |
Package Complete: out/target/product/redfin/lineage-22.1-20250411-UNOFFICIAL-redfin.zip | |
#### build completed successfully (07:32:56 (hh:mm:ss)) #### | |
Fri 11 Apr 2025 08:35:14 PM EDT | |
albe@hpz4-790:/ap/code/androidrom/lineage410$ | |
------------ | |
success | |
albe@hpz4-790:/ap/code/androidrom/lineage410/out/target/product/redfin$ ll l* | |
-rw-rw-r-- 2 albe albe 1168534239 Apr 11 20:35 lineage-22.1-20250411-UNOFFICIAL-redfin.zip | |
-rw-rw-r-- 1 albe albe 110 Apr 11 20:35 lineage-22.1-20250411-UNOFFICIAL-redfin.zip.sha256sum | |
-rw-rw-r-- 2 albe albe 1168534239 Apr 11 20:35 lineage_redfin-ota.zip | |
albe@hpz4-790:/ap/code/androidrom/lineage410/out/target/product/redfin$ | |
------------ | |
albe@hpz4-790:/ap/code/androidrom/lineage410$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
tmpfs 3.2G 2.4M 3.2G 1% /run | |
/dev/sdc1 902G 314G 543G 37% / | |
tmpfs 16G 11M 16G 1% /dev/shm | |
tmpfs 5.0M 4.0K 5.0M 1% /run/lock | |
efivarfs 246K 164K 78K 68% /sys/firmware/efi/efivars | |
/dev/sdc2 1.1G 6.1M 1.1G 1% /boot/efi | |
tmpfs 3.2G 144K 3.2G 1% /run/user/1000 | |
albe@hpz4-790:/ap/code/androidrom/lineage410$ | |
================================================= | |
2025-04-11_Fri_21.45-PM | |
adb. | |
Download the LineageOS zip file that you would like to install or build the package yourself. | |
If you are not in recovery, reboot into recovery: With the device powered off, hold Volume Down + Power. Then use the menu to select Recovery Mode. | |
Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. | |
On the device, select “Apply Update”, then “Apply from ADB” to begin sideload. | |
On the host machine, sideload the package using: adb -d sideload filename.zip. | |
adb reboot recovery | |
unmodified dg build.. | |
adb -d sideload /ap/code/androidrom/lineage410/out/target/product/redfin/lineage-22.1-20250412-UNOFFICIAL-redfin-0735.zip | |
cd /ap/code/androidrom/lineage410/out/target/product/redfin/ | |
================================================= | |
issue: | |
can't set pin. | |
I built 22.1 redfin as is with no changes. Later I will hide the clock. Flashed it. I can't set pin. message: "screen lock was already changed. try again with the new screen lock." | |
================================================= | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment