Showing posts with label Xiaomi. Show all posts
Showing posts with label Xiaomi. Show all posts

Tuesday, 15 November 2016

[OFFICIAL] CyanogenMod 14.1 - mi4 [cancro] By Linuxxxx


CyanogenMod is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), which is designed to increase performance and reliability over stock Android for your device.


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.
 */
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit Gerrit Code Review.

Wiki
Official CyanogenMod Wiki: http://wiki.cyanogenmod.org/w/cancro_Info

Installation
First time CyanogenMod 14.1 installation on your Xiaomi Mi4:
  • Read the official Wiki page
  • Unlock your bootloader if you haven't done so already
  • Flash a custom recovery via Fastboot
  • Push GApps (arm) and the CM 14.1 zip to your device
  • Boot into Recovery
  • Perform factory reset
  • Flash the CM 14.1 zip from SD card
  • Flash GApps from SD card
  • Reboot
Upgrading from earlier version of CyanogenMod (even from 13.0 and 12.1) :
  • Push the new CM 14.1 zip to your SD card
  • Boot into Recovery
  • Flash the CM 14.1 zip from SD card
  • Flash the most recent GApps for 7.1 if you are upgrading from earlier android version
  • Reboot

Supported devices
  • Mi3w
  • Mi4 (WCDMA)
These devices are supported, but the maintainer WILL NOT fix bugs that are reproduceable just in those devices
  • Mi4 LTE

Downloads -----------------------------------------------------------------------------
Reporting bugs
  • DO NOT report bugs if you're running a custom kernel
  • DO NOT report bugs if you've modifies system files
  • DO NOT report bugs if you've installed xposed and/or other mods
  • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
  • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
  • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues or bugs reported in the lastest 5 pages of this thread. Any bug not reported in the bug report format below may be ignored.

Code:
Phone Informations
* Model (Mi3 / Mi4 / Mi4 LTE)
* CM version
* Gapps version
What you did:
* Wipe data: y/n
* Upgrade from previous official cm build: y/n
* Restore with titanium backup: y/n
You're using (if yes write which one) :
* Task killer
* Phone cleaner / Battery enhancer apps
* Non-stock kernel
* Modified kernel settings
* Other mods
Bug info:
* Last version it worked on
* Repro steps
F.A.Q.
  • I get error 7 while flashing this rom, what does it mean?
  • Read what the recovery says: "You're running on an unsupported (Kitkat) baseband". In order to flash the lastest CM builds you must have Miui MM baseband and partition layout installed. Visit http://bit.ly/cancroCMBaseband to learn how to update these
  • ROOT! ROOT! Give me root or i'll die!!! Where root is???
  • First of all DO NOT flash any SuperSu/SuperUser/SuperMan zip package to get root. Go to Settings>Developement Settings>Root access and select "Apps Only"
  • Why no nightly today?
  • Build failed. Check again tomorrow
  • When do I have to wipe data?
  • You must wipe data only when you're switching from another rom or migrating to Snapshot branch from Nightly and vice versa. You don't need to wipe data when you update in the same release channe (this applies to 13.0 -> 14.1 upgrades too)
  • Why no <insert miui feature here>?
  • Because this is CyanogenMod
  • Will you add <insert awesome feature here>?
  • I won't. If you write it, submit a commit to gerrit, where it will be reviewed.

The CyanogenMod team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!

XDA:DevDB Information
[OFFICIAL] CyanogenMod 14.1 - mi4 [cancro], ROM for the Xiaomi Mi 4

Contributors
linuxxxx
Source Code: https://github.com/cyanogenmod

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.4.x
ROM Firmware Required: MiUi MM baseband and partition layout

Version Information
Status: Nightly

Created 2016-11-08
Last Updated 2016-11-14

[ROM] [Android 7.1] [Libra] [MI4C] Unofficial CM14.1 by AndropaX

Unofficial Cyanogenmod 14.1 (Android 7.1 Nougat) for Xiaomi Mi4c brought to you by @AndropaX (I am not author of this ROM, all respect to @AndropaX)

Download build 20161105 - 497.8MB - MD5 - 2686946d15d929f8c8e6a60c60dcf9aa

Flash together with OpenGapps ARM64 7.1 Pico

Works:
RIL (calls/messaging/mobile data)
Wifi
GPS
IR blaster (tested with Peel on LG TV)
camera incl. video/120fps/HDR
and pretty much everything else except Bugs

Bugs 20161029:
- battery saver and performance menu crash - fixed, can be changed to Efficiency
- battery indicator style - fixed, can be changed to big text percentage
- missing reboot in power menu - fixed, also Advanced power menu through developer options works
- button brightness settings - not fixed
- fingerprint sensor notification - removed, fixed
- double twist for camera - removed, so i guess fixed
- preferred network type in system profiles crash - not fixed
- default SIM for calls/data blank (select manually in SIM settings)

short review
boot is faster than Hikari No Tenshi, default theme seem to be a bit darker than HnT at least in quick tiles, Last app through Menu button works fine, no wifi 5/2.4ghz switch (as in other CM14 builds), switching from full brightness in camera to previous brightness elsewhere seem to work OK, default vibration has normal intensity, not as strong as in HnT

new (untested) - lift to wake, power on sounds option, extra settings edge double tap (was in HnT build too actually), force allow apps on external, force activities to be resizeable

[ TUTORIAL ] Unlock Bootloader MI4C Tanpa Verifikasi Xiaomi

This evening I had the same problem like many of you and I just did not want to wait 2-3 weeks for the unlock code from Xiaomi. I went through a lot of threads and different forums to create this guide.

Requirements
- ADB up and running (I am an Android developer, so I have this installed already - unsure if you need specific ADB drivers for Xiaomi devices though)
- Xiaomi MI4c
- MiFlash: http://bigota.d.miui.com/tools/MiPhone20151028.exe (via http://en.miui.com/a-234.html) - Install
- Mi4c Image: libra_images_6.1.7_20151221.0000.11_5.1_cn_b09dac7 0a0.tgz - unpack until "images" directory is visible!
- [Optional] Mi4c Fastboot Image: miui_MI4c_6.1.21_d1d054460d_5.1.zip
- [Optional] Latest TWRP: http://forum.xda-developers.com/mi-4...p-3-0-t3315059
- [Optional] Latest build of CM 12.1: http://forum.xda-developers.com/mi-4...evice-t3291631

Step-by-step

Step 1 is optional: I was not sure, if I could use the "fastboot oem edl" command in a higher version of MIUI... feedback required. Thus following is a list of known Xiaomi ROMs which support this procedure:
If you are using one of the following ROM versions, you should be able to unlock the device easily with the provided guide. However, I have messages that the versions don't work with higher MIUI ROM versions.

CONFIRMED WORKING
V8.6.9.15 MIUI Dev ROM
V8.0.16.0 MIUI Dev ROM
V7.5.4.0
V7.5.3.0.LXKCNDE
V7.1.4.0.LXKCNCK
V6.1.21 (Download link above)
V6.3.24
V6.3.17
V6.4.21
V6.4.14
V6.5.26
V6.8.25
V6.9.15 (China Dev)

Not confirmed (?)
None

Not working
None

  1. (Optional) Downgrade your Mi4c by flashing any image from the list above via the "Updater" app (use top right icon to select image).
  2. Reboot into fastboot mode (Power + Vol Down) until you see the MIUI rabbit and "FASTBOOT"
  3. Command: fastboot oem edl (this brings your device in a kind of emergency recovery state) -> the device does only show a black screen. Do the next step.
  4. Use MiFlash to flash 6.1.7 image (Browse -> select the "images" directory of the 6.1.7 package and start flashing)
  5. When completed, reboot the phone by holding the Power button long (~8s)
  6. Wait until 6.1.7 is completely loaded (this may take a while)
  7. Reboot into fastboot mode (Power + Vol Down)
  8. Command: fastboot oem unlock -> at this point you should have an unlocked bootloader
  9. Now optionally install TWRP and subsequently CM 12.1 and enjoy (see respective linkes in the requirements for a howto) - TWRP: fastboot flash recovery <twrp>.img


With this post, I want to say thank you to all the developers who take their time to port Cyanogen to exotic Android devices. You are heroes!


In case you want to donate him something: https://paypal.me/wolkenjaeger

Unlock Xiaomi Mi 5 Bootloader (with Screenshots)

Unlock Xiaomi Mi 5 Bootloader (with Screenshots)


Introduction
There are some myths and misbeliefs around unlocking the Xiaomi Mi 5. And as I got lucky and got my Mi 5 early and unlocked it, I will share some screenshots as well as my opinion on this matter. 


What shall I do? How to increase my chances?
Right now there is no custom ROM, and if you want root access, you can get it through the Security App of MIUI. So that means you can spend the next weeks to become a Diamond member on the forum, post a bit everyday and you get it fast. As Diamond members on the MIUI forum are whitelisted, it will increase your chances. 

Good to know, good to have
  • Your MI Account must be allowed to unlock phones
  • One Account can Unlock one phone within 30 days
  • Xiaomi Mi5 with Chinese Rom installed
  • MI Unlock App

How to get the unlock Permission
Click here: http://en.miui.com/unlock

How to get the unlock Tool
Click here: http://en.miui.com/unlock/download_en.html

Mi unlock tutorial and F.A.Q.
Click here: Mi Devices Bootloader Unlocking Tutorial & English Unlocking Tool Download

Screenshots






Question and Answers:

Q: Will the bootloader be locked after I update?
A: Not out of the box, so no.

Q: Can I lock the bootloader again?
A: Yes, the Fastboot-ROM includes a flash_all_lock script

Q: Can one Mi Account unlock several phones?
A: Yes and No. One Mi Account can unlock one phone every 30 days. 

Q: Does the fingerprint scanner work after unlock?
A: Yes, I noticed no difference, so far it works like a charm.

Q: Why do I need / want an unlocked bootloader?
A: It allows you to flash custom Recovery and Custom ROMs as well as use the Mi-Flash tool.

Q: Is the Mi 5 encrypted? 
A: By default it is yes. (See the following screenshot)

Screenshot of Privacy setting page (Shows that phone is encrypted)

Monday, 14 November 2016

[ROM][UNOFFICIAL] CyanogenMod 14.1 for Xiaomi Mi5 [WIP] ( By WhyOrean )

Yeah, Nailed It! 

Source Info: 
Kernel : Source Credits @bgcngm
Device : Source Credits @bgcngm
Vendor : Source 
Prebuilt Binaries : Source 
Firmware : V7.5.9.0 Flash It ! Credits @33bca

Whats Broken ?
1. Camera
2. GPS
3. WiFi
4. Bluetooth - Fixed
5. Screen Rotation
6. ??


Download:
Its Engineering Build - Here 

#Please Note : You need to remove "system/priv-app/com.qualcomm.location" for now to boot.
Remove that directory using TWRP->Filemanager.

ROM OS Version: 7.1 Nougat

Version Information
Status: WIP

Created 2016-11-12
Last Updated 2016-11-12
Attached Thumbnails
         http://forum.xda-developers.com/attachment.php?attachmentid=3933420&d=1478901100
      

[GUIDE] Tutorial untuk Install Official Cyanogenmod 13 di Xiaomi MI5 ( By Captain_Obviyus )

First : Warning !!!

/*
* 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.

Each step of the guide REQUIRES you to have completed the step prior to that one for it to work. For example, you can't go installing TWRP on your device without unlocking the bootloader first.


Prerequisites:
  1. Xiaomi Mi5
  2. TWRP for Mi5 by Cofface
  3. Latest Cyanogenmod 13 Nightly Build
  4. You can follow this guide to see how to install ADB on your system.
  5. OpenGApps. I suggest you download the micro package.


Let's get started:

  1. Unlocking the Bootloader:
    The first thing any Mi5 owner NEEDS to do is to unlock their bootloader.Here is a great guide for unlocking the bootloader of the Mi5 (or any Xiaomi device for that matter) by TheUltrametricSpace. It's much better than anything I can make. So before you do anything go here and unlock the bootloader.
  2. Installing TWRP:
    When I use the Official TWRP from here, my touchscreen doesn't work. I haven't a found a solution yet. If any of you know how to fix this then please post it down below. If it works out I'll put it up in this guide. For now, we'll use TWRP by Cofface for Mi5. So far this is the only TWRP that seems to work for me.
    1. You're most likely coming from MIUI 8 and thus, running Marshmallow. I'm not sure but there is some sort of encryption that Google has put in so you cannot use TWRP to flash your .zips from Internal Storage. So before you go any further, backup your files/apps or anything you might need.
    2. Go to the platform-tools folder and extract the .rar file that you downloaded earlier containing TWRP there.
    3. Rename the .img file extarcted from the TWRP .rar to twrp.img
    4. Run the CMD shortcut you pasted in the ADB folder from the guide above as an administrator.
    5. Connect you Mi5 to your computer. Hold both the Power and Volume Down button to boot into the bootloader. You should see this image.
    6. [At this point, you MUST have fastboot.exe and twrp.img inside the platform-tools folder.
    7. Now go back to the CMD window you opened. Type in the follwoing:

      Code:
      adb devices
      Press enter. You should see your device in the window after typing this.
      Code:
      fastboot flash recovery twrp.img
      Press enter. On the command window you should see a few lines popup and at the end it will show time taken to complete operation. So far so good.
      Code:
      adb reboot recovery
      Press enter. You should now see the TWRP flash screen.
    8. If TWRP is in Chinese, worry not.


      Tap on the second box to select language. Scroll down and select English.
    9. Swipe to allow modifications.
    10. You should be in TWRP now.

      DO NOT BOOT OUT OF TWRP RIGHT NOW.
  3. Installing Cyanogenmod 13:
    Of all the ROMs that I have used, I find that CM13 is far better. It's mostly personal preference. If you want to install any other ROM, the process is more or less exactly the same. Follow the instructions below:
    1. Tap on Wipe.
    2. Tap on Advanced Wipe.
    3. Select everything except USB-OTG.
    4. Swipe to Wipe.
    5. Go back to the main TWRP screen.
    6. Tap on Mount.
    7. Tap on Enable MTP.
    8. Connect your phone to your computer via USB.
    9. Copy cm-13.0-20161022-NIGHTLY-gemini.zip and open_gapps-arm64-6.0-micro-20161025.zip from your computer to the Internal Storage folder inside Mi5 in My Computer.
    10. Come back to TWRP.
    11. Tap on Install.
    12. Scroll down and find the cm-13.0-20161022-NIGHTLY-gemini.zip file and tap on it. Installation will start and will take about a minute and a half.
    13. Now come back and flash the open_gapps-arm64-6.0-micro-20161025.zip file. This should be much faster.
    14. Now go back to the Wipe section and select only the Dalvik & cache.
    15. Now press Reboot System.
  4. And that's it. The first boot will take quite some time. You're running Cyanogenmod 13 now!

Optional:
You can also install Falcon Kernel by Harrynowl to get a few more extra features. Install it like you would Cyanogenmod by flashing the .zip.


Credits:
  1. Cyanogenmod 13
    1. bgcngm
    2. Mi5 Developers
    3. Cyanogenmod Developers
  2. TWRP by Cofface
  3. User TheUltrametricSpace for his excellent Bootloader Unlocking Guide.
  4. User iamareebjamal for the awesome ADB Guide.
  5. User Harrynowl for the Falcon Kernel.