alterbang.system.new_\app\WhisperPush\arm64\WhisperPush.odex.gz
alterbang.system.new_\app\WhisperPush\WhisperPush.apk
alterbang.system.new_\framework\cneapiclient.jar
alterbang.system.new_\framework\com.qti.dpmframework.jar
alterbang.system.new_\framework\com.qti.snapdragon.sdk.display.jar
alterbang.system.new_\framework\com.qualcomm.location.vzw_library.jar
alterbang.system.new_\framework\com.quicinc.cne.jar
alterbang.system.new_\framework\org.codeaurora.Performance.jar
alterbang.system.new_\framework\qcom.fmradio.jar
alterbang.system.new_\lib\hw\activity_recognition.msm8994.so
alterbang.system.new_\lib\hw\consumerir.msm8992.so
alterbang.system.new_\lib\hw\copybit.msm8992.so
alterbang.system.new_\lib\hw\sensors.lsm6db0.so
alterbang.system.new_\lib\modules\wlan.ko
alterbang.system.new_\lib64\hw\activity_recognition.msm8994.so
alterbang.system.new_\lib64\hw\consumerir.msm8992.so
alterbang.system.new_\lib64\hw\copybit.msm8992.so
alterbang.system.new_\lib64\libcurve25519-old.so
alterbang.system.new_\priv-app\com.qualcomm.msapm\arm64\com.qualcomm.msapm.odex.gz
alterbang.system.new_\priv-app\com.qualcomm.qti.services.secureui\arm64\com.qualcomm.qti.services.secureui.odex.gz
alterbang.system.new_\priv-app\com.qualcomm.qti.services.secureui\com.qualcomm.qti.services.secureui.apk
alterbang.system.new_\priv-app\qcrilmsgtunnel\arm64\qcrilmsgtunnel.odex.gz
alterbang.system.new_\priv-app\TimeService\arm64\TimeService.odex.gz
alterbang.system.new_\priv-app\TimeService\TimeService.apk
alterbang.system.new_\vendor\lib\libactuator_bu64244gwz_s5k3m2xm.so
alterbang.system.new_\vendor\lib\libactuator_bu64244gwz_s5k3m2xm_camcorder.so
alterbang.system.new_\vendor\lib\libactuator_bu64244gwz_s5k3m2xm_camera.so
alterbang.system.new_\vendor\lib\libchromatix_imx258_snapshot_street.so
alterbang.system.new_\vendor\lib\libchromatix_imx258_sunny_snapshot_street.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_common.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_hfr_60.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_hfr_90.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_hfr_120.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_liveshot.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_preview.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_snapshot.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_cpp_video.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_default_video.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_hfr_60.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_hfr_90.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_hfr_120.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_liveshot.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_postproc.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_preview.so
alterbang.system.new_\vendor\lib\libchromatix_s5k3m2xm_ofilm_snapshot.so
alterbang.system.new_\vendor\lib\libEGL_adreno.so
alterbang.system.new_\vendor\lib\libmmcamera_s5k3m2xm_ofilm.so
alterbang.system.new_\vendor\lib\libmmcamera_s5k3m2xm_ofilm_eeprom.so
alterbang.system.new_\vendor\lib64\libEGL_adreno.so
~/Mi4C/device/xiaomi/libra$ ./extract-files-from-miui-zip.sh
~/Mi4C/vendor/xiaomi/libra$ unzip -x android-vendor-xiaomi-libra.zip TO OVERWRITE THE ABOVE FILES.
~/Mi4C/kernel/xiaomi/libra$ unzip -x android-kernel-xiaomi-libra.zip
~/Mi4C$ brunch libra
In file included from hardware/qcom/audio-caf/msm8994/hal/msm8974/platform.c:44:0:
/home/s2k7/Mi4C/out/target/product/libra/obj/KERNEL_OBJ/usr/include/sound/msmcal-hwdep.h:27:14: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
__u8 __user *buffer;
^
hardware/qcom/audio-caf/msm8994/hal/msm8974/platform.c: In function 'send_codec_cal':
hardware/qcom/audio-caf/msm8994/hal/msm8974/platform.c:961:21: error: 'struct wcdcal_ioctl_buffer' has no member named 'buffer'
codec_buffer.buffer = calib.buff;
^
hardware/qcom/audio-caf/msm8994/hal/msm8974/platform.c:963:21: error: 'struct wcdcal_ioctl_buffer' has no member named 'cal_type'
codec_buffer.cal_type = type;
^
hardware/qcom/audio-caf/msm8994/hal/msm8974/platform.c: In function 'platform_get_device_to_be_id_map':
hardware/qcom/audio-caf/msm8994/hal/msm8974/platform.c:3213:23: warning: assignment from incompatible pointer type [enabled by default]
*device_to_be_id = msm_device_to_be_id;
^
make: *** [/home/s2k7/Mi4C/out/target/product/libra/obj_arm/SHARED_LIBRARIES/audio.primary.msm8992_intermediates/msm8974/platform.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/s2k7/Mi4C'
@s2k7
I found some differences in vendor folder, so i have uploaded my skeleton (to fill with proprietary files).
I also decided to include xiaobai's kernel folder (which doesnt'contains kernel source, but it does have includes and header files) to provide a more-than-complete build environment.
I committed changes so sync my repo, and also please add these to your build environment and let me know!
android-vendor-xiaomi-libra
android-kernel-xiaomi-libra
Good luck![]()
The reason why the image did not boot is that libEGL_adreno.so is placed at a wrong position. It should be /system/vendor/lib64 instead of /system/vendor/lib64/egl/.Following your device tree, I built a rom myself, but it DID not boot.
@s2k7
I found some differences in vendor folder, so i have uploaded my skeleton (to fill with proprietary files).
I also decided to include xiaobai's kernel folder (which doesnt'contains kernel source, but it does have includes and header files) to provide a more-than-complete build environment.
I committed changes so sync my repo, and also please add these to your build environment and let me know!
android-vendor-xiaomi-libra
android-kernel-xiaomi-libra
Good luck![]()
You need to create a symbolic link qca_cld_wlan.ko to wlan.ko in somewhere. init.qcom.wifi.sh. is commonly used for the purpose. Like this:The phone booted without WIFI.:crying:
any progress on cm13 tree?Hello everybody,
I have finally completed version 1 of my device tree for our device.
You can find it at
https://github.com/alterbang/android_device_xiaomi_libra
If you have a working CM local source you can lunch && mka otapackage for the glory
A few details:
BONUS: i have added a script "extract-files-from-miui-zip" to extract files from a miui.zip file (like the roms over at xiaomi.eu) so you can extract them without having to flash miui to your phone
- I forked from xiaomi-dev, xiaobai's testing repo
- Copied include folder from https://github.com/CyanogenMod/android_device_xiaomi_cancro
- Edited AndroidBoard.mk with an "#alterbang" section with dir creation and patched files copy
- Edited BoardConfig.mk with TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
- Added "#alterbang" section with missing files to proprietary-files.txt, and removed a couple files.
ANY COMMENT OR COLLABORATION IS WELCOME
It's the first time i work actively with CM, so have mercy on me
I created this project because i believe in collaboration and openness, so get your hands dirty!
Thank you!
alterbang
Build 20160129 DOWNLOAD LINK
https://mega.nz/#!wBVlUJ4D!E-TDy01wNqBuLQvbznNfOd6bfkpPvaAcSePWZdlDXbY
-works: everything
-bugs: wakeup is sometimes slow. if you know how to fix, please tell me![]()