yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Mini] Bhargav97:
TWRP Recovery

For Galaxy Mini

Team Win Recovery Project 2.x, or twrp2 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

BUGS:

If you have found a bug, please consider posting it here.

LIVE SUPPORT:

Live support is available via #twrp on Freenode with your IRC client or just click this link

SPECIAL NOTE:

This is the first build of TWRP and may have some unknown bugs. I take no responsibility of your devices. This is "testing" phase (for some days only). Help in testing if you wish to otherwise stay away until a final release. Don't post back here that: "You destroyed my phone", "You are cheating", "You are playing with my device".

One more thing, we are using androidarmv6 sources and if you are asking for help on IRC channel mentioned above then please mention there that: "we are not using CM or OMNI sources, we are using androidarmv6 sources".

CREDITS:

TeamWin: For this awesome open-source recovery.

androidarmv6 team: To make all these possible.

chraso: For his precious help.

Me: For compiling it for Galaxy Mini.
[Samsung Galaxy Mini] Bhargav97:
CHANGELOG for 2.7.0.0:

-Faster graphics rendering by disabling alpha blending on fully opaque objects thanks to Tassadar

-Allow sideloading from /tmp on encrypted devices

-Check for a crypto footer before asking for a password to prevent user confusion

-Additional checks for validity to auto generated backup names

-Text wrap in the console output

-Proper caps lock support in the keyboard

-Mouse support via USB OTG for devices with a broken digitizer

-Improve scanning of storage locations for OpenRecoveryScript

-Haptic feedback for buttons, keyboard, and vibration at the end of longer running actions thanks to Samer Diab

-Fixed ext4 wiping when no selinux contexts are defined for that partition (e.g. sd-ext)

-Update SuperSU to 1.93 and improve installation process

-Added selinux contexts restoration to fix permissions

-Load RTC offset on Qualcomm devices to fix the date/time in recovery

-USB Mass Storage fixes Add SELinux support checking

-Add Disk Usage class to better handle excluded folders (e.g. Google Music cache)

-Add 4.4 decrypt support

-Add some toolbox utilities to TWRP (namely to support SELinux functions not supported in busybox)

-Various SELinux fixes and bug fixes.
[Samsung Galaxy Mini] Bhargav97:
DOWNLOAD:

http://www.upload.ee/files/3992673/recovery.img.html

INSTALLATION / UPDATING:

-From the above download link, you'll get a 'recovery.img' file.

-Put that file at the root of sdcard (means, not in any folder)

-Now, open Terminal Emulator and give this command:

su

You'll be asked to grant superuser permissions, grant them.

-Now, give this command:

flash_image recoveryonly /sdcard/recovery.img

And wait for 2-3 seconds until it jumps to a new line. Now, close Terminal Emulator.

-Now, normally reboot to recovery and enjoy new recovery!
[Samsung Galaxy Mini] Bhargav97:
What to test in latest build?:

-NOTHING. IT IS STABLE NOW.
[Samsung Galaxy Mini] Bhargav97:
Reserved
[Samsung Galaxy Mini] ast00:
Will test it the moment I get home. Which is about 4 hours from now...

Tapatalk-kal küldve az én GT-S5570-el
[Samsung Galaxy Mini] arpitkh96:
doesnt boots.hangs on teamwin boot screen. luckily i had pc.currently flashing recovery by odin
[Samsung Galaxy Mini] alexanderq:
+1
[Samsung Galaxy Mini] Bhargav97:
Thanks for feedback.

Now, can you help me find the problem?

How?

-Install recovery.

-Though it's stuck at Teamwin's screen, use adb in pc and give the following command:

adb pull /tmp/recovery.log

-Now, you will have a recovery.log file at the location where your adb files are there.

Attach that file in your post or use pastebin.com.

AND

Can you try that (terminal emulator) method once?

If you don't know what I'm talking about, see PhilZ recovery FAQs > Alternative way to flash this recovery.
[Samsung Galaxy Mini] arpitkh96:
terminal method doesnt works either.here is the log
[Samsung Galaxy Mini] Bhargav97:
Thanks for logs. They helped me.

I forgot to add some things in recovery.

I didn't recompile but repacked with those things added.

If you get a black screen, don't give me logs. (It maybe a repack problem)

But, if you get teamwin logo, I need logs again.

New recovery.img for test:

http://www15.zippyshare.com/v/37395986/file.html

Use terminal emulator method.
[Samsung Galaxy Mini] arpitkh96:
loops between black screen and Samsung logo. Cant give log ,adB doesnt recognises
[Samsung Galaxy Mini] Bhargav97:
Will be back after a re-compile.(15-20 min)
[Samsung Galaxy Mini] Bhargav97:
Sorry to be late.

Here's new test:

http://www.upload.ee/files/3989901/recovery.img.html
[Samsung Galaxy Mini] ast00:
Booted! Report time!

It can't flash sd-ext scripts.

Trying to mount or unmount partitions doesn't do anything and can get the vibration engine stuck on working.
[Samsung Galaxy Mini] sushil888:
hard bricked

cell bricked. time 4 ssc .hahaha.

only teamwin logo appearing.
[Samsung Galaxy Mini] Bhargav97:
Use test img files. Do all these only if you know how to recover. You'll have flash an older recovery using odin.

Good...

Atleast it booted now... :p

You will have to help me.

-Boot into TWRP.

-Go to Mounts

-And select/un-select partitions and then install an sd-ext script and let it fail.

-Now, without doing anything else, give me the recovery log. (method in page #1)

And...you mean vibrator gets stuck in between?
[Samsung Galaxy Mini] ast00:
It's vibrating non stop and it only stops if I reboot.

http://pastebin.com/Bg5GJ8rF

This logs is weird... It looks like it does mount the stuff, it just doesn't update the ui.
[Samsung Galaxy Mini] arpitkh96:
For me its not vibrating continuously but duration of vibration on a click or touch is really large.

One bug I noticed is that progress bars are not resized.

While backing up a ROM the indeterminate progress bar is fine but the blue one showing exact progress is not resized.

Its width is larger (it goes out of screen on rhs) and height is smaller than that of indeterminate progress bar so it doesn't actually appears as an overlay.I don't have camera now to show you a pic.I will show you pic after 2hrs
[Samsung Galaxy Mini] Bhargav97:
Logs look fine.

[MENTION=4500270]arpitkh96[/MENTION] says it's not vibrating non-stop but duration of vibration is long. I think, that can be managed somehow.

About the other report you gave of error when installing zip:

Your zip file's update-binary is old. You will need to update it. Replace /META-INF/com/google/android/update-binary file from cm11 or omni4.4 zip. You will need to do it in ANY zip that doesn't install. This is the way it works. KitKat has changed many a things, this is one of them.

Please try this and give result.

And, cm11 or omni or any other ROMs are installing or not?

Also, what do you mean by "mounting-unmounting partitions doesn't do anything." If the partitions are not mounted, your log would have errors but there are no errors.

[MENTION=4500270]arpitkh96[/MENTION],

I know about that progress bar bug. Its theme related. I would fix it after fixing major recovery problems.

You can use any 240x320 twrp theme uptil then. It would work just fine.

For more info on Themes for TWRP, visit here:

http://xdaforums.com/nexus-4/themes-apps/twrp-theme-collection-thread-t2035234
[Samsung Galaxy Mini] arpitkh96:
roms are flashing correctly.i think problem with int2ext zip is something different because it also failed with twrp 2.5 compiled by dany earlier when selinux restrictions etc werent introduced.and those themes wouldnt mess up with ldpi?

edit-as expected themes also need to be resized to ldpi.i tried holo light theme.even its title doesnt displays fully
[Samsung Galaxy Mini] Bhargav97:
DONT RESTORE ANY BACKUP AND/OR FLASH BOOT OR RECOVERY USING THIS TWRP.

A BIG PROBLEM OF PARTITION.

MAY HARD BRICK YOUR PHONE.

A fix is coming.

Edit:

Fixed the issue. See post #25.
[Samsung Galaxy Mini] Bhargav97:
Please read carefully bro.

I bolded the word: 240x320.

You will have to google for: "LDPI themes twrp" or "240x320 themes twrp".

There are a few out there at github.

I linked you to that thread so that you can understand what's theme and how to use it.

And...I'm damn sure, it's update-binary has some problem, except selinux. Replace from cm11 and try.

[MENTION=4500270]arpitkh96[/MENTION],

Is brightness setting working fine?
[Samsung Galaxy Mini] arpitkh96:
that edit was done before i saw your post.yes brightness and timeout are working fine

edit-got themes working
[Samsung Galaxy Mini] Bhargav97:
UPDATE:

-Fixed boot and recovery partitions. Now, you can safely backup/restore. BUT STILL I NEED SOMEONE TO TEST.

http://www.upload.ee/files/3990985/recovery.img.html

Install this update. Do a backup. Do a restore. Send me logs. To confirm that the issue is fully fixed.
[Samsung Galaxy Mini] arpitkh96:
Backup restore works
[Samsung Galaxy Mini] chraso:
Hi arpitkh,

Can u provide the logcat?
[Samsung Galaxy Mini] Bhargav97:
Did you try booting into system after restoring backup?
[Samsung Galaxy Mini] arpitkh96:
Yes it works

Edit-log https://db.tt/ltmrAfEV
[Samsung Galaxy Mini] chraso:
I request a pastebin.org link pls.

but in future please use it whenever possible.

Edit:

Also inform if vibration problem is still there or gone?
[Samsung Galaxy Mini] arpitkh96:
Vibration duration is still long
[Samsung Galaxy Mini] ast00:
If I tap mount, the log says it's mounted, but the ui doesn't update, so it shows that it's not mounted. I tap it and the checkbox stays unchecked.

Tapatalk-kal küldve az én GT-S5570-el
[Samsung Galaxy Mini] Bhargav97:
So you mean: You go to Mounts and then tap on the small checkbox that's just left to the name of the partition but still that checkbox doesn't get checked. Is it so? OR you are pressing the "Mount" Button? That Mount button is for selecting storage either or for UMS mode.

[MENTION=4500270]arpitkh96[/MENTION],

Can you confirm this issue?
[Samsung Galaxy Mini] arpitkh96:
No problem for me.each and every mount checks and unchecks perfectly
[Samsung Galaxy Mini] ast00:
Did you flash it from recovery or using the terminal? I used the recovery to flash it and every time I tap on checkbox, it stays unchecked.

Tapatalk-kal küldve az én GT-S5570-el
[Samsung Galaxy Mini] arpitkh96:
Terminal method. no problems for me
[Samsung Galaxy Mini] Bhargav97:
Thanks [MENTION=4500270]arpitkh96[/MENTION] for all the precise reporting.

[MENTION=4619216]ast00[/MENTION],

What's happening to your phone? Constant vibration, no mounting checks? Please make sure that you're flashing correctly and using terminal to flash. Otherwise replace recovery.img inside MY first twrp build's zip. Also, some other fault maybe there. Try flashing stock ROM once and then start all over again...

Now As my time allows me, I'll fix the vibration and theme for ldpi. And then I'll release a final version.

I need one more serious testing. Flash stock ROM using ODIN. Then flash any tar recovery (cwm.tar). Then flash twrp's zip using that. Now, backup your stock rom. And then flash any cm build. Then restore the backup of Stock ROM. As soon as restore completes, I need logs (don't reboot). Then, reboot to system and tell me if you face a bootloop or you can boot into stock ROM.
[Samsung Galaxy Mini] arpitkh96:
Sorry I don't have stock ROM.I have stock based ROM(zip) which I don't think is useful.
[Samsung Galaxy Mini] ast00:
I will try that.

And just to clear the confusion: Vibration only gets stuck if you keep tapping it before the vibration ends, so when you are tapping stuff as fast as you can.
[Samsung Galaxy Mini] ast00:
[MENTION=5165022]Bhargav97[/MENTION] I flashed TWRP from CWM4 tar version, booted, done all the stuff you asked for and now adb can't see my phone. How do I pull the log? Is advanced/copy log to sdcard ok?

EDIT: I used that option hoping something good will happen, now I can't boot into system. It freezes if I tap reboot to system and if I force reboot, it reboots to recovery.

EDIT2: I flashed your Philz, force rebooted to recovery, pressed reboot on it. And the stock ROM doesn't boot. It gets stuck at Galaxy Mini screen, adb can't see it.

EDIT3: Almost got that log, now I'm trying to reinstert the sd card into my phone but it takes ages for me to get it in due to a hardware fail.

EDIT4: Got it! Too big to upload to pastebin, so I uploaded it to mediafire: http://www.mediafire.com/download/dgfe8tb1h9r1bcb/recovery.log
[Samsung Galaxy Mini] Bhargav97:
Yes. Do that.

And then just reboot to system without doing anything else.

If the log isn't on /sdcard, it woukd be here: /cache/recovery.
[Samsung Galaxy Mini] ast00:
Check the earlier post, I added some edits to it with the log itself.
[Samsung Galaxy Mini] chraso:
Did tried to fix the vibration and the reboot recovery problem.

Please test

http://www.upload.ee/files/3992673/recovery.img.html
[Samsung Galaxy Mini] Bhargav97:
You guys guys can safely try this and all the future update(s) given by [MENTION=4141775]chraso[/MENTION]. He's my friend. See credits' list.
[Samsung Galaxy Mini] chraso:
guys,

as there is no reply or logcat, so should i assume that the recovery is working fine?
[Samsung Galaxy Mini] masara59:
Vibration and reboot recovery working fine .
[Samsung Galaxy Mini] arpitkh96:
Everything is working vibration duration is reduced but can be reduced more
[Samsung Galaxy Mini] sheltermoer:
Hi Bhargav97

My fault has try your TWRP Recovery on 1st post.

Now my Galaxy Mini stuck in Teamwin's logo.

I have failed in flashing my ROM and can't boot, stuck in Samsung logo.

Try to fix via Odin, but USB Device not recognized.

Any suggest?

Please help.

Thanks
[Samsung Galaxy Mini] alexanderq:
Does device goes to download mode if so then it must be recognized.
[Samsung Galaxy Mini] tiennhu89:
try chance your USB port.maybe it help.anyway, r u install samsung usb driver?
[Samsung Galaxy Mini] chraso:
make sure you have installed device drivers correctly.

[MENTION=5165022]Bhargav97[/MENTION] update the 1st post with latest version link
[Samsung Galaxy Mini] Bhargav97:
Download link and instructions updated in third post.
[Samsung Galaxy Mini] alexanderq:
Tried all options and everything works except mount sd card on pc.
[Samsung Galaxy Mini] Bhargav97:
This is not the way to report a bug. Especially, if you really want the issue to get solved.

Tell in detail what happens. Like: Touching the button doesn't do anything and blah blah and explain in detail.

And, for the rest of the part: Give me recovery log.
[Samsung Galaxy Mini] alexanderq:
Touching the button just plays a sound and says device connected but does not mount the sdcard as a drive in windows
[Samsung Galaxy Mini] ast00:
Just tested it and it works fine. What windows version do you have?

Tapatalk-kal küldve az én GT-S5570-el
[Samsung Galaxy Mini] alexanderq:
Hello

Tried in windows 7 but i will try in windows 8.

Edit:In windows 8 works OK.
[Samsung Galaxy Mini] Faiyaz5yaz:
install Samsung USB drivers ..
[Samsung Galaxy Mini] ShadowFax:
Have anyone tried any themes?
[Samsung Galaxy Mini] swat4samp:
[MENTION=5165022]Bhargav97[/MENTION] Can we expect this recovery for fit too?
[Samsung Galaxy Mini] Bhargav97:
Maybe YES.

But, my PC is very very busy these days. So, I didn't got any time to make for devices other than tass and cooper yet.
[Samsung Galaxy Mini] antanisv:
What if I want to revert back to old recovery 6.0.2.7 aF flashing this one? Possible? How?
[Samsung Galaxy Mini] Bhargav97:
LoL

If you have an .img file of cwm 6.0.2.7 then flash it using Terminal Emulator way and if you have a .zip file, flash it straightaway using TWRP.
[Samsung Galaxy Mini] alexanderq:
We have to build one for our resolution but i found a link where you can download one

https://github.com/OldXperiaTeam/TWRP-themes
[Samsung Galaxy Mini] Bhargav97:
Here's something I need you guys to test:

[ROOT]TWRP Coordinator

It's a newly released app (released just before 10-15 minutes) by TeamWin.

I just need a report if everything's working as it should or not.

WARNING: Don't use the option to update TWRP because we are using an unofficial build. Other than that, everything should work but the app is still BETA...Try at your own risk.

What to do?

-Install my TWRP.

-Remember, app needs root.

-Then, start using app's features and report here if found any bugs.

Your report would be appreciated! Thanks.
[Samsung Galaxy Mini] alexanderq:
What exactly should we test as it does not detect recovery,backups and after that i tried to install recovery from menu and it says that device is not supported.

Edit:Made a back up through app rebooted to continue process to recovery but still does not see backups on internal or external storage.
[Samsung Galaxy Mini] Samer Diab:
Well the app is still in beta , we will see what we can do for this device mate
[Samsung Galaxy Mini] alexanderq:
Thank you for your answer and keep up the good work.Something else i noticed that after the back up process it created a new folder in sdcard named TWRPmanager with an empty sub-folder inside named Backup whe the real backup is placed in TWRP\BACKUPS\.

And a request if it is possible that backup name to have the name version of the rom we back up as in PhilZ Recovery 6.23.8/CWM 6.0.4.7 Advanced Edition?
[Samsung Galaxy Mini] G.M.L:
I believe that theme works and your devices works in lg l3 with 240x320 and twrp 2.7.0.1.

G.M.L._V3
[Samsung Galaxy Mini] ShadowFax:
Can u provide the link please ?
[Samsung Galaxy Mini] G.M.L:
I made this theme with source from gintub try it

http://www.mediafire.com/?t43dfts7uy2b2gb

G.M.L._V3
[Samsung Galaxy Mini] ShadowFax:
Yes, its working perfectly :thumbup:
[Samsung Galaxy Mini] G.M.L:
Theme Blue Wall in the top bar where write L3 I can change in what ever you want

G.M.L._V3
[Samsung Galaxy Mini] ipand17:
Is it possible to back to cwm from this recovery sir ?

Cause i don't have pc .
[Samsung Galaxy Mini] G.M.L:
Yes download and install rom manager and download from there cwm and flashing automatic!!!!!

G.M.L._V4

pasakalis.blogspot.gr
[Samsung Galaxy Mini] arpitkh96:
No way .. Rom manager can hard brick sgm.be careful
[Samsung Galaxy Mini] Bhargav97:
Of course. And DON'T EVER TRY ROM MANAGER

If your cwm recovery is in zip format then just flash it using this recovery like a ROM (but without any data wipes).

If your cwm recovery is in tar format then just flash it using ODIN.

If your cwm recovery is in img format then use the same method (method of Terminal Emulator) as you used for installing this recovery.

[MENTION=4500270]arpitkh96[/MENTION],

Good that you advised him to not to try ROM Manager but you should also have told him how to revert back to CWM (Just a suggestion).
[Samsung Galaxy Mini] satanas17:
Hi and thanks a lot, my son's Mini is almost like a "Big One" ;)

++
[Samsung Galaxy Mini] Venkatesh:
Bro, why do you prefer terminal way of flashing?
[Samsung Galaxy Mini] Bhargav97:
This method is the best and direct method for flashing a recovery. Flashing zip via recovery is of course an easy way but I don't like to make zips for recoveries. :D

People don't need to reboot to recovery also to flash via this method, so it's a comfortable way in my opinion. I don't know why nobody was using it since a long time!
[Samsung Galaxy Mini] arpitkh96:
I have a problem with drive link of philz recovery. it always downloads a bin file of 5.9mb.maybe because I am downloading from mobile.should I rename and flash it?
[Samsung Galaxy Mini] alexanderq:
Why do you mean they don't have to boot to recovery to flash it as the only way to use it is to reboot to recovery and make use it because it is the only program that is completely useless from android gui.Sometimes people tend to make things more complex than they are but that is only my opinion.

Great work by the way.
[Samsung Galaxy Mini] Venkatesh:
I bricked my device last night, when switching to cwm5.0.2.8 touch(had flashed zipped twrp before)..luckily it is not hard brick. But when i used terminal flashing , there is no problem changing recovery. What is your thought on this?
[Samsung Galaxy Mini] Bhargav97:
Yes. Google drive's adaptation to unknown formats results mostly in a .bin file. Just rename it and flash.

If you want a .zip, make it yourself at home. No need to share it here. Terminal method is safe, fast and most basic method.

bricked=???????

It's not hard-brick means you can get to download mode. So, brick=bootloops?

I don't get what you say. The fact is nothing inside recovery can brick your phone fully, assuming that recovery is compiled keeping in mind the device partitions.

And maybe I think what you did is: Flashed cwm 5.0.2.8 zip file through this TWRP, right? If yes, then I would say it must work. Though, I'm not gonna support a lot for TWRP because TWRP lacks proper support for bml and I can't do anything for that. Even though, I did the best as I can for adapting TWRP for our devices...I do found that TWRP misbehaves sometimes. Like in your case and In my device: Galaxy 5, TWRP rarely stucks when rebooting recovery. So, I saw logs but I can't see anything unusual.

I will provide full support for PhilZ Recovery though but please don't expect very live support for TWRP. What happened in your case is a casual thing that happens rarely, I think. That's why I advise Terminal method. It is the most basic method and always works except in STOCK ROMs.

P.S. An update for PhilZ Recovery is coming soon...with a possible fix of hardware keys
[Samsung Galaxy Mini] Venkatesh:
Flashed cwm zip through twrp and clicked reboot recovery..after that no boot, no recovery mode only download mode worked.
[Samsung Galaxy Mini] superuser.pm:
my galaxy mini is Clock Work Mod 5.0.2.8 ,i can flash TWRP for my phone?
[Samsung Galaxy Mini] superuser.pm:
im mod UI twrp v2.7.0.0

pic here :
[Samsung Galaxy Mini] Joe Hanson:
Your phone is messy :silly:
[Samsung Galaxy Mini] superuser.pm:
Because im cover plastic 5 year ago i cant clean dust ,its into plastic cover
[Galaxy Note II Q&A, Help & Troubleshooting] ashish_andro:
Can anyone post download link for Blacktox 4.1.2 please?
[MDA III, XDA III, PDA2k, 9090 General] ala-mow:
Is there software available that will block unwanted sms messages and remove from the device? Blooking calls would be a nice feature as well. Any suggestions suitable for WM05
[MDA III, XDA III, PDA2k, 9090 General] Bicalho:
There is Call SMS Blocker. It works fine in my Alpine but I couldn't manage it to work in my Blue Angel. Try it.
[MDA III, XDA III, PDA2k, 9090 General] spkr4thdd:
This might be what you're after... It's a blacklist/white list app which enables voice/sms blocking, with notifiactions of the calls/messages blocked, and the ability to set up a default SMS to be sent to senders advising them you're unavailable etc... found it on this forum, and love it :)
[Sprint Samsung Galaxy Note II] bobloiy:
Hey guys, I think I bricked my phone, but I haven't encountered anything like this yet. I rebooted into recovery from a rom, but it keeps bootlooping, but keeps trying to get into recovery (so a recovery bootloop kind of thing?). Does anybody know how to fix this? I have tried pulling the battery out but it just keeps bootlooping. Any help would be appreciated.
[Sprint Samsung Galaxy Note II] Harjan112:
Try this.... turn your phone completely off then boot into download mode "trying to break the boot cycle" and hit cancel after you hit cancel the phone will try to restart.

If this doesn't work try to flashing a different recovery thru Odin.

Hoping this helps :)
[Sprint Samsung Galaxy Note II] jlmancuso:
Sounds like a recovery bootloop. Try what was suggested above.

This happens when your recovery somehow gets corrupted. Using odin to flash another recovery will fix the issue.
[Sprint Samsung Galaxy Note II] bobloiy:
Thanks! But... I tried the above and it's still not working.. I guess I will have to install a new recovery through odin.
[Sprint Samsung Galaxy Note II] Harjan112:
Yes that should do the trick