[Xiaomi Mi 4i] k2wl:
PAC-ROM is built with our own tweaks and options, including picks and features from the best ROMs out there!

Why choose among ROMs, when you have All-in-One !!
​

DISCLAIMER

* By flashing this, you automatically void your warranty!
* If your phone breaks, catches on fire, or starts randomly playing
fart noises don't cry to me you were warned!
* Do not ask for ETAs!! I will probably be updating
this twice or thrice a month.

INSTALLATION

* Download the ROM and GApps
* Reboot to recovery
* Wipe data/factory reset
* Flash the ROM and then GAapps
* Reboot your phone
* Enjoy

UPDATING

* Download the latest version
* Reboot to recovery
* Flash the ROM
* Wipe both dalvik cache and cache
* Reboot your phone
* Enjoy the latest version of PAC-man

WORKING

2D acceleration
Touchscreen
HW/SW buttons
RIL/multisim
mobile data
Wifi
Bluetooth
internal SD
MTP
vibrate
gps
camera
audio (with proprietary drivers)
fm radio
notification lights (see limitations: [URL="http://xdaforums.com/showpost.php?p=61954224&postcount=434"]http://xdaforums.com/show...&postcount=434[/URL])
you tell me

Most of the PAC MAN rom custom features are not used by me..so are untested.
All of you can test them out and put reports here in this thread

NOT WORKING

ant+ ???
everything else...

DOWNLOADS

ROM

31/08/2015

http://d-h.st/nyH5

26/08/2015

http://d-h.st/GYzN

16/08/2015

http://d-h.st/K7al

11/08/2015

http://d-h.st/po1t

GAPPS

I use Cgapps maintined on github

https://github.com/cgapps/vendor_google/tree/builds/arm64

CHANGELOG

31/08/2015

d6821a1 Add TW_IGNORE_ABS_MT_TRACKING_ID

89583ef Fix up some TW_OEM_BUILD things

32f3a28 build: kernel: arm64 uses Image.gz as the target

839ec52 releasetools: add support for custom system format script

6cd2e66 repopick: properly sort the list of change numbers

27/08/2015

6177cf4 Initialize stashbase even stash_max_blocks = 0

aa2f668 Support resuming block based OTAs

a91f515 Fix recovery image text rendering.

d6821a1 Add TW_IGNORE_ABS_MT_TRACKING_ID

89583ef Fix up some TW_OEM_BUILD things

6cd2e66 repopick: properly sort the list of change numbers

4efc08b build: Add option to disable block-based ota

b3ebe16 repopick: make multiple queries/topics/changes work again

d1f348c Change the cache partition size check into warnings.

aec221c Revise stash for BBOTAs when needed.

c3db50e Free the stash after its use in BBOTA v2.

a5eec1a Assert the stash size when generating OTAs.

533131e Check partition hash before resorting to block_image_verify

61ee2c7 Calculate max_stashed_blocks correctly for block OTA v3

11530ab Restrict the verification in block-based incremental OTAs

20a1e69 Do not use block_verify on target-files where feature is missing.

9bc0fba Fix the error that free_string is not defined.

2802b11 product: Let a device customize its own locales

5b6d284 Support custom gerrit servers via HTTP or SSH

695d494 Change transfer list format to include block hashes

d0e02bc build: Enable A53 errata workarounds on targets that need it

e5e1f78 Force bsdiff for recovery_from_boot.p if not using GZIP

e0270e9 Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver

c6d91dc Allow -mcpu=cortex-a15 for clang

79b97e2 Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.

cad6b4c Apply correct, optimized mfpu compiler flag for ARMv7-A Cortex CPUs

a56e687 Bluetooth: Update Bluetooth security rules

94cd8bf Update the offload buffer size to unbreak gapless

8b0d225 Rootdir:Update init files

6a5e46b mkfs.f2fs: don't need to limit MIN_VOLUME SIZE

7894ee2 mkfs.f2fs: set overprovision size more precisely

f656e44 mkfs.f2fs: fix wrong documentation

cbcba15 fsck.f2fs: add segment type in sit_dump

7897b51 Fix potential overflow issue

05eb04f Cherrypick http://bugs.icu-project.org/trac/changeset/37162.

da73fae Merge branch 'LA.BF64.1.2.1' of git://codeaurora.org/platform/external/wpa_supplicant_8 into cm-12.1

b5ab0d9 Revert "eap_peer: add more qmi dependencies with qmi proxy"

2546986 eap_peer: add more qmi dependencies with qmi proxy

9f12d31 Revert "stagefright: Remove deprecated Exynos platform variant logic"

57d5b6c stagefright: Remove deprecated Exynos platform variant logic

b9abf6c soundpool: update sample rate when reusing audiotrack

124daae soundpool: reuse channel for same sample if available

07b9698 mediaplayerservice: reset mBytesWritten in AudioSink flush and stop

eae6ae1 stagefright: Correct Exynos4 stride alignment

555aa15 stagefright: Exynos4 MPEG4 decoder should set native color format.

7d45d73 audio effects: fix heap overflow

05c1863 libstagefright: Add support for NV21 color format

a5bd4cd libmedia: Increase framecount in Track Offload

3b1d35b Show icon of package associated with Toast

44a0097 Fix "Select correct 12 or 24 time format" breaking Chrome

528bf31 Themes: Use warning level logging for getBootTheme

4eb93f7 decrease difficulty of gesture lock screen

6013ee1 NavRing: Update search assistant drawable

a412614 Select correct 12 or 24 time format according to Locale

0f95ed4 Themes: Compose icons that just have scale defined

a1745d5 SystemUI: Fade keyguard visualizer along with other icons

cb9ee50 androidfw: fix cmsdk attribute lookup

7c88e2a Add the user set network mode to the siminfo table

cda6b40 add config for proximity check on screen on default value

6bb664b SystemUI: use new visualizer from Eleven

9c8f1e4 Automatic translation import

39e4be4 Filter internal account when set device owner

3b5db9f Modify SILENT profile to restrict notification sound

f1086fc Fix return to task when single task activity is brought to front

353cbef Trim task thumbnail within MAX_RECENT_BITMAPS.

7ec20b8 Bluetooth: Check for mPanservice before changing tethering state

15342c1 Bluetooth: Fix for crash in multi advertiser

a66c92b Keyguard: Adding null check for dateformat

7e8484e Blank area appears between QS and Notification

28478d4 Automatic translation import

7906597 Automatic translation import

5aa42d8 Themes: Allow packages to be set as non-themeable

50ddde1 Fingerprint: Don't start fingerprint auth in constructor

6f8b781 DevicePolicy: Restore backup manager if the device owner is cleared

eb13b31 Automatic translation import

dd1b4ca backup: Fix the system server crash fix

0f3a7d4 livedisplay: Fix boot-time race condition

f0c6dc3 cmhw: Move CMHW out of the framework and into CMSDK

72610e2 cmsdk: Start external services at the right time

68184a0 Fingerprint: Call SecurityCallback.dismiss when recognized

6676ee2 DO NOT MERGE Change to add STK_PERMISSION for stk related commands.

1d9d088 Prevent system uid component from running in an app process

97849cf Fix wrong Hungarian translation

3668882 Automatic translation import

6f8162f Revert "Revert "Wait until the Keyguard is drawn to dismiss the boot dialog.""

275d54e Revamp 'Stay awake' choices

8cb693c SignalStrength: Allow for custom signal buckets in LTE

8afe237 base: don't refresh visualizer tile once the tile is destroyed

16/08/2015

bbcab3a recovery: Separate blkid.tab for vold in recovery

e0270e9 Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver

c6d91dc Allow -mcpu=cortex-a15 for clang

79b97e2 Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.

cad6b4c Apply correct, optimized mfpu compiler flag for ARMv7-A Cortex CPUs

a4cc92e build: Enable custom ccache cache dir for Android

3b0c954 build/core: Allow EXTERNAL_CLEAN_TARGETS to dump vars.

c9ce9a1 roomservice: use force-sync when adding projects with roomservice

ad6fe8d power: Use default video encode/decode hints on 8916

4c0ddd4 Guard variable expansion: string between quotes

936bbf2 sepolicy: allow mm-pp-daemon to set debug property

4e5c27b Ferrari:: Remove debug kernel config snippet

280ca68 Ferrari: Remove deprecated egl.cfg

c9c1a47 fix charging mode

9a2c7d5 Revert "icu: add Kiev meta translations"

8e8b6f0 DLS parser: fix wave pool size check.

4fe2648 Automatic translation import

c736699 stagefright: Add libhwc to exynos include paths

625c9f1 stagefright: Add support for Exynos hardware audio decoding

b874571 stagefright: Update makefile for Exynos variants.

38c26d7 stagefright: Don't crash on invalid / null AVCC atoms in MKV

7c7f1e1 Fatal error while playing certain mkv files.

35460e9 MPEG4Extractor.cpp: handle chunk_size > SIZE_MAX

51dde7a AudioMixer: fill 0s at right place when no more buffers available

c69b0a3 video: Disable resync markers

523b5c5 libstagefright: Scale up bitrate for HSR videos

8d2c4b3 IOMX: Add buffer range check to emptyBuffer

aae1058 HDCP: buffer over flow check -- DO NOT MERGE

636050c Add some sanity checks

6a2289e Add AUtils::isInRange, and use it to detect malformed MPEG4 nal sizes

bbc6668 libstagefright: Fix incorrect duration calculation

72323a4 libstagefright: fix output buffer is not released by Writer when stopping

1610dca Validation of Number of Channels on WAV files

ce0ebe4 The preview frame data is broken when sending via Binder

62c0231 Fix new[] vs delete mismatch.

8dbd7ff Check allocation

cc68933 Fix global-buffer-overflow in voAWB_Copy.

744a392 libstagefright: Remove nBitPerSample CHECK

574e49d Detect allocation failures and bail gracefully

f5024f6 MPEG4Extractor.cpp: Add check for size == SIZE_MAX

8da57d7 Fix null-pointer-dereferences accessing the SampleTable

bb5a485 Fix multiple division-by-zero conditions in MPEG4 parsing

c773ab2 libeffects: validate channel mask in downmixer configure

4b48487 audiopolicy: fix playback of multichannel pcm clips via low latency output

46af444 Revert "Barrier only messages shouldn't prevent the idle handlers from running"

63ab5cf Themes: don't recreateDefaults on typeface when locale changes

303c375 Disable PIN entry after successful quick unlock

8020db5 Fix forcing media stream control on tablet

c1f227f systemui: Provide empty view for empty lists published in QSTile.

0f3cd19 audio: Playback over USB DAC connected before boot

c0b2888 [ActivityManager] Bring up Service if not schedule to restart

a029182 PBD: Apply the same emmc discard logic as ext4_utils

68a31ef SystemUI: fix empty notification space in shade_locked

9b0defd Keyguard: Don't show keyguard if CryptKeeper enabled

2e228fb SystemUI: add missed super window calls

dd396c7 Buttons: Allow setting default long-press app switch behavior

268867d Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS

8e1de56 Automatic translation import

d17601a Fix telephony property access for CDMA rewrite rules in PhoneNumberUtils

1fbd291 Automatic translation import

269fb8e Automatic translation import

e2d6c22 National roaming info for new Tuenti MNC in Spain

49ef575 Fix intent resolution of default preferred apps.

12e6120 PhoneWinowManager: resolve home car intent

501a692 Themes: Theme power off and reboot dialog

f5410e9 binder: Update makefile for Exynos variants

bdf3467 Verify that the native handle was created

90d905b Telephony: fallback to xml resources for sms shortcode recognition

c58c055 Updating WebView 45.0.2454.27 to 45.0.2454.37 (arm)

d48c970 post_proc: explicitly disable virtualizer module if strength is 0

7ae1440 post_proc: fix crash in offload effect bundle during stop output

a31c0c7 post_proc: fix crash in offload effect bundle during stop output

bf1eaf0 post_proc: fix reverb processing issue when preset is set to NONE

fae6310 post_proc: explicitly disable virtualizer module if strength is 0

a78cc29 hal: only open the amplifier once

79ee294 hal: enable amplifier earlier

79def03 FMRadio : Ensure scan state is kept in sync

f091ef4 Automatic translation import

d3154ae NavigationActivity: Do not reload screen on rotation

ceef4c4 Fix FileSystemInfo's ImageView shows incorrect picture in BreadcrumbView .

2444ef3 Fix improper exception handling during copy operation.

21560d8 CMFM: improved search performance

bd79d58 Improve copy/move performance with nio and reintroduce cancel.

b5c78a6 Automatic translation import

602f3de RTL: move buttons to proper spot in nav drawer

eb58bd8 Automatic translation import

bb3a947 Automatic translation import

3f9667f Automatic translation import

9388f28 Automatic translation import

0b0daf7 Automatic translation import

ad4ebc9 Automatic translation import

4e94bc7 Automatic translation import

2a35929 Eleven: Visualizer: Add back landscape mode

9f3fa0b Add ability to seek through track with circular motion

dd33b6e Automatic translation import

ad070df Automatic translation import

324ba1b Automatic translation import

412d916 Automatic translation import

59b563f Automatic translation import

357b667 Automatic translation import

22a4448 Mms: fix keyboard hiding

a364dce Unbreak Mms

16d78ce Mms: Close keyboard if scrolling in conversation history

da13fbb Automatic translation import

4bb05d4 Automatic translation import

7ca24fe Automatic translation import

cde3fcf Temp Fix: Localize Smilies in Russian

3846c38 Device info: Remove IMEI info from SIM status

44e0559 settings: add IMEI information to msim device status page

04f6fe2 Automatic translation import

c1ef77b Automatic translation import

6576b80 Automatic translation import

75ff2ed Automatic translation import

9236a9d Automatic translation import

1c010f5 Automatic translation import

debb1f2 SoundRecorder: Add support for 1-channel WAV files

843be02 Automatic translation import

df469ea Automatic translation import

f36d663 Automatic translation import

4319d89 Trebuchet: Make focus animate and move faster

ba2f9eb Automatic translation import

d6a4499 Automatic translation import

e5670c0 Automatic translation import

946be00 Automatic translation import

7174adf Automatic translation import

a623a11 Automatic translation import

787b391 Automatic translation import

4e60e8c Automatic translation import

139e84d Automatic translation import

33a0e7f CVE Fix, track higher rev of conscrypt

12a43e2 Prevent integer overflow when allocating native_handle_t

62869cd vendor/cm: Don't be so noisy.

72b1d8c vendor: cm: Add LG G2 and fix d852

4534c7a vendor/cm: Expose internal revision for platform.

f4a4458 Add new Tuenti MNC SPN override name

869cfdb APN: Update configurations for Philippine networks

bf57636 cmsdk: Rename gradle-sample package namespace.

203a9bc cmsdk: Add gradle sample project.

5a51835 cmsdk: Fix README. (Add period).

307941c cmsdk: fix enabling/disabling keyguard

f304ef2 Automatic translation import

c30c5b5 Automatic translation import

b8c609b Add ferrari support

SOURCE

https://github.com/PAC-man

https://github.com/mi4i-dev/android_device_xiaomi_ferrari

https://github.com/mi4i-dev/android_kernel_xiaomi_ferrari

https://github.com/mi4i-dev/android_vendor_xiaomi_ferrari

CREDITS

PAC-man Team

CM team

XIAOMI for kernel sources (they make an exception for this device and released a kernel code so early..when their flagships mi note pro does not have this previlage)

@dh.harald for developing CM for this device and releasing sources so early. Thanks !!!!

@smoki3

AOKP Team

DirtyUnicorns

SlimRoms

Vanir

Omnirom

drop a message in this thread if i forgot to give someone proper credits

DONATE

if you want to support then donate to PAC MAN team for this great rom

https://www.paypal.com/cgi-bin/webs...nationsBF%3abtn_donateCC_LG%2egif%3aNonHosted