yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5c Guides, News, & Discussion] usedbytes:
Hi, this might be more suitable in the ROMS/development section, but I don't have a post count high enough to post there.

I've been hacking around on the Mi 5C since I got it last week. I thought I'd share what I've learnt.

With regards to the device itself - it's very nice. Metal construction, vivid screen, great build quality. I'm very pleased with it - though even after changing the language there's a lot of Chinese stuff in the stock ROM which I can't read. Obviously no play store/GMS either. I haven't spent any time trying to sideload those because I'm flashing it pretty regularly at the moment.

Bootloader Unlocking

The process for unlocking the bootloader is the same as for other Xiaomi phones, put in a request on en.miui.com/unlock, then wait for a code and use their unlocking tool to unlock.

I had success with version 1.1.1111.11231 of the Mi Unlock Tool, which you can find in the MIUI forums.

Boot Images

I initially had some trouble getting the (unlocked) bootloader to accept any boot images which I created. It would tell me "image verify failed".

After fiddling around with creating different images and comparing them to the stock one in the Xiaomi ROM, I discovered that the bootloader is expecting the images to have a sha256 checksum rather than sha1.

I don't know what the motivation for that was - but if you swap sha1 for sha256, it works fine.

I've got a patched version of mkbootimg on Github at usedbytes/mkbootimg (branch sha256) which lets you specify sha256 on the command line. I've submitted a pull request to get it back into osm0sis' repo, which is where Google sent me to get the mkbootimg source code.

With that mkbootimg, you can create boot images for the mi5c with the following parameters (taken from the stock ROM):

mkbootimg \
--kernel $KERNEL_IMAGE \
--ramdisk $RAMDISK \
--cmdline "console=ttyS0,115200 earlyprintk=uart8250-32bit,0xF900B000 androidboot.hardware=song no_console_suspend debug user_debug=31 loglevel=9" \
--base 0x0 \
--pagesize 4096 \
--kernel_offset 0x0a080000 \
--ramdisk_offset 0x0c400000 \
--dt $DEVICETREE \
--tags_offset 0xc200000 \
--os_version 0.0.0 \
--os_patch_level 0 \
--second_offset 0x00f00000 \
--hash sha256 \
--id \
-o $OUTFILE

Root

I have managed to root it by manually installing SuperSU into my init ramdisk. That was quite an involved process which I won't go in to.

If anyone is really interested I can write it up - but it would be better to find a better way, such as porting TWRP.

TWRP/Custom ROM

Xiaomi haven't released any source for the Mi 5C, and I'm not sure if we can expect them to.

I do intend to try and port TWRP to it, but having never done anything like that before I don't know if I'll succeed.

My eventual goal is to get AOSP onto it, but again having not tried building a custom ROM before, it will be a challenge.

Hopefully the information here can help someone who knows what they are doing start some development on this device!
[Xiaomi Mi 5c Guides, News, & Discussion] IXI Nyx IXI:
Hi, very nice work dude !

I have some questions though.

Is there a way to enable some network band ? Because you surely have noticed that this phone doesn't work very well in 3G outside China.

Plus do you think you can create a custom global MIUI ROM ?
[Xiaomi Mi 5c Guides, News, & Discussion] Alting:
Hi!

Big thanks to usedbyte for expanded description to create modified boot for Mi5C.

I make a custom fastboot rom for this device with all translations and patches at Multirom.me Team

https://yadi.sk/d/V3Btc_NB3GFbZx
[Xiaomi Mi 5c Guides, News, & Discussion] Calentyth:
Hi, could you explain how I can install it ? Because TWRP isn't port on Mi5C yet. Thanks !
[Xiaomi Mi 5c Guides, News, & Discussion] Alting:
You must first unlock your device and install via fastboot.

My friend make a full archive for fastboot: https://yadi.sk/d/dHsiZDef3GGpWr
[Xiaomi Mi 5c Guides, News, & Discussion] usedbytes:
Hey Alting, np.

Whats in your ROM exactly?
[Xiaomi Mi 5c Guides, News, & Discussion] usedbytes:
Well there's a thread on the MiUi forums about unlocking FDD LTE: en.miui.com/thread-538090-1-1.html

but there's another thread by the same guy saying it's not possible: en.miui.com/thread-526343-1-1.html

To be honest, I haven't actually put a SIM card in mine - I've been spending all my time hacking around on it. I will put a SIM in and see what happens.
[Xiaomi Mi 5c Guides, News, & Discussion] Alting:
It's just fastboot version of MultiROM Team ROM (https://multirom.me/).

Included translate to all languages of global version MIUI, gapps, e.t.c.
[Xiaomi Mi 5c Guides, News, & Discussion] alloveras:
Hey,

I am trying to unlock the Mi5C and I already have the unlock code but when I use the Mi Flash Unlock Tool v1.1.1111.11231 it says that it couldn't verify the device.

Do you have any clue on how to solve this issue? My MIUI version is 8.1.13.0 China Stable.

Thank you so much!

Albert
[Xiaomi Mi 5c Guides, News, & Discussion] berlin51:
look here:

http://en.miui.com/thread-536089-1-1.html

Someone talks about the installing Mi PC Suite and removing the ADB driver.

Not sure if that is helpful as I do not have a Xiaomi phone & have not used the PC Suite.
[Xiaomi Mi 5c Guides, News, & Discussion] usedbytes:
I had this problem as well actually. Firstly you need to make sure that you're logged in to your Mi account on the phone.

The thing that made it work for me though was finding the device in device-manager (I don't remember what it was called - some random USB device) and removing the driver for it.

There were instructions on the MiUI forums about it - if you search for the error message you should be able to find it
[Xiaomi Mi 5c Guides, News, & Discussion] alloveras:
Hey there!

Thank you all for all of your detailed and quick answers!! I finally managed to unlock and flash my Xiaomi 5C!!! The problem was related with the USB drivers on my Windows 10 (x64) machine. I uninstalled them all, rebooted the system, re-installed again and the unlocking app worked like a charm!

Thank you guys again!

Greetings from Spain,

Albert
[Xiaomi Mi 5c Guides, News, & Discussion] swinder0161:
Hello,

I have managed to build TWRP touch recovery for MI 5C.

It can be found at https://ufile.io/cd6d3

We can simply boot into recovery from fastboot or flash it(recommend to test on your device first without flashing)

And we will be able to mount any partition and get root adb access.

The recovery image is available on server for 30 days, so it will be good if someone can mirror it on a more reliable location.

I hope it helps.
[Xiaomi Mi 5c Guides, News, & Discussion] IronJacob:
Could you tell me how you managed to root xiaomi mi5c via adb please?
[Xiaomi Mi 5c Guides, News, & Discussion] swinder0161:
The first post of this thread explains the rooting process.
[Xiaomi Mi 5c Guides, News, & Discussion] Achiko1980:
Please show the link in this file was deleted
[Xiaomi Mi 5c Guides, News, & Discussion] gari1226:
xiaomi mi 5c

Open lineage os 14.1 for the Xiaomi my 5c?
[Xiaomi Mi 5c Guides, News, & Discussion] ferry_setya:
Hello All, i try to root this device but if i root with TWRP my phone reboot always stuck in fast boot mode what happen? Please help me..
[Xiaomi Mi 5c Guides, News, & Discussion] bataratami:
Same happen to me too when i flash supersu to get rooted, these were what i did :

1. Flash "Magisk-v9.zip" (must this version, latest version will lead u to bootloop n not recommend to update via magisk manager app)

2. Flash "phh-superuser-magisk-r266-2.zip"

3. After done with twrp, reboot to system then install "me.phh.superuser_1033.apk"
[Xiaomi Mi 5c Guides, News, & Discussion] ferry_setya:
thank you for your support sir :good: but can you upload the correct version sir? I am afraid if searching on google i got wrong version for mi5c me .. and againts i really thank you sir..
[Tilt, TyTN II, MDA Vario III General] rico002:
WM7 is under development as of now.

http://microsoft.blognewschannel.co...bile-7-to-focus-on-touch-and-motion-gestures/

Tell me what u think!!!
[Tilt, TyTN II, MDA Vario III General] redsrule2500:
Sounds cool. Maybe I should have waited past WM6...
[Sony Xperia M4 Aqua] ZiomeczeQ:
Hello, one week ago my phone stopped calling and recive calls. SMS and LTE internet working but i cant call and recive call :/ I changed antenna cable and its still isnt working... Anyone got this problem and solved it? Guys help me please!
[Sony Xperia M4 Aqua] en_mih:
the same problem:(
[Huawei P9 Questions & Answers] moomoon03:
Hi since i have android 7 on my p9 i can't see VR video, both image are turning like crazy, do u have this problem too?
[LG V20 Questions & Answers] Beefy1488:
Since I uicc unlock my phone I've not had tethering... Any ideas it's not even in the menu anymore
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
The Bare Naked Rom

Updated for B160 Enjoy ! ​

The name pretty well says it all - This is the CleanRom with Everything Removed

You have nothing but the Bare Basic phone - See the screen shots to see whats left in

Flashing instructions.. You Must use the version that match your firmware. (If you need to get to B150 / B160 Click here)

Copy the Bare_Naked.zip and SR2-SuperSU-v2.79-SR2-20170103215521.zip to the phones Ext_sdcard and reboot to TWRP

You must Mount - System / Cust and Data before you start the Install.

Factory Reset

Install the Rom and Install SuperSU - After install wipe cache / dalvik and reboot.

That's about it ..Enjoy!

~B160 - Download~

~B150 - Download~​
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
Can it be dirty flashed on top of Cleanrom or need to wipe/clean everything?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
it will probably flash OK but you'll still have all your garbage from the data folder
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
Something i can manually delete, right?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
Sure but the ROM is designed to be as minimal as possible
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] wangcliff:
That's what I am looking for. Thank you.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
flashed this Bare Naked Rom, like it. thanks.

but where is the cellular data setting located, such as to set apn?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
settings > mobile network?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
not there anymore, it is gone
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
gone? i don't have an active sim to try in xt. when i go to settings > mobile network everything is greyed out because no sim inside. i can see

Mobile data >

International data

always send and receive mms

mobile data always on

Access point names >

Search for att microcell (don't know what it is)
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
are you running on this Bare_Naked Rom?

after flashing the Bare_Naked Rom, mobile network is gone

[IMG="https://xdaforums.com/picture.php?albumid=14053&pictureid=55316"]https://xdaforums.com/picture.php?albumid=14053&pictureid=55315[/IMG]
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
yes this barenaked rom.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
screenshots

https://xdaforums.com/picture.php?albumid=14053&pictureid=55315

https://xdaforums.com/picture.php?albumid=14053&pictureid=55316

---------- Post added at 02:02 AM ---------- Previous post was at 01:59 AM ----------

there is no att microcell, where can you find it
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
It's under mobile network. Strange. I don't know why you don't have it. Maybe you didn't clean something before rebooting? Reflash?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
these are the steps I followed:

TWRP Mount System, Cust and Data

Factory Reset

Install Bare_Naked.zip

Install SuperSU

Wipe cache / dalvik and reboot.

I am a little confused about "Factory Reset", "Factory Reset" = "Wipe -> Swipe to Factory Reset"?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] guest_2011:
I dirty flashed, did 130 to 150, then same steps except didnt factory reset. Everything works. By dirty i mean didnt reset but lost all my apps anyway.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] Marlon177:
i have the same thing, mobile network is gone. how to fix this?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
I tried, if skip factory reset, flashing the Bare Naked Rom seemed doing nothing at all.

Also, how could it be possible that build number can be updated from 130 to 150 by flashing Bare Naked Rom?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
All I removed are apps

If you missing settings it's most likely hidden somewhere in EMUI

Also flashing any B150 ROM will display B150 in the settings about screen. It's part of the Local.prop.

You get problems when your phones firmware is not actually updated to the displayed version. Like no WiFi
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] outamale:
..

Thanks! That did the trick! Now the custom recovery went back to factory but that's okay cause I only put on a rom to fix my phone since I couldn't find the stock rom. I don't need it to be rooted anymore cause I gave it to someone and he didn't want it to be rooted. But I'm glad he has a phone now that he can use the wifi cause he doesn't have cell phone service.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clmcd42:
I put this ROM on my phone a couple weeks ago. It worked great! However, now AT&T sent an update to it. It tries to update and restart the phone, and then boots into recovery mode (TWRP). When I reboot, it gives me the same message and restarts automatically again immediately. I can't find a way to cancel the restart. How can I fix this problem?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
u have to disable or delete update apk if u dont wanna redo the phone i will find what file u need to delete so u can boot ur phone also if u want to u can check out my rom up to u but yea ill get back to u with a fix
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
try deleting this folder inside of twrp /system/priv-app/DMClientPlugin see if that lets u boot ur phone up if not let me know and i will see if i can find the exact file make sure to make a copy of the folder on sd card before u delete to make sure its the right file. from what i can tell that should fix it. let me know
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clmcd42:
I was unable to find that folder. My system folder appears to only contain a folder called bin, which only has one file in it.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
theres system app and then theres priv-app its in priv-app folder also make sure u mount system while in twrp
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clmcd42:
Oh. I had forgotten to mount the System folder.

Anyway, I deleted that folder. The phone booted up, but then restarted again. There's still a folder called DMClient, though. Could that be the problem?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
Use TWRP to clear the cache partition. It should stop restarting after you do that since you got rid of the apk. It would be better if you rename the apk to apk.bak next time.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clmcd42:
I copied the DMClientPlugin folder back to where it was before, renamed the .apk to a .bak file, and then cleared the cache and Dalvik. Unfortunately this didn't fix the problem, the phone is still restarting.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
Wrong apk I believe. Rename this one:

/system/priv-app/DMClient

DMClient.apk
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clmcd42:
Thanks to both of you for your help! That solved the issue! I really appreciate it.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
DMClientPlugin.apk is present and enabled on my phone - you may want to restore it, but leave DMClient.apk renamed with .bak as you currently have it.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
your welcome and nice catch devine i told him to make a copy of the folder in case it was needed my phone i already had the update thing removed and was looking at stock system image on pc. i knew it was a dm something apk i was about to goto bed glad u were able to help.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BTJustice:
Any plans for a B170 version of Bare Naked?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
i think hes just working on a oreo themed rom from what he told me he wasnt gonna update the other roms he may or may not change his mind i dunno
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BTJustice:
My B160 version downloaded the AT&T update for B170 and is in a reboot loop after turning the phone on :( Wish I knew how to remove the update from the TWRP backup I have.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
Look at the posts above u read back u will find the fix if u all want my rom uses b170 so u won't have to worry bout that issue
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
Hurricane Irma left us with no power or internet for the past 12 days

I have a lot of stuff going on not sure the Ascend will be a priority for me anytime soon
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
well if clsa approves i can update his roms to b170
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BTJustice:
Thanks! The reboot issue is now fixed by renaming /system/priv-app/DMClient/DMClient.apk to DMClient.bak and then clearing the cache. Now my PIN is not letting me into the phone :(

I tried this but there are no files there:

https://www.howtogeek.com/240657/how-to-fix-pin-errors-after-restoring-from-twrp-android-backups/

EDIT: Never mind. gatekeeper.password.key was there after trying a few times. Deleting it fixed the issue.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] madvane20:
should i update this rom to b170 swift n fast mega or make a whole new rom
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] Paisley Pirate:
Since I load all the Blackberry stuff on to mine, and I want as skinny as possible - I'd rather have next to nothing onboard. The only tools I like are the phone manager, the dialer, and the camera (although simpler dialer is growing on me)
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BigJ30039:
What ROM are you talking about?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BigJ30039:
I'm trying to get out of the same boot loop, but I can't find the folder you mentioned. I go to system and only see a glider named bin. Can you help me out?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
You have to mount system to see the folders and files
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BigJ30039:
Thanks, it fixed it. When well there be an update on ROMs for the 170 OTA update?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BTJustice:
I'm still hoping this will get updated to B170 when clsA has time. I do notice an issue though with Google Voice and this ROM. For whatever reason, my phone will not ring when someone calls my Google Voice number. Also when I call out, I usually only hear my voice repeated whenever someone answers.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
I'm using stock B160 rooted which I debloated myself and do not have that issue. If you call the carrier number directly (removing Google Voice from the test), does that all work correctly?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] BTJustice:
Yes it works fine. What did you use to debloat the stock ROM with?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
https://play.google.com/store/apps/details?id=com.smartapp.appfreezer
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
[MENTION=2895182]clsA[/MENTION] Thank you. I am new to custom rom, but have learned a lot by successfully flashing a bricked phone from B130 to B150 following you procedure. I believe the phone truely has B150 firmware as it is not only indicated by build number but also problems free. I have made a TWRP backup so I am worry free.

Like others, I hate the pre installed bloatware. They take the resources, ruin the performance, they are useless. I wish LineageOS were available for this phone, but your Bare_Naked Rom is a good choice, too.

Back to the topic, what could I do wrong that made cellular setting disappear? I followed exactly the procedure you gave,

TWRP Mount System, Cust and Data

Factory Reset (please confirm "Factory Reset" = "Wipe -> Swipe to Factory Reset")

Install Bare_Naked.zip

Install SuperSU

Wipe cache / dalvik and reboot.

If the setting is hidden somewhere in EMUI, how to make it visible?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
Not sure why the setting is even needed I can't recall ever using it
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
To set RPN, for example.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
You mean APN ?

Typically the phone chooses the best settings

I'm not saying the settings are useless

I'm just saying I never use them
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
RPN :confused: is what?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
Sorry for the typo.

Some MVNOs do need to enter APN manually.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
Well you can try flashing the stock b150 ROM

Setup your APN

And then flash bare naked without wiping data and see what happens
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
Quicksettings - Mobile Data. Then you can see the APN settings option. Weird that we can't find it under settings app :confused: .

---------- Post added at 12:28 PM ---------- Previous post was at 12:19 PM ----------

Well this is odd. I can see my APN, but can't look at the individual settings or edit or delete it or create a new APN. I know I've done all that before, but don't recall when. :confused: .
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
mind to recommend a quicksetting app? thanks
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
Quickshortcuts tab next to the notifications pull-down - built into the phone :)
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
to me, Quicksettings is the same as settings app.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
Pull down notifications, switch to Shortcuts tab, press down on the Mobile Data icon until the Mobile network settings window appears. Do you see "Access Point Names" in the list of options? Click on it. When I do that, I can see the APN I created. There's no other way I can currently get to that view.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
Any additional apps did you uninstalled?

got it, thank you!
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
View attachment 4086049

View attachment 4086050

I see you got it
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
I don't get the popup to create a new APN or reset to default :confused: . I wonder if I disabled some AT&T crapware that's needed to see this? Or could it be caused by the theme I'm using :confused: .

EDIT: The popup is there after I hit the Menu button which was being obfuscated by the black theme I use. :)

---------- Post added at 01:37 PM ---------- Previous post was at 01:33 PM ----------

@clsA,

I thought you use black themes ....... why are you screenshots looking white? Mine are black.
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] clsA:
That's stock bare naked theme
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] sxu0920:
are you able to set notification and cellular data for individual app?
[Huawei Ascend XT ROMs, Kernels, Recoveries, & Othe] divineBliss:
Yes, if I understand what you mean.