yashsingh1/xdaforums huggingface dataset:
[Xoom Android Development] runandhide05:
Hashcode a few more questions if you dont mind,

on your SS3 if you hold all three buttons and boot up to the boot menu in most newer Motorola devices and select bptool do u have that linked to boot into twrp?

i seem to recall talk of that at one point in time, and i did see a mention of bptools in your code.

i ask cause i think ss3 would be SO much safer than the traditional bootstrap, because we all have flashed a bad zip before and with bootstrap…well it’s a hour or so to get back to a booting system, and that’s if you have fastboot files out for your device.

Also due to the lack of hardware buttons on these tabs not really a way to press menu on boot.

If you don’t mind sharing where is the listener for menu key at in the apk/scripts?
[Xoom Android Development] Hashcode:
Mainly the bp-tools entry method is a fallback. (In the logwrapper script I check ro.bootmode for "bp-tools").

The primary way of entering recovery is via "safestrapmenu" which is run by logwrapper.

It displays a splashscreen and allows for 2 hard buttons to be pressed. Recently I adjusted it to also detect virtual button presses on the screen (borrowed code from TWRP). So no hard buttons are needed at all.

1st button is for entering recovery, usually menu but on the screen shows as "recovery"

2nd skips the splashscreen and continues booting, usually search, but on the screen shows "continue".

And if nothing is pressed for 8-10 sec, it continues anyway.
[Xoom Android Development] runandhide05:
o ok, its been a log time since ive used safestrap. infact it was when u first released it back on the bionic. so on boot we should be able to get into recovery without hardkeys, awesome.

im starting on the progress of getting safestrap up and running for the xoom2

( that is with your okay hashcode )
[Xoom Android Development] lambergio:
hello runandhide, I sent an email.
[Xoom Android Development] Jiggity Janx:
runandhide05 you have a PM
[Xoom Android Development] runandhide05:
Got it thanks

Replied. Thank you.

Status report.

I'm in the field rest of the day but I have the gears turning. I should have some time this weekend for some more work towards this

I'll keep everyone posted
[Xoom Android Development] jeffcavicchi:
Thanks for pressing ahead with this!
[Xoom Android Development] runandhide05:
time for testing.

fastboot is a must!

likely of having to fastboot to restore on this test is 75%

email me

also can someone search their deice for

recovery_mode file

side note. just saw this

http://www.xda-developers.com/android/custom-recovery-achieved-on-xyboard-without-boot-strap/

made the front page of xda 7th story down.

way cool!
[Xoom Android Development] gjnicholson:
That is cool! I purchased my Xoom 2 in February and have been waiting for a custom recovery. Thanks for your efforts!
[Xoom Android Development] chumboy:
congrats!!! but, come on...7th story down?! Deserved 2nd at least. oh, well.

how about some kinda flashing noob warning in the OP so no ones xyboard gets bricked before the kinks are worked out?
[Xoom Android Development] runandhide05:
Its a time line for story..lol it was 3rd earlier
[Xoom Android Development] gjnicholson:
/etc/safestrap/flags/recovery_mode
[Xoom Android Development] runandhide05:
That's an old file from safe strap. Any stock file
[Xoom Android Development] gjnicholson:
No stock file found
[Xoom Android Development] runandhide05:
OK guys I just seem not to have the skill to get the damn thing figured out! I'll tinker with it but its looking grim
[Xoom Android Development] gjnicholson:
Thanks for your efforts:D
[Xoom Android Development] runandhide05:
I think the lack of a tablet has caught up to me. I'm thinking I need one in my hand to test new theories and methods
[Xoom Android Development] chumboy:
I'd send you mine as a loaner, but i have it mounted on my car's dashboard (over my pioneer headunit) and removing it would mean i won't have music, nav, etc. Headunit is partially broken but i did manage to attach a bluetooth audio receiver to the AUX input.

As i said in my initial offer, I'll pony-up $100 to anyone who develops a working recovery. Since you've put so much into it already, I'll modify that offer and just donate the $100 to you to buy a tablet with hopes you continue towards our goal. I know i'm taking chances with that offer, but you seem to be an honest guy who's worked hard for all our benefit. If you wish to continue, I'll donate today. I've kept a crisp $100 bill stashed in my crusty tube-sock drawer just waiting to be used.

eon the bright side...even if the charging exploit was the wrong direction, we've learned something...and that is progress.

I'm absolutely sure that someone will get recovery working in the near future...hopefully that will be you.

Let me know what you decide.
[Xoom Android Development] runandhide05:
lets wait on the $ i looked around and cheapest is still 300 or so, and i dont want to take anyones money on buying this just yet.

how about this if i get to v0.0.100 and feel no closer than we can talk.

than said i need someone to test, and MUST

uninstall old apk

• Install new app

• Download test zip xoom2testzip.zip - 124.53 KB

• Follow onscreen instructions

• Once in recovery set backup format to tar!! This is a MUST!!

• Flash test zip

• Create a backup

• Boot into android

• Copy log from /cache/recovery/last_log to your sdcard and rename it to last_log-_x.x.x.txt(version number of the apk you installed)

• Send, attach, or link log here

must delete all old files. and now is a good time to get your charge only mode bin back to stock too.

there is a 89% that this will result in having to fastboot back to stock on this test so it is a MUST to have fastboot files.

that said email me
[Xoom Android Development] chumboy:
deal.
[Xoom Android Development] runandhide05:
-edited, i dont want to sound like i am asking fro money, so il leave it at this

let me get ahold of this guy and maybe we can work something out.

http://xdaforums.com/showthread.php?t=1954012
[Xoom Android Development] chumboy:
you've NEVER asked for money and i don't intend this to be a bribe. Just want to show my appreciation.

let's bump this for now and pm later.
[Xoom Android Development] runandhide05:
i think il have to just get it then.. lol

il let you know if/when i do
[Xoom Android Development] runandhide05:
ok i put in the offer for it on that thread, just waiting back to hear from him, had to convince my wife that it wont actually cost me that much once i get recovery working and ironed out.. lol

il let everyone know when i get it
[Xoom Android Development] ERIFNOMI:
If I can remember to keep checking this thread, I'll help out with testing. I got a laptop so my tablet isn't being used much. In fact, I've only gone so far as to sign into Google since fastbooting back to stock and updating to ICS. I'd be willing to help with some testing.
[Xoom Android Development] runandhide05:
u should have just sent me yours.lol
[Xoom Android Development] chumboy:
runandhide,

what is the return policy for a xyboard at your local verizon store?

30 days with it in hand should be enough.
[Xoom Android Development] runandhide05:
I though of that, but if I'm going to get one wouldn't people want more than just recovery?
[Xoom Android Development] chumboy:
Absoulutely.

got a little myopic talking just about recovery.

speaking of roms for our xyboard, one request...since i have mine mounted over my headunit in my car.

switching apps can be distracting and dangerous while driving.

I use dock4droid app now that gives me a small red bar at the top of my screen...swiping down on this bar unfolds a customizable launcher. it works ok, but there is a better solution (and one that people without it mounted to their dash could use).

some dev wrote a rom for my Asus Transformer TF101 called Megatron Rom. He had managed to create a customizable launcher in the middle of the nav bar at the bottom of the screen...the bar where the back/home/last apps/clock/wifi signal/battery are located. You could choose to display about 10 icons in the middle or just have an arrow...touching the arrow would unfold upward a list of apps. This way, all my driving apps are available with one quick touch. very cool.

Tablets in cars is already here, but they're modified to be "safe" with limited apps, etc. It's going to be the car stereo of the future. I have so many ideas for a "car ROM".

just a thought...first things first...recovery.

good luck with your pending purchase.
[Xoom Android Development] nchantmnt:
without wanting to go too much into detail, here is what youre talking about: http://www.youtube.com/watch?v=fPOsVMN2U58

atm i neither now of any sources, nor under what license this apk is to be coming to us.

what i know for now is that you'll have to edit some points in your framework apk to make use of this bar. (have read somewhare that you need to be on cm or something similar to get this working, but don't remember where and idk if it's true)

but then, what is the difference between using this apk and a gesture-based solution to show/hide a bar like with go launcher hd for tablets?

maybe even wave launcher, relaunch or some dock widget.

i'm atm thinking about what would be the best way to get this or something simmilar and for the question what should be packed into a rom we can discuss private or make a new thread. but here our goal is getting recovery up and running in a usable way.

otherwise we can just cook / develop in theory without getting the opportuinity of testing, troubleshooting and fine-tuning.

so for now i think we keep our focus on the more important part: recovery. anything else is just a matter of time.

but sure, having you, runandhide05, developing a rom would be awesome ;)
[Xoom Android Development] chumboy:
i got it !!

He could call it the RunAndHide App Tray. hehe.

ok...back to recovery.
[Xoom Android Development] nchantmnt:
made my day XD
[Xoom Android Development] runandhide05:
payment sent, il have it in a few days!
[Xoom Android Development] nchantmnt:
awesome. just added my new bank account to paypal and will transfer my donation as soon as i get activation code... should be 2-3 workdays max.
[Xoom Android Development] chumboy:
runandhide,

great news.

check your account...hope it eases the your pain.

:D
[Xoom Android Development] runandhide05:
Dude!!! Thank you so much! That will help out a lot ! I really appreciate it!
[Xoom Android Development] runandhide05:
I do have a question. Which method would most of you like to enter recovery? Run app to reboot unto recovery? Turn tab off plug in charger to enter recovery, or if I can get it to work enter "bptools" to enter recovery?
[Xoom Android Development] nchantmnt:
i prefere the method that really works ;)

but if we can get the choice then entering recovery without having to plug in charger would be the best way, so i vote for bptools

but every other way is excelent too ;)
[Xoom Android Development] chumboy:
says the bptools OP "This even works when you are bootlooping most of the time, so it is super helpful for getting out of a bootloop."

good point.

i'd go with this one.

just for kicks, why can't it be launched with power + vol down?
[Xoom Android Development] mikeymike75:
I vote for using an app. But ultimately whichever is easiest and most reliable.
[Xoom Android Development] runandhide05:
easy answer cause we have locked device, entering with the normal method of entering recovery will only get you stock revoery, if we could flash to the recovery partiton then we wouldnt need a bootstrap recovery.

entering recovery via bptools is not really flashing anything to the bptools, what bptools is think of it like a safemode on windows.

now they way we would enter recovery from bptools is rather genius, since bptools is still booting into android, with a few limitaions ( this is from memory which is about a year or so ago)

on boot into bp mode the device gets flags that the mode is bptools not unknown ( run this terminal and you will see what im talking about "getprop ro.bootmode")

if your booted into android it will say "unknown" if in bptools it will retun with bptools.

so on the logwrapper you can check getprop ro.bootmode and a basic code equivalent of if getprop ro.bootmode= bptools then /sbin/recovery else /system/bin/originallogwrapper

again thats the theory,

also someone want to test something for me

install this charge only mode apk, ( so have your charger ready )

chargingrecovery_v0.0.3.apk - 3.43 MB

and then flash this

update.zip - 1.79 MB

then give me the log
[Xoom Android Development] chumboy:
i think a blood vessel behind my right eye just burst trying to follow that, but i get the general idear.
[Xoom Android Development] runandhide05:
lol and think how my head feels
[Xoom Android Development] runandhide05:
Got some good news! We have regular boot = android

Got bptool boot = cwm
[Xoom Android Development] nchantmnt:
as already said: awesome work, mate ;)
[Xoom Android Development] chumboy:
sounds good, but don't know exactly what that means.

i'll wait for more progress, then ask.

edit...errrr....nevermind...figured it out.

awesome!
[Xoom Android Development] runandhide05:
It let's us boot into android when we want to, then boot into cwm when ever we want. From a cold boot! That means we don't have to run an app each time we want to enter recovery, or mess about with charger.

Also eliminates the init process running between boot and hijack

Because logwrapper starts earlier in the boot process than charge only mode .
[Xoom Android Development] chumboy:
how is the process initiated from a cold boot?
[Xoom Android Development] nitroglycerine33:
That would require a different type of bootstrap. Such as safestrap
[Xoom Android Development] runandhide05:
Once u install the app once.

If u want to boot to android boot as normal.

If u want to boot into cwm from a power off state. Aka cold boot.

Press and hold power, volume up and down to enter the boot option menu. Scroll down to bptool mode. And it will boot into cwm.

What I did was exactly as I explained before.

At the end of my logwrapper script it asks which mode is booting regular or bptools.

Basically

if ro.bootmode = bptool then

/sbin/recovery

else

/system/bin/logwrapperorg.bin

fi

Whqt that does is runs recovery if boot mode is bptools. If not runs the original logwrapper

edit: just need to figure out how to rename logwrapper to logwrapperorg cause if i include it in app then if someone installs and runs it twice then the logwrapper that i put in there would then be renamed and would cause a bootloop... unless i included the original in the app... hmm. thats an idea, but then if they arnt all the same i would need to make 30 different apps depending on model,

hmm, i wonder if they are different,

anyone want to email a bunch of different ones from the xoom2 and xyboard varients while i wait for my tab to show up.
[Xoom Android Development] runandhide05:
For anyone that want to take a look or try out the new way to enter recovery.

Rename your stock logwrapper to logwrapperorg.bin fix permissions

Then install this app

http://d-h.st/ARQ

Then u will be able to boot into recovery by booting into bptools
[Xoom Android Development] Rennert:
Boot via bptools works;)

Backup in progress.

Logfile http://db.tt/kmeibASx

Test.zip: no placeholder.txt in system

Backup: android_secure can't backup

After install recovery and reboot: wlan not working, cant't mount sdcard and external1 (deinstall recovery, restore logwrapper it works)

...Tapatalk
[Xoom Android Development] nchantmnt:
for renaming logwrapper, why not just use:

mv /system/bin/logwrapper /system/bin/logwrapperorg.bin

and maybe a script that tells this:

if test -f /system/bin/logwrapperorg.bin;
then rm /system/bin/logwrapper
cp *your new logwrapper* /system/bin/logwrapper
else mv /system/bin/logwrapper /system/bin/logwrapperorg.bin
cp *your new logwrapper* /system/bin/logwrapper
fi

this should first check if there is a file called logwrapperorg.bin

if so (already installed the app once) then it will only replace the old logwrapper with the new one (in case there had been any changes)

if not (first time installing the app) then it will rename the logwrapper to logwrapperorg.bin and copy your new logwrapperscrpit over to /system/bin/ and name it "logwrapper"

did i miss something?

can't promise that this will work, don't have that much knowledge about scripting^^ but it should do what you are looking for ;)
[Xoom Android Development] runandhide05:
No that looks perfect, but I figure I'm ness about with that once I get my hands on cause I am messing with smali crap, I may just end up write my own app to get what I want. But I'll deal with all that stuff after I get recovery working right.
[Xoom Android Development] nchantmnt:
ah ok when it comes to smali and app development it's definately way over my head :P
[Xoom Android Development] runandhide05:
Well I know enough about writing an app so it shouldn't be all to hard, but my main focus now is getting recovery working right then I'll worry about deployment.
[Xoom Android Development] HinotoriBR:
runandhide,

I've just donated because you really deserve it, whether we will get full recovery and other hacks doesn't matter, just the fact you are getting a Xoom 2 / XYBoard to help us and that even without a device you've gotten this far, in my oppinion, is more than enough for a donation. Thanks for all your efforts. :good:
[Xoom Android Development] runandhide05:
I just saw the email, it is very much appreciated !!

Thank you
[Xoom Android Development] runandhide05:
Update:

Still working on this guys, figured while I wait I would build my own app for this so that I don't have to mess with smali crap,

nchantmnt has been testing my builds while I wait on my tablet to show up.
[Xoom Android Development] jeffcavicchi:
Just got back into Internet range after being out in the wilderness! Looks like this is taking a very positive turn - thanks to Runandhide05 for all his hard work!
[Xoom Android Development] runandhide05:
If someone wants to help out.

In terminal try different types of reboot commands to see what/if anything will reboot into bptools

That way I can add it into the app so u can reboot directly into recovery
[Xoom Android Development] Hashcode:
Usually, devices don't support a direct reboot into bp-tools mode. However, most of my logwrapper scripts also check to see if this file exists:

/data/.recovery_mode

And if so will boot up into recovery (after deleting that file).

Then in the AOSP ROMs I support, I add a pre-reboot-recovery trigger "echo "1" > /data/.recovery_mode"

You can also manually place that file via a "Reboot Recovery" button in your APP and then execute a regular reboot.
[Xoom Android Development] Hashcode:
I don't want to step on runandhide05's toes or hamper his efforts to bring a recovery/boostrap to the Xoom2/Xyb... but would you guys be interested in trying a version of Safestrap?

I just recently finished the tablet layout edits and tested them in another device.

I'm sure with some minor tweaks, I can probably get it working for the Xoom2.
[Xoom Android Development] jeffcavicchi:
Yes - the more people working on this the better. More options are always helpful too. If you need a tester, please let me know.

I like the idea of Safestrap - I have never used it, but from what I have read on your site it seems pretty cool.
[Xoom Android Development] FCN:
I'd love to try it out. As I had told you on Gtalk, I've SBF'd my XYBOARD 5 times in the past two days, so what do I have to lose?

I'm sure others would, too. Who wouldn't want a MultiSlot TWRP based recovery?
[Xoom Android Development] nchantmnt:
sure sign me up for that, too ;)

i have been an will go on testing for runandhide05 as much as i can, and i sure be willing to test for you too ;)

nchantmnt at googlemail.com

ps: i can top that: had to tear my tab apart and charge the battery externally last week due to corrupted system and low bat XD
[Xoom Android Development] Rennert:
Yes Safestrap are beautiful;) i use it on my Droid4

...Tapatalk
[Xoom Android Development] lucasarran:
I'm up for it too. More the developers helping eachother, the better. That's what I think. :)
[Xoom Android Development] taquion12:
count with me to safestrap testing, and of course with the awesome work of runandhide05,maybe putting all those things together, we can even have something better than each ones, jejeje hands on!

Enviado desde mi XT910 usando XDA Premium HD app
[Xoom Android Development] mikeymike75:
I will say yes on safestrap for this device as long as runandhide05 is able to get in on the development of it. He has put in a ton of work on this deal. I have tested many versions that were not posted in this thread, so his efforts are even greater than what some of you see here. If it is not possible for him to be involved, I respectfully pass.
[Xoom Android Development] runandhide05:
Good news guys!!

We have r/w on system in recovery now!!

just need to iron out a few things

Really all we have left is deployment ( finishing touches on the app)

And getting system to unmount in recovery. Everything else looks right on
[Xoom Android Development] chumboy:
wow! Yes, Yes...with one caveat...must work with runandhides work.

I use SafeStrap on my Droid Razr and it's very good.

The newest version lets you make up to 4 virtual ROM slots. meaning you can partition the space to accept 4 different roms. once you've loaded a different rom into each slot, all you have to do to change roms is boot into safestrap, click the rom slot, click "activate" and reboot.

Would this be used in conjunction with Runandhides efforts? we've come so far and he's put in a ton of time.

if it won't work with runand hides work, then i vote no...i'll stay with runandhide.
[Xoom Android Development] jeffcavicchi:
Outstanding!
[Xoom Android Development] FCN:
Guys, I hope they can work together, too. But, many devices have multiple Recoveries.

Like, If someone prefers CWM, They go with Runandhide's, If they prefer TWRP, They go with HashCode's.

But yeah, It would be very nice if they could work together.
[Xoom Android Development] jeffcavicchi:
Sold as the Xyboard 8.2 Wifi in the United States, but about tablet says Xoom 2 ME MZ607.
[Xoom Android Development] nchantmnt:
It's the same as the xoom 2 famklynedition in europe, but in us it's sold as the 8.2 inch version of xyboard since you dont have the xoom2-naming. No idea though why they didnt change that in the model name.

Now i'm on my way home so i should have all day left for testing and approaching building the first rom. Any suggestions?

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] taquion12:
better late than never

Well,I was outside my hometown due work, but here its the image of what shows my Xoom 2 Me brazilian version with Honeycomb with the xoom2recovery_v0.0.2.apk, I couldn't find anything in my cache Folder to send you.

there´s a complete set of fast boot files (Latin American Versions) in Droid-developers´s site.

uncompressing them should be the IMG files, If someone are Interested. http://sbf.droid-developers.org/xoom2/list.php
[Xoom Android Development] Rennert:
CWM don't work on german Xoom2 MZ616-32. After install and boot recovery, the xoom2 goes to power off. When i plug the charger it hangs on boot logo. When i deinstall the recovery, the charge only mode also isn't work.

...Tapatalk
[Xoom Android Development] runandhide05:
we know... and so should u if you read the posts, thanks for the report.

and if you read the OP it modifies the charge only mode file at /system/bin and simply uninstalling the app wont undo that. you need to replace the new bin with the original one to have the charge only mode working again.
[Xoom Android Development] Rennert:
Thanks, now i flashed the ics fastbootfiles without erase data.

In future i backup the file in system/bin

...Tapatalk