I am trying to build a custom os for device Samsung A7 LTE sm-t505 (gta4l). This device is now deprecated by lineageOS. I have sourced the proprietory blobs from the same device running lineageOS 21. Now when I try to run breakfast gta4l it says
In file included from build/make/core/config.mk:380:
In file included from build/make/core/envsetup.mk:386:
build/make/core/board_config.mk:1001: error: BOARD_API_LEVEL must not set manully. The build system automatically sets this value..
15:15:00 dumpvars failed with: exit status 1
Device gta4l not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_samsung_gta4l
Default revision: lineage-21.0
Checking branch info
Using fallback branch: lineage-21
Checking if device/samsung/gta4l is fetched from android_device_samsung_gta4l
LineageOS/android_device_samsung_gta4l already fetched to device/samsung/gta4l
Syncing repository to retrieve project.
Fetching: 100% (1/1), done in 0.696s
repo sync has finished successfully.
Repository synced!
Looking for dependencies in device/samsung/gta4l
Looking for dependencies in device/samsung/gta4l-common
Looking for dependencies in hardware/samsung
hardware/samsung has no additional dependencies.
Looking for dependencies in kernel/samsung/sm6115
kernel/samsung/sm6115 has no additional dependencies.
Done
In file included from build/make/core/config.mk:380:
In file included from build/make/core/envsetup.mk:386:
build/make/core/board_config.mk:1001: error: BOARD_API_LEVEL must not set manully. The build system automatically sets this value..
15:15:03 dumpvars failed with: exit status 1
In file included from build/make/core/config.mk:380:
In file included from build/make/core/envsetup.mk:386:
build/make/core/board_config.mk:1001: error: BOARD_API_LEVEL must not set manully. The build system automatically sets this value..
15:15:04 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_gta4l'
** Do you have the right repo manifest?
I commented the check in build/make/core/board_config.mk. And it continues to build but at the very end like at around 99% some hardware driver errors shows up.
List 'out/target/product/gta4l/product/etc/vintf/': NAME_NOT_FOUND
The following HALs in device manifest are not declared in FCM <= level 4:
android.hardware.audio.effect@6.0::IEffectsFactory/default
android.hardware.audio@6.0::IDevicesFactory/default
android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default (@4)
android.hardware.bluetooth@1.0::IBluetoothHci/default
android.hardware.camera.provider@2.5::ICameraProvider/legacy/0
android.hardware.cas.IMediaCasService/default (@1)
android.hardware.cas@1.2::IMediaCasService/default
android.hardware.configstore@1.1::ISurfaceFlingerConfigs/default
android.hardware.drm.IDrmFactory/clearkey (@1)
android.hardware.drm@1.3::ICryptoFactory/widevine
android.hardware.drm@1.3::IDrmFactory/widevine
android.hardware.gatekeeper@1.0::IGatekeeper/default
android.hardware.gnss@1.1::IGnss/default
android.hardware.gnss@2.1::IGnss/default
android.hardware.graphics.allocator@3.0::IAllocator/default
android.hardware.graphics.allocator@4.0::IAllocator/default
android.hardware.graphics.composer@2.4::IComposer/default
android.hardware.graphics.mapper@3.0::IMapper/default
android.hardware.graphics.mapper@4.0::IMapper/default
android.hardware.health@2.1::IHealth/default
android.hardware.keymaster@4.0::IKeymasterDevice/default
android.hardware.media.omx@1.0::IOmx/default
android.hardware.media.omx@1.0::IOmxStore/default
android.hardware.memtrack@1.0::IMemtrack/default
android.hardware.power.IPower/default (@3)
android.hardware.radio.config@1.1::IRadioConfig/default
android.hardware.radio@1.2::ISap/slot1
android.hardware.radio@1.5::IRadio/slot1
android.hardware.renderscript@1.0::IDevice/default
android.hardware.sensors@2.0::ISensors/default
android.hardware.soundtrigger@2.2::ISoundTriggerHw/default
android.hardware.tetheroffload.config@1.0::IOffloadConfig/default
android.hardware.tetheroffload.control@1.0::IOffloadControl/default
android.hardware.thermal@1.0::IThermal/default
android.hardware.thermal@2.0::IThermal/default
android.hardware.usb@1.3::IUsb/default
android.hardware.wifi.IWifi/default (@2)
android.hardware.wifi.hostapd.IHostapd/default (@2)
android.hardware.wifi.supplicant.ISupplicant/default (@3)
com.qualcomm.qti.ant@1.0::IAntHci/default
vendor.display.color@1.5::IDisplayColor/default
vendor.display.config@2.0::IDisplayConfig/default
vendor.display.postproc@1.0::IDisplayPostproc/default
vendor.lineage.fastcharge@1.0::IFastCharge/default
vendor.lineage.health.IChargingControl/default (@1)
vendor.qti.data.factory@2.3::IFactory/default
vendor.qti.hardware.alarm@1.0::IAlarm/default
vendor.qti.hardware.bluetooth_audio@2.1::IBluetoothAudioProvidersFactory/default
vendor.qti.hardware.bluetooth_sar@1.1::IBluetoothSar/default
vendor.qti.hardware.btconfigstore@2.0::IBTConfigStore/default
vendor.qti.hardware.camera.postproc@1.0::IPostProcService/camerapostprocservice
vendor.qti.hardware.capabilityconfigstore@1.0::ICapabilityConfigStore/default
vendor.qti.hardware.data.latency@1.0::ILinkLatency/default
vendor.qti.hardware.display.allocator@3.0::IQtiAllocator/default
vendor.qti.hardware.display.allocator@4.0::IQtiAllocator/default
vendor.qti.hardware.display.composer@3.0::IQtiComposer/default
vendor.qti.hardware.display.mapper@3.0::IQtiMapper/default
vendor.qti.hardware.display.mapper@4.0::IQtiMapper/default
vendor.qti.hardware.dsp@1.0::IDspService/dspservice
vendor.qti.hardware.perf@2.2::IPerf/default
vendor.qti.hardware.qseecom@1.0::IQSEECom/default
vendor.qti.hardware.sensorscalibrate@1.0::ISensorsCalibrate/default
vendor.qti.hardware.tui_comm@1.0::ITuiComm/default
vendor.qti.hardware.vpp@1.1::IHidlVppService/vppService
vendor.qti.hardware.wifidisplaysession@1.0::IWifiDisplaySession/wifidisplaysession
vendor.qti.hardware.wifidisplaysession@1.0::IWifiDisplaySessionAudioTrack/wifidisplaysessionaudiotrack
vendor.qti.hardware.wifidisplaysession@1.0::IWifiDisplaySessionImageTrack/wifidisplaysessionimagetrack
vendor.qti.hardware.wifidisplaysession@1.0::IWifiDisplaySessionVideoTrack/wifidisplaysessionvideotrack
vendor.samsung.hardware.gnss@2.0::ISehGnss/default
vendor.samsung.hardware.health@2.0::ISehHealth/default
vendor.samsung.hardware.radio.bridge@2.0::ISehBridge/slot1
vendor.samsung.hardware.radio.channel@2.0::ISehChannel/epdgd
vendor.samsung.hardware.radio.channel@2.0::ISehChannel/imsd
vendor.samsung.hardware.radio@2.2::ISehRadio/slot1
vendor.samsung.hardware.security.vaultkeeper@2.0::ISehVaultKeeper/default
vendor.samsung.hardware.thermal@1.0::ISehThermal/default
ERROR: No such file or directory: Cannot find framework matrix at FCM version 4.: No such file or directo
ry
16:45:51 ninja failed with: exit status 1
There were 2 actions that completed after the action that failed. See verbose.log.gz for their output.
#### failed to build some targets (01:16:21 (hh:mm:ss)) ####
Thanks you are the goat!!!
Can you explain how it helped? By what I guess, since the device is deprecated it can’t get or verify it’s source from version control. But by commenting the board and API versions it like kind of got to some default value and is building according to it?
The os is built successfully. But now it’s not booting, it’s stuck on the Samsung Galaxy A7 Powered by Android page. Can’t access the logs cuz adb isn’t initialized. I had previously commented a check tho that doesn’t seem to be an issue.
I need to create a total custom OS from source. Any help with that?
Actually the current problem is it doesn’t recognize some HAL libraries after it’s discontinued. I successfully created a custom OS with the same. It starts just after the model is discontinued. Currently this is the error message which I pinned above.