2017年4月17日月曜日

Onda V80 SE 解析メモ

※ boot.imgのコマンドラインの「androidboot.selinux=permissive」を「androidboot.selinux=enforcing」に変更すると、タッチパネルが効かなくなる。

※ boot.imgのsecond sizeが 0 になっているにも関わらず、secondの位置にデータがある。WinExChangeの結果:Internet Security Certificate File「OS」
dm-verity用のチェックデータだと思われる。

※ android-ndkで作ったプログラム(x86)を起動させると、Warningが出る。
「android-ndk-r14b/platforms/android-22/arch-x86/usr/lib」内にある「crtbegin_dynamic.o」と「crtend_android.o」を「/system/lib/」の中に入れると、Warningは消える。


boot.imgのバックアップ
dd if=/dev/block/mmcblk0p5 of=/sdcard/Download/boot.img bs=4096

systemのバックアップ
dd if=/dev/block/mmcblk0p12 of=/sdcard/Download/system-ja.ext4 bs=4096

systemの復元
dd if=/sdcard/Download/system-ja.ext4 of=/dev/block/mmcblk0p12 bs=4096


boot.imgを書き換えずに、default.propを書き換える方法
adb push default.prop /data/local/tmp/default_tmp.prop
adb root
adb shell mount -o remount,rw /
adb shell cp /data/local/tmp/default_tmp.prop /default.prop
adb shell chmod 0644 /default.prop
adb shell mount -o remount,ro /
※ 再起動すると元に戻るし、getpropは変更されない
※ getpropのデータを変更は「/dev/__properties__」


boot.img起動時の流れ
  • init.rc
    • init.aosp.rc
      • init.environ.rc
      • init.usb.rc
      • init.anzhen4_mrd7_w.rc
        • init.common.rc
          • init.watchdog.rc … これが無いと起動後すぐ消える
          • init.firmware.rc
          • init.intel.feature.asf.rc
          • init.ksm.rc
          • init.readahead.rc
          • init.dirtybackground.rc
          • init.zram.rc
        • init.debug.rc
          • init.internal_props.rc
        • init.diag.rc
        • init.avc.rc
        • init.dongle.rc
        • init.wifi.rc … Wifi関連
          • init.wifi.vendor.rc
        • init.platform.usb.rc … USB関連
        • init.gps.rc … GPS関連
        • init.bt.rc … BlueTooth関連
          • init.bt.vendor.rc
        • init.platform.gengfx.rc … 画面制御(消すと画面が映らなくなる)
        • init.sensor.rc … タッチパネル制御(多分)
      • init.zygote32.rc
      • init.trace.rc

2017/05/13 追加


2017/05/21 追加

「ロック解除」時の注意喚起の画面
Booting Android OS.
START
Press Volume UP key

Recovery
Press Volume DOWN key

WARNING:
Your device has been altered
from its factory configuration.

If you were not responsible for
these changes, the security of
your deice may be at at risk.
Choose "Recover" to change
your device's state.

2019/01/12 追加

boot.imgを書き換え、verityは削除せず、OEMロックした場合の注意喚起の画面
Booting Android OS.
Recovery
Press Volume UP Key

Your device is unable to start
because the Android OS image has
failed to verity.

You may attempt to recover the device.

2019/02/21 追加

途中で画面がフリーズして真っ暗闇になりバッテリーが熱くなっても、電源ボタンと音量ボタンを同時に押してリセットして、少しタブレットを放置すれば元に回復して起動画面に戻るらしい。(Amazonのカスタマーレビューより)


↓充電なし状態で、パソコンにUSBで繋いだ時
BATPERCENT value incorrect...
※ docomoの充電器にコンセント接続したら、通常の充電マークが出た。電圧(?)が足りないと出るのかも?