0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LineageOSのFMラジオを日本対応にする

Last updated at Posted at 2024-08-09

ASUS ZenFone 2 Laserのバッテリが妊娠して使い物にならなくなって久しく放置していたのですが、バッテリレスにしてUSB充電器から直接配線して復活したのでその時の対応メモです。

lineage-16.0の本体ソースのパッチ

sed -i "s/zd/ld/g" hardware/qcom/display-caf/msm8916/libhdmi/hdmi.cpp
sed -i "s/zd/ld/g" hardware/qcom/display-caf/msm8916/libqdutils/idle_invalidator.cpp
sed -i "s/zd/ld/g" hardware/qcom/audio-caf/msm8916/hal/audio_hw.c

Zenforne2 laser関連のダウンロード

git clone --single-branch -b 9.x           https://github.com/Asus-MSM8916/android_vendor_asus.git
git clone --single-branch -b 9.x-staging   https://github.com/Asus-MSM8916/android_kernel_asus_msm8916.git
git clone --single-branch -b lineage-16.0  https://github.com/Asus-MSM8916/android_device_asus_Z00xD.git
git clone --single-branch -b lineage-16.0  https://github.com/Asus-MSM8916/android_device_asus_msm8916-common.git

Patched app FMRadio to Japan band
packages/apps/FMRadio/src/com/android/fmradio/FmUtils.java

@@ -45,7 +45,8 @@
     // maximum station frequency
     private static final int HIGHEST_STATION = 1080;
     // minimum station frequency
-    private static final int LOWEST_STATION = 875;
+    //    private static final int LOWEST_STATION = 875;
+    private static final int LOWEST_STATION = 760;
     // station step
     private static final int STEP = 1;
     // convert rate

created file: device/asus/Z00xD/fm_srch_af_th.conf

[BANDCONFIG]
RadioBand=2
# 1:87.5-108 , 2:76-108 , 3:76-90

added to device/asus/Z00xD/device.mk

# FM Radio setting
PRODUCT_COPY_FILES += \
   device/asus/Z00xD/fm_srch_af_th.conf:system/etc/fm/fm_srch_af_th.conf

ワイドFMに対応しているので余生はFM Radioとして過ごします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?