yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4i] dkasmara:
For messenger app, i delete same file with fb app...
[Xiaomi Mi 4i] Saraf Vikyath:
Can you say me where that "lib-xyz" is located .. In detail..plz..
[Xiaomi Mi 4i] vronra:
Open your file manager, grant root permission.

Next go to data/data/com.Facebook.katana/lib-xzs/ and then search the file

libsxxxx.so in that folder
[Xiaomi Mi 4i] tsga:
Cmn.... I have even shared a video how to do it... Just search for it in this forum :) have some respect and don't ask questions which are answered earlier :)
[Xiaomi Mi 4i] noxben:
What radios are being used for this ROM? Will they work in Asia or would it be possible to flash Asia (HK, CN) radios?

I find I have some poor connectivity issues and suspect it is radios or frequency of bands.
[Xiaomi Mi 4i] Lutz99999:
thanks for the great work

for the early relaese the build is nice.:good:
[Xiaomi Mi 4i] kumbar55:
My OTG pendrive is not getting used by other apps. Only it can opened by default.

Please give me solution.
[Xiaomi Mi 4i] Eterno7:
I was like you, and I erased in the same folder the archive: libsslx.so and Facebook run!
[Xiaomi Mi 4i] Debjeet:
Restart Issue

At time when i call up someone, the phone restarts automatically. Happens almost 3-4 times a day. Any fix known ?
[Xiaomi Mi 4i] arunsebstn:
So I am planning to use this as a daily driver. I just wanna know about the bugs present in this rom. So fa I know that it contains

1. Notification Tile Bug(Torch Tile)

2. FB/Messenger FC

3.Sim Switching/3g

Is there any other bugs.

Somebody pls reply
[Xiaomi Mi 4i] rohanchrome:
Missed calls not shown in notification bar?
[Xiaomi Mi 4i] Chatychetan:
It solves crash but you cant write on wall

It solves crash problem but I am not able to write on wall of facebook (either on my wall or anyone else wall.) I don't get birthday notifications any more as you cant write on friends wall. Any solution for that.
[Xiaomi Mi 4i] haikalizz:
you should try contacting facebook for that, I can write perfectly over here...
[Xiaomi Mi 4i] Rohan purohit:
fb n snapchat fixed

i have fixed fb force close and snap fc.. :)

check attachments ! those r the latest versions..

will release it soon !
[Xiaomi Mi 4i] onireves:
Hey! How were you able to fix snapchat force close?
[Xiaomi Mi 4i] Rohan purohit:
Patience.. I'll release my trees when I release the build ..still some issues need to be sorted out on my side
[Xiaomi Mi 4i] teckwing:
Thanks a lot :)

Please look into overlay issues also ,there is some issues with brightness

Provided bug logs
[Xiaomi Mi 4i] faizauthar12:
Did u mean the scree it's too bright?

Fixed with this

https://github.com/omerjerk/android...mmit/94d469b6ad9671fe5088dcb76094795d6ad874a8
[Xiaomi Mi 4i] puneethcv:
Any info on official support now?
[Xiaomi Mi 4i] Ibjys13:
Hey [MENTION=4761533]fire855[/MENTION]

Appreciate your work for this ROM, but FB and Snapchat didn't work without tweaks

[MENTION=5790433]Rohan purohit[/MENTION] gets those app working on his aicp ROM btw
[Xiaomi Mi 4i] fire855:
New build: https://www.androidfilehost.com/?fid=24499762635998605
[Xiaomi Mi 4i] porfirioribeiro:
Thanks for the new build ?

Could you please provide a changelog!

Enviado do meu Mi 4i através de Tapatalk
[Xiaomi Mi 4i] nightwalkerx22:
Whoaw! And I thought the development has closed. Big time thanks! [emoji4]
[Xiaomi Mi 4i] puneethcv:
Hi [MENTION=4761533]fire855[/MENTION],

Any plans for official build?
[Xiaomi Mi 4i] Devoct:
https://github.com/fire855/android_device_xiaomi_ferrari/commits/cm-13.0
[Xiaomi Mi 4i] blackagent:
anyone can give a review for new build???
[Xiaomi Mi 4i] tsga:
Please help me with that, it happens after latest update

---------- Post added at 05:37 AM ---------- Previous post was at 05:36 AM ----------
[Xiaomi Mi 4i] RiD91:
You should flash GAPPS with ROM before the devise reboot.

I have no issues with GAPPS and with ROM at all. (Dirty flash over Jan, 30 build)
[Xiaomi Mi 4i] nightwalkerx22:
How is the new build? Battery life & all?
[Xiaomi Mi 4i] imagine92:
latest build really really really smooth!!!

battery life seems promising..

still facing radiofm crash...

log attached
[Xiaomi Mi 4i] tsga:
can you give me gapps link to download?
[Xiaomi Mi 4i] jelennn:
http://opengapps.org/
[Xiaomi Mi 4i] shailendra1993:
Dialer Crashes when I try to call someone. Anyone else having this?
[Xiaomi Mi 4i] Rajat Naik:
Did you dirty flash this rom on previous build or did a clean install ? :confused:
[Xiaomi Mi 4i] Ultr4hax0r:
Will this work if I put the both zip-files to my phone and install by using normal recovery mode? Or do I need TRWP? Does the phone have to be rooted to do this?

I've done quite many Google searches but yet I'm not entirely sure. I also found a video how to install TRWP (Mi 4i Toolkit by magdag) but does it work to install the newest unofficial CM build?
[Xiaomi Mi 4i] shailendra1993:
Capps was the problem. I didn't know it was incompatible with CM13.

---------- Post added at 03:36 PM ---------- Previous post was at 03:27 PM ----------

Yes the phone must be rooted and must have a custom recovery. Here:

1. Flash Global Beta ROM MIUI 5.6.11 [Compulsory]

2. Root using Mi4i Toolkit

3. Install TWRP Custom Recovery using Mi4i Toolkit

4. Boot into recovery by turning off the phone and then turning it on while holding Volume-Up Button

5. Select 'Wipe' Button and then 'Format Data' and wipe.

6. Take a USB and put the ROM and Gapps [opengapps - 64bit ARM for Android 6.0]

7. Use USB-OTG Cable and insert it in your phone.

8. Select 'Install' from TWRP home screen. Tap where you see 'Internal Storage' or something like that and select 'OTG' option and it will show you files in your USB.

9. First intall the ROM and then install Gapps

10. Reboot to System and wait for 5 minutes.

Done!

Note: Install Gapps immediately after installing system else you will find google services crashing continuously due to permission problems.
[Xiaomi Mi 4i] fidows:
any bug of the new build?
[Xiaomi Mi 4i] SEMCXperiaArcS:
well my Fb is still force closing. I did a dirty flash over the Jan30 build
[Xiaomi Mi 4i] muhrizky:
What was the different in compare to a clean install? Dalvik Cache?
[Xiaomi Mi 4i] SEMCXperiaArcS:
i just wiped cache and dalvik but not DATA(all apps and system data). In clean install you need to do a complete wipe.

In Some roms like Mokee, you get bugs if you dirty flash updates over the previous build, but they get fixed if you do a clean install. I haven't tried clean install yet

Another update- I'm having way too many 'sleep of death' issues -- where in if the phone is left lying for too long, it goes into deep sleep maybe and switches off. Its 4 PM here and its done it 3 time already since morning
[Xiaomi Mi 4i] fidows:
how to do this? i dont know how it done

---------- Post added at 08:29 PM ---------- Previous post was at 08:27 PM ----------

didnt have any problem since installed this rom. problem only with fb force close. install from base 6.6.10
[Xiaomi Mi 4i] Vinko_234:
Is the battery tile not showing bug still present?
[Xiaomi Mi 4i] muhrizky:
Also experiencing the same issue as you mention as sleep of death. If a clean install is needed, I prefer to avoid this release. Facebook not an issue if compare with frequent reboot.
[Xiaomi Mi 4i] faizauthar12:
if u know how to build android,then u need cherry-pick that changes,and build ur own rom ........

*it will set the lower brightness at brightness slider :good:
[Xiaomi Mi 4i] fidows:
i dont how to build Android [emoji29]
[Xiaomi Mi 4i] nillizpower:
Bug in lockscreen

Hi, there's a bug in the lockscreen when using the shortcuts on the bottom of the screen next to the unlock icon. I am using the lockscreen protected with PIN. When swiping the right icon to the left (to open the camera) it shows a whitish screen for ±3 secs, then shows the PIN code screen. When I first try to tap a number on the PIN unlock screen I can see that the background (lockscreen) is responding, not the numpad of the PIN code screen. Second touch does work and i'm able to unlock, after that the camera shows.

I have made a video of what happens, if you want I can upload it somewhere to show it to you.

Expected behavior:

- Swipe camera-icon

- Camera opens (no PIN input required).

Is this a known issue? And do you perhaps know how to fix it?

Thanks for the great ROM so far.

Kind regards,

Nils.
[Xiaomi Mi 4i] Ultr4hax0r:
Thank you for your answer - it helped me a lot. I managed to get CM 13 (cm-13.0-20160412-UNOFFICIAL-ferrari) running by doing just these steps:

1. Flashed TWRP 3.0.2-0 for Mi4i (TWRP-3.0.0.2-20160414-ferrari.img)

2. Put the ROM (cm-13.0-20160412-UNOFFICIAL-ferrari) and Gapps [opengapps - 64bit ARM for Android 6.0] to phone by USB cable

2. Booted into recovery mode and did a factory reset

3. Installed Cyanogenmod 13 and Gapps

4. Installed SuperSU

5. Rebooted and it is working

In addition I managed to get Facebook and Facebook messenger working. At first I tried to find with ES File Explorer /data/data/com.facebook.orca/lib-xyz/ and delete or rename it to libsslx.so but I could not locate them. I think there was no such files. However I downloaded these files from APKMirror:

- Facebook 41.0.0.0.69 (arm) (480-640dpi) (Android 5.0+)

- Facebook Messenger 27.0.0.2.14 (arm) (nodpi) (Android 2.3+)

These are working without crashing. At the moment Snapchat is only app which is crashing. I hope this posts helps others, unfortunately I can not post links because there is a restriction for new users.

Edit: I could not find solution for Snapchat crashing so it seems that an alternative client Casper.io is a good substitute.
[Xiaomi Mi 4i] arunsebstn:
Do i have to flash Global Beta ROM MIUI 5.6.11 itself?. I mean any other small roms will do? Like in Omerjerk's CM 13 rom
[Xiaomi Mi 4i] muhrizky:
base on my experience: fm radio, audio fx not working.

not smooth enough, sleep of death still happen, celular data switch takes time, camera hard to get focus.
[Xiaomi Mi 4i] shailendra1993:
Same here. Battery is better than Mokee at least.

---------- Post added at 01:16 AM ---------- Previous post was at 01:15 AM ----------

If you have already installed custom recovery then just wipe data and flash the ROM. Provided that you installed custom recovery over the 5.9.1.1 (MIUI6) ROM not the latest one.
[Xiaomi Mi 4i] kishan singh:
What is the time required to charge ur mob in this mob?

Hi guys i ve been using this rom since 2 and its give an sot of nearly 6 hrs but the problem is it is taking around 4.5hrs to charge. Are u all facing the same issue ? If no pls help me with this issue.
[Xiaomi Mi 4i] nightwalkerx22:
Only bug I've faced so far is while receiving calls you'll have to unlock your phone's password first then receive the call.
[Xiaomi Mi 4i] asphodeli:
Good job on the ROM, but there are minor issues like no wireless-AC and N, data up/down arrows on the status bar, SIM card naming, etc.

Seems pretty stable with dual SIM for the moment, although battery life is yet to be seen. Will give it a whirl for a few more days.
[Xiaomi Mi 4i] arunsebstn:
How did you manage to fix FB crash. Pls share with us
[Xiaomi Mi 4i] arunsebstn:
Using this rom for past 15 hours. Nice rom. Pretty smooth. But encoutered some bugs

1. FB and messenger FC (as usual). (@Rohan Purohit has fixed this problem in his rom)

2. FM Radio FC.

3. USB OTG Error - Cant see Media files in USB in gallery or MX player. But can open in ES file manager

4. Sleep to death is there

5. Some times wifi get disconnected automatically.

Bt still i think this is one good rom we can use as a daily driver
[Xiaomi Mi 4i] fidows:
screen too bright even in lowest setting.
[Xiaomi Mi 4i] tsga:
Go to settings, then sreen and then auto brightness, it helps for me to get darker screen

Išsiųsta naudojantis MI 4i Tapatalk 4 Lt
[Xiaomi Mi 4i] fidows:
thanks. it helps [emoji106] [emoji106]
[Xiaomi Mi 4i] nightwalkerx22:
Using it for past 6 days, no SOD here... Did you dirty flash it?
[Xiaomi Mi 4i] fidows:
same for me [emoji106]
[Xiaomi Mi 4i] RiD91:
No SOD even with keeping my Data. Wiped only cache and system.
[Xiaomi Mi 4i] teckwing:
what about brightness issue?
[Xiaomi Mi 4i] valenrock:
What brightness issue?

sent by my fingers
[Xiaomi Mi 4i] teckwing:
set brightness to minimum ,than if i enable auto brightness sensor brightness decrease more.But i didn't face in uber cm12.1

All Rom's has this
[Xiaomi Mi 4i] Rajat Naik:
Even after giving all permissions to the browser , I m getting download FC. After 50% completion, the message pops up "download unsuccessful". Please suggest a fix for this bug. I m not able to download anything from the browser.:(
[Xiaomi Mi 4i] jaggu1989:
gapps not working ussing opengapps micro 6.0
[Xiaomi Mi 4i] pramyhoga:
Try smaller gapps packages, like nano or pico.

---------- Post added at 12:07 AM ---------- Previous post was at 12:03 AM ----------

For me after apply that gps fix, i still always got soft reboot when try access gps from speedtest.

When i try change location mode to power saving soft reboot not happening anymore.
[Xiaomi Mi 4i] Bimalhort:
When I changed my location, there is no data connection from both the sims. I used *#*#4636#*#*, and changed to "WCDMA only", it was changed (in both sims), but there is no data connection.

Please help, its urgent.
[Xiaomi Mi 4i] haahaaah:
Why?!. :rolleyes:
[Xiaomi Mi 4i] faizauthar12:
R.I.P

can't join development for Mi 4i :/
[Xiaomi Mi 4i] haikalizz:
still syncing the sources for MM... 71%(311/403) projects....
[Xiaomi Mi 4i] ajaxcbcb:
Can't wait
[Xiaomi Mi 4i] twentyfourinc:
Any idea to prevent Facebook and privacy Settings force close on this rom ?
[Xiaomi Mi 4i] haikalizz:
Facebook FC fix : /data/data/com.facebook.katana/lib-xzs/ -> delete or rename libsslx.so
[Xiaomi Mi 4i] davtse:
mine started fcing again soon after the fix. i'm back to using facebook lite (search for it on apkmirror). works just as well for my purposes
[Xiaomi Mi 4i] candiesdoodle:
What's the feedback on location guys?
[Xiaomi Mi 4i] porfirioribeiro:
Location is working good for me on Google maps and Runkeeper

Once had a reboot with speed test

Enviado do meu MI 4i através de Tapatalk
[Xiaomi Mi 4i] omerjerk:
[MENTION=4761533]fire855[/MENTION] How did you fix RIL ?
[Xiaomi Mi 4i] haikalizz:
​

Look through [MENTION=1834166]DH-[/MENTION]harald commits, he used Archos Diamond blobs for RIL I think...
[Xiaomi Mi 4i] omerjerk:
I also tried vendor blobs of tons of other devices. Great to see he got it working. :)
[Xiaomi Mi 4i] imagine92:
yep! no SOD at al...

SOD only happen when i activate ambient display
[Xiaomi Mi 4i] Rohan purohit:
LOL.. http://xdaforums.com/mi-4i/development/rom-aicp-11-0-mi-4i-ferrari-t3355702
[Xiaomi Mi 4i] arunsebstn:
Nope. Clean install. May be because of ambient display turned on as like [MENTION=5932333]imagine92[/MENTION] said. I will check it with ambient display off.

Also i cant get google search while long press on home button. Dont knw whether its a bug or not...
[Xiaomi Mi 4i] nightwalkerx22:
I'm not using ambient display so that could be the reason... Also my google search is working on long press.. Which version of gapps did you flash?
[Xiaomi Mi 4i] arunsebstn:
Pico from http://opengapps.org/
[Xiaomi Mi 4i] kishan singh:
Hi guys whats the charging time? The issues which im facing are 1) takes 4.5 hrs to charge and volume is very for notificatio sand calls .. Any solution to this??
[Xiaomi Mi 4i] haikalizz:
1. Mostly around 1-2 hours. Is your phone hot during charging? This could be a factor. Another might be your cable or charger head

2. Could be a rom problem, maybe try installing some audio mods like Beats Audio? Does it only happen for calls and notifications?
[Xiaomi Mi 4i] selvasathyam:
Awesome...I liked it Thanx :)
[Xiaomi Mi 4i] kzhkr:
clean install this rom and still having FC on snapchat.

any ideas?
[Xiaomi Mi 4i] faizauthar12:
First of all.....

Fire855 didn't made any changes

Bcuz u guys request for update ,so he build with latest source and without any fix
[Xiaomi Mi 4i] nightwalkerx22:
Flash nano & your problem will be solved.

---------- Post added at 03:25 AM ---------- Previous post was at 03:23 AM ----------

I saw that on his github's commits. Sad, but still a good daily driver.
[Xiaomi Mi 4i] arunsebstn:
Yep. I will try today. Do you have to unlock while attending the calls. Bcoz I have that bug too
[Xiaomi Mi 4i] nightwalkerx22:
Yes & it's irritating [emoji29]
[Xiaomi Mi 4i] arunsebstn:
I did something and its gone for me now:D. I give all permission to dialer(Storage was off) in settings-->Apps-->All. Also ticked direct pin entry in lock screen.

All I am looking for is a nice radio app. Spirit2 is working, but i don't like it very much.
[Xiaomi Mi 4i] skyrice7:
HELP me!!!!

Bootloop on my xiaomi mi4i after the installation when reboot the device.....! Any solution???
[Xiaomi Mi 4i] david_inuk:
Your charger AND/OR cable may be the problem.

There's an excellent app called Ampere which measures the incoming current which should tell you if the charger/cable is providing the maximum power possible. When the batter y is almost full, the numbers will drop but in general you should get approx 1100 mA (maybe more when battery is mostly depleted - I've not checked).

In general it's easy to understand why chargers can provide different outputs (different amperage) but you'd be surprised to see the difference between different cables as well. The differences can be huge!
[Xiaomi Mi 4i] chongns:
see here

http://xdaforums.com/showthread.php?p=64387053

although, this is cm13, but still it use old binary and kernel. if u come from miui 7(stable or Dev ROM) or ROM after 5.6.11 or 6.6.10, flash this firmware first before flash ROM.

this apply to all custom ROM.
[Xiaomi Mi 4i] nightwalkerx22:
I tried the same but no success. I guess this is how I'll be receiving call from now on [emoji20]
[Xiaomi Mi 4i] dreamedofworld:
Go to apkmirror and use version 9.17.0.0*

Edit: *to make Snapchat work. It was supposed to be a reply but didn't quote the person I was directing it towards. Apologies.
[Xiaomi Mi 4i] nillizpower:
Can you describe a bit more specific how you managed to fix this? I face the same issue here.
[Xiaomi Mi 4i] oommiiee:
hie I want to know that when will be Official cynogenmod 13 for mi4i present
[Xiaomi Mi 4i] nillizpower:
Fixed with changing the permissions on dialer.apk
[Xiaomi Mi 4i] kzhkr:
i have a problem now:

everything is good until i...

1. installed nova launcher prime.

2. i tinker abit with google play store, services and framework (switching off stay awake and boot)

when i lock the phone, the phone went into a restart. then after it hang at the lockscreen. cannot be unlocked

and bootloop. may i know what will be the cause of it since i trying to narrow down.

tia.
[Xiaomi Mi 4i] muhrizky:
Thanks this can fix the issue.
[Xiaomi Mi 4i] LightningFrag:
hi, been using this ROM for (almost) a week and it's all good

not much bug(s) and very stable

but any suggestions on camera app? tried to install Google Camera, video mode isn't working (and it's not-so-stable I think)

thanks before :D
[Xiaomi Mi 4i] nillizpower:
I use snapdragon camera v12.1 for marshmallow. You have to fiddle a bit with the permissions umder system/priv-app but I managed to get the camera app fully working
[Xiaomi Mi 4i] LightningFrag:
it works like a charm! thanks for the tip mate! :D
[Xiaomi Mi 4i] Devoct:
how do you guys do to make it work?

can't make it work, tried /system/app, /system/priv-app, permissions are set, still doesn't work.
[Xiaomi Mi 4i] LightningFrag:
hm, here's how I do it...

1. install the zip via TWRP

2. (optional) wipe cache/dalvik

3. reboot to system

4. extract the zip, open the extracted file, go to system/app/, there's a folder named "SnapdragonCamera", copy it

5. go to /system/priv-app/, then paste the file

6. reboot

7. ding!

make sure it's Snapdragon Camera v2.1 for Marshmallow, otherwise it's not compatible (cmiiw)

credit to original poster, sorry for my confusing language :D
[Xiaomi Mi 4i] cure25:
Can anyone give link to snapdragon camera zip
[Xiaomi Mi 4i] Ayush atg:
Great rom thank you very much
[Xiaomi Mi 4i] arunsebstn:
I was using this rom for past two weeks approx. It was running smooth. But on today I got a weird problem. While using the phone it get stuck for 4-5 seconds and shutdown like switching off a light. Long press power button is the only option then. This happens 5 times today already.

Does anybody face the same issue.

And pls somebody suggest me a FM Radio app other than spirit2
[Xiaomi Mi 4i] sonalsaha:
this is by far the most stable rom for the MI 4i. I have been using it for over a month now. Thank you Developer.

Request: Please Fix the camera, the pictures have noticeably more noise compared to any other rom, no matter which camera app i use.
[Xiaomi Mi 4i] nightwalkerx22:
I don't agree. Snapdragon camera delivers some real crisp pictures.
[Xiaomi Mi 4i] LightningFrag:
there ya go

https://www.androidfilehost.com/?fid=24269982087015343

don't mind that OnePlus One tag, it works great on my Mi4i

credit to original uploader
[Xiaomi Mi 4i] gamer13:
hello @ all,

is it now possible to install the cm 13 on my xiaomi mi4i because i have installed the miuipro 7 global 6.3.24? for a short answer I would be very grateful....

my phone is rooted and it is alos the twrp installed...

thanks
[Xiaomi Mi 4i] dreamedofworld:
You'll have to flash it over the 6.6.10 build (of MIUI). There's another stable one you can use, but I can't recollect the version number. The link is somewhere in this thread, I think. Try putting "6.6.10" in the search tool for this thread.

So basically, flash 6.6.10, wipe, then flash the ROM+gapps normally. Cheers! :)
[Xiaomi Mi 4i] sonalsaha:
I tried the snapdragon camera. Although its a great camera app i still find photos taken by resurrection remix ROM to be of better quality. I used link posted by Lightning Frag to flash the camera. Thank you.
[Xiaomi Mi 4i] kumbar55:
http://xdaforums.com/showthread.php?p=65437879

Go to this post
[Xiaomi Mi 4i] gamer13:
Thanks.... It works :)
[Xiaomi Mi 4i] nightwalkerx22:
I'm using the same, but I'm on CM13 by fire855 so can't say how it's on RR.
[Xiaomi Mi 4i] tsga:
Google now on tap doesn't work :/ any solutions?

https://vimeo.com/164596579

Išsiųsta naudojantis MI 4i Tapatalk 4 Lt
[Xiaomi Mi 4i] Abhijeetsinghvsf:
+1
[Xiaomi Mi 4i] nightwalkerx22:
Make sure you're using gapps above pico... Not pico.
[Xiaomi Mi 4i] Nihhaar:
But for me pico also works. I always use pico pack. Of course Google app must be installed. And make sure long press home button launches 'search assistant' but not 'voice search' and, the default app for 'voice and assist' input is Google.
[Xiaomi Mi 4i] tsga:
Done all that, using nano gapps, still nothing

Išsiųsta naudojantis MI 4i Tapatalk 4 Lt
[Xiaomi Mi 4i] Phobos0815:
Thanks a lot for the good work!!

One question, though: How do I get rid of the cyanogenmod-symbol in my status bar? You know, the "head" that is sitting in the left corner?

Thanks :)
[Xiaomi Mi 4i] raymond_bqg:
as mi4i has not cardslot then I have to save the downloaded rom in internal memory.Now as I have to wipe data before flashing, internal memory also will be formatted.Then how can I flash the rom after wiping data?Is there any process to flash rom from usb-otg?
[Xiaomi Mi 4i] angrybambr:
1. You dont need to format internal memory to flash the rom. Default factory reset is enought (which is not including formatting of storage)

2. Yes, you may use OTG. Mount flash via OTG (find this option in Mount menu of TWRP).
[Xiaomi Mi 4i] tda8190:
hello when i try to install (i start from miui 7.2.1 and twrp by magdad) on the boot of rom i see the language choose but i cant touch and after reboot.

I must start from other miui version?
[Xiaomi Mi 4i] Remorcer:
yes, 6.6.10
[Xiaomi Mi 4i] oxhey:
Button Backlight

Iv installed the rom and its mostly working. One thing which isnt is that when I try to set the back light of the hardware buttons to be always on , it always gets set to turn of after a second.