yashsingh1/xdaforums huggingface dataset:
[Mi 3 Android Development] Angel_Kitsa:
Hi all.

I need some help with putting GAPPS on Xiaomi Mi4. I have TWRP 2.8.7.0 recovery installed and CM13 Nightly last version from yesterday. Getting Error 70 insufficient space for any GAPPS bigger than nano. I mounted system manually from the console and df shows 89% FS used. No room for bigger GAPPS. I saw the audahadi script and tried to do the same manually. No parted command found. Any suggestion? Tried both adb shell and Terminal from TWRP.

Nano gives "Unfortunately, Setup wizard has stopped" banner on boot and keeps appearing 1 second after I tap OK. So I thought I'll re-partition anyway as I have enough space.

p.s. Does anyone knows if I should keep or remove apk files under /system/apps/ ? I am new to Andoid OS and not sure how apps are being started.

Thanks for any help!
[Mi 3 Android Development] P.Kosunen:
You could MiFlash Xiaomi Marshmallow dev image (chinese 6.2.4 is ok) to get joined system partition, then install TWRP, ROM and GAPPS of any size.
[Mi 3 Android Development] luiggifoo:
I updated 5 minutes ago....and work properly....thanks a lot
[Mi 3 Android Development] DroidBot:
Slow flashing problem solved??
[Mi 3 Android Development] Ringford:
For me, yes it is.
[Mi 3 Android Development] luiggifoo:
I dont feel any problem with flashing speed
[Mi 3 Android Development] userprince:
[MENTION=2709123]kundancool[/MENTION]

Did you compiled this?
[Mi 3 Android Development] kundancool:
Earlier build was compiled by me one that has date in name without date is official mirror
[Mi 3 Android Development] :
[MENTION=2709123]kundancool[/MENTION] is there a flag that stops the slow flashing? I build my own TWRP.
[Mi 3 Android Development] DroidBot:
What are the main (extra) features in TWRP 3.0 compare to TWRP2.8.7 ??? or it's just a version upgrade?
[Mi 3 Android Development] SdtBarbarossa:
Multilanguage

Adoptable storage compatibility

new design
[Mi 3 Android Development] diongdyh:
Flashed with TWRP 2.8.7.0
[Mi 3 Android Development] Ringford:
Then try the *.img one.
[Mi 3 Android Development] kundancool:
Sorry for late reply being quite busy with other things

At the moment the issue causing slow flashing is unknown.

I guess building with cm-12.1 branch should work as Dees_Troy is still using my old repo to build twrp with prebuilt kernel
[Mi 3 Android Development] LKc丶:
It seems that aroma bug was back.I tried flash AromaFileManager(1.91)but TWRP was stuck while flashing and then it reboot.

I only got a last_log in /cache/recovery but no last_kmsg.Hope it's useful :D

https://drive.google.com/file/d/0B1PcfCLHNC_bVjhJNVp6SkQyOEE/view?usp=docslist_api

Edit:So does the opengapps's aroma version.
[Mi 3 Android Development] vaib:
Also getting error 7 on flashing many ROMs.
[Mi 3 Android Development] pratyush997:
Remove the getprop and abort lines in the beginning of the file located here.

Open the file using notepad++ or something.

META-INF\com\google\android\updater-script
[Mi 3 Android Development] Ragnarok:
still error from mi recovery 2.0.1

miui 7 global 5.12.10

4.4.4
[Mi 3 Android Development] kundancool:
I suggest you flash via fastboot method and then when TWRP boots flash twrp zip from TWRP itself it will remove Mi recovery update script
[Mi 3 Android Development] vedantpro:
Otg is not working in twrp 3.0.0... Is it just me or it is happening with everyone??
[Mi 3 Android Development] enilamero:
I have Mi4 on Marshmallow with encryption feature turned on and with a pin.

TWRP cannot mount /data partition:

adb shell twrp decrypt <password>

Gives me:

E: Could not mount /data and unable to find crypto footer.

Any help?
[Mi 3 Android Development] paul c:
Flashing the most recent ROMs and kernels, using 2.8.7.0, I have not had a single problem.

Using my modded version, with the custom curtain, the extremely intuitive play menu layout, and the Aroma file manager.

I get it that we all want to use the very latest etc, but I don't see what burning issues 3.0.0.0 resolves for us - so I don't see the need to upgrade.
[Mi 3 Android Development] enilamero:
So? With 2.8.7.0 works encryption?
[Mi 3 Android Development] kundancool:
uploaded a new build can you test? and report if this works in decrypting /data partition

Download :

twrp-3.0.0-0-cancro-20160309.zip (SHA1 - c7d06012141d0cab24b0a47a44f072b47f3e5b01)

Download : Mediafire

twrp-3.0.0-0-cancro-20160309.img (SHA1 - deaa2fe66e30aaf5379ea41513dc8b043d1f79f3)

Download : Mediafire

just a few https://twrp.me/site/update/2016/02/05/twrp-3.0.0-0-released.html
[Mi 3 Android Development] enilamero:
I Encrypted (again) the phone with Marshmallow. Now TWRP ask me for a password on boot, but I have a password wrong error.

I think that is a bad Miui encryption implementation, because Cryptfs app fails to change the password.
[Mi 3 Android Development] fahd47:
getting error status 6 when trying to flash zip from cwm 6.0.3.2.plzz help what should I do?

miui 7 installed on system 2...
[Mi 3 Android Development] richder:
es compatible con el zte open c

es compatible este recovery con el zte open con android 6.0.1
[Mi 3 Android Development] DutchMan_1990:
Check if you can flash it via fastboot.

command is

rename the file to twrp.img before flash.
[Mi 3 Android Development] LKc丶:
Update to 3.0.1, but aroma bug still exist. :/
[Mi 3 Android Development] Freestyle2:
Whats the aroma bug? New release of version 3.0.2.... anyone who is running it?
[Mi 3 Android Development] LKc丶:
A graphical installation in recovery(you can install ROM / package with graphical UI and choose what you need to flash).

Such as AromaFileManager and OpenGapps's aroma version.

btw,I'm using 3.0.2 too,that bug still exist(when install a package with aroma installation,the phone is stuck and then reboot itself. )
[Mi 3 Android Development] Freestyle2:
Thank you for the explanation. The only problem I had with TWRP 3.0.0 was an error 7 when I tried to flash a CM13 ROM from USB stick with OTG cable...
[Mi 3 Android Development] P.Kosunen:
https://dl.twrp.me/cancro/twrp-2.8.7.0-cancro.img.html

Try older 2.8.7.0 if 3.x gives error 6 or 7
[Mi 3 Android Development] Freestyle2:
After pushing CM13xx.zip to SD card, no error 7, no problems with flashing it ;)

I case my phone will crash in the future and it only reboots into recovery, is it possible to transfer a ROM zip from an USB stick via OTG to SD card only using TWRP? Or is the only solution to push a ROM zip via ADB sideload from PC to SD card?
[Mi 3 Android Development] P.Kosunen:
Boot in TWRP OTG attached and "adb shell" in, "mount" command show if it is mounted. With "adb push filename.zip /full/path/to/otg/" can upload file from computer to phone while booted to TWRP (or Android with Developer options enabled).

You can check correct mount path from Android when OTG is mounted in case you need to mount it manually in TWRP.
[Mi 3 Android Development] Freestyle2:
OK I will try that later :good:
[Mi 3 Android Development] Fikshun:
Or simply go to advanced>>file manager in twrp and copy it
[Mi 3 Android Development] imgblur:
Temperatures are in the range of 80-90 degrees when flashing on 3.0.2. Should I be worried?
[Mi 3 Android Development] Freestyle2:
Exactly now it's working for me after I discovered the "hidden" folder usbotg, I was always looking for a popup or something after mounting the USB OTG :D
[Mi 3 Android Development] Freestyle2:
I have another question ;) Can TWRP 3.0.0 restore a backup made with TWRP 2.8.7? For me it would make sense when TWRP is downwards compatible...
[Mi 3 Android Development] sgcko7:
At least for me I was able to use old backups so it should work in your case also. :)
[Mi 3 Android Development] Freestyle2:
Good to know, thx :good:
[Mi 3 Android Development] :
I can not mount partitions with the format f2fs..
[Mi 3 Android Development] jockjoint:
For me the same.
[Mi 3 Android Development] solazz:
Yup, I think currently the recovery only has capability to format to f2fs partition, but does not support mounting the f2fs partition yet.
[Mi 3 Android Development] kogz:
Hi guys.. Maybe you can help me..

I'm trying to upgrade my encrypted Mi4 device MIUI V7.2.8.0 to V7.3.1.0. TWRP asks for password to decrypt data partition.. Do you have any idea how to go through it? There is no possibility to provide a pattern I was using so far to unlock device and once I changed pattern-method to alpha-numeric password it still doesn't work. Any suggestions would be much appreciated. I'd rather not to wipe everything out as I would like to use encryption anyway and that would be serious pain in the ass every upgrade.

Thank you!

Kind regards,

K
[Mi 3 Android Development] mars28:
Can I somehow change the name of the device in TWRP? I've just bought new Mi4LTE for my wife, and flashed TWRP for cancro (I had to choose Mi3 from the recovery list) and now every backup I made with default settings includes "Mi3" in the backup's name.
[Mi 3 Android Development] Elitehamster:
I've been having some problems with TWRP in the last few weeks. The issue being that when I boot into recovery mode the screen becomes REALLY dark while still booting up (so while the mi logo is still visible but only barely due to how dark the screen is) and then becomes pretty much black when it boots into TWRP. Last thing I can see is the blue when it starts up TWRP and then it's just black. The screen still responds to touch (the phone vibrates) but I can't actually see what I'm doing which is a bit of an issue. I upgraded both my TWRP and MIUI (am on the international version) so not sure which causes the problem. I've tried different versions and going back to older versions of TWRP but it doesn't make a difference. Anyone encountered this problem before and/or knows a fix? Thanks in advance!
[Mi 3 Android Development] Tr0NiX123:
I have this problem too but i dont see the blue twrp only Mi logo and black screen i try flash stock rom but not working only working recovery is stock ... cwm and twrp causes black screen but touch working (vibrates on touch) .. and adb sideload working too and screenshots working by screenshoter in cmd ..
[Mi 3 Android Development] hsquare:
I'm also having this problem and an ongoing post here:

https://plus.google.com/+HannesHanath/posts/4nDZ5asnK87 and here:

https://forum.cyanogenmod.org/topic...g-and-very-dark-also-in-twrp-miui-works-fine/
[Mi 3 Android Development] The Dork Knight Rises:
I'm not talking about TRUE dual boot, I'm talking about normal system2 support. I could USE system2 that way (instead of just choosing to isolate it as long as I use TWRP)?
[Mi 3 Android Development] vasishath:
But you said you would switch to other rom by using dualboot app.. you would need to wipe data that way..

anyways, i had been longing for a twrp recovery and this is just awesome !! Thanks dev..
[Mi 3 Android Development] The Dork Knight Rises:
I didn't say switch to other ROM, I meant switch to system2. ;)

Anyway, yeah, this is awesome... CWM failed to wipe Lollipop ROM data for me...this does the job perfectly! :good:
[Mi 3 Android Development] kundancool:
New builds are up

changes

- fixed issues with updater binary.
[Mi 3 Android Development] purval6300:
Thanks OP...waiting for TDB..
[Mi 3 Android Development] The Dork Knight Rises:
A little report:

Phone seems to heat up considerably when performing recovery operations. The TWRP temperature reading reached 75 degree Celsius for a 171 second backup operation.
[Mi 3 Android Development] kundancool:
that might be common as it shows CPU core temperature and when CPU does intensive task it might heat. the problem would be if it would heat while doing nothing.
[Mi 3 Android Development] LKc丶:
Screenshot works for me[emoji2]
[Mi 3 Android Development] kundancool:
How did you manage to take screenshot? it always creates a blank file in my screenshots directory.
[Mi 3 Android Development] LKc丶:
I use the volume down and power buttons;)

And the img will be save in "/sdcard/Pictures/Screenshots[emoji2]
[Mi 3 Android Development] kundancool:
well that never worked for me don't know the reason tried now still it creates a image of size 0 bytes. that is why it is marked as a bug in the buglist :confused:

can anybody else test and confirm status of screenshot problem is it with me only or others face this issue too
[Mi 3 Android Development] deepesh.tickoo:
I too confirm that screenshots are working perfectly, used power+volume down buttons.
[Mi 3 Android Development] kundancool:
[MENTION=3805298]deepesh.tickoo[/MENTION] thanks for confirming that it is a problem with my device only :p
[Mi 3 Android Development] akshayAXE:
THANK YOU

Thank you for your work.

Screenshots are working fine.

Even themes are running great.
[Mi 3 Android Development] Skullpluggery:
Aroma Installer not working
[Mi 3 Android Development] kundancool:
What do you mean? can you describe in detail.
[Mi 3 Android Development] Skullpluggery:
I tried Installing sMiui with TWRP but it doesn't open the aroma installer , after a few minutes it reboots
[Mi 3 Android Development] LKc丶:
AROMA Filemanager not working.After flash it , the phone will be reboot
[Mi 3 Android Development] deepesh.tickoo:
Confirmed, neither Aroma installer nor file manager are working, phone reboots.
[Mi 3 Android Development] kundancool:
I will try to have a look when I am done with CM12
[Mi 3 Android Development] vaib:
How to install the recovery?

The system explorer gets fc every time I try to install it using the updater app. Any other method?

I even tried through miui recovery but it also does not work.
[Mi 3 Android Development] Skar3:
Anyone have tried it on Mi4?
[Mi 3 Android Development] :
I tested it on MI4. It works fine with all roms except SMiui (due to Aroma installer) and Miui multilanguage (it gives me an error).
[Mi 3 Android Development] deepesh.tickoo:
Either flash the img through fastboot or flash the zip through any other custom recovery, the stock won't work AFAIK.
[Mi 3 Android Development] Riichard63:
Or you can use an app like rashr or flashify (both of them requires root) . But you have to extract the recovery.img for the zip file.

Envoyé de mon MI 4W en utilisant Tapatalk
[Mi 3 Android Development] ej8989:
From what I understood, this TWRP version for Mi3 only uses System2, and won't recognize System1? So if my current main rom is on System1, TWRP won't erase it, but it just won't recognize it. Is that right?
[Mi 3 Android Development] deepesh.tickoo:
No actually.

This recovery has read/write access to system1 and read only access to system2.

It can install ROMs only on system1 but can view files(via file manager) on both the systems.

Am I right [MENTION=2709123]kundancool[/MENTION] ?
[Mi 3 Android Development] kundancool:
TWRP only performs action to /system which in this case is system1.

so it doesn't do anything related to flash or backup to system2, but I have added fstab entries for system2 so you can mount it and use the file manager of TWRP to do some basic thing that you could do with TWRP file manager for the time being.
[Mi 3 Android Development] vaib:
Done :) Flashed through rashr
[Mi 3 Android Development] ancola66:
Very thanks and testing now on my Mi4 device. Hope more complete :good:

---------- Post added at 01:28 PM ---------- Previous post was at 01:08 PM ----------

I had resize of the system2 partition and install TWRP 2.8.4.0 on my Mi4. Everything works fine and I'm very happy :o
[Mi 3 Android Development] Matoxxi:
[MENTION=2709123]kundancool[/MENTION] watch that https://github.com/ivan19871002/android_bootable_recovery_twrp
[Mi 3 Android Development] FcukBloat:
it seems install/flash imgs like recoveries from inside twrp doesn't work.. followed instructions here http://xdaforums.com/showthread.php?t=2915584 to apply splash screen but it doesn't work..patched recovery image is generated correctly, and it can be flashed without errors, but then i always see default splash screen, like the image is not flashed correctly.. can you confirm? if so, it would be easy to fix?

thanks!!!

edit: don't know what to think.. even fastboot flash recovery patchedrecovery.img works!! how is that possible? :(
[Mi 3 Android Development] kundancool:
Thanks for the heads up

I usually don't do much with recovery it's just backup restore and wipe doesn't matter if it is themed or not. until it provides extra functionality or ease of use it is of no use to me:cool:
[Mi 3 Android Development] ancola66:
I want to clean up Internal storage (because it's too messy), I can use the function Wipe Internal storage ?
[Mi 3 Android Development] kundancool:
I haven't tried that yet but yes you can.
[Mi 3 Android Development] FcukBloat:
nvm
[Mi 3 Android Development] Hadi al-Haiqal:
Finally i can flash direct from my usb-otg.. Thanks man.. But i want to say something.. Why when mount system 1, rom cannot be install?.. In mount, i try usb-otg and system 1.. But when off the system 1, rom can be installed..
[Mi 3 Android Development] ancola66:
Can't flash rom with aroma in the rom, examples like sMIUI2015 rom
[Mi 3 Android Development] kundancool:
it's a known BUG currently AROMA based anything doesn't work
[Mi 3 Android Development] Kanth's:
I'm unable to flash twrp from stock recovery plz help
[Mi 3 Android Development] ancola66:
To flash in stock recovery you must rename to update.zip
[Mi 3 Android Development] Riichard63:
Use the rashr app or flashify from google play, you need root and you have to extract the .img file from the zip.
[Mi 3 Android Development] Kanth's:
i flashed it
[Mi 3 Android Development] The Dork Knight Rises:
[MENTION=2709123]kundancool[/MENTION] TWRP 2.8.5.0 released...Are we gonna see an update anytime?:fingers-crossed:
[Mi 3 Android Development] kundancool:
as of now v2.8.5.0 is having issue with /sdcard not mounting. will upload once it is fixed
[Mi 3 Android Development] kundancool:
New builds are up

Changelog:

v2.8.5.0
[Mi 3 Android Development] drive2droad:
this is really helpful , needed to change from CWM to TWRP recovery at the earliest & try Android Lollipop for MI3 today .
[Mi 3 Android Development] Riichard63:
Yes use this one, the backup and restore, wiping partitions are fully efficient !
[Mi 3 Android Development] FcukBloat:
thanks will update soon!

one question btw [MENTION=2709123]kundancool[/MENTION]: is it possible to hide/don't show hidden folders?

because when i want to flash something, i always have to scroll down a lot as at the top of the list there are all the hidden folders.. (.xxxxxx) ;(

(still on 2.8.4.0 for now)

thanks in advance! ;)
[Mi 3 Android Development] ancola66:
Very thanks for the update the new version:good:

I have a question : I can wipe the system ( after wipe data, cache, Dalvik cache) before the flash new rom? and can wipe internal storage ? whether there is any file in internal storage lost (after wipe internal storage) will do the device keep error or not boot ?

Can anyone answer me? Very thanks:o
[Mi 3 Android Development] sivabommakanti:
U just need to wipe data, cache, & system in some some cases to clean install a new ROM. If u wipe internal storage before installing a new ROM, all the files in ur SD card will get deleted. So u only have to install a ROM thru adb. Wiping internal storage is not req to install a ROM.
[Mi 3 Android Development] ancola66:
I have flash rom with TWRP v2.8.5.0, device its boot normal but I'm back in recovery and wipe cache >>> the device does not boot (stuck in the screen mi):(. I tried 2 times so and I had to go back with CWM recovery :o
[Mi 3 Android Development] The Dork Knight Rises:
Yes, you can Wipe system b4 flashing, but it's not really necessary most of the times...

And wiping internal storage will only wipe your stored data like Music, Videos, Pictures, etc. It shouldn't cause bootloops or anything...
[Mi 3 Android Development] ratvim:
i think sdcard not mounting for me...file are not displaying in file manger while i m in recovery and also while installing i cant see any file on my sdcard....its blank...am i doing something worng?... also no option to mount sdcard in setting.
[Mi 3 Android Development] FcukBloat:
did you see OP? are you looking in data/media/0?
[Mi 3 Android Development] kundancool:
New Builds are up

Changelog:

- FIXED /sdcard mount issue
[Mi 3 Android Development] ancola66:
Oh no:(.

Today I wipe system and can not flash any rom yet (Get error with red text) :crying:. fortunately I have a backup rom and i restore its OK:D
[Mi 3 Android Development] kundancool:
well that error is caused when system is not getting umount before formatting.

try remounting /system and then flash
[Mi 3 Android Development] ancola66:
Ok i will try again, but before I used the HTC one and of course using TWRP recovery. I wipe system without mount or unmount before flash rom and everything worked normally:o
[Mi 3 Android Development] kundancool:
new builds with slight changes are up
[Mi 3 Android Development] The Dork Knight Rises:
I see the good news...last build before official TWRP support? Hell yeah!
[Mi 3 Android Development] kundancool:
Possibly tomorrow builds will be up :)
[Mi 3 Android Development] The Dork Knight Rises:
Report:

There seem to be slight issues with themes (specifically the TWRP Materialized ones), I never noticed in previous build, so I think its issue with new build...some text seems slightly out of place.

Attached screenshots for Play Theme, but issue is there in Dark too.
[Mi 3 Android Development] akshayAXE:
Same Here
[Mi 3 Android Development] kundancool:
it might be because of updates after v2.8.5.0 check https://github.com/omnirom/android_bootable_recovery/commits/android-5.0

there are some updates I am not the theme dev so I can't help you fix it
[Mi 3 Android Development] kundancool:
Official builds are up

Download Official TWRP
[Mi 3 Android Development] ZenR2:
Thanks Man :)

Android Police has also posted this news :D

http://www.androidpolice.com/2015/02/25/xiaomi-mi-3-gets-official-twrp-support/
[Mi 3 Android Development] sivabommakanti:
Excited!!!
[Mi 3 Android Development] ancola66:
Thanks and can you flashable zip make for us :o
[Mi 3 Android Development] kundancool:
Mirror :
[Mi 3 Android Development] purval6300:
does it support tdb?
[Mi 3 Android Development] vishal24387:
Official build completely bug free?? Or are thete any bugs?? Can I use it with aosp lollipop rom??
[Mi 3 Android Development] ZenR2:
so far didn't encountered any bug .

yes you can use it with lollipop roms
[Mi 3 Android Development] LKc丶:
Aroma bug still here[emoji20]
[Mi 3 Android Development] Riichard63:
I still get bugs with New zip flash (here it's for xenonHD from audahadi). It's always unable to Mount or un Mount system. For old zip it's always fine.

I join you a log.

I'm using your last 2.8.4.0 version (I get same error with 2.8.5.0)
[Mi 3 Android Development] kundancool:
First I would like to point out I would not check bugs for older versions so everyone should be on latest builds.

secondly official TWRP builds are there try using that

third if you get mount errors try unmounting system as I face same issue with MIUI ROM which is tries to format system without unmounting it

[I]format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/I]

let me know if you still face issues
[Mi 3 Android Development] Skar3:
it is fully compatible with Mi4? and work with xiaomi.eu build?
[Mi 3 Android Development] kundancool:
I don't have MI4 but it should work with it

no idea what you are talking about xiaomi.eu build
[Mi 3 Android Development] FoeniX416:
How to use theme,I put my ui.zip in TWRP but have no change.Sorry for my poor English.
[Mi 3 Android Development] kundancool:
Create TWRP directory in your phone storage and create a theme directory in TWRP directory and copy ui.zip in that theme directory

Read first post