From 768c3d4bb298b248a3f7ce7e31d2c06dbd38b319 Mon Sep 17 00:00:00 2001 From: Jashaswimalya Acharjee <31704400+jash-maester@users.noreply.github.com> Date: Sun, 2 May 2021 11:52:44 +0530 Subject: [PATCH 1/2] fixup-mountpoints: Add Moto Z2 Play (albus) --- fixup-mountpoints | 1655 ++++++++++++++++++++------------------------- 1 file changed, 723 insertions(+), 932 deletions(-) diff --git a/fixup-mountpoints b/fixup-mountpoints index 72f15ef..0199c92 100755 --- a/fixup-mountpoints +++ b/fixup-mountpoints @@ -14,109 +14,400 @@ shift echo "Fixing mount-points for device $DEVICE" case "$DEVICE" in - "bb") + "pdx201") sed -i \ - -e 's block/by-name/boot mmcblk0p1 ' \ - -e 's block/by-name/factory mmcblk0p12 ' \ - -e 's block/by-name/misc mmcblk0p13 ' \ - -e 's block/by-name/cache mmcblk0p15 ' \ - -e 's block/by-name/system mmcblk0p17 ' \ - -e 's block/by-name/data mmcblk0p18 ' \ - "$@" - ;; - - "karin" | "karin_windy") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p03 ' \ - -e 's block/bootdevice/by-name/diag mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p31 ' \ - "$@" - ;; - - "suzu" | "kugo" | "blanc") - sed -i \ - -e 's block/bootdevice/by-name/cache mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p52 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p51 ' \ - "$@" - ;; - - "serranodsdd") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p21 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p22 ' \ - -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p10 ' \ - -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p19 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p01 ' \ - "$@" - ;; - - # Careful with tone devices! The partitions differ between at least dora and kagura! - "kagura") - sed -i \ - -e 's block/bootdevice/by-name/FOTAKernel mmcblk0p48 ' \ - -e 's block/bootdevice/by-name/LTALabel mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/Qnovo mmcblk0p52 ' \ + -e 's block/bootdevice/by-name/LTALabel mmcblk0p3 ' \ -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/aboot mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/abootbak mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/apps_log mmcblk0p50 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/cmnlib mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/cmnlib64bak mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/ddr mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/devcfg mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/devcfgbak mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/diag mmcblk0p51 ' \ - -e 's block/bootdevice/by-name/dpo mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/frp mmcblk0p46 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/hyp mmcblk0p9 ' \ - -e 's block/bootdevice/by-name/hypbak mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/keymaster mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/keymasterbak mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p45 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/msadp mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p53 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/pmic mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/pmicbak mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/rdimage mmcblk0p49 ' \ - -e 's block/bootdevice/by-name/rpm mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/rpmbak mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/s1sbl mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/s1sblbak mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/sec mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/sti mmcblk0p47 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p55 ' \ - -e 's block/bootdevice/by-name/tz mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/tzbak mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/tzs1attest mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/tzs1attestbak mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/tzs1sbl mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/tzs1sblbak mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p54 ' \ - -e 's block/bootdevice/by-name/xbl mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/xblbak mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/abl_a mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/abl_b mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p53 ' \ + -e 's block/bootdevice/by-name/appslog mmcblk0p64 ' \ + -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p46 ' \ + -e 's block/bootdevice/by-name/bluetooth_b mmcblk0p47 ' \ + -e 's block/bootdevice/by-name/boot_a mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/boot_b mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/cmnlib64_a mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/cmnlib64_b mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/cmnlib_a mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/cmnlib_b mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \ + -e 's block/bootdevice/by-name/devcfg_a mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/devcfg_b mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p52 ' \ + -e 's block/bootdevice/by-name/diag mmcblk0p65 ' \ + -e 's block/bootdevice/by-name/dsp_a mmcblk0p50 ' \ + -e 's block/bootdevice/by-name/dsp_b mmcblk0p51 ' \ + -e 's block/bootdevice/by-name/dtbo_a mmcblk0p79 ' \ + -e 's block/bootdevice/by-name/dtbo_b mmcblk0p80 ' \ + -e 's block/bootdevice/by-name/frp mmcblk0p61 ' \ + -e 's block/bootdevice/by-name/fsc mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/hyp_a mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/hyp_b mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/imagefv_a mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/imagefv_b mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/keymaster_a mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/keymaster_b mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p63 ' \ + -e 's block/bootdevice/by-name/limits mmcblk0p55 ' \ + -e 's block/bootdevice/by-name/logdump mmcblk0p68 ' \ + -e 's block/bootdevice/by-name/logfs mmcblk0p57 ' \ + -e 's block/bootdevice/by-name/metadata mmcblk0p66 ' \ + -e 's block/by-name/metadata mmcblk0p66 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p62 ' \ + -e 's block/bootdevice/by-name/modem_a mmcblk0p48 ' \ + -e 's block/bootdevice/by-name/modem_b mmcblk0p49 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/multiimgoem_a mmcblk0p71 ' \ + -e 's block/bootdevice/by-name/multiimgoem_b mmcblk0p72 ' \ + -e 's block/bootdevice/by-name/multiimgqti_a mmcblk0p73 ' \ + -e 's block/bootdevice/by-name/multiimgqti_b mmcblk0p74 ' \ + -e 's block/bootdevice/by-name/oem_a mmcblk0p83 ' \ + -e 's block/by-name/oem_a mmcblk0p83 ' \ + -e 's block/bootdevice/by-name/oem_b mmcblk0p84 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/qupfw_a mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/qupfw_b mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/rddata mmcblk0p87 ' \ + -e 's block/bootdevice/by-name/rdimage_a mmcblk0p81 ' \ + -e 's block/bootdevice/by-name/rdimage_b mmcblk0p82 ' \ + -e 's block/bootdevice/by-name/recovery_a mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/recovery_b mmcblk0p45 ' \ + -e 's block/bootdevice/by-name/rpm_a mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/rpm_b mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/secdata mmcblk0p69 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p54 ' \ + -e 's block/bootdevice/by-name/spunvm mmcblk0p67 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p60 ' \ + -e 's block/bootdevice/by-name/storsec mmcblk0p58 ' \ + -e 's block/bootdevice/by-name/super mmcblk0p85 ' \ + -e 's block/bootdevice/by-name/toolsfv mmcblk0p56 ' \ + -e 's block/bootdevice/by-name/tz_a mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/tz_b mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/tzxfl_a mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/tzxfl_b mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/tzxflattest_a mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/tzxflattest_b mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/uefisecapp_a mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/uefisecapp_b mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/uefivarstore mmcblk0p70 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p86 ' \ + -e 's block/bootdevice/by-name/vbmeta_a mmcblk0p75 ' \ + -e 's block/bootdevice/by-name/vbmeta_b mmcblk0p76 ' \ + -e 's block/bootdevice/by-name/vbmeta_system_a mmcblk0p77 ' \ + -e 's block/bootdevice/by-name/vbmeta_system_b mmcblk0p78 ' \ + -e 's block/bootdevice/by-name/xbl_a mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/xbl_b mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/xbl_config_a mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/xbl_config_b mmcblk0p9 ' \ + -e 's block/bootdevice/by-name/xfl_a mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/xfl_b mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/xflkeystore mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p5 ' \ + "$@" + ;; + + "kirin"|"mermaid") + sed -i \ + -e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/abl_a mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/abl_b mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p48 ' \ + -e 's block/bootdevice/by-name/appslog mmcblk0p63 ' \ + -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/bluetooth_b mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/boot_a mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/boot_b mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/cmnlib64_a mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/cmnlib64_b mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/cmnlib_a mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/cmnlib_b mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/ddr mmcblk0p55 ' \ + -e 's block/bootdevice/by-name/devcfg_a mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/devcfg_b mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p47 ' \ + -e 's block/bootdevice/by-name/diag mmcblk0p64 ' \ + -e 's block/bootdevice/by-name/dip mmcblk0p46 ' \ + -e 's block/bootdevice/by-name/dpo mmcblk0p50 ' \ + -e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/dsp_b mmcblk0p45 ' \ + -e 's block/bootdevice/by-name/frp mmcblk0p58 ' \ + -e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/fsmetadata mmcblk0p62 ' \ + -e 's block/bootdevice/by-name/hyp_a mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/hyp_b mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/keymaster_a mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/keymaster_b mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p61 ' \ + -e 's block/bootdevice/by-name/limits mmcblk0p52 ' \ + -e 's block/bootdevice/by-name/logfs mmcblk0p54 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p60 ' \ + -e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/modem_b mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/msadp mmcblk0p49 ' \ + -e 's block/bootdevice/by-name/oem_a mmcblk0p67 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p67 ' \ + -e 's block/bootdevice/by-name/oem_b mmcblk0p68 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/pmic_a mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/pmic_b mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/rddata mmcblk0p74 ' \ + -e 's block/bootdevice/by-name/rdimage_a mmcblk0p65 ' \ + -e 's block/bootdevice/by-name/rdimage_b mmcblk0p66 ' \ + -e 's block/bootdevice/by-name/rpm_a mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/rpm_b mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/sec mmcblk0p56 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p51 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p57 ' \ + -e 's block/bootdevice/by-name/sti mmcblk0p59 ' \ + -e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/system_a mmcblk0p71 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p71 ' \ + -e 's block/bootdevice/by-name/system_b mmcblk0p72 ' \ + -e 's block/bootdevice/by-name/toolsfv mmcblk0p53 ' \ + -e 's block/bootdevice/by-name/tz_a mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/tz_b mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/tzxfl_a mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/tzxfl_b mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/tzxflattest_a mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/tzxflattest_b mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p73 ' \ + -e 's block/bootdevice/by-name/vendor_a mmcblk0p69 ' \ + -e 's block/bootdevice/by-name/vendor mmcblk0p69 ' \ + -e 's block/bootdevice/by-name/vendor_b mmcblk0p70 ' \ + -e 's block/bootdevice/by-name/xbl_a mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/xbl_b mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/xfl_a mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/xfl_b mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \ + "$@" + ;; + + "pioneer"|"discovery"|"voyager") + sed -i \ + -e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/Qnovo mmcblk0p75 ' \ + -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/abl mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p52 ' \ + -e 's block/bootdevice/by-name/appslog mmcblk0p73 ' \ + -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/cmnlib mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \ + -e 's block/bootdevice/by-name/devcfg mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p51 ' \ + -e 's block/bootdevice/by-name/diag mmcblk0p74 ' \ + -e 's block/bootdevice/by-name/dip mmcblk0p50 ' \ + -e 's block/bootdevice/by-name/dpo mmcblk0p54 ' \ + -e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/frp mmcblk0p62 ' \ + -e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/fsmetadata mmcblk0p72 ' \ + -e 's block/bootdevice/by-name/hyp mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/keymaster mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p67 ' \ + -e 's block/bootdevice/by-name/limits mmcblk0p56 ' \ + -e 's block/bootdevice/by-name/logfs mmcblk0p58 ' \ + -e 's block/bootdevice/by-name/mdtp mmcblk0p48 ' \ + -e 's block/bootdevice/by-name/mdtpsecapp mmcblk0p46 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p64 ' \ + -e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/msadp mmcblk0p53 ' \ + -e 's block/bootdevice/by-name/oem_a mmcblk0p68 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/pmic mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/rddata mmcblk0p77 ' \ + -e 's block/bootdevice/by-name/rdimage mmcblk0p65 ' \ + -e 's block/bootdevice/by-name/rpm mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/sec mmcblk0p60 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p55 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p61 ' \ + -e 's block/bootdevice/by-name/sti mmcblk0p63 ' \ + -e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p78 ' \ + -e 's block/bootdevice/by-name/toolsfv mmcblk0p57 ' \ + -e 's block/bootdevice/by-name/tz mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/tzxfl mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/tzxflattest mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p76 ' \ + -e 's block/bootdevice/by-name/vendor mmcblk0p70 ' \ + -e 's block/bootdevice/by-name/xbl mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/xfl mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \ + "$@" + ;; + + "akari") + sed -i \ + -e 's block/bootdevice/by-name/LTALabel sda2 ' \ + -e 's block/bootdevice/by-name/Qnovo sda70 ' \ + -e 's block/bootdevice/by-name/TA sda1 ' \ + -e 's block/bootdevice/by-name/abl_a sda12 ' \ + -e 's block/bootdevice/by-name/abl_b sda24 ' \ + -e 's block/bootdevice/by-name/aop_a sda9 ' \ + -e 's block/bootdevice/by-name/aop_b sda21 ' \ + -e 's block/bootdevice/by-name/apdp sda54 ' \ + -e 's block/bootdevice/by-name/appslog sda68 ' \ + -e 's block/bootdevice/by-name/bluetooth_a sda34 ' \ + -e 's block/bootdevice/by-name/bluetooth sda34 ' \ + -e 's block/bootdevice/by-name/bluetooth_b sda44 ' \ + -e 's block/bootdevice/by-name/boot_a sda36 ' \ + -e 's block/bootdevice/by-name/boot_b sda46 ' \ + -e 's block/bootdevice/by-name/cdt sda64 ' \ + -e 's block/bootdevice/by-name/cmnlib64_a sda15 ' \ + -e 's block/bootdevice/by-name/cmnlib64_b sda27 ' \ + -e 's block/bootdevice/by-name/cmnlib_a sda14 ' \ + -e 's block/bootdevice/by-name/cmnlib_b sda26 ' \ + -e 's block/bootdevice/by-name/ddr sda8 ' \ + -e 's block/bootdevice/by-name/devcfg_a sda16 ' \ + -e 's block/bootdevice/by-name/devcfg_b sda28 ' \ + -e 's block/bootdevice/by-name/devinfo sda7 ' \ + -e 's block/bootdevice/by-name/diag sda69 ' \ + -e 's block/bootdevice/by-name/dsp_a sda35 ' \ + -e 's block/bootdevice/by-name/dsp sda35 ' \ + -e 's block/bootdevice/by-name/dsp_b sda45 ' \ + -e 's block/bootdevice/by-name/dtbo_a sda39 ' \ + -e 's block/bootdevice/by-name/dtbo_b sda49 ' \ + -e 's block/bootdevice/by-name/frp sda67 ' \ + -e 's block/bootdevice/by-name/fsc sda72 ' \ + -e 's block/bootdevice/by-name/fsg sda63 ' \ + -e 's block/bootdevice/by-name/fsmetadata sda71 ' \ + -e 's block/bootdevice/by-name/hyp_a sda11 ' \ + -e 's block/bootdevice/by-name/hyp_b sda23 ' \ + -e 's block/bootdevice/by-name/keymaster_a sda13 ' \ + -e 's block/bootdevice/by-name/keymaster_b sda25 ' \ + -e 's block/bootdevice/by-name/keystore sda66 ' \ + -e 's block/bootdevice/by-name/limits sda57 ' \ + -e 's block/bootdevice/by-name/logdump sda60 ' \ + -e 's block/bootdevice/by-name/logfs sda59 ' \ + -e 's block/bootdevice/by-name/misc sda65 ' \ + -e 's block/bootdevice/by-name/modem_a sda33 ' \ + -e 's block/bootdevice/by-name/modem sda33 ' \ + -e 's block/bootdevice/by-name/modem_b sda43 ' \ + -e 's block/bootdevice/by-name/modemst1 sda61 ' \ + -e 's block/bootdevice/by-name/modemst2 sda62 ' \ + -e 's block/bootdevice/by-name/msadp sda55 ' \ + -e 's block/bootdevice/by-name/oem_a sda40 ' \ + -e 's block/bootdevice/by-name/oem sda40 ' \ + -e 's block/bootdevice/by-name/oem_b sda50 ' \ + -e 's block/bootdevice/by-name/persist sda5 ' \ + -e 's block/bootdevice/by-name/qupfw_a sda17 ' \ + -e 's block/bootdevice/by-name/qupfw_b sda29 ' \ + -e 's block/bootdevice/by-name/rddata sda74 ' \ + -e 's block/bootdevice/by-name/rdimage_a sda37 ' \ + -e 's block/bootdevice/by-name/rdimage_b sda47 ' \ + -e 's block/bootdevice/by-name/sec sda53 ' \ + -e 's block/bootdevice/by-name/spunvm sda56 ' \ + -e 's block/bootdevice/by-name/ssd sda6 ' \ + -e 's block/bootdevice/by-name/system_a sda42 ' \ + -e 's block/bootdevice/by-name/system_b sda52 ' \ + -e 's block/bootdevice/by-name/toolsfv sda58 ' \ + -e 's block/bootdevice/by-name/tz_a sda10 ' \ + -e 's block/bootdevice/by-name/tz_b sda22 ' \ + -e 's block/bootdevice/by-name/tzxfl_a sda20 ' \ + -e 's block/bootdevice/by-name/tzxfl_b sda32 ' \ + -e 's block/bootdevice/by-name/tzxflattest_a sda19 ' \ + -e 's block/bootdevice/by-name/tzxflattest_b sda31 ' \ + -e 's block/bootdevice/by-name/userdata sda73 ' \ + -e 's block/bootdevice/by-name/vbmeta_a sda38 ' \ + -e 's block/bootdevice/by-name/vbmeta_b sda48 ' \ + -e 's block/bootdevice/by-name/vendor_a sda41 ' \ + -e 's block/bootdevice/by-name/vendor_b sda51 ' \ + -e 's block/bootdevice/by-name/xbl_a sdb1 ' \ + -e 's block/bootdevice/by-name/xbl_b sdc1 ' \ + -e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \ + -e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \ + -e 's block/bootdevice/by-name/xfl_a sda18 ' \ + -e 's block/bootdevice/by-name/xfl_b sda30 ' \ + -e 's block/bootdevice/by-name/xflkeystore sda3 ' \ + -e 's block/bootdevice/by-name/xflkeystorebak sda4 ' \ + "$@" + ;; + + "lilac") + sed -i \ + -e 's block/bootdevice/by-name/FOTAKernel sda47 ' \ + -e 's block/bootdevice/by-name/LTALabel sda2 ' \ + -e 's block/bootdevice/by-name/Qnovo sda60 ' \ + -e 's block/bootdevice/by-name/TA sda1 ' \ + -e 's block/bootdevice/by-name/abl sda11 ' \ + -e 's block/bootdevice/by-name/ablbak sda12 ' \ + -e 's block/bootdevice/by-name/apdp sda40 ' \ + -e 's block/bootdevice/by-name/appslog sda58 ' \ + -e 's block/bootdevice/by-name/bluetooth sda39 ' \ + -e 's block/bootdevice/by-name/boot sda38 ' \ + -e 's block/bootdevice/by-name/cache sda53 ' \ + -e 's block/bootdevice/by-name/cmnlib sda16 ' \ + -e 's block/bootdevice/by-name/cmnlib64 sda18 ' \ + -e 's block/bootdevice/by-name/cmnlib64bak sda19 ' \ + -e 's block/bootdevice/by-name/cmnlibbak sda17 ' \ + -e 's block/bootdevice/by-name/ddr sda48 ' \ + -e 's block/bootdevice/by-name/devcfg sda21 ' \ + -e 's block/bootdevice/by-name/devcfgbak sda22 ' \ + -e 's block/bootdevice/by-name/devinfo sda13 ' \ + -e 's block/bootdevice/by-name/diag sda59 ' \ + -e 's block/bootdevice/by-name/dpo sda42 ' \ + -e 's block/bootdevice/by-name/dsp sda37 ' \ + -e 's block/bootdevice/by-name/frp sda56 ' \ + -e 's block/bootdevice/by-name/fsc sda51 ' \ + -e 's block/bootdevice/by-name/fsg sda34 ' \ + -e 's block/bootdevice/by-name/fsmetadata sda61 ' \ + -e 's block/bootdevice/by-name/hyp sda7 ' \ + -e 's block/bootdevice/by-name/hypbak sda8 ' \ + -e 's block/bootdevice/by-name/keymaster sda14 ' \ + -e 's block/bootdevice/by-name/keymasterbak sda15 ' \ + -e 's block/bootdevice/by-name/keystore sda55 ' \ + -e 's block/bootdevice/by-name/limits sda44 ' \ + -e 's block/bootdevice/by-name/logfs sda46 ' \ + -e 's block/bootdevice/by-name/misc sda54 ' \ + -e 's block/bootdevice/by-name/modem sda36 ' \ + -e 's block/bootdevice/by-name/modemst1 sda49 ' \ + -e 's block/bootdevice/by-name/modemst2 sda50 ' \ + -e 's block/bootdevice/by-name/msadp sda41 ' \ + -e 's block/bootdevice/by-name/oem sda63 ' \ + -e 's block/bootdevice/by-name/persist sda33 ' \ + -e 's block/bootdevice/by-name/pmic sda9 ' \ + -e 's block/bootdevice/by-name/pmicbak sda10 ' \ + -e 's block/bootdevice/by-name/rdimage sda62 ' \ + -e 's block/bootdevice/by-name/rpm sda3 ' \ + -e 's block/bootdevice/by-name/rpmbak sda4 ' \ + -e 's block/bootdevice/by-name/sec sda35 ' \ + -e 's block/bootdevice/by-name/splash sda43 ' \ + -e 's block/bootdevice/by-name/ssd sda52 ' \ + -e 's block/bootdevice/by-name/sti sda20 ' \ + -e 's block/bootdevice/by-name/storsec sda23 ' \ + -e 's block/bootdevice/by-name/storsecbak sda24 ' \ + -e 's block/bootdevice/by-name/system sda65 ' \ + -e 's block/bootdevice/by-name/toolsfv sda45 ' \ + -e 's block/bootdevice/by-name/tz sda5 ' \ + -e 's block/bootdevice/by-name/tzbak sda6 ' \ + -e 's block/bootdevice/by-name/tzxfl sda29 ' \ + -e 's block/bootdevice/by-name/tzxflattest sda27 ' \ + -e 's block/bootdevice/by-name/tzxflattestbak sda28 ' \ + -e 's block/bootdevice/by-name/tzxflbak sda30 ' \ + -e 's block/bootdevice/by-name/userdata sda66 ' \ + -e 's block/bootdevice/by-name/vbmeta sda57 ' \ + -e 's block/bootdevice/by-name/vendor sda64 ' \ + -e 's block/bootdevice/by-name/xbl sdb1 ' \ + -e 's block/bootdevice/by-name/xblbak sdc1 ' \ + -e 's block/bootdevice/by-name/xfl sda25 ' \ + -e 's block/bootdevice/by-name/xflbak sda26 ' \ + -e 's block/bootdevice/by-name/xflkeystore sda31 ' \ + -e 's block/bootdevice/by-name/xflkeystorebak sda32 ' \ "$@" ;; @@ -277,16 +568,6 @@ case "$DEVICE" in "$@" ;; - "a5y17lte") - sed -i \ - -e 's platform/13540000.dwmmc0/by-name/SYSTEM mmcblk0p19 ' \ - -e 's platform/13540000.dwmmc0/by-name/CACHE mmcblk0p20 ' \ - -e 's platform/13540000.dwmmc0/by-name/USERDATA mmcblk0p25 ' \ - -e 's platform/13540000.dwmmc0/by-name/EFS mmcblk0p3 ' \ - -e 's platform/13540000.dwmmc0/by-name/HIDDEN mmcblk0p21 ' \ - "$@" - ;; - "moto_msm8960_jbbl") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \ @@ -484,10 +765,50 @@ case "$DEVICE" in "bullhead") sed -i \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/DDR mmcblk0p28 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/aboot mmcblk0p8 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/abootbak mmcblk0p14 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/apdp mmcblk0p17 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/boot mmcblk0p37 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/cache mmcblk0p40 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/cmnlib mmcblk0p33 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/cmnlibak mmcblk0p35 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/config mmcblk0p16 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/devinfo mmcblk0p43 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/dpo mmcblk0p19 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/fsc mmcblk0p20 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/fsg mmcblk0p27 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/grow mmcblk0p46 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/hyp mmcblk0p6 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/hypbak mmcblk0p12 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/imgdata mmcblk0p29 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/keymaster mmcblk0p32 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/keymasterbak mmcblk0p34 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/keystore mmcblk0p44 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/laf mmcblk0p31 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/limits mmcblk0p15 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/metadata mmcblk0p30 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/misc mmcblk0p23 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/modem mmcblk0p1 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/modemst1 mmcblk0p25 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/modemst2 mmcblk0p26 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/msadp mmcblk0p18 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/oem mmcblk0p36 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/persist mmcblk0p24 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/persistent mmcblk0p42 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/pmic mmcblk0p2 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/pmicbak mmcblk0p10 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/recovery mmcblk0p38 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/rpm mmcblk0p7 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/rpmbak mmcblk0p13 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/sbl1 mmcblk0p3 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/sbl1bak mmcblk0p9 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/sdi mmcblk0p5 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/sec mmcblk0p22 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/ssd mmcblk0p21 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/system mmcblk0p41 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/tz mmcblk0p4 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/tzbak mmcblk0p11 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/userdata mmcblk0p45 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/vendor mmcblk0p39 ' \ "$@" @@ -502,6 +823,17 @@ case "$DEVICE" in "$@" ;; + "albus") + sed -i \ + -e 's /dev/block/bootdevice/by-name/fsg /dev/block/mmcblk0p29 ' \ + -e 's /dev/block/bootdevice/by-name/modem /dev/block/mmcblk0p19 ' \ + -e 's /dev/block/bootdevice/by-name/dsp /dev/block/mmcblk0p22 ' \ + -e 's /dev/block/bootdevice/by-name/persist /dev/block/mmcblk0p30 ' \ + -e 's /dev/block/bootdevice/by-name/cache /dev/block/mmcblk0p52 ' \ + -e 's /dev/block/bootdevice/by-name/userdata /dev/block/mmcblk0p54 ' \ + "$@" + ;; + "mako") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \ @@ -578,6 +910,99 @@ case "$DEVICE" in -e 's block/platform/omap/omap_hsmmc.0/by-name/efs mmcblk0p3 ' \ "$@" ;; + + "cheeseburger"|"dumpling") + sed -i \ + -e 's block/bootdevice/by-name/LOGO sde18 ' \ + -e 's block/bootdevice/by-name/abl sde16 ' \ + -e 's block/bootdevice/by-name/ablbak sde17 ' \ + -e 's block/bootdevice/by-name/apdp sde31 ' \ + -e 's block/bootdevice/by-name/bluetooth sde24 ' \ + -e 's block/bootdevice/by-name/boot sde19 ' \ + -e 's block/bootdevice/by-name/boot_aging sde20 ' \ + -e 's block/bootdevice/by-name/cache sda3 ' \ + -e 's block/bootdevice/by-name/cdt sdd2 ' \ + -e 's block/bootdevice/by-name/cmnlib sde27 ' \ + -e 's block/bootdevice/by-name/cmnlib64 sde29 ' \ + -e 's block/bootdevice/by-name/cmnlib64bak sde30 ' \ + -e 's block/bootdevice/by-name/cmnlibbak sde28 ' \ + -e 's block/bootdevice/by-name/config sda12 ' \ + -e 's block/bootdevice/by-name/ddr sdd3 ' \ + -e 's block/bootdevice/by-name/devcfg sde39 ' \ + -e 's block/bootdevice/by-name/devinfo sde23 ' \ + -e 's block/bootdevice/by-name/dip sde14 ' \ + -e 's block/bootdevice/by-name/dpo sde33 ' \ + -e 's block/bootdevice/by-name/dsp sde11 ' \ + -e 's block/bootdevice/by-name/frp sda6 ' \ + -e 's block/bootdevice/by-name/fsc sdf4 ' \ + -e 's block/bootdevice/by-name/fsg sdf3 ' \ + -e 's block/bootdevice/by-name/fw_4g9n4 sde45 ' \ + -e 's block/bootdevice/by-name/fw_4j1ed sde43 ' \ + -e 's block/bootdevice/by-name/fw_4t0n8 sde46 ' \ + -e 's block/bootdevice/by-name/fw_8v1ee sde44 ' \ + -e 's block/bootdevice/by-name/hyp sde5 ' \ + -e 's block/bootdevice/by-name/hypbak sde6 ' \ + -e 's block/bootdevice/by-name/keymaster sde25 ' \ + -e 's block/bootdevice/by-name/keymasterbak sde26 ' \ + -e 's block/bootdevice/by-name/keystore sda5 ' \ + -e 's block/bootdevice/by-name/limits sde35 ' \ + -e 's block/bootdevice/by-name/logdump sde40 ' \ + -e 's block/bootdevice/by-name/logfs sde37 ' \ + -e 's block/bootdevice/by-name/md5 sdf5 ' \ + -e 's block/bootdevice/by-name/mdtp sde15 ' \ + -e 's block/bootdevice/by-name/mdtpsecapp sde12 ' \ + -e 's block/bootdevice/by-name/mdtpsecappbak sde13 ' \ + -e 's block/bootdevice/by-name/minidump sde47 ' \ + -e 's block/bootdevice/by-name/misc sda4 ' \ + -e 's block/bootdevice/by-name/modem sde10 ' \ + -e 's block/bootdevice/by-name/modemst1 sdf1 ' \ + -e 's block/bootdevice/by-name/modemst2 sdf2 ' \ + -e 's block/bootdevice/by-name/msadp sde32 ' \ + -e 's block/bootdevice/by-name/oem_dycnvbk sda7 ' \ + -e 's block/bootdevice/by-name/oem_stanvbk sda8 ' \ + -e 's block/bootdevice/by-name/param sda9 ' \ + -e 's block/bootdevice/by-name/persist sda2 ' \ + -e 's block/bootdevice/by-name/pmic sde8 ' \ + -e 's block/bootdevice/by-name/pmicbak sde9 ' \ + -e 's block/bootdevice/by-name/recovery sde22 ' \ + -e 's block/bootdevice/by-name/reserve sdd1 ' \ + -e 's block/bootdevice/by-name/reserve1 sda10 ' \ + -e 's block/bootdevice/by-name/reserve2 sda11 ' \ + -e 's block/bootdevice/by-name/reserve3 sdf7 ' \ + -e 's block/bootdevice/by-name/rpm sde1 ' \ + -e 's block/bootdevice/by-name/rpmbak sde2 ' \ + -e 's block/bootdevice/by-name/sec sde7 ' \ + -e 's block/bootdevice/by-name/splash sde34 ' \ + -e 's block/bootdevice/by-name/ssd sda1 ' \ + -e 's block/bootdevice/by-name/sti sde38 ' \ + -e 's block/bootdevice/by-name/storsec sde41 ' \ + -e 's block/bootdevice/by-name/storsecbak sde42 ' \ + -e 's block/bootdevice/by-name/system sde21 ' \ + -e 's block/bootdevice/by-name/toolsfv sde36 ' \ + -e 's block/bootdevice/by-name/tz sde3 ' \ + -e 's block/bootdevice/by-name/tzbak sde4 ' \ + -e 's block/bootdevice/by-name/userdata sda13 ' \ + -e 's block/bootdevice/by-name/vendor sdf6 ' \ + -e 's block/bootdevice/by-name/xbl sdb1 ' \ + -e 's block/bootdevice/by-name/xblbak sdc1 ' \ + "$@" + ;; + + "enchilada" | "fajita") + sed -i \ + -e 's block/bootdevice/by-name/bluetooth sde5 ' \ + -e 's block/bootdevice/by-name/boot sde11 ' \ + -e 's block/bootdevice/by-name/dsp sde9 ' \ + -e 's block/bootdevice/by-name/misc sda3 ' \ + -e 's block/bootdevice/by-name/modem sde4 ' \ + -e 's block/bootdevice/by-name/odm sda15 ' \ + -e 's block/bootdevice/by-name/persist sda2 ' \ + -e 's block/bootdevice/by-name/system sda13 ' \ + -e 's block/bootdevice/by-name/userdata sda17 ' \ + -e 's block/bootdevice/by-name/vbmeta sde17 ' \ + -e 's block/bootdevice/by-name/vendor sde16 ' \ + "$@" + ;; "bacon") sed -i \ @@ -610,7 +1035,7 @@ case "$DEVICE" in "$@" ;; - "yuga" | "odin" | "dogo" | "pollux" | "pollux_windy") + "yuga") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p17 ' \ -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p24 ' \ @@ -620,38 +1045,38 @@ case "$DEVICE" in "$@" ;; - "z3c" | "sirius" | "z3" | "leo" | "honami" | "amami") + "z3c" | "sirius") # Z3 compact is also called "aries" | "d5803" in aosp (called z3c in cm12.1) # Z2 is also called "d6503" in aosp (called sirius in cm12.1) - # untested for "amami" | "tianchi") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p17 ' \ - -e 's block/platform/msm_sdcc.1/by-name/FOTAKernel mmcblk0p16 ' \ - -e 's block/platform/msm_sdcc.1/by-name/LTALabel mmcblk0p18 ' \ - -e 's block/platform/msm_sdcc.1/by-name/TA mmcblk0p1 ' \ - -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_aboot mmcblk0p11 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_dbi mmcblk0p10 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_rpm mmcblk0p12 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_s1sbl mmcblk0p9 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_sbl1 mmcblk0p8 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_tz mmcblk0p13 ' \ - -e 's block/platform/msm_sdcc.1/by-name/apps_log mmcblk0p22 ' \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p4 ' \ - -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p19 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p20 ' \ - -e 's block/platform/msm_sdcc.1/by-name/ramdump mmcblk0p15 ' \ - -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p6 ' \ - -e 's block/platform/msm_sdcc.1/by-name/s1sbl mmcblk0p3 ' \ - -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p2 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ - -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p7 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \ + # untested for "amami" | "leo" | "tianchi") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p17 ' \ + -e 's block/platform/msm_sdcc.1/by-name/FOTAKernel mmcblk0p16 ' \ + -e 's block/platform/msm_sdcc.1/by-name/LTALabel mmcblk0p18 ' \ + -e 's block/platform/msm_sdcc.1/by-name/TA mmcblk0p1 ' \ + -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_aboot mmcblk0p11 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_dbi mmcblk0p10 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_rpm mmcblk0p12 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_s1sbl mmcblk0p9 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_sbl1 mmcblk0p8 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_tz mmcblk0p13 ' \ + -e 's block/platform/msm_sdcc.1/by-name/apps_log mmcblk0p22 ' \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p4 ' \ + -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p19 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p20 ' \ + -e 's block/platform/msm_sdcc.1/by-name/ramdump mmcblk0p15 ' \ + -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p6 ' \ + -e 's block/platform/msm_sdcc.1/by-name/s1sbl mmcblk0p3 ' \ + -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p2 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ + -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p7 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \ "$@" - ;; + ;; "kis3") sed -i \ @@ -738,7 +1163,7 @@ case "$DEVICE" in ;; "find5") - sed -i \ + sed -i \ -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \ -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p21 ' \ -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p19 ' \ @@ -748,7 +1173,7 @@ case "$DEVICE" in ;; "cancro") - sed -i \ + sed -i \ -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p4 ' \ -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p7 ' \ -e 's block/platform/msm_sdcc.1/by-name/bk1 mmcblk0p8 ' \ @@ -778,7 +1203,7 @@ case "$DEVICE" in ;; "gemini") - sed -i \ + sed -i \ -e 's block/bootdevice/by-name/aboot sde23 ' \ -e 's block/bootdevice/by-name/abootbak sde24 ' \ -e 's block/bootdevice/by-name/apdp sde5 ' \ @@ -850,7 +1275,7 @@ case "$DEVICE" in ;; "gts210ltexx"|"gts210wifi") - sed -i \ + sed -i \ -e 's block/platform/15540000.dwmmc0/by-name/BOOT mmcblk0p9 ' \ -e 's block/platform/15540000.dwmmc0/by-name/CACHE mmcblk0p20 ' \ -e 's block/platform/15540000.dwmmc0/by-name/EFS mmcblk0p3 ' \ @@ -860,7 +1285,7 @@ case "$DEVICE" in ;; "kenzo") - sed -i \ + sed -i \ -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \ -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \ -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \ @@ -910,42 +1335,6 @@ case "$DEVICE" in "$@" ;; - "ido") - sed -i \ - -e 's block/bootdevice/by-name/DDR mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/aboot mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/abootbak mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/config mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/cust mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/fsc mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/hyp mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/hypbak mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/pad mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/sbl1 mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/sbl1bak mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/sec mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p31 ' \ - "$@" - ;; - "armani") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p10 ' \ @@ -989,65 +1378,6 @@ case "$DEVICE" in "$@" ;; - "m8") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p42 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p47 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p45 ' \ - "$@" - ;; - - "chaozu") - sed -i \ - -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/cmnlib mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/cmnlib64bak mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/config mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/devcfg mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/devcfgbak mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/dip mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/dpo mmcblk0p45 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/fsc mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/keymaster mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/keymasterbak mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/limits mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/mcfg mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/mdtp mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/mota mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/msadp mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/sbl1 mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/sbl1bak mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/sec mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/syscfg mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \ - "$@" - ;; - "oneplus3") sed -i \ -e 's block/bootdevice/by-name/LOGO sde17 ' \ @@ -1111,119 +1441,6 @@ case "$DEVICE" in "$@" ;; - "T00F") - sed -i \ - -e 's /dev/block/by-name/system /dev/mmcblk0p9 ' \ - -e 's /dev/block/by-name/cache /dev/mmcblk0p6 ' \ - -e 's /dev/block/by-name/config /dev/mmcblk0p5 ' \ - -e 's /dev/block/by-name/data /dev/mmcblk0p10 ' \ - -e 's /dev/block/by-name/factory /dev/mmcblk0p3 ' \ - "$@" - ;; - - "angler") - sed -i \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/system mmcblk0p43 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/vendor mmcblk0p37 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/userdata mmcblk0p44 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/cache mmcblk0p38 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/persist mmcblk0p32 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/modem mmcblk0p1 ' \ - "$@" - ;; - - "pme") - sed -i \ - -e 's block/platform/soc/7464900.sdhci/by-name/adsp mmcblk0p31 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/cache mmcblk0p61 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/carrier mmcblk0p53 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/dsp mmcblk0p57 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/persist mmcblk0p48 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/radio mmcblk0p30 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/slpi mmcblk0p33 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/system mmcblk0p62 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/userdata mmcblk0p63 ' \ - -e 's block/platform/soc/7464900.sdhci/by-name/venus mmcblk0p36 ' \ - "$@" - ;; - - "Z00L"|"Z00LD"|"Z00W"|"Z00WD"|"Z00M"|"Z00MD"|"Z00MDD"|"Z00T"|"Z00TD"|"Z00U"|"Z00UD"|"Z00UDH"|"Z00UDB"|"Z011"|"Z011D"|"Z011DD") - sed -i \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/asdf mmcblk0p33 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/boot mmcblk0p37 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/cache mmcblk0p44 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/factory mmcblk0p20 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/misc mmcblk0p30 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/modem mmcblk0p41 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/persist mmcblk0p39 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/recovery mmcblk0p38 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/system mmcblk0p45 ' \ - -e 's block/platform/soc.0/7824900.sdhci/by-name/userdata mmcblk0p46 ' \ - "$@" - ;; - - "oneplus3") - sed -i \ - -e 's block/bootdevice/by-name/boot sde18 ' \ - -e 's block/bootdevice/by-name/userdata sda15 ' \ - -e 's block/bootdevice/by-name/system sde20 ' \ - -e 's block/bootdevice/by-name/cache sda3 ' \ - "$@" - ;; - - "cheeseburger") - sed -i \ - -e 's block/bootdevice/by-name/boot sde19 ' \ - -e 's block/bootdevice/by-name/userdata sda13 ' \ - -e 's block/bootdevice/by-name/system sde21 ' \ - -e 's block/bootdevice/by-name/cache sda3 ' \ - -e 's block/bootdevice/by-name/persist sda2 ' \ - -e 's block/bootdevice/by-name/modem sde10 ' \ - -e 's block/bootdevice/by-name/bluetooth sde24 ' \ - "$@" - ;; - - "oneplus2") - sed -i \ - -e 's block/bootdevice/by-name/boot mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/bluetooth mmcblk0p2 ' \ - "$@" - ;; - - "shamu") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p37 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p42 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p41 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p38 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \ - "$@" - ;; - - "flounder") - sed -i \ - -e 's block/platform/sdhci-tegra.3/by-name/LNX mmcblk0p16 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p31 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p29 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p30 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/VNR mmcblk0p24 ' \ - "$@" - ;; - - "tulip-chiphd") - sed -i \ - -e 's block/mmcblk0p1 mmcblk0p1 ' \ - -e 's block/mmcblk0p4 mmcblk0p4 ' \ - -e 's block/mmcblk0p2 mmcblk0p2 ' \ - -e 's block/mmcblk0p3 mmcblk0p3 ' \ - "$@" - ;; - "addison") sed -i \ -e 's block/bootdevice/by-name/boot mmcblk0p37 ' \ @@ -1261,586 +1478,159 @@ case "$DEVICE" in "$@" ;; - "krillin") - sed -i \ - -e 's block/platform/mtk-msdc.0/by-num/p1 mmcblk0p1 ' \ - -e 's block/platform/mtk-msdc.0/by-num/p2 mmcblk0p2 ' \ - -e 's block/platform/mtk-msdc.0/by-num/p3 mmcblk0p3 ' \ - -e 's block/platform/mtk-msdc.0/by-num/p4 mmcblk0p4 ' \ - -e 's block/platform/mtk-msdc.0/by-num/p5 mmcblk0p5 ' \ - -e 's block/platform/mtk-msdc.0/by-num/p6 mmcblk0p6 ' \ - -e 's block/platform/mtk-msdc.0/by-num/p7 mmcblk0p7 ' \ - "$@" - ;; - - "suzuran") - sed -i \ - -e 's block/bootdevice/by-name/DDR mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/FOTAKernel mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/LTALabel mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/aboot mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/alt_aboot mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/alt_hyp mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/alt_pmic mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/alt_rpm mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/alt_s1sbl mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/alt_sbl1 mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/alt_sdi mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/alt_tz mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/apps_log mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/config mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/diag mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/dpo mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/hyp mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/limits mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/msadp mmcblk0p9 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/pmic mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/rddata mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/rdimage mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/rpm mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/s1sbl mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/sbl1 mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/sdi mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/tz mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p42 ' \ - "$@" - ;; - - "sumire") - sed -i \ - -e 's block/platform/soc.0/by-name/DDR mmcblk0p7 ' \ - -e 's block/platform/soc.0/by-name/FOTAKernel mmcblk0p32 ' \ - -e 's block/platform/soc.0/by-name/LTALabel mmcblk0p2 ' \ - -e 's block/platform/soc.0/by-name/TA mmcblk0p1 ' \ - -e 's block/platform/soc.0/by-name/aboot mmcblk0p27 ' \ - -e 's block/platform/soc.0/by-name/alt_aboot mmcblk0p28 ' \ - -e 's block/platform/soc.0/by-name/alt_hyp mmcblk0p12 ' \ - -e 's block/platform/soc.0/by-name/alt_pmic mmcblk0p5 ' \ - -e 's block/platform/soc.0/by-name/alt_rpm mmcblk0p26 ' \ - -e 's block/platform/soc.0/by-name/alt_s1sbl mmcblk0p20 ' \ - -e 's block/platform/soc.0/by-name/alt_sbl1 mmcblk0p16 ' \ - -e 's block/platform/soc.0/by-name/alt_sdi mmcblk0p22 ' \ - -e 's block/platform/soc.0/by-name/alt_tz mmcblk0p24 ' \ - -e 's block/platform/soc.0/by-name/apdp mmcblk0p8 ' \ - -e 's block/platform/soc.0/by-name/apps_log mmcblk0p38 ' \ - -e 's block/platform/soc.0/by-name/boot mmcblk0p29 ' \ - -e 's block/platform/soc.0/by-name/cache mmcblk0p41 ' \ - -e 's block/platform/soc.0/by-name/config mmcblk0p36 ' \ - -e 's block/platform/soc.0/by-name/devinfo mmcblk0p35 ' \ - -e 's block/platform/soc.0/by-name/diag mmcblk0p39 ' \ - -e 's block/platform/soc.0/by-name/dpo mmcblk0p10 ' \ - -e 's block/platform/soc.0/by-name/fsg mmcblk0p13 ' \ - -e 's block/platform/soc.0/by-name/hyp mmcblk0p11 ' \ - -e 's block/platform/soc.0/by-name/keystore mmcblk0p34 ' \ - -e 's block/platform/soc.0/by-name/limits mmcblk0p6 ' \ - -e 's block/platform/soc.0/by-name/misc mmcblk0p33 ' \ - -e 's block/platform/soc.0/by-name/modem mmcblk0p3 ' \ - -e 's block/platform/soc.0/by-name/modemst1 mmcblk0p17 ' \ - -e 's block/platform/soc.0/by-name/modemst2 mmcblk0p18 ' \ - -e 's block/platform/soc.0/by-name/msadp mmcblk0p9 ' \ - -e 's block/platform/soc.0/by-name/oem mmcblk0p40 ' \ - -e 's block/platform/soc.0/by-name/persist mmcblk0p31 ' \ - -e 's block/platform/soc.0/by-name/pmic mmcblk0p4 ' \ - -e 's block/platform/soc.0/by-name/rddata mmcblk0p37 ' \ - -e 's block/platform/soc.0/by-name/rdimage mmcblk0p30 ' \ - -e 's block/platform/soc.0/by-name/rpm mmcblk0p25 ' \ - -e 's block/platform/soc.0/by-name/s1sbl mmcblk0p19 ' \ - -e 's block/platform/soc.0/by-name/sbl1 mmcblk0p15 ' \ - -e 's block/platform/soc.0/by-name/sdi mmcblk0p21 ' \ - -e 's block/platform/soc.0/by-name/ssd mmcblk0p14 ' \ - -e 's block/platform/soc.0/by-name/system mmcblk0p43 ' \ - -e 's block/platform/soc.0/by-name/tz mmcblk0p23 ' \ - -e 's block/platform/soc.0/by-name/userdata mmcblk0p42 ' \ - "$@" - ;; - - "peregrine") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p30 ' \ - "$@" - ;; - - "harpia") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p9 ' \ - "$@" - ;; - - "surnia") - sed -i \ - -e 's block/platform/soc.0/by-name/DDR mmcblk0p3 ' \ - -e 's block/platform/soc.0/by-name/aboot mmcblk0p4 ' \ - -e 's block/platform/soc.0/by-name/abootBackup mmcblk0p14 ' \ - -e 's block/platform/soc.0/by-name/boot mmcblk0p33 ' \ - -e 's block/platform/soc.0/by-name/cache mmcblk0p43 ' \ - -e 's block/platform/soc.0/by-name/carrier mmcblk0p41 ' \ - -e 's block/platform/soc.0/by-name/cid mmcblk0p28 ' \ - -e 's block/platform/soc.0/by-name/clogo mmcblk0p30 ' \ - -e 's block/platform/soc.0/by-name/dhob mmcblk0p24 ' \ - -e 's block/platform/soc.0/by-name/factorytune1 mmcblk0p11 ' \ - -e 's block/platform/soc.0/by-name/factorytune2 mmcblk0p35 ' \ - -e 's block/platform/soc.0/by-name/frp mmcblk0p20 ' \ - -e 's block/platform/soc.0/by-name/fsc mmcblk0p26 ' \ - -e 's block/platform/soc.0/by-name/fsg mmcblk0p25 ' \ - -e 's block/platform/soc.0/by-name/hob mmcblk0p23 ' \ - -e 's block/platform/soc.0/by-name/hyp mmcblk0p7 ' \ - -e 's block/platform/soc.0/by-name/hypBackup mmcblk0p18 ' \ - -e 's block/platform/soc.0/by-name/keystore mmcblk0p39 ' \ - -e 's block/platform/soc.0/by-name/kpan mmcblk0p36 ' \ - -e 's block/platform/soc.0/by-name/logo mmcblk0p29 ' \ - -e 's block/platform/soc.0/by-name/logs mmcblk0p9 ' \ - -e 's block/platform/soc.0/by-name/metadata mmcblk0p13 ' \ - -e 's block/platform/soc.0/by-name/misc mmcblk0p32 ' \ - -e 's block/platform/soc.0/by-name/modem mmcblk0p1 ' \ - -e 's block/platform/soc.0/by-name/modemst1 mmcblk0p21 ' \ - -e 's block/platform/soc.0/by-name/modemst2 mmcblk0p22 ' \ - -e 's block/platform/soc.0/by-name/oem mmcblk0p40 ' \ - -e 's block/platform/soc.0/by-name/padA mmcblk0p12 ' \ - -e 's block/platform/soc.0/by-name/padB mmcblk0p19 ' \ - -e 's block/platform/soc.0/by-name/padC mmcblk0p37 ' \ - -e 's block/platform/soc.0/by-name/persist mmcblk0p31 ' \ - -e 's block/platform/soc.0/by-name/recovery mmcblk0p34 ' \ - -e 's block/platform/soc.0/by-name/rpm mmcblk0p5 ' \ - -e 's block/platform/soc.0/by-name/rpmBackup mmcblk0p15 ' \ - -e 's block/platform/soc.0/by-name/sbl1 mmcblk0p2 ' \ - -e 's block/platform/soc.0/by-name/sec mmcblk0p10 ' \ - -e 's block/platform/soc.0/by-name/sp mmcblk0p38 ' \ - -e 's block/platform/soc.0/by-name/ssd mmcblk0p27 ' \ - -e 's block/platform/soc.0/by-name/system mmcblk0p42 ' \ - -e 's block/platform/soc.0/by-name/tz mmcblk0p6 ' \ - -e 's block/platform/soc.0/by-name/tzBackup mmcblk0p16 ' \ - -e 's block/platform/soc.0/by-name/userdata mmcblk0p44 ' \ - -e 's block/platform/soc.0/by-name/utags mmcblk0p8 ' \ - -e 's block/platform/soc.0/by-name/utagsBackup mmcblk0p17 ' \ - "$@" - ;; - - "merlin") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p9 ' \ - "$@" - ;; - - "natrium") - sed -i \ - -e 's block/bootdevice/by-name/boot sde36 ' \ - -e 's block/bootdevice/by-name/recovery sda13 ' \ - -e 's block/bootdevice/by-name/cache sda14 ' \ - -e 's block/bootdevice/by-name/system sde39 ' \ - -e 's block/bootdevice/by-name/userdata sda15 ' \ - -e 's block/bootdevice/by-name/persist sda12 ' \ - -e 's block/bootdevice/by-name/dsp sde32 ' \ - -e 's block/bootdevice/by-name/modem sde35 ' \ - -e 's block/bootdevice/by-name/bluetooth sde26 ' \ - -e 's block/bootdevice/by-name/frp sda7 ' \ - -e 's block/bootdevice/by-name/misc sda9 ' \ - "$@" - ;; - - "titan") - sed -i \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ - "$@" - ;; - - "i9300") - sed -i \ - -e 's block/platform/dw_mmc/by-name/USERDATA mmcblk0p16 ' \ - -e 's block/platform/dw_mmc/by-name/SYSTEM mmcblk0p13 ' \ - -e 's block/platform/dw_mmc/by-name/CACHE mmcblk0p12 ' \ - -e 's block/platform/dw_mmc/by-name/BOOT mmcblk0p08 ' \ - -e 's block/platform/dw_mmc/by-name/RECOVERY mmcblk0p09 ' \ - -e 's block/platform/dw_mmc/by-name/RADIO mmcblk0p10 ' \ - "$@" - ;; - - "i9305") - sed -i \ - -e 's block/platform/dw_mmc/by-name/USERDATA mmcblk0p12 ' \ - -e 's block/platform/dw_mmc/by-name/SYSTEM mmcblk0p09 ' \ - -e 's block/platform/dw_mmc/by-name/CACHE mmcblk0p08 ' \ - -e 's block/platform/dw_mmc/by-name/BOOT mmcblk0p05 ' \ - -e 's block/platform/dw_mmc/by-name/RECOVERY mmcblk0p06 ' \ - -e 's block/platform/dw_mmc/by-name/RADIO mmcblk0p07 ' \ - "$@" - ;; - - "s3ve3g") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ - -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p15 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p2 ' \ - "$@" - ;; - - "endeavoru") - sed -i \ - -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p12 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p13 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/RCA mmcblk0p3 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/RFS mmcblk0p18 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/DLG mmcblk0p19 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/ISD mmcblk0p14 ' \ - -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p15 ' \ - "$@" - ;; - - "scorpion" | "scorpion_windy") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \ - "$@" - ;; - - "tenshi") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \ - -e 's block/bootdevice/by-name/config mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \ - "$@" - ;; - - "jfltexx") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p20 ' \ - -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p21 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p16 ' \ - -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \ - -e 's block/platform/msm_sdcc.1/by-name/mdm mmcblk0p2 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p18 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p29 ' \ - -e 's block/platform/msm_sdcc.1/by-name/fota mmcblk0p22 ' \ - "$@" - ;; - - "herolte") - sed -i \ - -e 's block/platform/155a0000.ufs/by-name/SYSTEM sda14 ' \ - -e 's block/platform/155a0000.ufs/by-name/EFS sda3 ' \ - -e 's block/platform/155a0000.ufs/by-name/CACHE sda15 ' \ - -e 's block/platform/155a0000.ufs/by-name/USERDATA sda18 ' \ - -e 's block/platform/155a0000.ufs/by-name/OTA sda7 ' \ - -e 's block/platform/155a0000.ufs/by-name/HIDDEN sda16 ' \ - "$@" - ;; - - "klte") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p2 ' \ - -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p12 ' \ - "$@" - ;; - - "athene") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p47 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p48 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p46 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p31 ' \ - "$@" - ;; - - "jfltetmo") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p6 ' \ - -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \ - -e 's block/platform/msm_sdcc.1/by-name/backup mmcblk0p23 ' \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p20 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p18 ' \ - -e 's block/platform/msm_sdcc.1/by-name/carrier mmcblk0p28 ' \ - -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p10 ' \ - -e 's block/platform/msm_sdcc.1/by-name/fota mmcblk0p22 ' \ - -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/hidden mmcblk0p27 ' \ - -e 's block/platform/msm_sdcc.1/by-name/m9kefs1 mmcblk0p13 ' \ - -e 's block/platform/msm_sdcc.1/by-name/m9kefs2 mmcblk0p14 ' \ - -e 's block/platform/msm_sdcc.1/by-name/m9kefs3 mmcblk0p15 ' \ - -e 's block/platform/msm_sdcc.1/by-name/mdm mmcblk0p2 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p11 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p12 ' \ - -e 's block/platform/msm_sdcc.1/by-name/pad mmcblk0p9 ' \ - -e 's block/platform/msm_sdcc.1/by-name/param mmcblk0p19 ' \ - -e 's block/platform/msm_sdcc.1/by-name/persdata mmcblk0p26 ' \ - -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p17 ' \ - -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p21 ' \ - -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p7 ' \ - -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p3 ' \ - -e 's block/platform/msm_sdcc.1/by-name/sbl2 mmcblk0p4 ' \ - -e 's block/platform/msm_sdcc.1/by-name/sbl3 mmcblk0p5 ' \ - -e 's block/platform/msm_sdcc.1/by-name/ssd mmcblk0p25 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p16 ' \ - -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p8 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p29 ' \ - "$@" - ;; - - "dreamlte"|"dream2lte") - sed -i \ - -e 's block/platform/11120000.ufs/by-name/CACHE sda18 ' \ - -e 's block/platform/11120000.ufs/by-name/EFS sda3 ' \ - -e 's block/platform/11120000.ufs/by-name/HIDDEN sda19 ' \ - -e 's block/platform/11120000.ufs/by-name/SYSTEM sda17 ' \ - -e 's block/platform/11120000.ufs/by-name/USERDATA sda24 ' \ - "$@" - ;; - - "cedric") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p53 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p54 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p52 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p30 ' \ - "$@" - ;; - - "x2") - sed -i \ - -e 's block/bootdevice/by-name/system sde19 ' \ - -e 's block/bootdevice/by-name/userdata sda9 ' \ - -e 's block/bootdevice/by-name/cache sda3 ' \ - -e 's block/bootdevice/by-name/modem sde12 ' \ - "$@" - ;; - - "nicki") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p26 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p25 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p27 ' \ - "$@" - ;; - - "trunk") - sed -i \ - -e 's block/bootdevice/by-name/boot mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p01 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/config mmcblk0p28 ' \ - "$@" - ;; - - "land" | "rolex" | "riva") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p49 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - "$@" - ;; - - "hermes") - sed -i \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot mmcblk0p7 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/cache mmcblk0p16 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/expdb mmcblk0p12 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/flashinfo mmcblk0p18 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/lk mmcblk0p6 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/logo mmcblk0p11 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/nvram mmcblk0p2 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/para mmcblk0p10 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/proinfo mmcblk0p1 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/protect1 mmcblk0p3 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/protect2 mmcblk0p4 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/recovery mmcblk0p8 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/seccfg mmcblk0p5 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/secro mmcblk0p9 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system mmcblk0p15 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee1 mmcblk0p13 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee2 mmcblk0p14 ' \ - -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata mmcblk0p17 ' \ - "$@" - ;; - - "garlic") - sed -i \ - -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/cmnlib mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/cmnlib64bak mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/config mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/devcfg mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/devcfgbak mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/dip mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/dpo mmcblk0p45 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/fsc mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/keymaster mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/keymasterbak mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/limits mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/mcfg mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/mdtp mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/mota mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/msadp mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/sbl1 mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/sbl1bak mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/sec mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/syscfg mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \ - "$@" - ;; - - "axon7") - sed -i \ - -e 's block/bootdevice/by-name/system sde13 ' \ - -e 's block/bootdevice/by-name/userdata sda9 ' \ - -e 's block/bootdevice/by-name/cache sda2 ' \ - -e 's block/bootdevice/by-name/persist sdf5 ' \ - -e 's block/bootdevice/by-name/dsp sde8 ' \ - -e 's block/bootdevice/by-name/modem sde7 ' \ - -e 's block/bootdevice/by-name/bluetooth sde16 ' \ - "$@" - ;; - - "mata") - sed -i \ - -e 's block/bootdevice/by-name/system block/platform/soc/1da4000.ufshc/by-name/system ' \ - -e 's block/bootdevice/by-name/userdata sda16 ' \ - -e 's block/bootdevice/by-name/modem block/platform/soc/1da4000.ufshc/by-name/modem ' \ - -e 's block/bootdevice/by-name/bluetooth block/platform/soc/1da4000.ufshc/by-name/bluetooth ' \ - -e 's block/bootdevice/by-name/dsp block/platform/soc/1da4000.ufshc/by-name/dsp ' \ - -e 's block/bootdevice/by-name/persist sda4 ' \ - "$@" - ;; - - "gohan") - sed -i \ - -e 's /dev/block/bootdevice/by-name/system /dev/block/mmcblk0p24 ' \ - -e 's /dev/block/bootdevice/by-name/userdata /dev/block/mmcblk0p46 ' \ - -e 's /dev/block/bootdevice/by-name/cache /dev/block/mmcblk0p25 ' \ - "$@" - ;; - - "ivy") - sed -i \ - -e 's /dev/block/bootdevice/by-name/system /dev/block/mmcblk0p43 ' \ - -e 's /dev/block/bootdevice/by-name/userdata /dev/block/mmcblk0p42 ' \ - -e 's /dev/block/bootdevice/by-name/cache /dev/block/mmcblk0p41 ' \ - -e 's /dev/block/bootdevice/by-name/persist /dev/block/mmcblk0p31 ' \ - -e 's /dev/block/bootdevice/by-name/diag /dev/block/mmcblk0p39 ' \ - -e 's /dev/block/bootdevice/by-name/modem /dev/block/mmcblk0p3 ' \ - "$@" - ;; - - "loganreltexx") - sed -i \ - -e 's /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/mmcblk0p20 ' \ - -e 's /dev/block/platform/msm_sdcc.1/by-name/userdata /dev/block/mmcblk0p23 ' \ - -e 's /dev/block/platform/msm_sdcc.1/by-name/cache /dev/block/mmcblk0p21 ' \ - -e 's /dev/block/platform/msm_sdcc.1/by-name/efs /dev/block/mmcblk0p10 ' \ - -e 's /dev/block/platform/msm_sdcc.1/by-name/persist /dev/block/mmcblk0p19 ' \ - -e 's /dev/block/platform/msm_sdcc.1/by-name/modem /dev/block/mmcblk0p1 ' \ - "$@" - ;; - - "kuntao") - sed -i \ - -e 's block/bootdevice/by-name/system mmcblk0p54 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p56 ' \ - -e 's block/bootdevice/by-name/cache mmcblk0p53 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/dsp mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p33 ' \ + "walleye") + sed -i \ + -e 's block/platform/soc/1da4000.ufshc/by-name/abl_a sda8 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/abl_b sda29 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/apdp_a sda14 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/apdp_b sda35 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/board_info sdf1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/boot_a sda9 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/boot_b sda30 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cdt sdd5 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_a sda13 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_b sda34 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_a sda12 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_b sda33 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/ddr sdd6 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_a sda16 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_b sda37 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/devinfo sdf4 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dip sdd8 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dpo sdd9 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_a sda21 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_b sda42 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/frp sdd4 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/fsc sdd17 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/fsg sdf3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/hosd_a sda10 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/hosd_b sda31 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_a sda5 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_b sda26 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_a sda11 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_b sda32 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/limits sdd11 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/lockbooter_a sda2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/lockbooter_b sda23 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/logfs sdd13 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/metadata sde4 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/mfg sdf2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/misc sdd1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modem_a sda7 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modem_b sda28 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modemst1 sdd15 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modemst2 sdd16 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/msadp_a sda15 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/msadp_b sda36 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/padding0 sda1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/padding1 sda44 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/persist sdd3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pg1fs sde2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pg2fs sde3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_a sda6 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_b sda27 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/ramdump sde1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/reserve3 sdd18 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/reserve4 sde5 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/reserve5 sdf5 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_a sda3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_b sda24 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sec sdd7 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/splash sdd10 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/ssd sdd2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sti sdd14 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/storesec_a sda17 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/storesec_b sda38 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/system_a sda22' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/system_b sda43 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/toolsfv sdd12 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/trusty_a sda19 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/trusty_b sda40 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/tz_a sda4 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/tz_b sda25 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/userdata sda45 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_a sda18 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_b sda39 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_a sda20 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_b sda41 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_a sdb1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_b sdc1 ' \ + "$@" + ;; + + "taimen") + sed -i \ + -e 's block/platform/soc/1da4000.ufshc/by-name/abl_a sde6 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/abl_b sde20 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/aes_a sda10 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/aes_b sda11 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/align_parti sda12 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/apdp sde29 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/boot_a sde8 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/boot_b sde22 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cdt sdd1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_a sde10 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_b sde24 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_a sde9 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_b sde23 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/ddr sdd2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_a sde11 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_b sde25 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/devinfo sde34 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dip sde35 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dpo sde36 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_a sde13 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_b sde27 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/frp sdg1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/fsc sdf3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/fsg sde32 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/ftm sda6 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_a sde3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_b sde17 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_a sde7 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_b sde21 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/laf_a sda1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/laf_b sda2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/limits sde37 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/logfs sde39 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/metadata sde41 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/misc sda5 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modem_a sde5 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modem_b sde19 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modemst1 sdf1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/modemst2 sdf2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/msadp sde30 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/persist sda4 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_a sde4 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_b sde18 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/pstore sda9 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_a sde1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_b sde15 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sda sda ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sdb sdb ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sdc sdc ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sdd sdd ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sde sde ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sdf sdf ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sdg sdg ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sec sde33 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/ssd sda3 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/sti sde40 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/storesec sde31 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/system_a sda7 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/system_b sda8 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/toolsfv sde38 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/tz_a sde2 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/tz_b sde16 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/userdata sda13 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_a sde12 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_b sde26 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_a sde14 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_b sde28 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_a sdb1 ' \ + -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_b sdc1 ' \ "$@" ;; - *) cat < Date: Sun, 2 May 2021 12:00:09 +0530 Subject: [PATCH 2/2] Update fixup-mountpoints --- fixup-mountpoints | 1644 +++++++++++++++++++++++++-------------------- 1 file changed, 932 insertions(+), 712 deletions(-) diff --git a/fixup-mountpoints b/fixup-mountpoints index 0199c92..4538b12 100755 --- a/fixup-mountpoints +++ b/fixup-mountpoints @@ -14,400 +14,109 @@ shift echo "Fixing mount-points for device $DEVICE" case "$DEVICE" in - "pdx201") + "bb") sed -i \ - -e 's block/bootdevice/by-name/LTALabel mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/abl_a mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/abl_b mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p53 ' \ - -e 's block/bootdevice/by-name/appslog mmcblk0p64 ' \ - -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p46 ' \ - -e 's block/bootdevice/by-name/bluetooth_b mmcblk0p47 ' \ - -e 's block/bootdevice/by-name/boot_a mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/boot_b mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/cmnlib64_a mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/cmnlib64_b mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/cmnlib_a mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/cmnlib_b mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \ - -e 's block/bootdevice/by-name/devcfg_a mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/devcfg_b mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p52 ' \ - -e 's block/bootdevice/by-name/diag mmcblk0p65 ' \ - -e 's block/bootdevice/by-name/dsp_a mmcblk0p50 ' \ - -e 's block/bootdevice/by-name/dsp_b mmcblk0p51 ' \ - -e 's block/bootdevice/by-name/dtbo_a mmcblk0p79 ' \ - -e 's block/bootdevice/by-name/dtbo_b mmcblk0p80 ' \ - -e 's block/bootdevice/by-name/frp mmcblk0p61 ' \ - -e 's block/bootdevice/by-name/fsc mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/hyp_a mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/hyp_b mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/imagefv_a mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/imagefv_b mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/keymaster_a mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/keymaster_b mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p63 ' \ - -e 's block/bootdevice/by-name/limits mmcblk0p55 ' \ - -e 's block/bootdevice/by-name/logdump mmcblk0p68 ' \ - -e 's block/bootdevice/by-name/logfs mmcblk0p57 ' \ - -e 's block/bootdevice/by-name/metadata mmcblk0p66 ' \ - -e 's block/by-name/metadata mmcblk0p66 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p62 ' \ - -e 's block/bootdevice/by-name/modem_a mmcblk0p48 ' \ - -e 's block/bootdevice/by-name/modem_b mmcblk0p49 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/multiimgoem_a mmcblk0p71 ' \ - -e 's block/bootdevice/by-name/multiimgoem_b mmcblk0p72 ' \ - -e 's block/bootdevice/by-name/multiimgqti_a mmcblk0p73 ' \ - -e 's block/bootdevice/by-name/multiimgqti_b mmcblk0p74 ' \ - -e 's block/bootdevice/by-name/oem_a mmcblk0p83 ' \ - -e 's block/by-name/oem_a mmcblk0p83 ' \ - -e 's block/bootdevice/by-name/oem_b mmcblk0p84 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/qupfw_a mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/qupfw_b mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/rddata mmcblk0p87 ' \ - -e 's block/bootdevice/by-name/rdimage_a mmcblk0p81 ' \ - -e 's block/bootdevice/by-name/rdimage_b mmcblk0p82 ' \ - -e 's block/bootdevice/by-name/recovery_a mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/recovery_b mmcblk0p45 ' \ - -e 's block/bootdevice/by-name/rpm_a mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/rpm_b mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/secdata mmcblk0p69 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p54 ' \ - -e 's block/bootdevice/by-name/spunvm mmcblk0p67 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p60 ' \ - -e 's block/bootdevice/by-name/storsec mmcblk0p58 ' \ - -e 's block/bootdevice/by-name/super mmcblk0p85 ' \ - -e 's block/bootdevice/by-name/toolsfv mmcblk0p56 ' \ - -e 's block/bootdevice/by-name/tz_a mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/tz_b mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/tzxfl_a mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/tzxfl_b mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/tzxflattest_a mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/tzxflattest_b mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/uefisecapp_a mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/uefisecapp_b mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/uefivarstore mmcblk0p70 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p86 ' \ - -e 's block/bootdevice/by-name/vbmeta_a mmcblk0p75 ' \ - -e 's block/bootdevice/by-name/vbmeta_b mmcblk0p76 ' \ - -e 's block/bootdevice/by-name/vbmeta_system_a mmcblk0p77 ' \ - -e 's block/bootdevice/by-name/vbmeta_system_b mmcblk0p78 ' \ - -e 's block/bootdevice/by-name/xbl_a mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/xbl_b mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/xbl_config_a mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/xbl_config_b mmcblk0p9 ' \ - -e 's block/bootdevice/by-name/xfl_a mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/xfl_b mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/xflkeystore mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p5 ' \ - "$@" - ;; - - "kirin"|"mermaid") - sed -i \ - -e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/abl_a mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/abl_b mmcblk0p21 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p48 ' \ - -e 's block/bootdevice/by-name/appslog mmcblk0p63 ' \ - -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/bluetooth_b mmcblk0p41 ' \ - -e 's block/bootdevice/by-name/boot_a mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/boot_b mmcblk0p39 ' \ - -e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/cmnlib64_a mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/cmnlib64_b mmcblk0p28 ' \ - -e 's block/bootdevice/by-name/cmnlib_a mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/cmnlib_b mmcblk0p26 ' \ - -e 's block/bootdevice/by-name/ddr mmcblk0p55 ' \ - -e 's block/bootdevice/by-name/devcfg_a mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/devcfg_b mmcblk0p30 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p47 ' \ - -e 's block/bootdevice/by-name/diag mmcblk0p64 ' \ - -e 's block/bootdevice/by-name/dip mmcblk0p46 ' \ - -e 's block/bootdevice/by-name/dpo mmcblk0p50 ' \ - -e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/dsp_b mmcblk0p45 ' \ - -e 's block/bootdevice/by-name/frp mmcblk0p58 ' \ - -e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/fsmetadata mmcblk0p62 ' \ - -e 's block/bootdevice/by-name/hyp_a mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/hyp_b mmcblk0p17 ' \ - -e 's block/bootdevice/by-name/keymaster_a mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/keymaster_b mmcblk0p23 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p61 ' \ - -e 's block/bootdevice/by-name/limits mmcblk0p52 ' \ - -e 's block/bootdevice/by-name/logfs mmcblk0p54 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p60 ' \ - -e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/modem_b mmcblk0p43 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/msadp mmcblk0p49 ' \ - -e 's block/bootdevice/by-name/oem_a mmcblk0p67 ' \ - -e 's block/bootdevice/by-name/oem mmcblk0p67 ' \ - -e 's block/bootdevice/by-name/oem_b mmcblk0p68 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/pmic_a mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/pmic_b mmcblk0p19 ' \ - -e 's block/bootdevice/by-name/rddata mmcblk0p74 ' \ - -e 's block/bootdevice/by-name/rdimage_a mmcblk0p65 ' \ - -e 's block/bootdevice/by-name/rdimage_b mmcblk0p66 ' \ - -e 's block/bootdevice/by-name/rpm_a mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/rpm_b mmcblk0p15 ' \ - -e 's block/bootdevice/by-name/sec mmcblk0p56 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p51 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p57 ' \ - -e 's block/bootdevice/by-name/sti mmcblk0p59 ' \ - -e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/system_a mmcblk0p71 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p71 ' \ - -e 's block/bootdevice/by-name/system_b mmcblk0p72 ' \ - -e 's block/bootdevice/by-name/toolsfv mmcblk0p53 ' \ - -e 's block/bootdevice/by-name/tz_a mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/tz_b mmcblk0p13 ' \ - -e 's block/bootdevice/by-name/tzxfl_a mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/tzxfl_b mmcblk0p37 ' \ - -e 's block/bootdevice/by-name/tzxflattest_a mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/tzxflattest_b mmcblk0p35 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p73 ' \ - -e 's block/bootdevice/by-name/vendor_a mmcblk0p69 ' \ - -e 's block/bootdevice/by-name/vendor mmcblk0p69 ' \ - -e 's block/bootdevice/by-name/vendor_b mmcblk0p70 ' \ - -e 's block/bootdevice/by-name/xbl_a mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/xbl_b mmcblk0p11 ' \ - -e 's block/bootdevice/by-name/xfl_a mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/xfl_b mmcblk0p33 ' \ - -e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \ - "$@" - ;; - - "pioneer"|"discovery"|"voyager") - sed -i \ - -e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \ - -e 's block/bootdevice/by-name/Qnovo mmcblk0p75 ' \ + -e 's block/by-name/boot mmcblk0p1 ' \ + -e 's block/by-name/factory mmcblk0p12 ' \ + -e 's block/by-name/misc mmcblk0p13 ' \ + -e 's block/by-name/cache mmcblk0p15 ' \ + -e 's block/by-name/system mmcblk0p17 ' \ + -e 's block/by-name/data mmcblk0p18 ' \ + "$@" + ;; + + "karin" | "karin_windy") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p03 ' \ + -e 's block/bootdevice/by-name/diag mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p31 ' \ + "$@" + ;; + + "suzu" | "kugo" | "blanc") + sed -i \ + -e 's block/bootdevice/by-name/cache mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p52 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p51 ' \ + "$@" + ;; + + "serranodsdd") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p21 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p22 ' \ + -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p10 ' \ + -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p19 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p01 ' \ + "$@" + ;; + + # Careful with tone devices! The partitions differ between at least dora and kagura! + "kagura") + sed -i \ + -e 's block/bootdevice/by-name/FOTAKernel mmcblk0p48 ' \ + -e 's block/bootdevice/by-name/LTALabel mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/Qnovo mmcblk0p52 ' \ -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ - -e 's block/bootdevice/by-name/abl mmcblk0p20 ' \ - -e 's block/bootdevice/by-name/apdp mmcblk0p52 ' \ - -e 's block/bootdevice/by-name/appslog mmcblk0p73 ' \ - -e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \ - -e 's block/bootdevice/by-name/boot mmcblk0p38 ' \ - -e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \ - -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p27 ' \ - -e 's block/bootdevice/by-name/cmnlib mmcblk0p25 ' \ - -e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \ - -e 's block/bootdevice/by-name/devcfg mmcblk0p29 ' \ - -e 's block/bootdevice/by-name/devinfo mmcblk0p51 ' \ - -e 's block/bootdevice/by-name/diag mmcblk0p74 ' \ - -e 's block/bootdevice/by-name/dip mmcblk0p50 ' \ - -e 's block/bootdevice/by-name/dpo mmcblk0p54 ' \ - -e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \ - -e 's block/bootdevice/by-name/frp mmcblk0p62 ' \ - -e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \ - -e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \ - -e 's block/bootdevice/by-name/fsmetadata mmcblk0p72 ' \ - -e 's block/bootdevice/by-name/hyp mmcblk0p16 ' \ - -e 's block/bootdevice/by-name/keymaster mmcblk0p22 ' \ - -e 's block/bootdevice/by-name/keystore mmcblk0p67 ' \ - -e 's block/bootdevice/by-name/limits mmcblk0p56 ' \ - -e 's block/bootdevice/by-name/logfs mmcblk0p58 ' \ - -e 's block/bootdevice/by-name/mdtp mmcblk0p48 ' \ - -e 's block/bootdevice/by-name/mdtpsecapp mmcblk0p46 ' \ - -e 's block/bootdevice/by-name/misc mmcblk0p64 ' \ - -e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \ - -e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \ - -e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \ - -e 's block/bootdevice/by-name/msadp mmcblk0p53 ' \ - -e 's block/bootdevice/by-name/oem_a mmcblk0p68 ' \ - -e 's block/bootdevice/by-name/persist mmcblk0p2 ' \ - -e 's block/bootdevice/by-name/pmic mmcblk0p18 ' \ - -e 's block/bootdevice/by-name/rddata mmcblk0p77 ' \ - -e 's block/bootdevice/by-name/rdimage mmcblk0p65 ' \ - -e 's block/bootdevice/by-name/rpm mmcblk0p14 ' \ - -e 's block/bootdevice/by-name/sec mmcblk0p60 ' \ - -e 's block/bootdevice/by-name/splash mmcblk0p55 ' \ - -e 's block/bootdevice/by-name/ssd mmcblk0p61 ' \ - -e 's block/bootdevice/by-name/sti mmcblk0p63 ' \ - -e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \ - -e 's block/bootdevice/by-name/system mmcblk0p78 ' \ - -e 's block/bootdevice/by-name/toolsfv mmcblk0p57 ' \ - -e 's block/bootdevice/by-name/tz mmcblk0p12 ' \ - -e 's block/bootdevice/by-name/tzxfl mmcblk0p36 ' \ - -e 's block/bootdevice/by-name/tzxflattest mmcblk0p34 ' \ - -e 's block/bootdevice/by-name/userdata mmcblk0p76 ' \ - -e 's block/bootdevice/by-name/vendor mmcblk0p70 ' \ - -e 's block/bootdevice/by-name/xbl mmcblk0p10 ' \ - -e 's block/bootdevice/by-name/xfl mmcblk0p32 ' \ - -e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \ - -e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \ - "$@" - ;; - - "akari") - sed -i \ - -e 's block/bootdevice/by-name/LTALabel sda2 ' \ - -e 's block/bootdevice/by-name/Qnovo sda70 ' \ - -e 's block/bootdevice/by-name/TA sda1 ' \ - -e 's block/bootdevice/by-name/abl_a sda12 ' \ - -e 's block/bootdevice/by-name/abl_b sda24 ' \ - -e 's block/bootdevice/by-name/aop_a sda9 ' \ - -e 's block/bootdevice/by-name/aop_b sda21 ' \ - -e 's block/bootdevice/by-name/apdp sda54 ' \ - -e 's block/bootdevice/by-name/appslog sda68 ' \ - -e 's block/bootdevice/by-name/bluetooth_a sda34 ' \ - -e 's block/bootdevice/by-name/bluetooth sda34 ' \ - -e 's block/bootdevice/by-name/bluetooth_b sda44 ' \ - -e 's block/bootdevice/by-name/boot_a sda36 ' \ - -e 's block/bootdevice/by-name/boot_b sda46 ' \ - -e 's block/bootdevice/by-name/cdt sda64 ' \ - -e 's block/bootdevice/by-name/cmnlib64_a sda15 ' \ - -e 's block/bootdevice/by-name/cmnlib64_b sda27 ' \ - -e 's block/bootdevice/by-name/cmnlib_a sda14 ' \ - -e 's block/bootdevice/by-name/cmnlib_b sda26 ' \ - -e 's block/bootdevice/by-name/ddr sda8 ' \ - -e 's block/bootdevice/by-name/devcfg_a sda16 ' \ - -e 's block/bootdevice/by-name/devcfg_b sda28 ' \ - -e 's block/bootdevice/by-name/devinfo sda7 ' \ - -e 's block/bootdevice/by-name/diag sda69 ' \ - -e 's block/bootdevice/by-name/dsp_a sda35 ' \ - -e 's block/bootdevice/by-name/dsp sda35 ' \ - -e 's block/bootdevice/by-name/dsp_b sda45 ' \ - -e 's block/bootdevice/by-name/dtbo_a sda39 ' \ - -e 's block/bootdevice/by-name/dtbo_b sda49 ' \ - -e 's block/bootdevice/by-name/frp sda67 ' \ - -e 's block/bootdevice/by-name/fsc sda72 ' \ - -e 's block/bootdevice/by-name/fsg sda63 ' \ - -e 's block/bootdevice/by-name/fsmetadata sda71 ' \ - -e 's block/bootdevice/by-name/hyp_a sda11 ' \ - -e 's block/bootdevice/by-name/hyp_b sda23 ' \ - -e 's block/bootdevice/by-name/keymaster_a sda13 ' \ - -e 's block/bootdevice/by-name/keymaster_b sda25 ' \ - -e 's block/bootdevice/by-name/keystore sda66 ' \ - -e 's block/bootdevice/by-name/limits sda57 ' \ - -e 's block/bootdevice/by-name/logdump sda60 ' \ - -e 's block/bootdevice/by-name/logfs sda59 ' \ - -e 's block/bootdevice/by-name/misc sda65 ' \ - -e 's block/bootdevice/by-name/modem_a sda33 ' \ - -e 's block/bootdevice/by-name/modem sda33 ' \ - -e 's block/bootdevice/by-name/modem_b sda43 ' \ - -e 's block/bootdevice/by-name/modemst1 sda61 ' \ - -e 's block/bootdevice/by-name/modemst2 sda62 ' \ - -e 's block/bootdevice/by-name/msadp sda55 ' \ - -e 's block/bootdevice/by-name/oem_a sda40 ' \ - -e 's block/bootdevice/by-name/oem sda40 ' \ - -e 's block/bootdevice/by-name/oem_b sda50 ' \ - -e 's block/bootdevice/by-name/persist sda5 ' \ - -e 's block/bootdevice/by-name/qupfw_a sda17 ' \ - -e 's block/bootdevice/by-name/qupfw_b sda29 ' \ - -e 's block/bootdevice/by-name/rddata sda74 ' \ - -e 's block/bootdevice/by-name/rdimage_a sda37 ' \ - -e 's block/bootdevice/by-name/rdimage_b sda47 ' \ - -e 's block/bootdevice/by-name/sec sda53 ' \ - -e 's block/bootdevice/by-name/spunvm sda56 ' \ - -e 's block/bootdevice/by-name/ssd sda6 ' \ - -e 's block/bootdevice/by-name/system_a sda42 ' \ - -e 's block/bootdevice/by-name/system_b sda52 ' \ - -e 's block/bootdevice/by-name/toolsfv sda58 ' \ - -e 's block/bootdevice/by-name/tz_a sda10 ' \ - -e 's block/bootdevice/by-name/tz_b sda22 ' \ - -e 's block/bootdevice/by-name/tzxfl_a sda20 ' \ - -e 's block/bootdevice/by-name/tzxfl_b sda32 ' \ - -e 's block/bootdevice/by-name/tzxflattest_a sda19 ' \ - -e 's block/bootdevice/by-name/tzxflattest_b sda31 ' \ - -e 's block/bootdevice/by-name/userdata sda73 ' \ - -e 's block/bootdevice/by-name/vbmeta_a sda38 ' \ - -e 's block/bootdevice/by-name/vbmeta_b sda48 ' \ - -e 's block/bootdevice/by-name/vendor_a sda41 ' \ - -e 's block/bootdevice/by-name/vendor_b sda51 ' \ - -e 's block/bootdevice/by-name/xbl_a sdb1 ' \ - -e 's block/bootdevice/by-name/xbl_b sdc1 ' \ - -e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \ - -e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \ - -e 's block/bootdevice/by-name/xfl_a sda18 ' \ - -e 's block/bootdevice/by-name/xfl_b sda30 ' \ - -e 's block/bootdevice/by-name/xflkeystore sda3 ' \ - -e 's block/bootdevice/by-name/xflkeystorebak sda4 ' \ - "$@" - ;; - - "lilac") - sed -i \ - -e 's block/bootdevice/by-name/FOTAKernel sda47 ' \ - -e 's block/bootdevice/by-name/LTALabel sda2 ' \ - -e 's block/bootdevice/by-name/Qnovo sda60 ' \ - -e 's block/bootdevice/by-name/TA sda1 ' \ - -e 's block/bootdevice/by-name/abl sda11 ' \ - -e 's block/bootdevice/by-name/ablbak sda12 ' \ - -e 's block/bootdevice/by-name/apdp sda40 ' \ - -e 's block/bootdevice/by-name/appslog sda58 ' \ - -e 's block/bootdevice/by-name/bluetooth sda39 ' \ - -e 's block/bootdevice/by-name/boot sda38 ' \ - -e 's block/bootdevice/by-name/cache sda53 ' \ - -e 's block/bootdevice/by-name/cmnlib sda16 ' \ - -e 's block/bootdevice/by-name/cmnlib64 sda18 ' \ - -e 's block/bootdevice/by-name/cmnlib64bak sda19 ' \ - -e 's block/bootdevice/by-name/cmnlibbak sda17 ' \ - -e 's block/bootdevice/by-name/ddr sda48 ' \ - -e 's block/bootdevice/by-name/devcfg sda21 ' \ - -e 's block/bootdevice/by-name/devcfgbak sda22 ' \ - -e 's block/bootdevice/by-name/devinfo sda13 ' \ - -e 's block/bootdevice/by-name/diag sda59 ' \ - -e 's block/bootdevice/by-name/dpo sda42 ' \ - -e 's block/bootdevice/by-name/dsp sda37 ' \ - -e 's block/bootdevice/by-name/frp sda56 ' \ - -e 's block/bootdevice/by-name/fsc sda51 ' \ - -e 's block/bootdevice/by-name/fsg sda34 ' \ - -e 's block/bootdevice/by-name/fsmetadata sda61 ' \ - -e 's block/bootdevice/by-name/hyp sda7 ' \ - -e 's block/bootdevice/by-name/hypbak sda8 ' \ - -e 's block/bootdevice/by-name/keymaster sda14 ' \ - -e 's block/bootdevice/by-name/keymasterbak sda15 ' \ - -e 's block/bootdevice/by-name/keystore sda55 ' \ - -e 's block/bootdevice/by-name/limits sda44 ' \ - -e 's block/bootdevice/by-name/logfs sda46 ' \ - -e 's block/bootdevice/by-name/misc sda54 ' \ - -e 's block/bootdevice/by-name/modem sda36 ' \ - -e 's block/bootdevice/by-name/modemst1 sda49 ' \ - -e 's block/bootdevice/by-name/modemst2 sda50 ' \ - -e 's block/bootdevice/by-name/msadp sda41 ' \ - -e 's block/bootdevice/by-name/oem sda63 ' \ - -e 's block/bootdevice/by-name/persist sda33 ' \ - -e 's block/bootdevice/by-name/pmic sda9 ' \ - -e 's block/bootdevice/by-name/pmicbak sda10 ' \ - -e 's block/bootdevice/by-name/rdimage sda62 ' \ - -e 's block/bootdevice/by-name/rpm sda3 ' \ - -e 's block/bootdevice/by-name/rpmbak sda4 ' \ - -e 's block/bootdevice/by-name/sec sda35 ' \ - -e 's block/bootdevice/by-name/splash sda43 ' \ - -e 's block/bootdevice/by-name/ssd sda52 ' \ - -e 's block/bootdevice/by-name/sti sda20 ' \ - -e 's block/bootdevice/by-name/storsec sda23 ' \ - -e 's block/bootdevice/by-name/storsecbak sda24 ' \ - -e 's block/bootdevice/by-name/system sda65 ' \ - -e 's block/bootdevice/by-name/toolsfv sda45 ' \ - -e 's block/bootdevice/by-name/tz sda5 ' \ - -e 's block/bootdevice/by-name/tzbak sda6 ' \ - -e 's block/bootdevice/by-name/tzxfl sda29 ' \ - -e 's block/bootdevice/by-name/tzxflattest sda27 ' \ - -e 's block/bootdevice/by-name/tzxflattestbak sda28 ' \ - -e 's block/bootdevice/by-name/tzxflbak sda30 ' \ - -e 's block/bootdevice/by-name/userdata sda66 ' \ - -e 's block/bootdevice/by-name/vbmeta sda57 ' \ - -e 's block/bootdevice/by-name/vendor sda64 ' \ - -e 's block/bootdevice/by-name/xbl sdb1 ' \ - -e 's block/bootdevice/by-name/xblbak sdc1 ' \ - -e 's block/bootdevice/by-name/xfl sda25 ' \ - -e 's block/bootdevice/by-name/xflbak sda26 ' \ - -e 's block/bootdevice/by-name/xflkeystore sda31 ' \ - -e 's block/bootdevice/by-name/xflkeystorebak sda32 ' \ + -e 's block/bootdevice/by-name/aboot mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/abootbak mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/apps_log mmcblk0p50 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/cmnlib mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/cmnlib64bak mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/ddr mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/devcfg mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/devcfgbak mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/diag mmcblk0p51 ' \ + -e 's block/bootdevice/by-name/dpo mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/frp mmcblk0p46 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/hyp mmcblk0p9 ' \ + -e 's block/bootdevice/by-name/hypbak mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/keymaster mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/keymasterbak mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p45 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/msadp mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p53 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/pmic mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/pmicbak mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/rdimage mmcblk0p49 ' \ + -e 's block/bootdevice/by-name/rpm mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/rpmbak mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/s1sbl mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/s1sblbak mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/sec mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/sti mmcblk0p47 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p55 ' \ + -e 's block/bootdevice/by-name/tz mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/tzbak mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/tzs1attest mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/tzs1attestbak mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/tzs1sbl mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/tzs1sblbak mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p54 ' \ + -e 's block/bootdevice/by-name/xbl mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/xblbak mmcblk0p4 ' \ "$@" ;; @@ -568,6 +277,16 @@ case "$DEVICE" in "$@" ;; + "a5y17lte") + sed -i \ + -e 's platform/13540000.dwmmc0/by-name/SYSTEM mmcblk0p19 ' \ + -e 's platform/13540000.dwmmc0/by-name/CACHE mmcblk0p20 ' \ + -e 's platform/13540000.dwmmc0/by-name/USERDATA mmcblk0p25 ' \ + -e 's platform/13540000.dwmmc0/by-name/EFS mmcblk0p3 ' \ + -e 's platform/13540000.dwmmc0/by-name/HIDDEN mmcblk0p21 ' \ + "$@" + ;; + "moto_msm8960_jbbl") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \ @@ -765,50 +484,10 @@ case "$DEVICE" in "bullhead") sed -i \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/DDR mmcblk0p28 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/aboot mmcblk0p8 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/abootbak mmcblk0p14 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/apdp mmcblk0p17 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/boot mmcblk0p37 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/cache mmcblk0p40 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/cmnlib mmcblk0p33 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/cmnlibak mmcblk0p35 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/config mmcblk0p16 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/devinfo mmcblk0p43 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/dpo mmcblk0p19 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/fsc mmcblk0p20 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/fsg mmcblk0p27 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/grow mmcblk0p46 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/hyp mmcblk0p6 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/hypbak mmcblk0p12 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/imgdata mmcblk0p29 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/keymaster mmcblk0p32 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/keymasterbak mmcblk0p34 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/keystore mmcblk0p44 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/laf mmcblk0p31 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/limits mmcblk0p15 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/metadata mmcblk0p30 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/misc mmcblk0p23 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/modem mmcblk0p1 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/modemst1 mmcblk0p25 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/modemst2 mmcblk0p26 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/msadp mmcblk0p18 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/oem mmcblk0p36 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/persist mmcblk0p24 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/persistent mmcblk0p42 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/pmic mmcblk0p2 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/pmicbak mmcblk0p10 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/recovery mmcblk0p38 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/rpm mmcblk0p7 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/rpmbak mmcblk0p13 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/sbl1 mmcblk0p3 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/sbl1bak mmcblk0p9 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/sdi mmcblk0p5 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/sec mmcblk0p22 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/ssd mmcblk0p21 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/system mmcblk0p41 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/tz mmcblk0p4 ' \ - -e 's block/platform/soc.0/f9824900.sdhci/by-name/tzbak mmcblk0p11 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/userdata mmcblk0p45 ' \ -e 's block/platform/soc.0/f9824900.sdhci/by-name/vendor mmcblk0p39 ' \ "$@" @@ -910,99 +589,6 @@ case "$DEVICE" in -e 's block/platform/omap/omap_hsmmc.0/by-name/efs mmcblk0p3 ' \ "$@" ;; - - "cheeseburger"|"dumpling") - sed -i \ - -e 's block/bootdevice/by-name/LOGO sde18 ' \ - -e 's block/bootdevice/by-name/abl sde16 ' \ - -e 's block/bootdevice/by-name/ablbak sde17 ' \ - -e 's block/bootdevice/by-name/apdp sde31 ' \ - -e 's block/bootdevice/by-name/bluetooth sde24 ' \ - -e 's block/bootdevice/by-name/boot sde19 ' \ - -e 's block/bootdevice/by-name/boot_aging sde20 ' \ - -e 's block/bootdevice/by-name/cache sda3 ' \ - -e 's block/bootdevice/by-name/cdt sdd2 ' \ - -e 's block/bootdevice/by-name/cmnlib sde27 ' \ - -e 's block/bootdevice/by-name/cmnlib64 sde29 ' \ - -e 's block/bootdevice/by-name/cmnlib64bak sde30 ' \ - -e 's block/bootdevice/by-name/cmnlibbak sde28 ' \ - -e 's block/bootdevice/by-name/config sda12 ' \ - -e 's block/bootdevice/by-name/ddr sdd3 ' \ - -e 's block/bootdevice/by-name/devcfg sde39 ' \ - -e 's block/bootdevice/by-name/devinfo sde23 ' \ - -e 's block/bootdevice/by-name/dip sde14 ' \ - -e 's block/bootdevice/by-name/dpo sde33 ' \ - -e 's block/bootdevice/by-name/dsp sde11 ' \ - -e 's block/bootdevice/by-name/frp sda6 ' \ - -e 's block/bootdevice/by-name/fsc sdf4 ' \ - -e 's block/bootdevice/by-name/fsg sdf3 ' \ - -e 's block/bootdevice/by-name/fw_4g9n4 sde45 ' \ - -e 's block/bootdevice/by-name/fw_4j1ed sde43 ' \ - -e 's block/bootdevice/by-name/fw_4t0n8 sde46 ' \ - -e 's block/bootdevice/by-name/fw_8v1ee sde44 ' \ - -e 's block/bootdevice/by-name/hyp sde5 ' \ - -e 's block/bootdevice/by-name/hypbak sde6 ' \ - -e 's block/bootdevice/by-name/keymaster sde25 ' \ - -e 's block/bootdevice/by-name/keymasterbak sde26 ' \ - -e 's block/bootdevice/by-name/keystore sda5 ' \ - -e 's block/bootdevice/by-name/limits sde35 ' \ - -e 's block/bootdevice/by-name/logdump sde40 ' \ - -e 's block/bootdevice/by-name/logfs sde37 ' \ - -e 's block/bootdevice/by-name/md5 sdf5 ' \ - -e 's block/bootdevice/by-name/mdtp sde15 ' \ - -e 's block/bootdevice/by-name/mdtpsecapp sde12 ' \ - -e 's block/bootdevice/by-name/mdtpsecappbak sde13 ' \ - -e 's block/bootdevice/by-name/minidump sde47 ' \ - -e 's block/bootdevice/by-name/misc sda4 ' \ - -e 's block/bootdevice/by-name/modem sde10 ' \ - -e 's block/bootdevice/by-name/modemst1 sdf1 ' \ - -e 's block/bootdevice/by-name/modemst2 sdf2 ' \ - -e 's block/bootdevice/by-name/msadp sde32 ' \ - -e 's block/bootdevice/by-name/oem_dycnvbk sda7 ' \ - -e 's block/bootdevice/by-name/oem_stanvbk sda8 ' \ - -e 's block/bootdevice/by-name/param sda9 ' \ - -e 's block/bootdevice/by-name/persist sda2 ' \ - -e 's block/bootdevice/by-name/pmic sde8 ' \ - -e 's block/bootdevice/by-name/pmicbak sde9 ' \ - -e 's block/bootdevice/by-name/recovery sde22 ' \ - -e 's block/bootdevice/by-name/reserve sdd1 ' \ - -e 's block/bootdevice/by-name/reserve1 sda10 ' \ - -e 's block/bootdevice/by-name/reserve2 sda11 ' \ - -e 's block/bootdevice/by-name/reserve3 sdf7 ' \ - -e 's block/bootdevice/by-name/rpm sde1 ' \ - -e 's block/bootdevice/by-name/rpmbak sde2 ' \ - -e 's block/bootdevice/by-name/sec sde7 ' \ - -e 's block/bootdevice/by-name/splash sde34 ' \ - -e 's block/bootdevice/by-name/ssd sda1 ' \ - -e 's block/bootdevice/by-name/sti sde38 ' \ - -e 's block/bootdevice/by-name/storsec sde41 ' \ - -e 's block/bootdevice/by-name/storsecbak sde42 ' \ - -e 's block/bootdevice/by-name/system sde21 ' \ - -e 's block/bootdevice/by-name/toolsfv sde36 ' \ - -e 's block/bootdevice/by-name/tz sde3 ' \ - -e 's block/bootdevice/by-name/tzbak sde4 ' \ - -e 's block/bootdevice/by-name/userdata sda13 ' \ - -e 's block/bootdevice/by-name/vendor sdf6 ' \ - -e 's block/bootdevice/by-name/xbl sdb1 ' \ - -e 's block/bootdevice/by-name/xblbak sdc1 ' \ - "$@" - ;; - - "enchilada" | "fajita") - sed -i \ - -e 's block/bootdevice/by-name/bluetooth sde5 ' \ - -e 's block/bootdevice/by-name/boot sde11 ' \ - -e 's block/bootdevice/by-name/dsp sde9 ' \ - -e 's block/bootdevice/by-name/misc sda3 ' \ - -e 's block/bootdevice/by-name/modem sde4 ' \ - -e 's block/bootdevice/by-name/odm sda15 ' \ - -e 's block/bootdevice/by-name/persist sda2 ' \ - -e 's block/bootdevice/by-name/system sda13 ' \ - -e 's block/bootdevice/by-name/userdata sda17 ' \ - -e 's block/bootdevice/by-name/vbmeta sde17 ' \ - -e 's block/bootdevice/by-name/vendor sde16 ' \ - "$@" - ;; "bacon") sed -i \ @@ -1035,7 +621,7 @@ case "$DEVICE" in "$@" ;; - "yuga") + "yuga" | "odin" | "dogo" | "pollux" | "pollux_windy") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p17 ' \ -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p24 ' \ @@ -1045,38 +631,38 @@ case "$DEVICE" in "$@" ;; - "z3c" | "sirius") + "z3c" | "sirius" | "z3" | "leo" | "honami" | "amami") # Z3 compact is also called "aries" | "d5803" in aosp (called z3c in cm12.1) # Z2 is also called "d6503" in aosp (called sirius in cm12.1) - # untested for "amami" | "leo" | "tianchi") - sed -i \ - -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p17 ' \ - -e 's block/platform/msm_sdcc.1/by-name/FOTAKernel mmcblk0p16 ' \ - -e 's block/platform/msm_sdcc.1/by-name/LTALabel mmcblk0p18 ' \ - -e 's block/platform/msm_sdcc.1/by-name/TA mmcblk0p1 ' \ - -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_aboot mmcblk0p11 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_dbi mmcblk0p10 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_rpm mmcblk0p12 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_s1sbl mmcblk0p9 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_sbl1 mmcblk0p8 ' \ - -e 's block/platform/msm_sdcc.1/by-name/alt_tz mmcblk0p13 ' \ - -e 's block/platform/msm_sdcc.1/by-name/apps_log mmcblk0p22 ' \ - -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ - -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ - -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p4 ' \ - -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p19 ' \ - -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p20 ' \ - -e 's block/platform/msm_sdcc.1/by-name/ramdump mmcblk0p15 ' \ - -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p6 ' \ - -e 's block/platform/msm_sdcc.1/by-name/s1sbl mmcblk0p3 ' \ - -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p2 ' \ - -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ - -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p7 ' \ - -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \ + # untested for "amami" | "tianchi") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p17 ' \ + -e 's block/platform/msm_sdcc.1/by-name/FOTAKernel mmcblk0p16 ' \ + -e 's block/platform/msm_sdcc.1/by-name/LTALabel mmcblk0p18 ' \ + -e 's block/platform/msm_sdcc.1/by-name/TA mmcblk0p1 ' \ + -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p5 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_aboot mmcblk0p11 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_dbi mmcblk0p10 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_rpm mmcblk0p12 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_s1sbl mmcblk0p9 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_sbl1 mmcblk0p8 ' \ + -e 's block/platform/msm_sdcc.1/by-name/alt_tz mmcblk0p13 ' \ + -e 's block/platform/msm_sdcc.1/by-name/apps_log mmcblk0p22 ' \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/dbi mmcblk0p4 ' \ + -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p19 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p20 ' \ + -e 's block/platform/msm_sdcc.1/by-name/ramdump mmcblk0p15 ' \ + -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p6 ' \ + -e 's block/platform/msm_sdcc.1/by-name/s1sbl mmcblk0p3 ' \ + -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p2 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ + -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p7 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p25 ' \ "$@" - ;; + ;; "kis3") sed -i \ @@ -1163,7 +749,7 @@ case "$DEVICE" in ;; "find5") - sed -i \ + sed -i \ -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \ -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p21 ' \ -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p19 ' \ @@ -1173,7 +759,7 @@ case "$DEVICE" in ;; "cancro") - sed -i \ + sed -i \ -e 's block/platform/msm_sdcc.1/by-name/DDR mmcblk0p4 ' \ -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p7 ' \ -e 's block/platform/msm_sdcc.1/by-name/bk1 mmcblk0p8 ' \ @@ -1203,7 +789,7 @@ case "$DEVICE" in ;; "gemini") - sed -i \ + sed -i \ -e 's block/bootdevice/by-name/aboot sde23 ' \ -e 's block/bootdevice/by-name/abootbak sde24 ' \ -e 's block/bootdevice/by-name/apdp sde5 ' \ @@ -1275,7 +861,7 @@ case "$DEVICE" in ;; "gts210ltexx"|"gts210wifi") - sed -i \ + sed -i \ -e 's block/platform/15540000.dwmmc0/by-name/BOOT mmcblk0p9 ' \ -e 's block/platform/15540000.dwmmc0/by-name/CACHE mmcblk0p20 ' \ -e 's block/platform/15540000.dwmmc0/by-name/EFS mmcblk0p3 ' \ @@ -1285,7 +871,7 @@ case "$DEVICE" in ;; "kenzo") - sed -i \ + sed -i \ -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \ -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \ -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \ @@ -1335,6 +921,42 @@ case "$DEVICE" in "$@" ;; + "ido") + sed -i \ + -e 's block/bootdevice/by-name/DDR mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/aboot mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/abootbak mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/config mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/cust mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/fsc mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/hyp mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/hypbak mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/pad mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/sbl1 mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/sbl1bak mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/sec mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p31 ' \ + "$@" + ;; + "armani") sed -i \ -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p10 ' \ @@ -1378,6 +1000,65 @@ case "$DEVICE" in "$@" ;; + "m8") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p42 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p47 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p45 ' \ + "$@" + ;; + + "chaozu") + sed -i \ + -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/cmnlib mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/cmnlib64bak mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/config mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/devcfg mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/devcfgbak mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/dip mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/dpo mmcblk0p45 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/fsc mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/keymaster mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/keymasterbak mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/limits mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/mcfg mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/mdtp mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/mota mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/msadp mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/sbl1 mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/sbl1bak mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/sec mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/syscfg mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \ + "$@" + ;; + "oneplus3") sed -i \ -e 's block/bootdevice/by-name/LOGO sde17 ' \ @@ -1441,6 +1122,119 @@ case "$DEVICE" in "$@" ;; + "T00F") + sed -i \ + -e 's /dev/block/by-name/system /dev/mmcblk0p9 ' \ + -e 's /dev/block/by-name/cache /dev/mmcblk0p6 ' \ + -e 's /dev/block/by-name/config /dev/mmcblk0p5 ' \ + -e 's /dev/block/by-name/data /dev/mmcblk0p10 ' \ + -e 's /dev/block/by-name/factory /dev/mmcblk0p3 ' \ + "$@" + ;; + + "angler") + sed -i \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/system mmcblk0p43 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/vendor mmcblk0p37 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/userdata mmcblk0p44 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/cache mmcblk0p38 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/persist mmcblk0p32 ' \ + -e 's block/platform/soc.0/f9824900.sdhci/by-name/modem mmcblk0p1 ' \ + "$@" + ;; + + "pme") + sed -i \ + -e 's block/platform/soc/7464900.sdhci/by-name/adsp mmcblk0p31 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/cache mmcblk0p61 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/carrier mmcblk0p53 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/dsp mmcblk0p57 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/persist mmcblk0p48 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/radio mmcblk0p30 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/slpi mmcblk0p33 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/system mmcblk0p62 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/userdata mmcblk0p63 ' \ + -e 's block/platform/soc/7464900.sdhci/by-name/venus mmcblk0p36 ' \ + "$@" + ;; + + "Z00L"|"Z00LD"|"Z00W"|"Z00WD"|"Z00M"|"Z00MD"|"Z00MDD"|"Z00T"|"Z00TD"|"Z00U"|"Z00UD"|"Z00UDH"|"Z00UDB"|"Z011"|"Z011D"|"Z011DD") + sed -i \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/asdf mmcblk0p33 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/boot mmcblk0p37 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/cache mmcblk0p44 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/factory mmcblk0p20 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/misc mmcblk0p30 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/modem mmcblk0p41 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/persist mmcblk0p39 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/recovery mmcblk0p38 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/system mmcblk0p45 ' \ + -e 's block/platform/soc.0/7824900.sdhci/by-name/userdata mmcblk0p46 ' \ + "$@" + ;; + + "oneplus3") + sed -i \ + -e 's block/bootdevice/by-name/boot sde18 ' \ + -e 's block/bootdevice/by-name/userdata sda15 ' \ + -e 's block/bootdevice/by-name/system sde20 ' \ + -e 's block/bootdevice/by-name/cache sda3 ' \ + "$@" + ;; + + "cheeseburger") + sed -i \ + -e 's block/bootdevice/by-name/boot sde19 ' \ + -e 's block/bootdevice/by-name/userdata sda13 ' \ + -e 's block/bootdevice/by-name/system sde21 ' \ + -e 's block/bootdevice/by-name/cache sda3 ' \ + -e 's block/bootdevice/by-name/persist sda2 ' \ + -e 's block/bootdevice/by-name/modem sde10 ' \ + -e 's block/bootdevice/by-name/bluetooth sde24 ' \ + "$@" + ;; + + "oneplus2") + sed -i \ + -e 's block/bootdevice/by-name/boot mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/bluetooth mmcblk0p2 ' \ + "$@" + ;; + + "shamu") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p37 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p42 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p41 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p38 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \ + "$@" + ;; + + "flounder") + sed -i \ + -e 's block/platform/sdhci-tegra.3/by-name/LNX mmcblk0p16 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p31 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p29 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p30 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/VNR mmcblk0p24 ' \ + "$@" + ;; + + "tulip-chiphd") + sed -i \ + -e 's block/mmcblk0p1 mmcblk0p1 ' \ + -e 's block/mmcblk0p4 mmcblk0p4 ' \ + -e 's block/mmcblk0p2 mmcblk0p2 ' \ + -e 's block/mmcblk0p3 mmcblk0p3 ' \ + "$@" + ;; + "addison") sed -i \ -e 's block/bootdevice/by-name/boot mmcblk0p37 ' \ @@ -1478,159 +1272,586 @@ case "$DEVICE" in "$@" ;; - "walleye") - sed -i \ - -e 's block/platform/soc/1da4000.ufshc/by-name/abl_a sda8 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/abl_b sda29 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/apdp_a sda14 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/apdp_b sda35 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/board_info sdf1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/boot_a sda9 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/boot_b sda30 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cdt sdd5 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_a sda13 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_b sda34 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_a sda12 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_b sda33 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/ddr sdd6 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_a sda16 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_b sda37 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/devinfo sdf4 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dip sdd8 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dpo sdd9 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_a sda21 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_b sda42 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/frp sdd4 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/fsc sdd17 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/fsg sdf3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/hosd_a sda10 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/hosd_b sda31 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_a sda5 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_b sda26 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_a sda11 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_b sda32 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/limits sdd11 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/lockbooter_a sda2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/lockbooter_b sda23 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/logfs sdd13 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/metadata sde4 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/mfg sdf2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/misc sdd1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modem_a sda7 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modem_b sda28 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modemst1 sdd15 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modemst2 sdd16 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/msadp_a sda15 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/msadp_b sda36 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/padding0 sda1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/padding1 sda44 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/persist sdd3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pg1fs sde2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pg2fs sde3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_a sda6 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_b sda27 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/ramdump sde1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/reserve3 sdd18 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/reserve4 sde5 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/reserve5 sdf5 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_a sda3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_b sda24 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sec sdd7 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/splash sdd10 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/ssd sdd2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sti sdd14 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/storesec_a sda17 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/storesec_b sda38 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/system_a sda22' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/system_b sda43 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/toolsfv sdd12 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/trusty_a sda19 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/trusty_b sda40 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/tz_a sda4 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/tz_b sda25 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/userdata sda45 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_a sda18 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_b sda39 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_a sda20 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_b sda41 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_a sdb1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_b sdc1 ' \ - "$@" - ;; - - "taimen") - sed -i \ - -e 's block/platform/soc/1da4000.ufshc/by-name/abl_a sde6 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/abl_b sde20 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/aes_a sda10 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/aes_b sda11 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/align_parti sda12 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/apdp sde29 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/boot_a sde8 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/boot_b sde22 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cdt sdd1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_a sde10 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib64_b sde24 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_a sde9 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/cmdlib_b sde23 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/ddr sdd2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_a sde11 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/devcfg_b sde25 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/devinfo sde34 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dip sde35 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dpo sde36 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_a sde13 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/dtbo_b sde27 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/frp sdg1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/fsc sdf3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/fsg sde32 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/ftm sda6 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_a sde3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/hyp_b sde17 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_a sde7 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/keymaster_b sde21 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/laf_a sda1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/laf_b sda2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/limits sde37 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/logfs sde39 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/metadata sde41 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/misc sda5 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modem_a sde5 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modem_b sde19 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modemst1 sdf1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/modemst2 sdf2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/msadp sde30 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/persist sda4 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_a sde4 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pmic_b sde18 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/pstore sda9 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_a sde1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/rpm_b sde15 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sda sda ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sdb sdb ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sdc sdc ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sdd sdd ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sde sde ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sdf sdf ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sdg sdg ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sec sde33 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/ssd sda3 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/sti sde40 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/storesec sde31 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/system_a sda7 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/system_b sda8 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/toolsfv sde38 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/tz_a sde2 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/tz_b sde16 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/userdata sda13 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_a sde12 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vbmeta_b sde26 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_a sde14 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/vendor_b sde28 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_a sdb1 ' \ - -e 's block/platform/soc/1da4000.ufshc/by-name/xbl_b sdc1 ' \ + "krillin") + sed -i \ + -e 's block/platform/mtk-msdc.0/by-num/p1 mmcblk0p1 ' \ + -e 's block/platform/mtk-msdc.0/by-num/p2 mmcblk0p2 ' \ + -e 's block/platform/mtk-msdc.0/by-num/p3 mmcblk0p3 ' \ + -e 's block/platform/mtk-msdc.0/by-num/p4 mmcblk0p4 ' \ + -e 's block/platform/mtk-msdc.0/by-num/p5 mmcblk0p5 ' \ + -e 's block/platform/mtk-msdc.0/by-num/p6 mmcblk0p6 ' \ + -e 's block/platform/mtk-msdc.0/by-num/p7 mmcblk0p7 ' \ + "$@" + ;; + + "suzuran") + sed -i \ + -e 's block/bootdevice/by-name/DDR mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/FOTAKernel mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/LTALabel mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/TA mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/aboot mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/alt_aboot mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/alt_hyp mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/alt_pmic mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/alt_rpm mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/alt_s1sbl mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/alt_sbl1 mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/alt_sdi mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/alt_tz mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/apps_log mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/config mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/diag mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/dpo mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/hyp mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/limits mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/msadp mmcblk0p9 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/pmic mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/rddata mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/rdimage mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/rpm mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/s1sbl mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/sbl1 mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/sdi mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/tz mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p42 ' \ + "$@" + ;; + + "sumire") + sed -i \ + -e 's block/platform/soc.0/by-name/DDR mmcblk0p7 ' \ + -e 's block/platform/soc.0/by-name/FOTAKernel mmcblk0p32 ' \ + -e 's block/platform/soc.0/by-name/LTALabel mmcblk0p2 ' \ + -e 's block/platform/soc.0/by-name/TA mmcblk0p1 ' \ + -e 's block/platform/soc.0/by-name/aboot mmcblk0p27 ' \ + -e 's block/platform/soc.0/by-name/alt_aboot mmcblk0p28 ' \ + -e 's block/platform/soc.0/by-name/alt_hyp mmcblk0p12 ' \ + -e 's block/platform/soc.0/by-name/alt_pmic mmcblk0p5 ' \ + -e 's block/platform/soc.0/by-name/alt_rpm mmcblk0p26 ' \ + -e 's block/platform/soc.0/by-name/alt_s1sbl mmcblk0p20 ' \ + -e 's block/platform/soc.0/by-name/alt_sbl1 mmcblk0p16 ' \ + -e 's block/platform/soc.0/by-name/alt_sdi mmcblk0p22 ' \ + -e 's block/platform/soc.0/by-name/alt_tz mmcblk0p24 ' \ + -e 's block/platform/soc.0/by-name/apdp mmcblk0p8 ' \ + -e 's block/platform/soc.0/by-name/apps_log mmcblk0p38 ' \ + -e 's block/platform/soc.0/by-name/boot mmcblk0p29 ' \ + -e 's block/platform/soc.0/by-name/cache mmcblk0p41 ' \ + -e 's block/platform/soc.0/by-name/config mmcblk0p36 ' \ + -e 's block/platform/soc.0/by-name/devinfo mmcblk0p35 ' \ + -e 's block/platform/soc.0/by-name/diag mmcblk0p39 ' \ + -e 's block/platform/soc.0/by-name/dpo mmcblk0p10 ' \ + -e 's block/platform/soc.0/by-name/fsg mmcblk0p13 ' \ + -e 's block/platform/soc.0/by-name/hyp mmcblk0p11 ' \ + -e 's block/platform/soc.0/by-name/keystore mmcblk0p34 ' \ + -e 's block/platform/soc.0/by-name/limits mmcblk0p6 ' \ + -e 's block/platform/soc.0/by-name/misc mmcblk0p33 ' \ + -e 's block/platform/soc.0/by-name/modem mmcblk0p3 ' \ + -e 's block/platform/soc.0/by-name/modemst1 mmcblk0p17 ' \ + -e 's block/platform/soc.0/by-name/modemst2 mmcblk0p18 ' \ + -e 's block/platform/soc.0/by-name/msadp mmcblk0p9 ' \ + -e 's block/platform/soc.0/by-name/oem mmcblk0p40 ' \ + -e 's block/platform/soc.0/by-name/persist mmcblk0p31 ' \ + -e 's block/platform/soc.0/by-name/pmic mmcblk0p4 ' \ + -e 's block/platform/soc.0/by-name/rddata mmcblk0p37 ' \ + -e 's block/platform/soc.0/by-name/rdimage mmcblk0p30 ' \ + -e 's block/platform/soc.0/by-name/rpm mmcblk0p25 ' \ + -e 's block/platform/soc.0/by-name/s1sbl mmcblk0p19 ' \ + -e 's block/platform/soc.0/by-name/sbl1 mmcblk0p15 ' \ + -e 's block/platform/soc.0/by-name/sdi mmcblk0p21 ' \ + -e 's block/platform/soc.0/by-name/ssd mmcblk0p14 ' \ + -e 's block/platform/soc.0/by-name/system mmcblk0p43 ' \ + -e 's block/platform/soc.0/by-name/tz mmcblk0p23 ' \ + -e 's block/platform/soc.0/by-name/userdata mmcblk0p42 ' \ + "$@" + ;; + + "peregrine") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p30 ' \ + "$@" + ;; + + "harpia") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p9 ' \ + "$@" + ;; + + "surnia") + sed -i \ + -e 's block/platform/soc.0/by-name/DDR mmcblk0p3 ' \ + -e 's block/platform/soc.0/by-name/aboot mmcblk0p4 ' \ + -e 's block/platform/soc.0/by-name/abootBackup mmcblk0p14 ' \ + -e 's block/platform/soc.0/by-name/boot mmcblk0p33 ' \ + -e 's block/platform/soc.0/by-name/cache mmcblk0p43 ' \ + -e 's block/platform/soc.0/by-name/carrier mmcblk0p41 ' \ + -e 's block/platform/soc.0/by-name/cid mmcblk0p28 ' \ + -e 's block/platform/soc.0/by-name/clogo mmcblk0p30 ' \ + -e 's block/platform/soc.0/by-name/dhob mmcblk0p24 ' \ + -e 's block/platform/soc.0/by-name/factorytune1 mmcblk0p11 ' \ + -e 's block/platform/soc.0/by-name/factorytune2 mmcblk0p35 ' \ + -e 's block/platform/soc.0/by-name/frp mmcblk0p20 ' \ + -e 's block/platform/soc.0/by-name/fsc mmcblk0p26 ' \ + -e 's block/platform/soc.0/by-name/fsg mmcblk0p25 ' \ + -e 's block/platform/soc.0/by-name/hob mmcblk0p23 ' \ + -e 's block/platform/soc.0/by-name/hyp mmcblk0p7 ' \ + -e 's block/platform/soc.0/by-name/hypBackup mmcblk0p18 ' \ + -e 's block/platform/soc.0/by-name/keystore mmcblk0p39 ' \ + -e 's block/platform/soc.0/by-name/kpan mmcblk0p36 ' \ + -e 's block/platform/soc.0/by-name/logo mmcblk0p29 ' \ + -e 's block/platform/soc.0/by-name/logs mmcblk0p9 ' \ + -e 's block/platform/soc.0/by-name/metadata mmcblk0p13 ' \ + -e 's block/platform/soc.0/by-name/misc mmcblk0p32 ' \ + -e 's block/platform/soc.0/by-name/modem mmcblk0p1 ' \ + -e 's block/platform/soc.0/by-name/modemst1 mmcblk0p21 ' \ + -e 's block/platform/soc.0/by-name/modemst2 mmcblk0p22 ' \ + -e 's block/platform/soc.0/by-name/oem mmcblk0p40 ' \ + -e 's block/platform/soc.0/by-name/padA mmcblk0p12 ' \ + -e 's block/platform/soc.0/by-name/padB mmcblk0p19 ' \ + -e 's block/platform/soc.0/by-name/padC mmcblk0p37 ' \ + -e 's block/platform/soc.0/by-name/persist mmcblk0p31 ' \ + -e 's block/platform/soc.0/by-name/recovery mmcblk0p34 ' \ + -e 's block/platform/soc.0/by-name/rpm mmcblk0p5 ' \ + -e 's block/platform/soc.0/by-name/rpmBackup mmcblk0p15 ' \ + -e 's block/platform/soc.0/by-name/sbl1 mmcblk0p2 ' \ + -e 's block/platform/soc.0/by-name/sec mmcblk0p10 ' \ + -e 's block/platform/soc.0/by-name/sp mmcblk0p38 ' \ + -e 's block/platform/soc.0/by-name/ssd mmcblk0p27 ' \ + -e 's block/platform/soc.0/by-name/system mmcblk0p42 ' \ + -e 's block/platform/soc.0/by-name/tz mmcblk0p6 ' \ + -e 's block/platform/soc.0/by-name/tzBackup mmcblk0p16 ' \ + -e 's block/platform/soc.0/by-name/userdata mmcblk0p44 ' \ + -e 's block/platform/soc.0/by-name/utags mmcblk0p8 ' \ + -e 's block/platform/soc.0/by-name/utagsBackup mmcblk0p17 ' \ + "$@" + ;; + + "merlin") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p9 ' \ + "$@" + ;; + + "natrium") + sed -i \ + -e 's block/bootdevice/by-name/boot sde36 ' \ + -e 's block/bootdevice/by-name/recovery sda13 ' \ + -e 's block/bootdevice/by-name/cache sda14 ' \ + -e 's block/bootdevice/by-name/system sde39 ' \ + -e 's block/bootdevice/by-name/userdata sda15 ' \ + -e 's block/bootdevice/by-name/persist sda12 ' \ + -e 's block/bootdevice/by-name/dsp sde32 ' \ + -e 's block/bootdevice/by-name/modem sde35 ' \ + -e 's block/bootdevice/by-name/bluetooth sde26 ' \ + -e 's block/bootdevice/by-name/frp sda7 ' \ + -e 's block/bootdevice/by-name/misc sda9 ' \ + "$@" + ;; + + "titan") + sed -i \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p31 ' \ + "$@" + ;; + + "i9300") + sed -i \ + -e 's block/platform/dw_mmc/by-name/USERDATA mmcblk0p16 ' \ + -e 's block/platform/dw_mmc/by-name/SYSTEM mmcblk0p13 ' \ + -e 's block/platform/dw_mmc/by-name/CACHE mmcblk0p12 ' \ + -e 's block/platform/dw_mmc/by-name/BOOT mmcblk0p08 ' \ + -e 's block/platform/dw_mmc/by-name/RECOVERY mmcblk0p09 ' \ + -e 's block/platform/dw_mmc/by-name/RADIO mmcblk0p10 ' \ + "$@" + ;; + + "i9305") + sed -i \ + -e 's block/platform/dw_mmc/by-name/USERDATA mmcblk0p12 ' \ + -e 's block/platform/dw_mmc/by-name/SYSTEM mmcblk0p09 ' \ + -e 's block/platform/dw_mmc/by-name/CACHE mmcblk0p08 ' \ + -e 's block/platform/dw_mmc/by-name/BOOT mmcblk0p05 ' \ + -e 's block/platform/dw_mmc/by-name/RECOVERY mmcblk0p06 ' \ + -e 's block/platform/dw_mmc/by-name/RADIO mmcblk0p07 ' \ + "$@" + ;; + + "s3ve3g") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ + -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p15 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p2 ' \ + "$@" + ;; + + "endeavoru") + sed -i \ + -e 's block/platform/sdhci-tegra.3/by-name/APP mmcblk0p12 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/CAC mmcblk0p13 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/RCA mmcblk0p3 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/RFS mmcblk0p18 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/DLG mmcblk0p19 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/ISD mmcblk0p14 ' \ + -e 's block/platform/sdhci-tegra.3/by-name/UDA mmcblk0p15 ' \ + "$@" + ;; + + "scorpion" | "scorpion_windy") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p14 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \ + "$@" + ;; + + "tenshi") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \ + -e 's block/bootdevice/by-name/config mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \ + "$@" + ;; + + "jfltexx") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p20 ' \ + -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p21 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p16 ' \ + -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \ + -e 's block/platform/msm_sdcc.1/by-name/mdm mmcblk0p2 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p18 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p29 ' \ + -e 's block/platform/msm_sdcc.1/by-name/fota mmcblk0p22 ' \ + "$@" + ;; + + "herolte") + sed -i \ + -e 's block/platform/155a0000.ufs/by-name/SYSTEM sda14 ' \ + -e 's block/platform/155a0000.ufs/by-name/EFS sda3 ' \ + -e 's block/platform/155a0000.ufs/by-name/CACHE sda15 ' \ + -e 's block/platform/155a0000.ufs/by-name/USERDATA sda18 ' \ + -e 's block/platform/155a0000.ufs/by-name/OTA sda7 ' \ + -e 's block/platform/155a0000.ufs/by-name/HIDDEN sda16 ' \ + "$@" + ;; + + "klte") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p23 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p26 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p2 ' \ + -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p12 ' \ + "$@" + ;; + + "athene") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p47 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p48 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p46 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p31 ' \ + "$@" + ;; + + "jfltetmo") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/aboot mmcblk0p6 ' \ + -e 's block/platform/msm_sdcc.1/by-name/apnhlos mmcblk0p1 ' \ + -e 's block/platform/msm_sdcc.1/by-name/backup mmcblk0p23 ' \ + -e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p20 ' \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p18 ' \ + -e 's block/platform/msm_sdcc.1/by-name/carrier mmcblk0p28 ' \ + -e 's block/platform/msm_sdcc.1/by-name/efs mmcblk0p10 ' \ + -e 's block/platform/msm_sdcc.1/by-name/fota mmcblk0p22 ' \ + -e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p24 ' \ + -e 's block/platform/msm_sdcc.1/by-name/hidden mmcblk0p27 ' \ + -e 's block/platform/msm_sdcc.1/by-name/m9kefs1 mmcblk0p13 ' \ + -e 's block/platform/msm_sdcc.1/by-name/m9kefs2 mmcblk0p14 ' \ + -e 's block/platform/msm_sdcc.1/by-name/m9kefs3 mmcblk0p15 ' \ + -e 's block/platform/msm_sdcc.1/by-name/mdm mmcblk0p2 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modemst1 mmcblk0p11 ' \ + -e 's block/platform/msm_sdcc.1/by-name/modemst2 mmcblk0p12 ' \ + -e 's block/platform/msm_sdcc.1/by-name/pad mmcblk0p9 ' \ + -e 's block/platform/msm_sdcc.1/by-name/param mmcblk0p19 ' \ + -e 's block/platform/msm_sdcc.1/by-name/persdata mmcblk0p26 ' \ + -e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p17 ' \ + -e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p21 ' \ + -e 's block/platform/msm_sdcc.1/by-name/rpm mmcblk0p7 ' \ + -e 's block/platform/msm_sdcc.1/by-name/sbl1 mmcblk0p3 ' \ + -e 's block/platform/msm_sdcc.1/by-name/sbl2 mmcblk0p4 ' \ + -e 's block/platform/msm_sdcc.1/by-name/sbl3 mmcblk0p5 ' \ + -e 's block/platform/msm_sdcc.1/by-name/ssd mmcblk0p25 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p16 ' \ + -e 's block/platform/msm_sdcc.1/by-name/tz mmcblk0p8 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p29 ' \ + "$@" + ;; + + "dreamlte"|"dream2lte") + sed -i \ + -e 's block/platform/11120000.ufs/by-name/CACHE sda18 ' \ + -e 's block/platform/11120000.ufs/by-name/EFS sda3 ' \ + -e 's block/platform/11120000.ufs/by-name/HIDDEN sda19 ' \ + -e 's block/platform/11120000.ufs/by-name/SYSTEM sda17 ' \ + -e 's block/platform/11120000.ufs/by-name/USERDATA sda24 ' \ + "$@" + ;; + + "cedric") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p53 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p54 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p52 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p30 ' \ + "$@" + ;; + + "x2") + sed -i \ + -e 's block/bootdevice/by-name/system sde19 ' \ + -e 's block/bootdevice/by-name/userdata sda9 ' \ + -e 's block/bootdevice/by-name/cache sda3 ' \ + -e 's block/bootdevice/by-name/modem sde12 ' \ + "$@" + ;; + + "nicki") + sed -i \ + -e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p26 ' \ + -e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p25 ' \ + -e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p27 ' \ + "$@" + ;; + + "trunk") + sed -i \ + -e 's block/bootdevice/by-name/boot mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p01 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/config mmcblk0p28 ' \ + "$@" + ;; + + "land" | "rolex" | "riva") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p49 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + "$@" + ;; + + "hermes") + sed -i \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot mmcblk0p7 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/cache mmcblk0p16 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/expdb mmcblk0p12 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/flashinfo mmcblk0p18 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/lk mmcblk0p6 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/logo mmcblk0p11 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/nvram mmcblk0p2 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/para mmcblk0p10 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/proinfo mmcblk0p1 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/protect1 mmcblk0p3 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/protect2 mmcblk0p4 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/recovery mmcblk0p8 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/seccfg mmcblk0p5 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/secro mmcblk0p9 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system mmcblk0p15 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee1 mmcblk0p13 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee2 mmcblk0p14 ' \ + -e 's block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata mmcblk0p17 ' \ + "$@" + ;; + + "garlic") + sed -i \ + -e 's block/bootdevice/by-name/DDR mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/aboot mmcblk0p19 ' \ + -e 's block/bootdevice/by-name/abootbak mmcblk0p20 ' \ + -e 's block/bootdevice/by-name/apdp mmcblk0p43 ' \ + -e 's block/bootdevice/by-name/boot mmcblk0p21 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p25 ' \ + -e 's block/bootdevice/by-name/cmnlib mmcblk0p37 ' \ + -e 's block/bootdevice/by-name/cmnlib64 mmcblk0p39 ' \ + -e 's block/bootdevice/by-name/cmnlib64bak mmcblk0p40 ' \ + -e 's block/bootdevice/by-name/cmnlibbak mmcblk0p38 ' \ + -e 's block/bootdevice/by-name/config mmcblk0p29 ' \ + -e 's block/bootdevice/by-name/devcfg mmcblk0p10 ' \ + -e 's block/bootdevice/by-name/devcfgbak mmcblk0p11 ' \ + -e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \ + -e 's block/bootdevice/by-name/dip mmcblk0p33 ' \ + -e 's block/bootdevice/by-name/dpo mmcblk0p45 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p12 ' \ + -e 's block/bootdevice/by-name/fsc mmcblk0p2 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p16 ' \ + -e 's block/bootdevice/by-name/keymaster mmcblk0p41 ' \ + -e 's block/bootdevice/by-name/keymasterbak mmcblk0p42 ' \ + -e 's block/bootdevice/by-name/keystore mmcblk0p28 ' \ + -e 's block/bootdevice/by-name/limits mmcblk0p31 ' \ + -e 's block/bootdevice/by-name/mcfg mmcblk0p36 ' \ + -e 's block/bootdevice/by-name/mdtp mmcblk0p34 ' \ + -e 's block/bootdevice/by-name/misc mmcblk0p27 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/modemst1 mmcblk0p13 ' \ + -e 's block/bootdevice/by-name/modemst2 mmcblk0p14 ' \ + -e 's block/bootdevice/by-name/mota mmcblk0p32 ' \ + -e 's block/bootdevice/by-name/msadp mmcblk0p44 ' \ + -e 's block/bootdevice/by-name/oem mmcblk0p30 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p26 ' \ + -e 's block/bootdevice/by-name/recovery mmcblk0p22 ' \ + -e 's block/bootdevice/by-name/rpm mmcblk0p6 ' \ + -e 's block/bootdevice/by-name/rpmbak mmcblk0p7 ' \ + -e 's block/bootdevice/by-name/sbl1 mmcblk0p4 ' \ + -e 's block/bootdevice/by-name/sbl1bak mmcblk0p5 ' \ + -e 's block/bootdevice/by-name/sec mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/splash mmcblk0p18 ' \ + -e 's block/bootdevice/by-name/ssd mmcblk0p3 ' \ + -e 's block/bootdevice/by-name/syscfg mmcblk0p35 ' \ + -e 's block/bootdevice/by-name/system mmcblk0p24 ' \ + -e 's block/bootdevice/by-name/tz mmcblk0p8 ' \ + -e 's block/bootdevice/by-name/tzbak mmcblk0p9 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p46 ' \ + "$@" + ;; + + "axon7") + sed -i \ + -e 's block/bootdevice/by-name/system sde13 ' \ + -e 's block/bootdevice/by-name/userdata sda9 ' \ + -e 's block/bootdevice/by-name/cache sda2 ' \ + -e 's block/bootdevice/by-name/persist sdf5 ' \ + -e 's block/bootdevice/by-name/dsp sde8 ' \ + -e 's block/bootdevice/by-name/modem sde7 ' \ + -e 's block/bootdevice/by-name/bluetooth sde16 ' \ + "$@" + ;; + + "mata") + sed -i \ + -e 's block/bootdevice/by-name/system block/platform/soc/1da4000.ufshc/by-name/system ' \ + -e 's block/bootdevice/by-name/userdata sda16 ' \ + -e 's block/bootdevice/by-name/modem block/platform/soc/1da4000.ufshc/by-name/modem ' \ + -e 's block/bootdevice/by-name/bluetooth block/platform/soc/1da4000.ufshc/by-name/bluetooth ' \ + -e 's block/bootdevice/by-name/dsp block/platform/soc/1da4000.ufshc/by-name/dsp ' \ + -e 's block/bootdevice/by-name/persist sda4 ' \ + "$@" + ;; + + "gohan") + sed -i \ + -e 's /dev/block/bootdevice/by-name/system /dev/block/mmcblk0p24 ' \ + -e 's /dev/block/bootdevice/by-name/userdata /dev/block/mmcblk0p46 ' \ + -e 's /dev/block/bootdevice/by-name/cache /dev/block/mmcblk0p25 ' \ + "$@" + ;; + + "ivy") + sed -i \ + -e 's /dev/block/bootdevice/by-name/system /dev/block/mmcblk0p43 ' \ + -e 's /dev/block/bootdevice/by-name/userdata /dev/block/mmcblk0p42 ' \ + -e 's /dev/block/bootdevice/by-name/cache /dev/block/mmcblk0p41 ' \ + -e 's /dev/block/bootdevice/by-name/persist /dev/block/mmcblk0p31 ' \ + -e 's /dev/block/bootdevice/by-name/diag /dev/block/mmcblk0p39 ' \ + -e 's /dev/block/bootdevice/by-name/modem /dev/block/mmcblk0p3 ' \ + "$@" + ;; + + "loganreltexx") + sed -i \ + -e 's /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/mmcblk0p20 ' \ + -e 's /dev/block/platform/msm_sdcc.1/by-name/userdata /dev/block/mmcblk0p23 ' \ + -e 's /dev/block/platform/msm_sdcc.1/by-name/cache /dev/block/mmcblk0p21 ' \ + -e 's /dev/block/platform/msm_sdcc.1/by-name/efs /dev/block/mmcblk0p10 ' \ + -e 's /dev/block/platform/msm_sdcc.1/by-name/persist /dev/block/mmcblk0p19 ' \ + -e 's /dev/block/platform/msm_sdcc.1/by-name/modem /dev/block/mmcblk0p1 ' \ + "$@" + ;; + + "kuntao") + sed -i \ + -e 's block/bootdevice/by-name/system mmcblk0p54 ' \ + -e 's block/bootdevice/by-name/userdata mmcblk0p56 ' \ + -e 's block/bootdevice/by-name/cache mmcblk0p53 ' \ + -e 's block/bootdevice/by-name/persist mmcblk0p17 ' \ + -e 's block/bootdevice/by-name/dsp mmcblk0p15 ' \ + -e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ + -e 's block/bootdevice/by-name/fsg mmcblk0p33 ' \ "$@" ;; + *) cat <