Closed samliu closed 5 months ago
https://github.com/mediatek-android-development/android_kernel_mediatek_mt6761-62-4.9
I'm assuming it might have used this?
Unfortunately, kernel isn't open. This is basically a GSI with a few lil additions. To build your own, do the following:
repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r83
repo sync
git clone https://github.com/RabbitHoleEscapeR1/device_rabbit_r1 device/rabbit/r1
git clone https://github.com/RabbitHoleEscapeR1/vendor_rabbit_r1 vendor/rabbit/r1
cd frameworks/base
git fetch https://github.com/RabbitHoleEscapeR1/frameworks_base rabbit-13.0.0_r83
git cherry-pick HEAD~1
git cherry-pick HEAD
cd ../..
source build/envsetup.sh
lunch gsi_r1-userdebug
make -j32 systemimage
You can flash the resulting system.img from fastbootd.
Perfect, thank you so much! Now to play with things and see if I can fix my non-functional camera ^^'
I get this, looks like there's some step missing to add a mediatek SDK?:
--soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --a
vailable_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-common"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-common" can be found in these namespaces: ["vendor/rabbit/r1"]
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-framework"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-framework" can be found in these namespaces: ["vendor/rabbit/r1"]
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-ims-base"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-ims-base" can be found in these namespaces: ["vendor/rabbit/r1"]
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-ims-common"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-ims-common" can be found in these namespaces: ["vendor/rabbit/r1"]
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-telecom-common"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-telecom-common" can be found in these namespaces: ["vendor/rabbit/r1"]
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-telephony-base"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-telephony-base" can be found in these namespaces: ["vendor/rabbit/r1"]
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "mediatek-telephony-common"
Module "platform-bootclasspath" is defined in namespace "." which can read these 1 namespaces: ["."]
Module "mediatek-telephony-common" can be found in these namespaces: ["vendor/rabbit/r1"]
20:31:10 soong bootstrap failed with: exit status 1
#### failed to build some targets (38 seconds) ####
Oh looks like I missed a commit somewhere to change namespace restrictions. I’ll check. Thank you!
https://github.com/PotatoProject/build_soong/commit/2d03ea7ed8a5d3659eebd0d13f3770d0baf19f68
Please pick this change to fix your issue
Seems to have helped, still building. :)
Next failure seems to be this:
FAILED: out/soong/.intermediates/system/sepolicy/precompiled_sepolicy/android_common/precompiled_sepolicy
out/host/linux-x86/bin/secilc -m -M true -G -c 30 out/soong/.intermediates/system/sepolicy/plat_sepolicy.cil/android_common/plat_sepolicy.cil out/soong/.intermediates/system/sepolicy/apex_sepolic
y-33.cil/android_common/apex_sepolicy.cil out/soong/.intermediates/system/sepolicy/plat_pub_versioned.cil/android_common/plat_pub_versioned.cil out/soong/.intermediates/system/sepolicy/system_ext
_sepolicy.cil/android_common/system_ext_sepolicy.cil out/soong/.intermediates/system/sepolicy/product_sepolicy.cil/android_common/product_sepolicy.cil out/soong/.intermediates/system/sepolicy/ven
dor_sepolicy.cil/android_common/vendor_sepolicy.cil out/soong/.intermediates/system/sepolicy/odm_sepolicy.cil/android_common/odm_sepolicy.cil out/soong/.intermediates/system/sepolicy/plat_mapping
_file/android_common/33.0.cil out/soong/.intermediates/system/sepolicy/system_ext_mapping_file/android_common/33.0.cil out/soong/.intermediates/system/sepolicy/product_mapping_file/android_common
/33.0.cil -o out/soong/.intermediates/system/sepolicy/precompiled_sepolicy/android_common/precompiled_sepolicy_policy -f /dev/null && cp -f out/soong/.intermediates/system/sepolicy/precompiled_se
policy/android_common/precompiled_sepolicy_policy out/soong/.intermediates/system/sepolicy/precompiled_sepolicy/android_common/precompiled_sepolicy && rm -f out/soong/.intermediates/system/sepoli
cy/precompiled_sepolicy/android_common/precompiled_sepolicy_policy # hash of input list: ea1d42e72e0a0c22fdef606e8d24eb032f14396dd04ceaa26170e5c654e6144a
neverallow check failed at out/soong/.intermediates/system/sepolicy/vendor_sepolicy.cil/android_common/vendor_sepolicy.cil:6343
(neverallow mtk_hal_audio domain (tcp_socket (ioctl read write create getattr setattr lock relabelfrom relabelto append map bind connect listen accept getopt setopt shutdown recvfrom sendto nam
e_bind node_bind name_connect)))
<root>
allow at out/soong/.intermediates/system/sepolicy/plat_sepolicy.cil/android_common/plat_sepolicy.cil:9611
(allow hal_audio_server su (tcp_socket (read write accept getopt)))
<root>
allow at out/soong/.intermediates/system/sepolicy/plat_pub_versioned.cil/android_common/plat_pub_versioned.cil:7086
(allow hal_audio_server su_33_0 (tcp_socket (read write accept getopt)))
Failed to generate binary
Failed to build policydb
08:52:38 ninja failed with: exit status 1
I should point out that I still had from an earlier attempt, this step before the make of the build:
git clone https://github.com/teracube-mt6765-devs/android_device_mediatek_sepolicy device/mediatek/sepolicy
Not sure if that's the right source, but without, I get complaints about including a file from that folder.
Hi maintainer, thank you for creating this project!
This bug tracks a request to document how the AOSP 13 image is generated, in case folks want to try on their own and/or debug the apps that are erroring. Specifically folks seem to be having issues with bluetooth and camera.