[WIP]CyanogenMod 12.1 for Xiaomi Mi 4i

594 posts
Thanks Meter: 1,619
 
Post Reply Email Thread
SOURCES

I've worked on this in the last 4-5 days... Unfortunately, i've no too much spare time, so I've published my sources, because I'm stucked on several areas...
I'm asking every Developer to collaborate.

This source is very experimental. I'm not responsible if you transform your phone into a brick!

kernel: https://github.com/dh-harald/android...xiaomi_ferrari
device: https://github.com/dh-harald/android...xiaomi_ferrari
optional:
vendor: https://github.com/dh-harald/android...xiaomi_ferrari

so your local_manifest must be something like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
    <project path="kernel/xiaomi/ferrari" name="dh-harald/android_kernel_xiaomi_ferrari" />
    <project path="device/xiaomi/ferrari" name="dh-harald/android_device_xiaomi_ferrari" />
    <project path="vendor/xiaomi/ferrari" name="dh-harald/android_vendor_xiaomi_ferrari" />
    <project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" />
    <project path="external/mm-dash" name="CyanogenMod/android_external_mm-dash" />
    <project path="hardware/qcom/fm" name="CyanogenMod/android_hardware_qcom_fm" />
</manifest>
Quick compile guide:
Code:
cd <your source>
. build/envsetup.sh 
brunch cm_ferrari-userdebug
This topic is strictly for developers, so it will be enough for help
The Following 61 Users Say Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
7th July 2015, 03:24 PM |#2  
OP Senior Member
Flag London
Thanks Meter: 1,619
 
Donate to Me
More
IMPORTANT
The binary base of my rom is 5.6.11.
If you have unexcepted behaviours, try to install developer edition 5.6.11, before you install CM

Latest alpha builds:
From: @dh.harald
cm-12.1-20151015-UNOFFICIAL-ferrari.zip - 348.13 MB
Sensor patch:
patch-sensors.zip - 204.43 KB (only libsensorservice.so needs)
I'm currently testing this build as a daily driver

From: @smoki3
Sensors patch already applied:
cm-12.1-20150722-UNOFFICIAL-ferrari.zip

WORKING
2D acceleration
Touchscreen
HW/SW buttons
RIL/multisim
+ mobile data (big thanks for @smoki3 & @k2wl)
Wifi
Bluetooth
internal SD
MTP
vibrate
gps
camera ( @smoki3)
audio (with proprietary drivers)
fm radio @k2wl
notification lights (see limitations: http://forum.xda-developers.com/show...&postcount=434)
ant +
+ you tell me

NOT WORKING
sensors (use this patch: http://devhost.xda-developers.com/S5m)
+ everything else...

CHANGELOG
+ doze (limited)

If you want buy us a beer, here are the donation links:
dh.harald
smoki3
k2wl
The Following 54 Users Say Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
7th July 2015, 03:32 PM |#3  
Bitti09's Avatar
Senior Member
Flag Essen
Thanks Meter: 3,526
 
Donate to Me
More
can you add a list of working/non working parts?
The Following 3 Users Say Thank You to Bitti09 For This Useful Post: [ View ] Gift Bitti09 Ad-Free
7th July 2015, 03:44 PM |#4  
smoki3's Avatar
Senior Member
Flag Heidenheim
Thanks Meter: 1,255
 
Donate to Me
More
have you tried

AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true

on boardconfig?
The Following 5 Users Say Thank You to smoki3 For This Useful Post: [ View ] Gift smoki3 Ad-Free
7th July 2015, 03:46 PM |#5  
OP Senior Member
Flag London
Thanks Meter: 1,619
 
Donate to Me
More
Quote:
Originally Posted by smoki3

have you tried

AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true

on boardconfig?

Nope
Please fork it, and if your modification is working, make a pull request
Maybe I'll try it in the evening... we will see

Thanks!
The Following 4 Users Say Thank You to dh.harald For This Useful Post: [ View ] Gift dh.harald Ad-Free
7th July 2015, 03:48 PM |#6  
Member
Thanks Meter: 4
 
More
Wow.. You are the man.
Thank you so much

Sent from my Mi 4i using XDA Free mobile app
The Following 2 Users Say Thank You to rocky_09 For This Useful Post: [ View ] Gift rocky_09 Ad-Free
7th July 2015, 03:48 PM |#7  
smoki3's Avatar
Senior Member
Flag Heidenheim
Thanks Meter: 1,255
 
Donate to Me
More
Quote:
Originally Posted by dh.harald

Nope
Please fork it, and if your modification is working, make a pull request
Maybe I'll try it in the evening... we will see

Thanks!

have forked already. building now
The Following 5 Users Say Thank You to smoki3 For This Useful Post: [ View ] Gift smoki3 Ad-Free
7th July 2015, 03:49 PM |#8  
Bitti09's Avatar
Senior Member
Flag Essen
Thanks Meter: 3,526
 
Donate to Me
More
Quote:
Originally Posted by dh.harald

Nope
Please fork it, and if your modification is working, make a pull request
Maybe I'll try it in the evening... we will see

Thanks!

can you do the following:
1. install this app: https://play.google.com/store/apps/d...l.syslog&hl=de
2. reboot
3. start and stop camera app
3. run the app from 1. and upload the generated zip file here
The Following 2 Users Say Thank You to Bitti09 For This Useful Post: [ View ] Gift Bitti09 Ad-Free
7th July 2015, 04:15 PM |#9  
smoki3's Avatar
Senior Member
Flag Heidenheim
Thanks Meter: 1,255
 
Donate to Me
More
vibration is working for me on your build. it only is weak
The Following User Says Thank You to smoki3 For This Useful Post: [ View ] Gift smoki3 Ad-Free
7th July 2015, 04:32 PM |#10  
Member
Thanks Meter: 21
 
More
Thank you very much for your work dh.harald! Give this man some beer for his work
The Following User Says Thank You to Undefined007 For This Useful Post: [ View ] Gift Undefined007 Ad-Free
7th July 2015, 04:59 PM |#11  
Senior Member
Thanks Meter: 7,602
 
Donate to Me
More
You didn't define msm8916 audio files in your device.mk like inhttps://github.com/CyanogenMod/android_device_cyanogen_msm8939-common/blob/cm-12.1/msm8939.mk
Post Reply Subscribe to Thread

Tags
development

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes