yashsingh1/xdaforums huggingface dataset:
[Xoom Android Development] nchantmnt:
for 2nd init i really lack the knowledge of how to do this, but atm trying to get to know more about it. is this even working on ics?

internal storage should be mtd if i'm not totally wrong...

the bootloader is locked, we are sure about that and about the init... will upload it for you later... first got to recharge^^

what kind of approach is it that you have in mind? i may lack the knowledge about bootstrapping etc, but i'm eger to learn ;)
[Xoom Android Development] mikeymike75:
The 2nd init should not be a problem. Internal storage is /mnt/sdcard/ external drive can be loaded on /mnt/usbdisk_1.0/

The bootloader is locked, Motorola has not released this yet. However, I did decode a file that had the agreement for unlocking the bootloader so this leads me to believe it will happen in the future.

My knowledge of bootstrapping is limited as well but I do know that if Motorola's system catches anything of another system trying to run, it will reject it and either bootloop or reboot. The secret is in the boot stage not interacting with factory boot at all.
[Xoom Android Development] chumboy:
wow...you guys are talking way over my head. i understand somewhat, but at this time, i can't contribute anything but funding.

and emotional support !!!

let me know what a non-coder like myself can do to help you.

so far, we have $175 available to dev who creates recovery.
[Xoom Android Development] chumboy:
Devs,

Just want to make sure you dev's are working on the Xyboard 10.1" with LTE connectivity and not just the wifi only device.

It's the Xyboard MZ617 7444.
[Xoom Android Development] luxxx123:
Realy guys i don´t want your money :D

On my phone we got a CWM recovery via hijacking battery_charger.

That means when your phone is of and connect it to any kind of power supply it normaly starts this huge battery loading animation.

We simlinked this battery_charger script to a folder that excutes the CWM.

So everytime i shutdown the phone and connect it to powersupply i´ll enter CWM.

I´m quite sure this will work on your tablet, too.

I just can help you with this kind. When your aim is to get a real 2nd Init i can´t help you,

because there my knowledge ends too.

But for beginning i think it would be nice to have any kind of custom recovery, or?

To beginn i realy need the init scripts guys. Open your filebrowser and go to internal storage root, there they should be.
[Xoom Android Development] nchantmnt:
Sorry was abroad for some days ;)

Yes, any kind of custom recovery would be nice. Here you go with the init.

Any information on how you are going to do this would be nice so we can alter this to our needs (thinking about some bootloader to choose weather to load cwm or automatic just charge after some seconds would be nice)

What are the limits of this way? Guess we will not be able to flash kernels, right?
[Xoom Android Development] nchantmnt:
First off, sorry for double-posting ;)

having read myself enough into 2nd init i guess there will be no way to get this running on our xoom2/xyboard models, as the devices need to be running some froyo-kernel to get this working. Maybe even a tweaked gingerbread-kernel can be used for 2nd init, but it should not be possible with honeycomb or even ics. So i guess our best bet is to concentrate on the option luxxx123 is going to give us.
[Xoom Android Development] chumboy:
Wow...interest seems to be picking up! That's great.

the Xyboard is really a pretty good tablet.

What you guys are discussing is slightly over my head so i'll just lurk and help when i can.
[Xoom Android Development] mikeymike75:
The kernel version is 3.0.8 Does froyo go into the 3's? I thought it stopped at 2.6.
[Xoom Android Development] nchantmnt:
Youre right... Froyo stopped at 2.6 but if i recall it correctly the hijack of 2nd init doesnt work with newer kernel versions. But i would be glad if i was wrong here :D

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] mikeymike75:
I tried pulling the 2nd init and hijack from my Droid 3 which has Hash's Safestrap. I customized a few things for my Xyboard and put the files in place but it put it into a bootloop. You just may be right.
[Xoom Android Development] runandhide05:
I'll save you guy some trouble, boostrap and safestrap won't work, bootstrap hijack method will not work, bootstrap is open source and you can find all the stuff on github by koush, safe strap by hashofcode will not work, it utilizes the same hijack binaries of bootstrap, this is also open source on his github,

Both can be built from the source, with the recovery files build from cm9 or cm7 .

I have built the recovery and the bootstrap they simply do not work.

That said i have gotten rid of my two (I even at one point offered to send one of mine to a known developer, not one took me up on the offer that's why I learned how to do it myself.

Now someone here brought up a way that peaked my interest, syslinking the charge while battery off script to a custom script to boot into a custom recovery' (cwm or twrp) this seems like the most likely at this could be done.

Someone with some time could find the script in question and post it I'm sure myself or someone else could get something going.
[Xoom Android Development] luxxx123:
Thats what i´m talking about and i´m quite sure that it´s gonna working.

I just need the init script.. all.

I also can tell you how it works and what required.
[Xoom Android Development] lucasarran:
Where can it be found? Github? :)

Sent from my HTC Chacha with Beats Audio
[Xoom Android Development] luxxx123:
Good question, i guess nowhere :D

The thing is my phone, the motoluxe, is the only one that use it i think.

It got developed by some dev´s of angeeks.com, but they won´t to be mentioned, so everytime the results

of their developing gots uploaded by the same person, who knows nothing about.

And so we don´t have a repo or something like that.

But.. i have the code out of the APK that shows how it gets installed:

String str1 = this.this$0.getFilesDir().getAbsolutePath();
String str2 = str1 + "/battery_charger";
String str3 = str1 + "/load_recovery";
String str4 = str1 + "/pre_recovery";
String str5 = str1 + "/recovery";
String str6 = str5 + "/sbin/recovery";
String str7 = str1 + "/busybox";
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append(str7 + " mount -o rw,remount /system; ");
localStringBuilder.append(str7 + " mount -o rw,remount /hidden ; ");
localStringBuilder.append(str7 + " rm /hidden/*.iso ;sync; ");
localStringBuilder.append(str7 + " cp " + str2 + " /system/bin/battery_charger; ");
localStringBuilder.append(str7 + " cp " + str6 + " /system/bin/recovery; ");
localStringBuilder.append(str7 + " cp " + str3 + " /system/bin/load_recovery; ");
localStringBuilder.append(str7 + " chmod 777 /system/bin/battery_charger; ");
localStringBuilder.append(str7 + " chmod 777 /system/bin/recovery; ");
localStringBuilder.append(str7 + " cp " + str4 + " /system/bin/pre_recovery; ");
localStringBuilder.append(str7 + " cp -R " + str5 + " /hidden/recovery; ");
localStringBuilder.append(str7 + " chmod 777 /system/bin/load_recovery; ");
localStringBuilder.append(str7 + " chmod 777 /system/bin/pre_recovery; ");
localStringBuilder.append(str7 + " cp " + str7 + " /system/xbin/busybox ;");
localStringBuilder.append("cd /system/xbin/;busybox --install -s . ;");
localStringBuilder.append("sync;reboot -p; ");
AlertDialog.Builder localBuilder = new AlertDialog.Builder(this.this$0);
localBuilder.setPositiveButton(17039370, null);

and so on...

Doesn´t look that hard to rebuild it on a other device.

BTW: The source code looks to be writen by tenfar. If asked him if he could upload to github, but i´ve never got a answer.
[Xoom Android Development] runandhide05:
Would u pm or email me that apk?

My username at gmail dot com
[Xoom Android Development] ForevermanRGPC:
I've used this type of recovery on the X2 and it works great. You can find all the info in their forums. I've since moved on to the GS3 but still own a XYboard and now I'm interested.

Sent by my NO signal but unlocked GSIII
[Xoom Android Development] runandhide05:
OK looking over that apk it seems very doable,

I don't have the xyboard anymore but let me see if I can get ahold of the recovery(the fake recovery flask zip). Once incorporated into the apk, change some mount points in the scripts and it should work, as long as the xyboad has the same method for charging while power off state it should work.

And if i can't find the zip ( which may still be on my laptop)

I need a few things,

Checklist

Read out of the /proc/partition/

A dd copy recovery img and boot IMG. (If I need to make a cwm fake recovery zip again)

and that should do it.
[Xoom Android Development] ForevermanRGPC:
I emailed you the X2 version

Sent by my No signal but unlocked GSIII
[Xoom Android Development] runandhide05:
wasnt the X2 version simple a bootstrap? i have all that stuff, which again will not work on the xyboard/xoom2
[Xoom Android Development] ForevermanRGPC:
http://xdaforums.com/showthread.php?t=1318083

It was a hijack

Edit: there was original hacked recovery and later on the patched/modfied bootstrap. I still use the original on my sons phone.

Sent by my NO signal but Unlocked GS3
[Xoom Android Development] runandhide05:
ya that hijack method will not work,

what we are trying here is to basically syslink the charge battery script to a script that will lunch the recovery CWM,

the hijack method on bootstrap or safestrap simple hijacks the boot sequence, loads the fake recovery zip and enters custom recovery. that method does not work on the xyboard/xoom2.
[Xoom Android Development] ForevermanRGPC:
I think i understand what your saying. The only way to get into recovery on an X2 is to power off the phone an plug it into a wall charger and its scripted to go directly to the hacked recovery prior to any boot process.

Or maybe I'm not understanding

Sent by my NO signal but Unlocked GS3
[Xoom Android Development] runandhide05:
ok i got ya, i thought it was like all the others DX and droid2 and was the normal method. but if thats how it worked then yes that is what we are trying here.

also i need anyone here to look for the defult battery_charge script on their tab and tell me where it is at. good place to start woulb be at /system/bin
[Xoom Android Development] runandhide05:
i need some files.

Here's instructions

If u r using tapatalk open in browser and it will make more sense, in the app everything looks confusing

if your partitions are not the same as below change the mmcblk1pXX to your correct block

( to find your block partitions in adb shell or terminal on device

"su" enter

"cat /proc/partitions" enter

now enter theses commands in adb shell or terminal

dd if=/dev/block/mmcblk1p11 of=/sdcard/boot.img

dd if=/dev/block/mmcblk1p12 of=/sdcard/recovery.img

once the img has been created do these upload them and let me know thatnks
[Xoom Android Development] runandhide05:
OK so I've got one person searching his tab for the battery_charger script and hes not finding anything... anyone else want to look around.
[Xoom Android Development] nchantmnt:
so i'm back (not much time atm)

right now uploading imgs and searching for battery_charge...but so far only found "charge_only_mode"

is this the one you need?

furthermore here are the init and uevent-scripts. luxxx123 requested them and maybe they can help you either ;)
[Xoom Android Development] runandhide05:
Thanks for the files, as soon as I have a free moment I'll get the custom recovery build, ( I don't have the files from the last time I built them).

The only other question I have would be to the gentleman with the Motorola that used this method is. Before u had this type of hijacked recovery what was the original battery_charger file, do u have a copy of it before it was changes to launch the recovery? I would like to get my hands on it to look thru it. If u don't have it backed up somewhere do u have a custom ROM or stock ROM somewhere I can dig through?
[Xoom Android Development] ForevermanRGPC:
I will email mail you the hijack-boot file thats inbedded in all the Roms used in conjuction with their recovery due to the size. If I remember correctly I belive it uses the charge only mode.
[Xoom Android Development] runandhide05:
thank you for the email, however i dont think we are on the same page.

What i want is the STOCK unedited un modified original battery_charge file on a phone that does not have any modifications to it.

what i want to do is compare the hijacked/rewritten/symlinked battery_charge to that of the charge_only_mode file to see if this method would work. if the two files are the same then i can simply rework the charge_only_mode file. however since we do not even know if the charge_only_mode file on the xyboard/xoom2 is the accurate file that boots the core minimums to allow the battery to charge in the power off state then symlinking that file to start the recovery will be a waste of time. there are two ways we can see if that is in fact the correct file, A) compare it to the stock file on that motorola phone, or B) ONLY DO THIS IF YOU HAVE OFFICIAL FASTBOOT FILES AVAILABLE FOR YOUR DEVICE BECAUSE I WILL NOT BE RESPONSIBLE IF YOU BRICK YOUR TAB, WITH FASTBOOT FILES IF YOU SOFTBRICK YOU CAN RESTORE WITH FASTBOOT FILES if you or anyone wants to they could rename the charge_only_mode to charge_backup_only_mode and reboot device, then locate the file, ensure that its still names charge_backup_only_mode ( do this to ensure there are no scripts that rebuild that file on each boot(like stock recovery scripts)) if the file is still as you renamed it, then power down tablet, plug it into a power supply and see if it starts to charge, if it does, then this is not the file we are after. it the tablet does not begin to charge then we are working with the correct file and i can proceed.
[Xoom Android Development] runandhide05:
email me for testing

i WILL NOT TALK YOU THROUGH HOW TO INSTALL ANYTHING, HOW TO FASTBOOT TO RESTORE BICKED DEVICES, PLEASE ONLY PEOPLE WILLING TO HAVE TO RESTORE A SOFTBRICKED DEVICE IF ALL GOES WRONG

what i need, if you are not able or willing to do the following EXCATLY dont bother me please.

FIRST!!!! make a copy of /system/bin/charge_only_mode file and keep for safe storing OFF YOUR DEVICE! if this does not work it will remove that file and replace it with mine. so your tab will not charge while off with this script in its place, with a safe copy you can replace it if app/hijack false to work.

install apk

launch app

plug device into OEM tablet charger (not usb)

follow onscreen instructions

if tablet boots into custom recovery DO NOT DO ANYTHING WHILE IN RECOVERY simple reboot and report back to me im still waiting on the correct recovery.fstab

email

my name at gmail dot com

Edit:

No takers? All the requests here And across the interwebs but nothing..
[Xoom Android Development] nchantmnt:
It's morning here in germany, i will try when i come home. Have backups and fastboot files ready. Will report back later

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] nchantmnt:
Atm on my way home so only tested renaming the file. So far kt looks good. The original file hasnt been recreated on restart. More to follow when i got home

Gesendet von meinem XOOM 2 mit Tapatalk 2

Edit: send me the apk via email to myname at googlemail. com
[Xoom Android Development] runandhide05:
Email sent
[Xoom Android Development] nchantmnt:
sorry but am unable to install the apk... whenever i try my tab just tells me that it didn't install it.

installation with adb cmd tool tells me that it's an issue with cert:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

cheers

News so far:

new signed apk installs without problem, but when i restart to recovery through this, i get stuck on bootlogo. same thing while i try to just charge (with charge_only_mode renamed) but can hard reset without problem and then reboot
[Xoom Android Development] runandhide05:
Making progress still working on a few things. (When I can at work ATM) but I feel we r getting close.
[Xoom Android Development] runandhide05:
I think my German mate is asleep for the night. Anyone want/willing to test and report back?
[Xoom Android Development] taquion12:
Hi I can try tomorrow morning I left my test one at the office, That's helps?

Enviado desde mi MZ607 usando XDA Premium HD app
[Xoom Android Development] runandhide05:
If u are able to provide usable feedback anything helps,
[Xoom Android Development] runandhide05:
Public links got disabled, and I'm off to bed. So far only one person has seemed interested in this enough to test so I'm just posting it.

Follow the precautions I stated a page back. And have at it.

Tapatalk 2
[Xoom Android Development] nchantmnt:
Yes i was done for that day :P

Ill be at my girlfriend's in about 3 hours and maybe get some time for testing. Will report back then.

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] nchantmnt:
great news everybody,

have uninstalled apk and installed new version.

tablet boots into custom recovery, either from apk or from charge only mode now.

after that the tablet reboots back to normal system like a charm.

thanks a lot ;)

how can i help from here?
[Xoom Android Development] runandhide05:
People don't use this just yet, I still need to build the correct recovery for device
[Xoom Android Development] lucasarran:
Thank you runandhide and others who were involved! :)
[Xoom Android Development] runandhide05:
Your welcome I'll release it soon.. just need some finishing touches
[Xoom Android Development] lucasarran:
Ok, that's great. Once its polished, we will need to find some ROM developers who could build us a ROM from source. :)

Edit: Forgot to ask, does this work on any model? Including Xyboard?
[Xoom Android Development] runandhide05:
Not saying noone will but your going to hard pressed to find a dev for a none nexus device to build blind (aka not having it themselves) because u need many of the proprietary files which u can only pull from the device ( with the exceptions of nexus devices)

I am beginning to regret selling my two. :(

Also if u or anyone talks to potential people MAKE SURE they have to include this method baked into their ROMs because if u flash a ROM it will overwrite this hijack method and say its a bad ROM or flashes bad or whatever you will be stuck without recovery. But I'll go deeper into this once I post the apk.

In fact I'll probably create a flash zip that can be flash in the same recovery session that will preserve recovery... but we will discuss this more so later

It should work on xyboard and xoom2s but not confirmed yet
[Xoom Android Development] nchantmnt:
I guess a start would be a pretweaked stock rom with beats audio, init and buildbrop tweaks themed, etc. Furthermore i guess it will be a hard task porting cm, etc as were unable to edit /boot partition. I guess after finished recovery our next step would be kexec for alternative kernel, so we can boot some cm based roms. But as always correct me if i'm wrong :rolleyes:

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] mikeymike75:
I have been off for a few days. It looks like a lot has happened. What can I do to help? I have the fasboot files for the 617.
[Xoom Android Development] runandhide05:
Not at the moment but if u want to send me your email I'll have more testing soon as I the mount points setup. Working in the field today so it will be later tonight
[Xoom Android Development] runandhide05:
Can I get a boot IMG of a xyboard please.

I have one from A xoom2/Xoom media edition but I noticed some possible difference from what I remember my xyboard may have been. I would like to double check a few things.

Also on the news front I have the recovery built with proper mount points and about a few minutes from needing some more testers

---------- Post added at 08:49 PM ---------- Previous post was at 08:31 PM ----------

ok lets test some stuff.

first do not get carried away and start doing crazy things, just simple do as instructed.

first UNINSTALLED ANY APP FROM ME FROM EARLIER TESTS

then install this xoom2recovery.apk - 2.29 MB

then download this xoom2testzip.zip - 124.53 KB

then follow run app, allow/grant SU

then click enter recovery

once in recovery see if you can install from sdcard, if so install that zip ( dont worry its just placeholder zip, all it will do in install a txt file in /system and /system/app labled placeholder.txt

report finding. also I MUST HAVE your recovery log to ensure everything loads poperly no matter WHAT. this is where i MUST have feedback from. even if all you do is enter recovery then try to flash or even if you enter recovery then get out of it ( which u shouldnt, your testing after all for me right? lol)

this recovery log i speak will be at /cache/recovery/last_log

it will only be there once booted, so after recovery session and you boot back to android go grab that log and send her my way please.

thanks
[Xoom Android Development] taquion12:
I tried the last apk and it partially works in mz607 brazilian version (xoom 2 me), clicking the apk and pressing the recovery, shows a black screen and when i plugged in charger, showed a half screen recovery, which i can navigate but couldn't select any option using pwr+ volume down during 12 seconds was in Android again, i'll send you the log, Awesome work my Friend, Bravissimo

Enviado desde mi MZ607 usando XDA Premium HD app
[Xoom Android Development] runandhide05:
thanks uninstall that one and try this

xoom2recovery_v0.0.2.apk - 1.87 MB

ok im stating a thread to get a little more feedback, i feel that i am at a point where this is just getting buried in here,
[Xoom Android Development] taquion12:
Same thing

Enviado desde mi XT910 usando XDA Premium HD app

---------- Post added at 10:58 PM ---------- Previous post was at 10:52 PM ----------

Did I mentioned I'm running over Honeycomb?, just in case!

Enviado desde mi MZ607 usando XDA Premium HD app

---------- Post added at 11:09 PM ---------- Previous post was at 10:58 PM ----------

another thing, I checked my cache folder and there's nothing there, I'll give a Second try tomorrow, Awesome work again!, thanks.

Enviado desde mi MZ607 usando XDA Premium HD app
[Xoom Android Development] runandhide05:
Can u please provide picture of half recovery u speak of? Does it look like the one posted a page or so back?
[Xoom Android Development] nchantmnt:
On my way off to work, so gotta test this afternoon.

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] nchantmnt:
I need you to upload the recovery for xoom2 again, the link you sent me seema to be broken.

Gesendet von meinem XOOM 2 mit Tapatalk 2
[Xoom Android Development] runandhide05:
There is a thread in development its OP has all links and instructions there

http://xdaforums.com/showthread.php?t=1941135
[Xoom Android Development] mikeymike75:
log

I installed the files, booted into recovery, but it could not mount the sd card. One thing I was trying to figure out is what tells recovery to look at /sdcard. I can mount a storage device to usbdisk_1. 0. Since that is removable it seems we would to install from there if possible.
[Xoom Android Development] taquion12:
Sorry....

Sorry for my late answer (I was outside my city for work) here attached some pictures abot "Half Screen" mentioned some posts before
[Xoom Android Development] chumboy:
been out of town for a while and wow...some serious work been done here!

i've never followed the discussion of a few devs as they're trying to figure out something this complex.

it's great to see the teamwork going on and the respect for the others abilities.

very creative!

looks like you're close.

i'll be lurking for your next posts.....:laugh:

thanks and great going!!!
[Xoom Android Development] coolguy71261:
Come on
[Xoom Android Development] runandhide05:
Is that "come on" is like what happened? Why isn't anyone continuing this then you probably haven't seen this

http://xdaforums.com/showthread.php?t=1941135
[Xoom Android Development] lucasarran:
I think a moderator needs to close this thread, looks like its confusing some people :)
[Xoom Android Development] efrant:
Thread closed.