[WIP][ROM][ARM64][VoLTE][Redmi 2][DISCONTINUED] CAF_AOSP_7.1.2 for Redmi2 WT88047

Search This thread

pirej

Senior Member
Jan 13, 2013
1,417
3,205
Skopje
Hi, this rom is built using arm64 sources from Codeaurora, branch LA.BR.1.2.9_rb1.29 with some adjustments to fit our "little precious... "


Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/


INSTALLATION
- MAKE BACKUP of your working rom before flashing this one.
- Boot into recovery
- Wipe System, Data, Cache, Dalvik Cache
- Flash the zip
- Reboot your device
First boot takes some time. Wait patiently.

WORKING
- Wifi,
- Bluetooth,
- RIL (voicecall, sms, data),
- SDCard,
- audio / video
- FM radio
- Camera
- GPS
- VoLTE


NOT WORKING
- Camera
- GPS

SOURCES
https://github.com/redmi2

CREDITS
me
you
everyone

DOWNLOADS
androidfilehost
wt8847_64_twrp_3.2.1

If you want root, flash
"phh's SuperUser"
OR
SuperSU
OR
MagiskSU

Gaaps are not included, open_gapps-arm64-7.1-pico works fine.

The ROM supports signature spoofing, so you can use microG as a "replacement" for gaaps.





XDA:DevDB Information
CAF, ROM for the Xiaomi Redmi 2

Contributors
pirej
Source Code: https://www.codeaurora.org/cgit/quic/la

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: TWRP 3.1.1 and L bootloader
Based On: CAF AOSP ARM64

Version Information
Status: Stable

Created 2017-03-08
Last Updated 2018-06-05
 

pirej

Senior Member
Jan 13, 2013
1,417
3,205
Skopje
Changelog:
- 02.04.2017 fixed Camera
- 03.04.2017 fixed GPS (will be included in the nex build) get the fix here
- 04.04.2017 updated all sources to the latest CAF branch LA.BR.1.2.9_rb1.14, included gps fix, removed qcom bt apps.

- 09.04.2017
Camera - include missing 8MP picture size
Wrong device name - fixed
Gallery FC when entering edit mode - fixed
Unlocked 400 and 533 Mhz cpu frequencies
- 18.04.2017
Options to disable camera shutter sound and screen-shot sound
Camera Beautification Options
Signature Spoofing permission
Advanced Power Menu
Buttons Rebinding Options (and changed the color to "Teal" instead the initial "Blue", to match all of the other items in settings
Navbar Buttons
Quick settings pull down
Quick Charge
Faux Sound
MSM hotplug
Various Framework and Kernel optimizations/improvements
- 20.04.2017
Added VoLTE support
removed Quick settings pull down
Disabled system-wide Camera shutter sound (editable in system.prop)
-25.04.2017
I have updated all of my sources to the latest LA.BR.1.2.9_rb1.15 branch for msm8916_64 (no sign of 7.1.2 yet)
I didn't check what exactly is changed upstream, so... :)
I removed the second APN setting in mobile settings
Increased in-call audio volume
The wifi drivers in kernel are updated too (i forgot to update them before)

-01.05.2017
From what i remember..
Changed app icons for phone/messages
Added screen recorder option ( press power and volume-up keys at the same time to start, and same combination to end recording)
Added "Phone info" in about/status/Phone info (no need to dial *#*#4636#*#*)
Updated mixer for a louder in call sound (and i hope i didn't introduce some distortions in music playback as in the first try)
Those are the obvious changes..
And.. a some under the hood changes..

-21-05-2017
no new features,
no new (reported)bug fixes..
fixed some unreported bugs(errors in logcat)
some BoringSSL related changes,
and some other misc changes

-26.05.2017
updated to android 7.1.2

-19.06.2017
updated to LA.BR.1.2.9_rb1.22

-31.07.2017
updated to LA.BR.1.2.9_rb1.23

-26.08.2017
updated to LA.BR.1.2.9_rb1.24

-02.10.2017
updated to LA.BR.1.2.9_rb1.26

-18.10.2017
improved proximity sensor sensitivity
misc updates in kernel for gereral performance
display related changes
added(in dialer) and enabled call-recording

-03.11.2017
updated to LA.BR.1.2.9_rb1.27
patched to allow changing of the " WebView provider"

-02.12.2017
updated to LA.BR.1.2.9_rb1.28
included some of the previous changes/bug-fixes:
added option to remove the QuickSearchBar in launcher settings
switched to ltr559 to get the proximity working
fixed gallery not being able to open edit mode

Temp change-log until the next full build..
Updated kernel, with added support for the great kernel-app "spectrum"
and with fixed "display shifted" bug.

-11.01.2018
Updated to LA.BR.1.2.9_rb1.29

-05.06.2018
--------------------------DISCONTINUED--------------------------------
 
Last edited:

Venkatesh

Senior Member
Mar 1, 2012
971
653
@pirej can you share your kernel source here again? Also, how which tool you used to unpack-repack the boot.img? can you tell me the process? I'm having issues only with this in here

Hey, why do you ask same question again? He's building from source, not packing, unpacking boot.img. Go and get sources link from previous post and there are tons of methods in xda on unpacking boot.img.
 

LuanHalaiko

Senior Member
  • Jul 12, 2015
    1,912
    1,809
    Lapa
    forum.xda-developers.com
    Hey, why do you ask same question again? He's building from source, not packing, unpacking boot.img. Go and get sources link from previous post and there are tons of methods in xda on unpacking boot.img.

    Look, I asked him again becouse I tried using a lot of methods for making the boot.img, BUT it dosn't work, when I compile the kernel all I get is the kernel.gz and the dt.img, I need the ramdisk for caf that is on the boot.img, I can unpack-it, but I can't repack-it, it will give me an error saying that it can't find mkbootfs and mkbootimg, even that they are on the location indicated Mkboot , that's why I'm asking for help
     

    valenrock

    Senior Member
    Oct 7, 2010
    427
    96
    jakarta
    Booted successfully on my HM 2014818 (Indian Variant).
    The ROM is snappy af its like Redmi 2 on steroids.
    It just misses out on Camera , Non remappable H/W keys and GPS which will be fixed by pirej ? soon™.

    Clean flashed TWRP 3.0.3.0
    .....
    Script succsesded (1.000000)

    But stuck at boot animation ( white google text )
    Something wrong here @pirej ?
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 74
      Hi, this rom is built using arm64 sources from Codeaurora, branch LA.BR.1.2.9_rb1.29 with some adjustments to fit our "little precious... "


      Code:
      #include <std_disclaimer.h>
      /*
      * Your warranty is now void.
      *
      * I am not responsible for bricked devices, dead SD cards,
      * thermonuclear war, or you getting fired because the alarm app failed. Please
      * do some research if you have any concerns about features included in this ROM
      * before flashing it! YOU are choosing to make these modifications, and if
      * you point the finger at me for messing up your device, I will laugh at you.
      */


      INSTALLATION
      - MAKE BACKUP of your working rom before flashing this one.
      - Boot into recovery
      - Wipe System, Data, Cache, Dalvik Cache
      - Flash the zip
      - Reboot your device
      First boot takes some time. Wait patiently.

      WORKING
      - Wifi,
      - Bluetooth,
      - RIL (voicecall, sms, data),
      - SDCard,
      - audio / video
      - FM radio
      - Camera
      - GPS
      - VoLTE


      NOT WORKING
      - Camera
      - GPS

      SOURCES
      https://github.com/redmi2

      CREDITS
      me
      you
      everyone

      DOWNLOADS
      androidfilehost
      wt8847_64_twrp_3.2.1

      If you want root, flash
      "phh's SuperUser"
      OR
      SuperSU
      OR
      MagiskSU

      Gaaps are not included, open_gapps-arm64-7.1-pico works fine.

      The ROM supports signature spoofing, so you can use microG as a "replacement" for gaaps.





      XDA:DevDB Information
      CAF, ROM for the Xiaomi Redmi 2

      Contributors
      pirej
      Source Code: https://www.codeaurora.org/cgit/quic/la

      ROM OS Version: 7.x Nougat
      ROM Kernel: Linux 3.10.x
      ROM Firmware Required: TWRP 3.1.1 and L bootloader
      Based On: CAF AOSP ARM64

      Version Information
      Status: Stable

      Created 2017-03-08
      Last Updated 2018-06-05
      42
      Changelog:
      - 02.04.2017 fixed Camera
      - 03.04.2017 fixed GPS (will be included in the nex build) get the fix here
      - 04.04.2017 updated all sources to the latest CAF branch LA.BR.1.2.9_rb1.14, included gps fix, removed qcom bt apps.

      - 09.04.2017
      Camera - include missing 8MP picture size
      Wrong device name - fixed
      Gallery FC when entering edit mode - fixed
      Unlocked 400 and 533 Mhz cpu frequencies
      - 18.04.2017
      Options to disable camera shutter sound and screen-shot sound
      Camera Beautification Options
      Signature Spoofing permission
      Advanced Power Menu
      Buttons Rebinding Options (and changed the color to "Teal" instead the initial "Blue", to match all of the other items in settings
      Navbar Buttons
      Quick settings pull down
      Quick Charge
      Faux Sound
      MSM hotplug
      Various Framework and Kernel optimizations/improvements
      - 20.04.2017
      Added VoLTE support
      removed Quick settings pull down
      Disabled system-wide Camera shutter sound (editable in system.prop)
      -25.04.2017
      I have updated all of my sources to the latest LA.BR.1.2.9_rb1.15 branch for msm8916_64 (no sign of 7.1.2 yet)
      I didn't check what exactly is changed upstream, so... :)
      I removed the second APN setting in mobile settings
      Increased in-call audio volume
      The wifi drivers in kernel are updated too (i forgot to update them before)

      -01.05.2017
      From what i remember..
      Changed app icons for phone/messages
      Added screen recorder option ( press power and volume-up keys at the same time to start, and same combination to end recording)
      Added "Phone info" in about/status/Phone info (no need to dial *#*#4636#*#*)
      Updated mixer for a louder in call sound (and i hope i didn't introduce some distortions in music playback as in the first try)
      Those are the obvious changes..
      And.. a some under the hood changes..

      -21-05-2017
      no new features,
      no new (reported)bug fixes..
      fixed some unreported bugs(errors in logcat)
      some BoringSSL related changes,
      and some other misc changes

      -26.05.2017
      updated to android 7.1.2

      -19.06.2017
      updated to LA.BR.1.2.9_rb1.22

      -31.07.2017
      updated to LA.BR.1.2.9_rb1.23

      -26.08.2017
      updated to LA.BR.1.2.9_rb1.24

      -02.10.2017
      updated to LA.BR.1.2.9_rb1.26

      -18.10.2017
      improved proximity sensor sensitivity
      misc updates in kernel for gereral performance
      display related changes
      added(in dialer) and enabled call-recording

      -03.11.2017
      updated to LA.BR.1.2.9_rb1.27
      patched to allow changing of the " WebView provider"

      -02.12.2017
      updated to LA.BR.1.2.9_rb1.28
      included some of the previous changes/bug-fixes:
      added option to remove the QuickSearchBar in launcher settings
      switched to ltr559 to get the proximity working
      fixed gallery not being able to open edit mode

      Temp change-log until the next full build..
      Updated kernel, with added support for the great kernel-app "spectrum"
      and with fixed "display shifted" bug.

      -11.01.2018
      Updated to LA.BR.1.2.9_rb1.29

      -05.06.2018
      --------------------------DISCONTINUED--------------------------------
      39
      CAMERA FIXEEEDDDDDddddddd

      Finally.. i got it working.
      It works
      back camera for taking pictures and video recording..
      front camera only pictures
      30
      ---------------------------------------------------------------DISCONTINUED --------------------------------------------------------------
      I have other real "life bugs" to solve, and that doesn't leave me any space for this any more.
      Im still using the Redmi2 daily with this caf rom, but im using it just as a smartphone, not a test device, i haven't even rebooted the phone for months :)
      Its been a fun journey coming from kitkat, making roms and kernels without official kernel sources at all, and everything worked(more or less) at the end.
      BIG thanks to all of the XDA members that supported my work and the development of Redmi 2 in general, and GIGANTIC thanks to balika011, the guy who put everything together to make the FIRST public kernel sources that worked for Redmi2, and everything after that was easy.
      There were other big contributors to the development too, but i wanted to mention the one that everyone forgot about, and probably 80-90% of the redmi2 users don't know that HE was the one who made it possible, not some low lives like me, or some self proclaimed "developers".
      Redmi 2 has proven to be a very potent device, very convenient for development, and i will buy Xiaomi phones because of that experience.

      Thanks again, pirej.
      23
      New BUILD is UP.

      Cumulative Changelog since the - 09.04.2017 build
      Added:..
      Options to disable camera shutter sound and screen-shot sound @sobailox
      Camera Beautification Options
      Signature Spoofing permission
      Advanced Power Menu
      Buttons Rebinding Options (and changed the color to "Teal" instead the initial "Blue", to match all of the other items in settings. @xehed
      Navbar Buttons
      Quick settings pull down
      Quick Charge
      Faux Sound
      MSM hotplug

      Various Framework and Kernel optimizations/improvements


      Download: