yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] josteink:
From what I can tell, I should be able to create a small enough image if I slim out "parted" from the image.

I really have no idea why parted should be there in the first place, but it can sometimes be hard to guess what obscure dependencies systems have.

Anyone know for sure if parted can be stripped or not?

Edit: Screw it. I'm going for the kill :)

Edit 2: It would be insanely hilarious if I solved a partitioning-related problem by removing parted :D

---------- Post added at 10:41 AM ---------- Previous post was at 10:21 AM ----------

From the sources:

jostein@OFFICE:~/unbuild/tf101_4.2/bootable/recovery$ grep -R "parted" *
libblkid/bsd.c: * Inspired by fdisk, partx, Linux kernel, libparted and openbsd header files.
libblkid/mac.c: * note that libparted ignores some mac partitions according to
libblkid/dos.c: * Inspired by fdisk, partx, Linux kernel and libparted.
partitionmanager.cpp: Command = "parted -s " + Device + " mklabel msdos";
partitionmanager.cpp: Command = "parted " + Device + " mkpartfs primary fat32 0 " + fat_str + "MB";
partitionmanager.cpp: Command = "parted " + Device + " mkpartfs primary ext2 " + fat_str + "MB " + ext_str + "MB";
partitionmanager.cpp: Command = "parted " + Device + " mkpartfs primary linux-swap " + ext_str + "MB " + swap_str + "MB";
prebuilt/Android.mk: #parted
prebuilt/Android.mk: LOCAL_MODULE := parted
Binary file prebuilt/parted matches

So... A partition managed I've never used (and cannot find in the UI) depends on parted. I think this seems like a safe removal.

---------- Post added at 11:22 AM ---------- Previous post was at 10:41 AM ----------

Victory :D

WARNING: /home/jostein/unbuild/tf101_4.2/out/target/product/tf101/recovery.img approaching size limit (5345356 now; limit 5351808)

Already uploaded. Anyone want to test-drive? :)

(Also includes new fstab references for MicroSD-card)

---------- Post added at 11:42 AM ---------- Previous post was at 11:22 AM ----------

Just to get people extra eager: :p

If manually flashing this works, I'm ready to upload a CWM/TWRP-flashable version :)
[Eee Pad Transformer Android Development] st0nedpenguin:
I'm getting a visit from the little android guy when trying to boot recovery with the newest blob. :(
[Eee Pad Transformer Android Development] josteink:
Well that's a bummer.

Guess things will have to wait until I have time to look into this myself, and that's in next-week territory already.
[Eee Pad Transformer Android Development] alberteske:
TWRP Recovery Updated to 2.4.3.0

Does any one know if this release if available for our device?

Thanks in advance! :D
[Eee Pad Transformer Android Development] josteink:
It's not. Latest working build is 2.3.2.3 as in this thread.

I've been dabbling with 2.4.x.x. builds for the TF101, but so far I'm having issues making the image small enough to fit on our recovery-partitions.

Will have to put some extra legwork into it, and not making any promises that I'll get there, and I'm definitely not giving any ETAs :p
[Eee Pad Transformer Android Development] MassStash:
Have you consulted troy? Seems like a nice enough guy

~S-Off LTEvo; Viper4G_3.x.x; Elementalx

cpu0/1: 1.7ghz ¦ 192mhz ¦ sleep: 486mhz max

Intellidemand

fiops

mpdecision: off
[Eee Pad Transformer Android Development] Dieselrellim:
Any progress on 2.4?
[Eee Pad Transformer Android Development] josteink:
Sorry. Been busy.

Thinking about trying out compiling a new kernel with different compression to see if that does it, but then I'll need to create a bare bones kernel config first.

---------- Post added at 03:49 PM ---------- Previous post was at 03:49 PM ----------

Just writing that... I have av idea. Maybe I'll get it working this weekend.
[Eee Pad Transformer Android Development] Dieselrellim:
thats awsome, thanks for working on it!
[Eee Pad Transformer Android Development] josteink:
New experimental untested builds are up, based on Lumpy kernel with LOTS of things disabled and ripped out.

Should be slimmer than the old ones and hopefully work, without me having to take out parted or fiddling with TWRP sources at all.

http://nexfiles.kjonigsen.net/tf101/twrp/

Do only flash these if you know how to get a working recovery through nvflash or dd or whatever.

IT MAY EAT YOUR KITTENS!
[Eee Pad Transformer Android Development] josteink:
Just tried flashing it.

The good part: You can flash it (both via dd and nvflash)

The bad part: It doesnt boot at all, and just brings you to the coldboot menu.

I'll have to take a deeper look at this...

Edit: Doing things properly the results are better, but it still doesnt boot. It just locks up when it should be showing the TWRP logo :P

Edit 2: I'm stubborn and giving this another try, and with recent updates in TWRP, I don't have to squeeze the space requirements THAT badly.
[Eee Pad Transformer Android Development] josteink:
Just FYI: New 2.4.4.0 builds. Completely untested:

http://nexfiles.kjonigsen.net/tf101/twrp/

With a known good recovery-kernel and still within size-limitations.

Hopefully these will boot (unlike the old ones). If nobody has this tested by the time I get home, I guess I'll get to it myself ;)
[Eee Pad Transformer Android Development] josteink:
Hmph.

I'll retract statements about fitting within limitations. Nvflash doesnt like these. Bugger.
[Eee Pad Transformer Android Development] josteink:
Quick status update: I will give this another go, but I'm not sure when.

Maybe this weekend, maybe not.
[Eee Pad Transformer Android Development] MassStash:
much appreciated good sir

~ TF101 on EOS4 Latest

Currently OC'ed to 1.4 with KatKernel 94
[Eee Pad Transformer Android Development] josteink:
Boo hiss!

Where did that josteink and his (un)promised TWRP 2.4.x go, huh? :p

I'm here now, and I bring Good news!

- I've been able to create what I assume is a good build.

- It's still too big.

- But I've found a way to make it small enough.

- If all goes well, I'll have a (untested) blob ready for flashing later today :)

If you guys are slow, I might even test it myself :D
[Eee Pad Transformer Android Development] josteink:
Ok. So I have a build up, but based on a kernel-tree I haven't used before (Thanks VididBoarder! :) ), and compressed with LZMA instead of GZIP so that it should be small enough.

Hopefully this is it, and we have a working recovery:

http://nexfiles.kjonigsen.net/tf101/twrp/

The relevant blobs are the one with LZMA in the name.

.blob is for "dd"

.blob.SOS is for nvflash.

Just to ensure I've said that: THESE ARE ENTIRELY UNTESTED.

Dont flash these unless you know how to get a working recovery back :cool:
[Eee Pad Transformer Android Development] josteink:
Meh. STILL doesnt boot.

And by that I'm off for easter.

Have fun :)
[Eee Pad Transformer Android Development] iss42:
Hope you have a great break!

I'm keen to see this when its tested.. :D
[Eee Pad Transformer Android Development] MassStash:
Efforts are greatly appreciated bro

~S-Off LTEvo; Viper4G_3.x.x; Elementalx

cpu0/1: 1.7ghz ¦ 192mhz ¦ sleep: 486mhz max

Intellidemand

fiops

mpdecision: off
[Eee Pad Transformer Android Development] savagehax:
Can i flash from internal memory in twrp?
[Eee Pad Transformer Android Development] shirioko:
Yes
[Eee Pad Transformer Android Development] savagehax:
Thank you. I just got this tablet today. What is the easiest root and recovery method now? Im on 4.0.3 thx in advance
[Eee Pad Transformer Android Development] josteink:
Easiest way to root is just to use nvflash to flash alternate recovery. Once you have alternate recovery (like TWRP), you literally have all the control you need to root, flash custom ROMs, etc.

Not that I've used any of these tools to do so, but they look like they should cover what you need:

http://xdaforums.com/showthread.php?t=1688447
[Eee Pad Transformer Android Development] savagehax:
Ty im just use to the nexus rooting methods and recovery. And no sd card. So i read in cwm here there is no flashing from internal
[Eee Pad Transformer Android Development] josteink:
There are two versions of CWM (as far as I know). One supports internal, the other external.

I would much more recommend TWRP as it supports both and is in my opinion much more featured, user-friendly and advanced.

---------- Post added at 09:57 AM ---------- Previous post was at 09:54 AM ----------

You may also look into this tool, which I've heard lots of other forumers refer to as good:

http://xdaforums.com/showthread.php?t=1688012
[Eee Pad Transformer Android Development] Aliante:
See here: http://xdaforums.com/showthread.php?p=32166857#post32166857

It's an old post, but since the stock ROM has not changed I do not see any reason it shouldn't work anymore.
[Eee Pad Transformer Android Development] simo.scorpion:
TWRP 2.3.2.3 work fine ?bug ? any problem with the jb rom ?
[Eee Pad Transformer Android Development] josteink:
It works fine. It's good. It's the best recovery for the TF101, no contest.
[Eee Pad Transformer Android Development] frederuco:
+1 for TWRP 2.3.2.3

Hands down the best, offers internal, external flashing. Wipe menu is easier IMO than CWM (all wipes are in ONE place) and it has a terminal emulator and file manager if you need to move files around in recovery.

I would used Wolf's method 3 to push the blob to the recovery partition via ADB the last time I rooted and it worked perfectly. No need for NVFlash or dealing with SBKv1 or v2 nonsense.
[Eee Pad Transformer Android Development] cecilyen:
TWRP 2.5 is out!
[Eee Pad Transformer Android Development] chazzdjr:
Has ViViDboarder abandoned this project? What's going on? :what:
[Eee Pad Transformer Android Development] josteink:
Not sure abandoned is the word. He's still around and can answer some questions about this thing, if you PM him.

I've tried to create a few updated builds, but have so far been unsuccessfull in getting a build which:

1. is small enough to flash on a stock recovery partition (although that seems to have been partially adressed in later 2.4.x releases)

2. has a kernel which is "good" for recovery

3. and which boots

It's really bugging me, because the second we don't even have an up to date recovery, you know your device's days are numbered.

I'll just PM vividboarder and ask him politely if we wants to have another shot at this ;)
[Eee Pad Transformer Android Development] MassStash:
Please do! And I hear ya about the numbered days without a kept up recovery..... Ahhhh! Haha

~S-Off LTEvo; Strapped to this gnarly Sense5 port; ArcReactor

cpu0/1: 1.7ghz ¦ 192mhz ¦ sleep: 486mhz max

Intellidemand

fiops

mpdecision: off
[Eee Pad Transformer Android Development] simo.scorpion:
This recovery give me an error when i flash a rom ...E unable to mount /staging its normal ?

Inviato dal mio GT-N7100 con Tapatalk 2
[Eee Pad Transformer Android Development] cbrox:
Yeah, any folder that you create in /data/media will work. i just used the goo one because it was easy to copy over from my mSD with all the flash files in it.

Not to get off topic but how's guevor's kernel working for you? I tried JB-V23-#696 and had a SOD overnight fell back to roach's default, haven't had any R&R's or SOD's with it yet.
[Eee Pad Transformer Android Development] zedorda:
Shocked no one has run into this. I did figure it you myself and all is good now. The issue was a low battery about 18%-22%. I had the unit plugged in but apparently that does not help. It maybe a good idea to include something that would warn you that if your battery is low this will happen or just stop it from even trying with a popup telling you. Right now all it does is basically hang like it was having trouble connecting to a server because that lead the troubleshooting in the wrong direction. Once I just got fed up with trying and turned it off and tried later with a clearer head it worked flawlessly.

I am running Revolver 4.11
[Eee Pad Transformer Android Development] sidneyk:
When I tried #696 the first time l also got one SOD while docked that very night. Could have been the dock battery ran low or that I had an sdcard in the dock. Took the dock card out and didn't experience any more SODs since. I was using guevor's newer build #700 for awhile trying that voodoo sound patch. Now back on #696 after reflashing this morning. Will let you know if any problems.
[Eee Pad Transformer Android Development] baseballfanz:
Ok been trying all day but can't find the external sd on this version 2.2.1.4

On the unofficial version by raymanfx the external sd card was sdcard
[Eee Pad Transformer Android Development] cbrox:
external is /sdc

internal is /sdcard
[Eee Pad Transformer Android Development] baseballfanz:
That's weird, my internal is data/media

Can't find sdc anywhere.

Let me try playing around with it
[Eee Pad Transformer Android Development] cbrox:
so is my internal, but it also mounts it as /sdcard it mounts the external as /sdc it also has a mount for sd_ext but nothing is mounted there. As i stated in my post earlier i was only able to do an open recovery from internal /data/media trying it from external did not work for me kept getting mount errors in recovery with the open recovery.
[Eee Pad Transformer Android Development] baseballfanz:
ok, all is good now. Seems like there was a conflict or something with unofficial version settings or something.

So i just deleted the TWRP folder.

Flash the recovery again and now i have

Internal sdcard and external sdc.
[Eee Pad Transformer Android Development] ViViDboarder:
If you need to delete the settings you don't have to delete your backups.

From Android just delete the /sdcard/TWRP/.twrps file.
[Eee Pad Transformer Android Development] Hammerfest:
I just got my MicroSD card set as /sdcard in Android now its different in Recovery again.. :/

So hard to get things to match up these days... I thought the whole internal memory as /sdcard thing was supposed to be temporary (for android)...

Still a great recovery option, and up-to-date as well (admitted flash-whore)
[Eee Pad Transformer Android Development] pyromayniyak:
Ever since I started using the unofficial TWRP I haven't looked back. My only problem now is that i was in the process of making a theme and now there are more elements involved that aren't in my template. Could someone please post an updated template for me to work off of. Ok, now for my questions:

Under Backup, what does exactly does "boot" backup and can we successfully backup the recovery now? Can we backup the kernal now?

Under Settings, what does "use rm -rf instead of formatting?" do?

Under Reboot, are Recovery and Bootloader WIP because all they do is reboot the tablet?

Thanks in advance people. Almost done with the theme and will share when it is done.
[Eee Pad Transformer Android Development] ViViDboarder:
By default twrp will look for /sdcard and if it finds it, it uses /sdcard as the data source. If not then it looks to a set of alternate sources. That's why we mount external as /sdc.

Although, that was a while ago. On TF201 Dees_Troy has external mounted as /external_sdcard instead of sdc.
[Eee Pad Transformer Android Development] ViViDboarder:
All of the source code, including our default themes, is on our github account.

Take a look here for the examples: https://github.com/TeamWin/Team-Win-Recovery-Project/tree/master/gui/devices
[Eee Pad Transformer Android Development] Hammerfest:
That being said, since the source is out, it should be possible to remap the MicroSDHC to /sdcard and the internal memory to /data correct?

Is it also possible to modify the keyboard? (remove languages, buttons, stuff you could normally do when running android outright, like the pointless voice button)

Thanks!
[Eee Pad Transformer Android Development] will5:
There is a simple cwm file to install twrp?
[Eee Pad Transformer Android Development] cbrox:
that would be a no, instructions for flashing are in the OP.
[Eee Pad Transformer Android Development] ViViDboarder:
Sure. You could change anything you want. The mount location is just in the recovery fstab and the BoardConfig.mk
[Eee Pad Transformer Android Development] xuser:
that would be too simple. now you must install an app to flash a recovery. go figure.
[Eee Pad Transformer Android Development] LNKNPRKFN:
LOVE TWRP

Now on EVERY device i have, TF101,TF201,Touchpad,HTC HOX...and hopefully on MY TF700 soon

THX
[Eee Pad Transformer Android Development] pyromayniyak:
I went to github and pulled the resources for a theme off it and it just kept bootlooping at the curtain when I rebooted to TWRP. Does the xml need to be modified any before it will work? Using the theme template from the unofficial is working though. How would I change to fonts because my working xml still has bluehighway as the font and I've tried changing it and the resources using the github fonts, converting fonts to .dat and even just using .ttf fonts and all it does is bootloop at the curtain?
[Eee Pad Transformer Android Development] josteink:
Yeah. It usually means some blob has been flashed to /staging and will be handled at next boot (for instance kernel) and thus its no longer a valid filesystem (because it's a blob and not a FS now).

Nothing to worry about.
[Eee Pad Transformer Android Development] sidneyk:
Perhaps you are already aware, but here goes. I could get these flashed using the 'dd' method from the TWRP page, but they wouldn't boot. After digging in a little and unpacking them I discovered that the lzma blob didn't have a ram disk. I tried swapping things around here and there, but couldn't find anything that worked. The one marked test had the ram disk but still no dice.
[Eee Pad Transformer Android Development] josteink:
Yeah. Tried it myself. No good. Thanks for reporting in though.

I haven't had time to try to create new builds, but with 2.5.x out the door, maybe I should see what I can get done... Again... If I get time, that is.
[Eee Pad Transformer Android Development] jrohwer:
Wipe data but not /data/media ?

I'm new to this recovery, installed and seems to work fine :)

Can anyone enlighten me exactly what/how to wipe the /data partition. Specifically, I'm interested if it is possible to wipe data but leave internal storage (/data/media, which the device mounts as /sdcard) intact?

The wipe menu contains amongst others:

1. Factory reset

2. External storage

3. Internal storage

4. Format data

What gets wiped in these cases? My guess would be

1. /data and /cache

2. /Removable/MicroSD (/dev/block/mmcblk1p1)

3. /data/media

4. /data (/dev/block/mmcblk0p7)

So am I right there is no way of wiping data put preserving "/sdcard" (hope not)? Bit of a bummer. How do you guys flash ROMS and keep your stuff? Do you have to copy all to external storage?
[Eee Pad Transformer Android Development] josteink:
You should be able to format /data without touching /data/media.

This is the default option. If you click the wrong item, you WILL be warned that your entire "sdcard" will be deleted and that you probably dont need to do what you're currently doing.

Take a look around. Click and see what happens. You will always be asked for confirmation. This recovery is fairly idiot-proof :)
[Eee Pad Transformer Android Development] Woody:
I am pretty sure the /format/data WILL wipe your internal. It is /wipe/data that doesn't do that. Wipe/data is what happens when you Factory Reset in Recovery (which is should say in () at the top "Will not erase internal SD").

Just be careful becuase /format and /wipe are very different. But as Jost says, TWRP is pretty user friendly and will warn you if you are about to do something irreversible.
[Eee Pad Transformer Android Development] josteink:
Who am I kidding... Back to the building-board. :)

Will let you know if I manage to get something with the version 2.5.0.0 booting. But if I do, I promise you I wont promise to maintain this thing.

Getting this thing built is the toughest nonsense I've done for any device ever. Lol.
[Eee Pad Transformer Android Development] sidneyk:
Yeah, I was going to try and give it a shot, but in the first steps, grabbing the CM sources, I couldn't get a good set of stuff for our device, it kept coughing with part of the tf101 specific sources. So, I tried instead against EOS sources and got a recovery to build, but it wouldn't boot and I didn't want to mess my sources up then to try further with the twrp parts. Fun, fun, fun.
[Eee Pad Transformer Android Development] walkinonthesun:
I would really appreciate it if you can get this working. I just rooted my TF this weekend and installed the TWRP recovery and now I can't boot into recovery.
[Eee Pad Transformer Android Development] sidneyk:
How are you trying to get into recovery? Did you install twrp-2.3.2.3 via GooManager or some other method? Are you able to boot into Android?
[Eee Pad Transformer Android Development] jrohwer:
On stock firmware (rooted) adb reboot recovery does not work, but you can use this app:

search for "Transformer reboot to Recovery" on Google Play Store (free)
[Eee Pad Transformer Android Development] josteink:
Learn to use the keycombo:

Hold power + vol-down until you get the Asus splash boot-screen. When it tells you to press volume-up to boot into recovery, release power + vol down and press vol up.

It's simple and reliable and does not depend on any software or USB or that your system is working.
[Eee Pad Transformer Android Development] RED ZMAN:
Has anyone actually tried contacting the developers of TWRP about an update. I just put 2.5 on my Nexus 7 and would love to see these updates on the transformer.

Blasted from my Samsung Galaxy SIII (CM10.1 Masta Mix).
[Eee Pad Transformer Android Development] josteink:
The twrp team has very limited resources and depend on people like us to work out the kinks and create a working build which they later can make "official".

If you want to chat with them they are on irc on freenode. #twrp
[Eee Pad Transformer Android Development] walkinonthesun:
Turns out I wasn't holding the buttons down long ago. I had tried running the ADB reboot recovery. I didn't realize that didn't work on stock. I had also tried installing a different recovery so once I actually held the buttons down long enough, I was able to get into recovery. Sorry for being a newb.
[Eee Pad Transformer Android Development] ViViDboarder:
Hey guys. I've been pretty busy lately and haven't spent much time on Android stuff lately. I'm just getting settled in to a new apartment so I'll be able to take a look at building the latest source once I get all set up.

I'll try to document as I do it so that someone else can take over maintaining after this build as it will probably be my last "official" build for this device. I just haven't had the time to keep up to date even on all the things Dees_Troy is doing with Twrp as of late.

So, I'll touch base with him soon and try to get this built.
[Eee Pad Transformer Android Development] JerryGNYC:
Thanks very much, and a virtual thanks click... I've used mine up for today! :D :good: :good: :eek:

Hope your move wasn't traumatic, and good luck in your new abode! :cool:
[Eee Pad Transformer Android Development] MassStash:
Yes, a thousand thanks to yous man! What tab you on now deeming this not in the time schedule now?

~d2spr runnin' CarbonRom

cpu0/1: 1.7ghz | 192mhz | sleep 486mhz with latest ktoonsez kernel

Intellidemand

row

mpdecision: off
[Eee Pad Transformer Android Development] ViViDboarder:
Ok, I got everything to compile. I didn't bring my TF101 to work, so I'll have to validate the build when I get home. If it works I'll push it to Goo.im.
[Eee Pad Transformer Android Development] Orkeren:
that was fast... :D
[Eee Pad Transformer Android Development] ViViDboarder:
Hah, thanks. I actually did it yesterday but forgot to test it last night. Just didn't want to leave you all hanging so I figured I'd give a status update.

Assuming it works, that's great. All I did was pull the latest version and build. One little tweak was needed to keep the size down.

If it doesn't boot... then the games begin!
[Eee Pad Transformer Android Development] Orkeren:
It's allways those small things.. And if it ain't booting, you done something wrong... :P