Tech Blog

Raspberry Pi 4 で AOSP 14

Cover Image for Raspberry Pi 4 で AOSP 14

AOSP 14 が リリース されたので Raspberry Pi 4 で動かしてみる

今回の環境

TL;DR

1. Bootloader の更新

sudo apt update
Fetched 1,080 kB in 4s (289 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see
them.
N: Repository 'http://archive.raspberrypi.com/debian bookworm
InRelease' changed its 'Suite' value from 'testing' to 'stable'
sudo apt upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no
longer required:
  libpisp0.0.1
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  linux-headers-6.1.0-rpi6-common-rpi
  linux-headers-6.1.0-rpi6-rpi-2712
  linux-headers-6.1.0-rpi6-rpi-v8
  linux-image-6.1.0-rpi6-rpi-2712 linux-image-6.1.0-rpi6-rpi-v8
The following packages will be upgraded:
  libraspberrypi-bin libraspberrypi-dev
  libraspberrypi-doc libraspberrypi0 linux-headers-rpi-2712
  linux-headers-rpi-v8 linux-image-rpi-2712
  linux-image-rpi-v8 raspberrypi-net-mods
  raspi-config raspi-firmware raspi-utils rpi-eeprom
13 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
sudo rpi-eeprom-update -a
BOOTLOADER: up to date
   CURRENT: Thu 11 May 06:26:03 UTC 2023 (1683786363)
    LATEST: Thu 11 May 06:26:03 UTC 2023 (1683786363)
   RELEASE: stable (/lib/firmware/raspberrypi/bootloader-2711/
            stable)
            Use raspi-config to change the release.

  VL805_FW: Using bootloader EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0

2.ブートメディアの作成

AOSP - KonstaKANG (Android 14) から AOSP14-XXXXXXXX-KonstaKANG-rpi4.zip をダウンロードする
AOSP14-XXXXXXXX-KonstaKANG-rpi4.zip, ストレージ を選択して書き込み開始

Raspberry Pi Imager

3.Raspberry Pi 起動 + バージョン確認

Android version

4.Wireless debugging を有効化

Wireless debugging

4.TWRP へ再起動し data パーティションのリサイズ, GApps, Magisk, Widevine L3 を必要に応じて導入する

adb connect raspberrypi.local
connected to raspberrypi.local:555555
adb devices -l
List of devices attached
raspberrypi.local:555555    device product:aosp_rpi4
model:Raspberry_Pi_4 device:rpi4 transport_id:1
adb reboot

TWRP

参考にしたページ