Skip to content

Instantly share code, notes, and snippets.

@tana3n
Last active March 10, 2019 06:01
Show Gist options
  • Save tana3n/2564d965b278a94e02e95bc5fd92e426 to your computer and use it in GitHub Desktop.
Save tana3n/2564d965b278a94e02e95bc5fd92e426 to your computer and use it in GitHub Desktop.
HTL22であれこれためしたときのdevice/htc/m7wljの差分とかメモ
# TWRP
TW_USE_TOOLBOX := true
TARGET_RECOVERY_DEVICE_MODULES := chargeled
RECOVERY_SDCARD_ON_DATA := true
BOARD_HAS_NO_REAL_SDCARD := true
TW_NO_USB_STORAGE := true
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
TW_EXTERNAL_STORAGE_PATH := "/usb-otg"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "usb-otg"
TARGET_RECOVERY_FSTAB := device/htc/m7wlj/twrp.fstab
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="kbc-developers/android_device_htc_m7wlj" path="device/htc/m7wlj" remote="github" revision="cm-14.1" />
<project name="kbc-developers/android_device_htc_m7-common" path="device/htc/m7-common" remote="github" revision="cm-14.1" />
<project name="kbc-developers/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="cm-14.1" />
<project name="kbc-developers/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-14.1" />
<project name="kbc-developers/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
<remove-project name="LineageOS/android_bootable_recovery"/>
<project name="omnirom/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-7.1" />
<remove-project name="LineageOS/android_packages_apps_Nfc"/>
<project path="packages/apps/Nfc" name="tako0910/android_packages_apps_Nfc" revision="cm-14.1"/>
</manifest>
fstab→miscも一応書き換えることがあるので指定してあるけど0MBになってるので正常に機能してない模様、次があるならば消える
modem_st,radio→じこせきにんだよ
recovery→一応出来るけれどいらない気がするのでこれも次があるならば消える
TWRP→
<project name="omnirom/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-9.0" />
でダメ元でやったら通った上に普通に動いてしまったぽいけれど一回コケてるのでわからん
正しいかはともかくこれで起動したしぱっと見正常なのでいいよね。
dt2w→
https://github.com/bbbjjj/android_kernel_htc_msm8960
を参考と言うよりcherry-pickさせて貰ってdefconfigだけ弄ったらすんなり動いてしまったのが以下の物
<project name="tana3n/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-14.1" />
Lineage14.1→NFCサービスがコケる以外は動いてる気がする(知らないよ!)
14.1のセキュリティパッチが降ってこなくなるまでは回したいとは思うけどどうなるんだろうね。
# mount point fstype device [device2] [parameters]
#/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot
#/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache
#/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata
#/devlog ext4 /dev/block/platform/msm_sdcc.1/by-name/devlog
#/misc emmc /dev/block/platform/msm_sdcc.1/by-name/misc
#/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery
#/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system
/boot emmc /dev/block/mmcblk0p36
/cache ext4 /dev/block/mmcblk0p39
/data ext4 /dev/block/mmcblk0p40 flags=encryptable=/dev/block/mmcblk0p27
/system ext4 /dev/block/mmcblk0p38
/devlog ext4 /dev/block/mmcblk0p22
/misc emmc /dev/block/mmcblk0p19 flags=display="Misc";backup=1
/modem_st1 emmc /dev/block/mmcblk0p20 flags=display="Modem_st1";backup=1
/modem_st2 emmc /dev/block/mmcblk0p21 flags=display="Modem_st2";backup=1
/radio emmc /dev/block/mmcblk0p17 flags=display="Radio";backup=1
/recovery emmc /dev/block/mmcblk0p37 flags=display="Recovery";backup=1
# external volumes
/external_sd auto /dev/block/mmcblk1p1 flags=display="Micro SDcard";storage;wipeingui;removable
# storage volumes
/usb-otg auto /dev/block/sda1 flags=display="USB OTG";storage;wipeingui;removable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment