Here is where you need to look.
Here you go, but like I said, I dont know if its right yet and I dont know which is which yet, but I think the first one is the boot and the second is the recovery:
/dev/block/mmcblk3p1
And
/dev/block/mmcblk3p2
If you wanna go at it, you will need linux to decompile and recompile the image files, but you can dump them through the terminal on the device.
Thanks bro! You found the files, your the man! This is getting good!
From my rooted Streak 7
Again, thanks for the appreciation. Its guys like you that keep me working at it.
Sent from my SGH-T959 using XDA Premium App
if u list commands you use to de-recompile i can give it a try i run linux
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
binarybishop said:
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
Click to expand...
Click to collapse
yeah im going to need some coffe for this lol
@binarybishop what files do you have already etracted because i just realized i cant do anything with my device being stuck dell is sending one next week to replace this one
Guys,
I am just asking a question,
I got this from
/catche/recovery
"Starting recovery on Sat Jan 10 13:12:08 2009
framebuffer: fd 4 (800 x 480)
Removing OOB files
I:Mount SDCARD mmcblk3p14
Formatting DATA:...
Ione with formating of device
Formatting CACHE:...
Ione with formating of device
“
Does this mean that the recovery mount point is actually mmcblk3p14?
I just want to have some gurus to confirm this information is total irrelavant, or it actually means the devs at dell used to test the recovery this way.
Thanks,
I tried to copy it into sdcard, it is larger than 4.2gb, and cat does not work somehow,
adb shell cat /dev/block/mmcblk3p14 > /sdcard/sdcard2/p14.img
gives me an error message saying "the spedified path is not found..."
thanks,
I have all 17 mounts dumped, but,
/dev/block/mmcblk3p1 and /dev/block/mmcblk3p2 are the boot and recovery mounts, just cant guarantee which of them are which.
Its not recovery. What I think it is is just a mount backup of EVERYTHING on the streak. I was able ti dump the image, but I am about 89% sure that the p1 and p2 are the boot and recovery. But the boot is actually what I need to get the CWM recovery image built. I am working on building the android tree but its just taking a long time to dowbload on my ****ty tehtered throttled internet connection. I just hope I dont use the wrong image file or I will be ****ed. Lol
binarybishop said:
Its not recovery. What I think it is is just a mount backup of EVERYTHING on the streak. I was able ti dump the image, but I am about 89% sure that the p1 and p2 are the boot and recovery. But the boot is actually what I need to get the CWM recovery image built. I am working on building the android tree but its just taking a long time to dowbload on my ****ty tehtered throttled internet connection. I just hope I dont use the wrong image file or I will be ****ed. Lol
Click to expand...
Click to collapse
Can you try and do it from starbucks! Lmfao! For real, lmfao! **** that throttled ****! Ha!
From my rooted Streak 7
Ok. In case you guys aren't aware of my situation:
I'm a Soldier in the US Army. Im going to deploy to Iraq VERY soon. Obviously for security reasons, I cannot tell you when. I will however let you guys know once I am in Iraq after I am already there. After I leave the states, it may be a while before I can get back on here because alot of things have to be done once the bird lands and we get off the plane over there.
Well, I am in El Paso with a unit that is in the same Brigade that I am assigned to at Fort Hood, TX. I only came here so that I could do the training with this unit so I can deploy with them. Then after the deployment, I will go back to Fort Hood to my original unit. I am here because I possess special skill sets that this unit needs for their mission in Iraq. So for the time being, I am in some ****ty ass barracks with no tv, and no internet. My wife has my car back at Fort Hood, so unless I wanna get a taxi for 15 bucks and go to Starbucks and hang out with a bunch of corporate hippie douche bag pacifists, then another 15 bucks home, and I,aint doing that.
Well just want you guys to know my situation.
I just came back from Baghdad!
Sent from my Dell Streak 7 using XDA App
Still waiting on downloading the repository. Anyone else got this far yet?
Sent from my SGH-T959 using XDA Premium App
Oh yeah, dont forget. Unless you live in one of those backwards states like arizona, no offense, time went forward an hour last night.
Sent from my SGH-T959 using XDA Premium App
The only bad part is there is it doesnt show a percentage of completion for the entire repository. It shows a percentage for,each branch of,the tree, but not the entire tree, so I have no idea when it will be done.
i tried to download repo but i cant connect to it
Its not a normal apt-get download. Use this command. Well first go here to know how your machine must be setup first:
http://source.android.com/source/download.html
Well, actually go here first to see how to set up repo first, then go to the link above:
http://source.android.com/source/git-repo.html
When you are done, you dont need to get the manifest.git, you can go straight to koush's directions after you get your machine setup.
Sent from my SGH-T959 using XDA Premium App
binarybishop said:
Its not a normal apt-get download. Use this command. Well first go here to know how your machine must be setup first:
http://source.android.com/source/download.html
Well, actually go here first to see how to set up repo first, then go to the link above:
http://source.android.com/source/git-repo.html
When you are done, you dont need to get the manifest.git, you can go straight to koush's directions after you get your machine setup.
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
koush directions ?
Related
Howdy all XDA Folks!
To you, I present ClockworkMod Recovery on the LG Revolution 4G
After many hours of late-night coding and testing by some fearless testers who, without though for their device's safety, allowed me to test building ClockworkMod Recovery despite the fact that I don't actually own this device!
First of all, let me get a few things out of the way:
Credits:
Special thanks to the following people for helping out in one way or another...
Majorpay
birdman
Nemith
Fattire
STACKS (initial testing)
Koush / CyanogenMod team for ClockworkMod
Super special thanks to those who've donated so far!
Click to expand...
Click to collapse
General Information
This is BETA software! There are no guarantees that this won't instabrick your device. That's not to say it hasn't been tested, but if you happen to not follow directions or just have bad luck in general, I can't be blamed for your misfortune.
Click to expand...
Click to collapse
Requirements
To use this, you must:
be rooted
have ADB shell access to your phone; and
be able to follow directions EXACTLY
Click to expand...
Click to collapse
Downloads
To download the first release of ClockworkMod Recovery for the LG Revolution 4G, use the following download links:
[SERVER 1] http://bit.ly/iVa1Kx
[SERVER 2] https://github.com/downloads/thecubed/android_device_lge_revolution/recovery-cwm-pr1.tar.gz
Code:
# md5sum recovery-cwm-pr1.img
a1c61d06fa0f029411cf4cde44639b3f recovery-cwm-pr1.img
Check md5sum before flashing!
Click to expand...
Click to collapse
Instructions
This is what everyone's been waiting for, isn't it?
You sure you don't want to take a jog, or get some fresh air first?
Okay. You're sure. I won't try to change your mind.
I will, however admonish you-- follow these directions EXACTLY.
If you don't, I can't guarantee that your phone will work afterwords.
To begin, download the .tar.gz file from the above links, and extract it somewhere easy, like c:\android (on windows) or ~/android (on linux/OSX)
Let's check the md5sum of the extracted file.
If you're in linux, run
Code:
md5sum recovery-cwm-pr1.img
It should match EXACTLY the md5sum posted under the download link. If it doesn't STOP. You have either not extracted it correctly or the download was bad. Try again until you get the correct md5sum.
If you're on windows, you'll have to find a md5sum application to download.
Once you've got the file extracted correctly, we need to copy it to your phone.
You can either put it on your Internal SD card using the storage mode over usb, or through ADB.
If you choose to do it through ADB, just use
Code:
adb push <path/to>/recovery-cwm-pr1.img /sdcard/
Make SURE that you copy the .img file, not the .tar.gz file!
After you have the recovery copied to your SDcard, it's time to install it on your phone.
ADB shell into your phone.
Once you're adb shell'd into your phone, make sure you have superuser access by typing
Code:
su
and your prompt should change from a "$" to a "#"
Now, let's backup your original recovery image, just in case. Issue
Code:
cat /dev/block/mmcblk0p14 > /sdcard/recovery-original.img
to back up your original recovery image for a rainy day. Keep that safe!
Once we've got that backed up, let's copy over the new recovery image.
Code:
cat /dev/zero > /dev/block/mmcblk0p14
cat /sdcard/recovery-cwm-pr1.img > /dev/block/mmcblk0p14
You'll get an error on the first command, something like "no space left on device". That's okay, we're just clearing out the orignal recovery image.
Now, we MUST check to make sure that our push of recovery worked. Let's run md5sum on it.
Code:
busybox md5sum /dev/block/mmcblk0p14
Should return back the same hash as above in the download section. If it does not, STOP! Post here explaining, and get a developer's attention ASAP.
Lastly, let's make a backup of your MISC partition. This is not required, but is HIGHLY recommended.
Code:
cat /dev/block/mmcblk0p8 > /sdcard/p8-backup.img
This helps us incase somehow your phone gets gunged or weird things happen.
Congrats! You now have ClockworkMod Recovery installed!
Click to expand...
Click to collapse
Accessing Recovery
To access recovery, power off your device and hold VOLUME DOWN and POWER until you see the LG logo.
You will be asked to confirm a 'wipe' of your device. Don't worry! Our custom recovery ignores this.
Your datas will be perfectly safe.
Click to expand...
Click to collapse
Pictures!
Here's a few screenshots from Majorpay's device:
http://i.imgur.com/DYfNK.jpg
http://i.imgur.com/Q7qE4.jpg
Video!
How to access ClockworkMod Recovery Youtube Video: http://www.youtube.com/watch?v=FLb5VJTEDL8
Click to expand...
Click to collapse
Donation Information
I love to develop. I don't do this for money, I do it just for the "thanks".
However, I don't actually own a Revolution-- I'm not even on Verizon!
If I can get enough donations together, I will have my friend purchase the device on contract for $250 at a Verizon retail location.
With that device, I plan on doing quite a lot- creating stock 2.2 roms, attempting to port CyanogenMod7 and a bunch of other awesome things.
Please don't feel obligated to donate, but if you feel like it, you can click the button below to donate any amount you wish to me.
Thank you in advance!
Click to expand...
Click to collapse
Contact Me!
Got an issue with this release? Post here!
Want to contact me privately? PM me on XDA or Rootzwiki
Twitter your thing? Follow me, @tylerfixer on Twitter
Join the official LG Revolution dev IRC channel at freenode on #lgrevolution
I'm IOMonster on IRC!
Click to expand...
Click to collapse
Technical information
Breakdown of the LG software posted by me here: http://www.wiki.rootzwiki.com/wiki/index.php/LG_Revolution_Software_Breakdown
Source will be released as soon as I figure out how to merge all my changes to recovery/minui/graphics.c into my device directory
Click to expand...
Click to collapse
A bunch of thanks for all your hardwork guys...
thats great news, so when and how do we get it!!!!!!!!!!
I'm sleeping now, so most likely tomorrow afternoon
In all honesty, I need to do a few more "sanity checks" to make sure that this is 100% safe to release. Right now it's not.
The sanity checks won't take very long, I just have to sit down and think for a while--but right now my brain's out of "go-juice", so I'm going to head back to bed
Great Job Guys!! Ready to install it.
cubed types in his sleep! Cubed, I re-uploaded the copy of p8 I have on my dev box and ran an md5 between the two locations, so if it's still off, I don't know what to say.
Good afternoon all!
I have a few chores to run today, but as soon as I get back, I will select a few testers on IRC to begin round 2 of testing.
The problem I am facing (very minor issue) is that the MISC: partition image (p8) seems to have shrunk by 1 byte (yep, majorpay- the dump is 1 byte off, everything's shifted by 1 byte to the right).
I'd like to see if this happens reliably on other devices. There is no bricking risk, the only thing I ask is that you have your phone rooted, you have knowledge of the linux command prompt, and are willing to let me teamviewer in to your desktop if something goes awry.
Thanks everyone for your patience and kind words
thecubed said:
Good afternoon all!
I have a few chores to run today, but as soon as I get back, I will select a few testers on IRC to begin round 2 of testing.
The problem I am facing (very minor issue) is that the MISC: partition image (p8) seems to have shrunk by 1 byte (yep, majorpay- the dump is 1 byte off, everything's shifted by 1 byte to the right).
I'd like to see if this happens reliably on other devices. There is no bricking risk, the only thing I ask is that you have your phone rooted, you have knowledge of the linux command prompt, and are willing to let me teamviewer in to your desktop if something goes awry.
Thanks everyone for your patience and kind words
Click to expand...
Click to collapse
Since it didn't happen between Dev and FTP, where do you suppose this happened?
I'm thinking the cat command may have messed with it, I'll try pulling it using dd next time.
I think I'll just grab an image of it within android (FACT_RESET_6), and another from within recovery (FACT_RESET_3) to get a better baseline, since the p8 image we have now is from a while ago, let's see if maybe the original image is bad.
I'm just not sure why the whole image would shrink and suddenly be offset by 1 byte... it's strange to do all that (shifting everything by 1 byte) just for recovery mode...
Clearly it didn't affect the operation last night, so it must have been on the pull. So in need of more testing tonight? (hopefully earlier)
And just to set your mind at ease that we may be cluttering up your release thread, I'll go back and edit on release with "Woots!!!" or something. I probably should have used PM. My bad, just thought of that.
I'm with my friend right now, he's probably going to get this phone either today or tomorrow.
We'll go for another round of testing tonight around 7pm Pacific time.
To all who've donated so far--thank you so very much! I will be getting you guys a customized build with any features you like added (custom colors, background image, you pick) as a thank you.
I'll post here when I get home and am ready to do the final round of testing before public release.
thecubed said:
I'm with my friend right now, he's probably going to get this phone either today or tomorrow.
We'll go for another round of testing tonight around 7pm Pacific time.
To all who've donated so far--thank you so very much! I will be getting you guys a customized build with any features you like added (custom colors, background image, you pick) as a thank you.
I'll post here when I get home and am ready to do the final round of testing before public release.
Click to expand...
Click to collapse
Ready whenever... I'll be hanging out with the daughter until you post in.
I'm back! Head over to IRC whenever you all are ready!
Dont know hiw to get to IRC. Can anyone tell me.Sorry for the noob question.
Sent from my VS910 4G using XDA App
List of fixes for private beta build "recovery-cwm-pr1"
Stuck-in-recovery issue is now fixed, thanks to a strategically added "sleep" command
Cursory test of nandroid backup (not restore) is complete, restore should not brick your device.
CPU governor set to "ondemand" as opposed to "performance" to help alleviate some system stability issues with ADB.
Public release candidate build "recovery-cwm-rc1" will be built here shortly and available for public consumption.
Stick around!
rstout01 said:
Dont know hiw to get to IRC. Can anyone tell me.Sorry for the noob question.
Sent from my VS910 4G using XDA App
Click to expand...
Click to collapse
Head to http://webchat.freenode.net
Set a nickname, and join the channel #lgrevolution and join the fun!
It's released! Wooooo oo oooooooo!!!
EDIT: I will be at the beach tomorrow around 3PM Pacific Time until 8 or 9PM, so if I don't respond, it's because I'm enjoying some well-deserved sunshine
Amazing. I just bought my Revo because of this. You're the man! Enjoy the beach!!
Excellent work! Now I can finally get some much needed rest
Sorry I wasn't able to stick around to do the deodexing. I'll get to that soon. This morning, I didn't wake up on time (4 alarms failed to wake me up), and my daughter almost missed her appointment! Oh well, at least I got 5 1/2 hours of sleep in last night.
Look forward to working again with you in the near future if you're feeling up to it.
My resources are at your disposal if you need a hand. Lets just try to work on getting more human hours into the mix... ha!
(oh, and enjoy your day at the beach!)
I'm back!
If anyone's around, and has questions, I'll be on IRC or you can post here...
Hey everyone!
I am new to everything about android and just rooted my phone a couple weeks ago. I want to install the decrapified rom burin not 100% sure how to do it. I need CWM to do this right? Can I get back to my original rom if I don't like it or something goes wrong? I also hear some users talking about backing up the device. How do we do this? I know that there are lots of questions and I know some person (maybe two lol) could point me in the right direction. Thank you!
Torin
Torin_93 said:
Hey everyone!
I am new to everything about android and just rooted my phone a couple weeks ago. I want to install the decrapified rom burin not 100% sure how to do it. I need CWM to do this right? Can I get back to my original rom if I don't like it or something goes wrong? I also hear some users talking about backing up the device. How do we do this? I know that there are lots of questions and I know some person (maybe two lol) could point me in the right direction. Thank you!
Torin
Click to expand...
Click to collapse
Android Development is not for questions or Problems
Please post in the correct Forums
Moving to General
Torin_93 said:
Hey everyone!
I am new to everything about android and just rooted my phone a couple weeks ago. I want to install the decrapified rom burin not 100% sure how to do it. I need CWM to do this right? Can I get back to my original rom if I don't like it or something goes wrong? I also hear some users talking about backing up the device. How do we do this? I know that there are lots of questions and I know some person (maybe two lol) could point me in the right direction. Thank you!
Torin
Click to expand...
Click to collapse
1 yes, you need cwm to put decrapified
2 once u install cwm, make sure ur battery is full (at least 50%, but i'll just say full) and make a backup using cwm of ur current system
3 see: 2
Sent from my VS910 4G using Tapatalk
S.Meezy said:
1 yes, you need cwm to put decrapified
2 once u install cwm, make sure ur battery is full (at least 50%, but i'll just say full) and make a backup using cwm of ur current system
3 see: 2
Sent from my VS910 4G using Tapatalk
Click to expand...
Click to collapse
Awesome thanks. Now I cant get the adb shell to work. ive done it on my dads phone before so im kinda familiar with it but the sdk still seems to be updating or whatever. Should it work when its finished?
Like when I type "adb devices" it says nothing can be found.
What operating system is ur computer on? Make sure you have installed the LG drivers if Windows.. also, doesn't hurt to be up to date w the sdk...
Sent from my VS910 4G using Tapatalk
Running windows 7 sdk updated drivers installed.
Im typing
cd C:\android-sdk\tools\
adb devices
nothing pops up. It says it isnt recognized?
1. install and update adb sdk.
2. Plug your phone in and install the drivers so it is recognized by windows as the revolution.
3. once 1 and 2 are done set your phone to internet only and turn on debugging.
4. now try adb
Torin_93 said:
Running windows 7 sdk updated drivers installed.
Im typing
cd C:\android-sdk\tools\
adb devices
nothing pops up. It says it isnt recognized?
Click to expand...
Click to collapse
also it is cd c:\android-sdk\platform-tools\
Haxcid said:
also it is cd c:\android-sdk\platform-tools\
Click to expand...
Click to collapse
I just figured out it was\platform-tools\
Like wtf they moved it? lol
I also forgot about internet mode. Im going to give it a go and if I bump into any problems I will let you know
Once I try to get su access (after checking adb access) it says not recognized. Why?
Torin_93 said:
Once I try to get su access (after checking adb access) it says not recognized. Why?
Click to expand...
Click to collapse
we're still getting cwm on...? and u already put recovery-cwm-pr1.img on ur sd?
S.Meezy said:
we're still getting cwm on...? and u already put recovery-cwm-pr1.img on ur sd?
Click to expand...
Click to collapse
Yes its there
But the su command wont work
You have skype? I could screen share.
Torin_93 said:
Yes its there
But the su command wont work
You have skype? I could screen share.
Click to expand...
Click to collapse
Make sure your screen is on when you type su so you can accept super user permission on your phone.
Sent from my VS910 4G using XDA Premium App
After I type adb devices I get the list then its:
C:\android-sdk\platform-tools>su
Right?
Cause it says not recognized
No type, adb shell, then at the next line enter su
Sent from my VS910 4G using XDA Premium App
mtmichaelson said:
No type, adb shell, then at the next line enter su
Sent from my VS910 4G using XDA Premium App
Click to expand...
Click to collapse
Great thanks!!! Im in
cat /dev/zero > /dev/block/mmcblk0p14
write: no space left on device
cat /sdcard/recovery-cwm-pr1.img > /dev/block/mmcblk0p14
no such file or directory.
Im so confused. Now what.
Thanks for everyones help so far You guys are amazing!
Torin_93 said:
cat /dev/zero > /dev/block/mmcblk0p14
write: no space left on device
cat /sdcard/recovery-cwm-pr1.img > /dev/block/mmcblk0p14
no such file or directory.
Im so confused. Now what.
Thanks for everyones help so far You guys are amazing!
Click to expand...
Click to collapse
If you are copying it in Windows, copy it to the drive marked "internal." If not, then this is telling you that file isn't on your sdcard. You need to move it there.
Its in the internal. Should it go in a folder? What about the fact that it says no space left on device?
I have plenty of space?
Torin_93 said:
Its in the internal. Should it go in a folder? What about the fact that it says no space left on device?
I have plenty of space?
Click to expand...
Click to collapse
It shouldn't need to go in a folder. The error message about space is normal (expected).
All credit for this find goes to alasdair529.
alasdair529 said:
What I did was, I went into LGPNST and I took the VS910 dll and the original VS910ZV4_04.S4_04.P58008.R5.user.tot
found here:
http://forum.xda-developers.com/show....php?t=1120062
and put my phone in download mode (emergency mode) holding power buttone and volume up
and I flashed it using LGPNST
and Voila my phone is back to normal, no more test mode. My phone is perfect working condition with all usb modes and internet connection working, no more test mode.
Also my phone is back to charging normal. I am so happy I fixed this, I was about to sell it and get something else
honestly there is nothing more to it then that took about 1 minute to set it all up then LGNPST did all the work, very simple, I just don't know why no one else on Google could figure this out or at least post a guide to it if they did, feel free to make a post in the development section, can't wait for mtmichaelson to see this and fix his phone too!
Click to expand...
Click to collapse
I tried to flash v4 or v6, but after that it doesn't boot.
v7, it boots well, but still shows me usb test mode or usb factory mode
weird...
lentm said:
I tried to flash v4 or v6, but after that it doesn't boot.
v7, it boots well, but still shows me usb test mode or usb factory mode
weird...
Click to expand...
Click to collapse
I've had factory cable connected a new USB cable fixed that.
Sent from my VS910 4G using xda premium
I found that fix out also, but I would like to know how to ax test mode without haveing to roll back to Froyo. Because, correct me if I'm wrong, but won't flashing the v7 tot file again just create the test mode issues all over again?
atomD21 said:
I found that fix out also, but I would like to know how to ax test mode without haveing to roll back to Froyo. Because, correct me if I'm wrong, but won't flashing the v7 tot file again just create the test mode issues all over again?
Click to expand...
Click to collapse
Yes it will
Sent from my Dread Ginger Revo using Tapatalk.
Not to dread this up again, but has anyone had any progress on this? Do we know where testmode is being set? Kernal, Radio, ROM...APK?
I would think if it were a bootup setting somewhere, we should be able to do a file or text-in-file search from root up up through the child folders within the core OS. If it were in the APKs, the settings could be in the XML prefs somewhere.. still very searchable.
I have my step-daughters phone stuck in test mode... /=
I dont what to re-create the wheel and spend hours doing stuff that has been done.... so I ask you all this: what do we know so far? Has a simple OS level search in the linux system been done? Is it something in in one of the .rc init files?
It must be somewhere and if we re-root after the TOT, then we should be able to fix this.
Any of the custom ROMs have this if we flash over the TOT? That would rule out APK and ROM settings.
Today I ended up doing a full factory reset, flashed clean V7 tot, then the V8 tot and re-rooted, and finally installed the new breakout rom and I'm still in test mode...
nasaiya said:
Today I ended up doing a full factory reset, flashed clean V7 tot, then the V8 tot and re-rooted, and finally installed the new breakout rom and I'm still in test mode...
Click to expand...
Click to collapse
So this would eliminate ROM and APK.
What are we left with... kernel, radio or recovery partition? Some other hidden partition?
The TOT does a complete re-partition so there must be some hidden key in here somewhere.
I wish I were one of the heavy ROM guys, but I'm just a linux novice and decent developer.
Lets keep brainstorming!
Well I'm just guessing here so bear with me...
AFAIK the cause is flashing in emergency download mode, which is something outside of the normal system, and also outside of the recovery partition. Based on that (and the previous post) I'd guess it set a test mode flag somewhere on another partition that gets "checked" at boot.
I figure we ought to be able to get images of all the partitions with dd but I wouldn't know what to do with that data once I had it... Maybe compare with a non-test-mode phone and look for inconsistancies.
I could be totally wrong though I'm not very familiar with the boot process and that sort of thing.
EDIT: found this: http://wiki.rootzwiki.com/LG_Revolution_Software_Breakdown
Maybe it sets a flag in the MISC partition like it does to boot into recovery or something like that. That stuff is a bit over my head though.
nasaiya said:
Well I'm just guessing here so bear with me...
AFAIK the cause is flashing in emergency download mode, which is something outside of the normal system, and also outside of the recovery partition. Based on that (and the previous post) I'd guess it set a test mode flag somewhere on another partition that gets "checked" at boot.
I figure we ought to be able to get images of all the partitions with dd but I wouldn't know what to do with that data once I had it... Maybe compare with a non-test-mode phone and look for inconsistancies.
I could be totally wrong though I'm not very familiar with the boot process and that sort of thing.
EDIT: found this: http://wiki.rootzwiki.com/LG_Revolution_Software_Breakdown
Maybe it sets a flag in the MISC partition like it does to boot into recovery or something like that. That stuff is a bit over my head though.
Click to expand...
Click to collapse
That's a great find. I'm going to spend some time reviewing that data in hopes that it is something as simple as tweaking one of those partitions.
Sounds good. I'm happy to help with this in any way possible, so let me know if you need anything...
Having to use adb to transfer files all the time is annoying!
I started playing around in the android OS and here are some files I found that ahve "testmode" within them. I tried doing a full system search, but the 'find' keeps stalling/freezing. init.rc has some, what looks like, programmer patch scripts in it that directly affect testmode. What's funny is that each "patch" is labeled by the devs email address! We could probably email the guy to find out how to disable testmode.... (=
# find . -type f -exec grep -l "testmode" {} + 2> /sdcard/err.log
./init.rc
./system/lib/libandroid_runtime.so
./system/lib/libhardware_legacy.so
./system/app/VerizonHiddenMenu.apk
./system/app/Settings.apk
./system/app/LgHiddenMenu.odex
./system/app/LgHiddenMenu.apk
./system/etc/efs.txt
./system/framework/framework.odex
./system/bin/btld
./system/bin/lg_diag_app
./sys/devices/platform/testmode/uevent
./sys/devices/platform/testmode/modalias
I emailed one of the engineers listed in the init.rc file.... MAYBE if we're lucky, he'll help us out.
So far, not looking good. I think he may be thinking I was it disabled in the core, but he doesn't understand that its running actively.
Code:
[B]Eric <[email protected]> Wed, Apr 4, 2012 at 9:13 AM
To: 김세현 <[email protected]>[/B]
[I]Thank you for your response!
Can testmode be disabled in Linux or from Android. Can we dial a code to turn it off?
How can I turn it off? Do you know how or can hint at how to do it?
Thank you again[/I]
[B]김세현 <[email protected]> Wed, Apr 4, 2012 at 9:25 AM
To: Eric <[email protected]>[/B]
[I]Impossible!!
If you are guru, then you can disable it and then it make a brick.
It’s useless job. Why are you trying that?
Give up I suggest. Testmode is lg version of QCT diag cmd set.
BR.[/I]
Guys, test mode is embedded deep inside the kernel source. Disabling it in one place will cause it to not build because it is referenced in another file. Remove it from there and it won't build because of another. Etc., etc., etc. Now what you can try is asking if he knows which partition holds the flag for test mode. It is obviously not /boot, /data, /system/, or /recovery.
Sent from my VS920 4G using Tapatalk
mtmichaelson said:
Guys, test mode is embedded deep inside the kernel source. Disabling it in one place will cause it to not build because it is referenced in another file. Remove it from there and it won't build because of another. Etc., etc., etc. Now what you can try is asking if he knows which partition holds the flag for test mode. It is obviously not /boot, /data, /system/, or /recovery.
Sent from my VS920 4G using Tapatalk
Click to expand...
Click to collapse
Hey mt,
Do we know why emergency mode installed tot's flag testmode whereas regular installed tot's (from cwm recovery or usbmode) dont flag flag testmode? Same tot's same kernel, right?
Is it possible to pull the other mounts images (not /system, /data, etc) and push them to a testmode device?
I don't believe it's tots flashed from emergency mode per se, but rather phones that had bad recoveries installed first, then flashed in emergency mode.
Sent from my VS920 4G using Tapatalk
mtmichaelson said:
I don't believe it's tots flashed from emergency mode per se, but rather phones that had bad recoveries installed first, then flashed in emergency mode.
Sent from my VS920 4G using Tapatalk
Click to expand...
Click to collapse
Agreed.
Now, where is the flag, byte offset, or whatever that is flagging the whole system to be in 'testmode'. If it can be set, it can be unset.
Since /system, /data and /cache are wiped and replaced with a new ROM, then that leaves one of the other.. what (3 or 4) mounted partitions that could contain this flag. Maybe the rootfs contains this flag as a byte offset?
Again, what if a partition from a non-testmode device was exported and pushed to a testmode device? Is there a way to compare these other partitions byte for byte between a good and testmode device?
How I wish I was a linux guru right now.... damn you Microsoft!
I found a program called wxHexEdit that seems about right for the job...
It can compare two binary files / images.
I'm currently having a peek at the MISC partition but I don't have a non-testmode copy to compare it with.
If someone could hook me up with an image (mmcblk0p8) from a non-test-mode phone that would be great!
I got out of test mode easy, just csll verizon and get a new phone.
How to restore your Kindle Fire 2
Notes
Using the backup.sh from kinfauns that I modded because the partition table for the KF2 is not the same as the HD.
I attached the new backup.sh for the KF2 on this post.
Links
Restoration tool
I developed a Recovery Tool based of the one onemeila created for the KFHD.
This will restore your boot/recover partitions (good for if you are gonna mess with the Bootloader Crack)
Restore your system.img to a Deodexed Rooted 10.2.1 Software. I have stripped ALOT of Kindle Apps from this backup.
Erase userdata & cache cleanup should be done when restoring.
Credits
Kinfauns for the original backup.sh
Onemeila for his original Recovery Tool for the KFHD
Special thanks
verygreen, hashcode, and fattire for answering my endless and noobish questions and saying there HAS to be a way.
And all those who have offered to help me get a 10.2.1 system.img for the KF2
Enjoy!
Additional Info
The post here contains the partition table for the KF2.
How I did it:
Due to the raw system.img being too big for fastboot to flash back to the KF2 I had to make the raw image
a sparse image file using help found in this post.
Mount the raw system.img (created and extracted from the system.img.gz using the backup.sh)
Code:
mkdir sys
sudo mount -t ext4 -o loop system.img sys/
Create a new flashable(sparse) system image.
Code:
sudo ./make_ext4fs -s -l 929038336 -a system new_system.img sys/
sudo umount sys
rm -fr sys
With that all said and done I was able to flash the sparse system.img to my KF2 and restore it!
It was bricked big time!!!!
I was getting messages saying the google link wasn't working.
I uploaded to dev-host and updated this version to 10.2.3 with root.
http://d-h.st/Pv3
Awesome! Glad to hear you got this working and thanks for posting!
Looks like I need to bust out the soldering iron and build myself a factory cable to get into fastboot mode. Using your backup image I think I have an idea on how to create a rooted 10.2.3 image, but I'm not very confident it will work.
I think i'll have some free time next week, so time to get a CM10 repo/original KF device tree setup on my linux system as a starting point.
Nice work
Sent from my KFOT using xda premium
I got 10.2.3 working and rooted.
I am going to pull a new system image for restore later tonight.
Sent from my Galaxy Nexus using xda app-developers app
Sorry guys. I didn't get the image of 10.2.3 yet. But try this method for root:
This is how i got root.
http://forum.xda-developers.com/showthread.php?p=35156970
Sent from my Galaxy Nexus using xda app-developers app
root 10.2.3
where is it at exactly was hard to find the root method...please help this device is boring without root and gapps
bodi524 said:
Sorry guys. I didn't get the image of 10.2.3 yet. But try this method for root:
This is how i got root.
http://forum.xda-developers.com/showthread.php?p=35156970
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
I'm in....
Hi bodi524....
I can't download the Recovery Tool, it keeps opening as i should read it, not download it
bodi524 said:
I developed a Recovery Tool based of the one onemeila created for the KFHD.
This will restore your boot/recover partitions (good for if you are gonna mess with the Bootloader Crack)
Restore your system.img to a Deodexed Rooted 10.2.1 Software. I have stripped ALOT of Kindle Apps from this backup.
Erase userdata & cache cleanup should be done when restoring.
Google Docs Link - removed from quote.
Click to expand...
Click to collapse
bodi524 said:
All those who have offered to help me get a 10.2.1 system.img for the KindFire2
Click to expand...
Click to collapse
I'm all in - what can I do to help...?
bodi524 said:
I'm off to working on the bootloader crack...hopefully the KF2 will be unlocked and have CM10 soon!
Click to expand...
Click to collapse
Looking forward to it - Get me out of the Amazon world
bodi524 said:
After much trouble figuring out how to backup and restore the KindleFire2 I have made a breakthru!!!
The restore of a KF2 is now a GO!
I developed a Recovery Tool based of the one onemeila created for the KFHD.
This will restore your boot/recover partitions (good for if you are gonna mess with the Bootloader Crack)
Restore your system.img to a Deodexed Rooted 10.2.1 Software. I have stripped ALOT of Kindle Apps from this backup.
Erase userdata & cache cleanup should be done when restoring.
Click to expand...
Click to collapse
When Launching the "SR Tool.bat" on Windows 7 X64-bit it is not recognizing the device in fastboot. I tried replacing the adb.exe, fastboot.exe files you included and that was no help. Any ideas?
Am I right in thinking that this will recover a KF2 that has the red triangle. I used Rom Toolbox to change the RAM settings, set the SD boost and change the font. When it rebooted I got the red triangle. Rebooting and pushing the power button 5 times reboots to the red triangle again.
Wondering if I should try this or just contact Amazon.
EDIT: The kindle didn't even register on my PC any more. adb devices doesn't list anything anymore either so I think it's truly gone. I think 4 days is a record for me.
Sent using my Jelly fingers.
chronicfathead said:
Am I right in thinking that this will recover a KF2 that has the red triangle. I used Rom Toolbox to change the RAM settings, set the SD boost and change the font. When it rebooted I got the red triangle. Rebooting and pushing the power button 5 times reboots to the red triangle again.
Wondering if I should try this or just contact Amazon.
EDIT: The kindle didn't even register on my PC any more. adb devices doesn't list anything anymore either so I think it's truly gone. I think 4 days is a record for me.
Sent using my Jelly fingers.
Click to expand...
Click to collapse
Factory cable?
Sent from my KFOT using xda app-developers app
Work this on Windows?
Alin1997 said:
Work this on Windows?
Click to expand...
Click to collapse
Not for me.
Sent from my myTouch_4G_Slide using xda premium
Thanks for making this tut. Yesterday I couldn't figure out how to flash my system back because It was too big. This method worked.
Been looking for instructions on how to use the backup.sh, and I finally found them. Follow the instructions here to use the backup.sh located in the first post of this thread. DO NOT USE the backup.sh listed on the linked post.
Use this Backup.sh file: http://forum.xda-developers.com/attachment.php?attachmentid=1544517&d=1354900827
Follow the backup info here: http://forum.xda-developers.com/showpost.php?p=32636163&postcount=1
None of my work, just thought it would help to make it easier to find.
The first time I ran the script, I could only see 4 zipped files. I copied those off and then ran the script again. The second time I couldn't see any files in the kindlebackups folder when using my PC, but I could see all the backups using ES File Manager. I ended up copying them to the downloads folder, and then I could see them from my PC.
This works great but the op could use some organization. Took me a good while to Find the file but once I got it worked like a charm.
MisterSir69 said:
This works great but the op could use some organization. Took me a good while to Find the file but once I got it worked like a charm.
Click to expand...
Click to collapse
ima fix that. I'm going to re-write this post. No idea if the OP will use my revision, but I did it for FMKilo and Powerpoint45 so far.
As a side note, if anyone else posts a main dev topic and wants me to do the layout and whatnot, let me know and I will. I don't mind doing it and making things clear for people since I have the time to do so
iytrix said:
ima fix that. I'm going to re-write this post. No idea if the OP will use my revision, but I did it for FMKilo and Powerpoint45 so far.
As a side note, if anyone else posts a main dev topic and wants me to do the layout and whatnot, let me know and I will. I don't mind doing it and making things clear for people since I have the time to do so
Click to expand...
Click to collapse
lol, actually working at work...
fmkilo said:
lol, actually working at work...
Click to expand...
Click to collapse
Pfffffffft. I actually may have to start doing that sadly. I could still re-write 2-3 posts a day though (4 days a week while I'm at work) so even if we got a bunch of devs and I re-wrote all the posts, still do-able haha. Today or this weekend I want to get a bunch of color codes so I can get nice themes going for people. Yours is red, PPT teal/blue, and this one is purple but I think it would need neat to have each dev having their own color scheme. Maybe I'm just odd though.
iytrix said:
Pfffffffft. I actually may have to start doing that sadly. I could still re-write 2-3 posts a day though (4 days a week while I'm at work) so even if we got a bunch of devs and I re-wrote all the posts, still do-able haha. Today or this weekend I want to get a bunch of color codes so I can get nice themes going for people. Yours is red, PPT teal/blue, and this one is purple but I think it would need neat to have each dev having their own color scheme. Maybe I'm just odd though.
Click to expand...
Click to collapse
sounds good to me...
THIS THREAD IS NOW OUTDATED. Page 17 and on contains information for Ubuntu Touch Saucy port.
NEW THREAD ON THE WAY.
http://forum.xda-developers.com/showthread.php?t=2426924
What works. Wifi+ADB+Touch.
What doesn't work: Sound+Bluetooth. Bluetooth doesn't work yet in Ubuntu Touch, and Sound doesn't work with the Evervolv source. Camera.
Download these files.
http://cdimage.ubuntu.com/ubuntu-to...c-demo/quantal-preinstalled-phablet-armhf.zip Ubuntu Touch RootFS
Recovery Image.
http://gdurl.com/A0mz/download
Put on your SDCARD and install in ClockWorkMod. You know.. when you first turn on the tablet, moboot loads.. you should see a menu for clockwork recovery mod.
EDIT: Oh yeah.. First do a factory reset in recovery mod, THEN install the zip files... The factory reset formats the cm-cache and cm-data partitions.. There are 3 partitions. cm-cache cm-data cm-system. Factory reset formats cache and data.. When you install the first zip, it formats the system partition. Then after that install the RootFS.zip that you downloaded from ubuntu... It extracts the RootFS to the cm-data partition, that you formatted. So it should be clean.
Reboot.
Enjoy!
Oh yeah.. Onscreen Keyboard is not sized right. Seems to be an Ubuntu bug... If your fonts are wrong. .reboot.. check out /system/etc/init.d/90userinit for the stuff I added.
thanks to the usual guys. JCSullins, Evervolv, Tigeris and litz and ompx in ubuntu-touch on irc. The wifi fix was an idea I got while stuck in traffic. Can't believe it worked.
Oh yeah.. THANK YOU DR. MARBLE.
PS. I read somewhere you need at least 600MB of free space, AFTER you copy the files to the sdcard, for the extraction to go well...
nice
Awesome, can't wait to try this out!
How to install that on tp?
Way too cool!! tnx for all the hard work
tux-world said:
How to install that on tp?
Click to expand...
Click to collapse
He says: POST IT SOON. In other words: you have to wait until he finishes the porting.
Crazy how the font turned out like that
Sent from my SAMSUNG-SGH-T989 using xda premium
Great news
SGA, thanks for your effort in bringing Ubuntu touch to Touchpad!
If you need help with testers, let me know
Vistaus said:
He says: POST IT SOON. In other words: you have to wait until he finishes the porting.
Click to expand...
Click to collapse
is this CM?
tux-world said:
is this CM?
Click to expand...
Click to collapse
No. It's Ubuntu Touch, but from what I have heard on XDA Developer T.V. (check 'em out on YouTube) it is based on CyanogenMod.
Sent from my Xperia S ~XZXperience~Unlocked BL~Rooted~6.1.A.2.55~
I'm assuming the install process will be similar to The Nexus line, flash the core system then the phablet zip.
Sent from my Nexus 7 using xda app-developers app
What source did you use to compile? I tried to compile it and kept getting some weird error got frustrated and gave up.
blmvxer said:
I'm assuming the install process will be similar to The Nexus line, flash the core system then the phablet zip.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Yeah, I think that's how it will always be. The core zip is device specific and contains the CM base while the phablet zip is for all devices.
Off to 3.0.8
EDIT TO POST. UNMOUNT PROC OUTSIDE OF CHROOT VIA USERINIT, AND NETWORK MANAGER WORKS WITHOUT FANOTIFY
Going to try a newer kernel to get wifi working. We need Fanotify in the kernel for the network manager to see the wireless. Has to do with proc mounted inside of a chroot and daemons having permission. Sad because once you run ubuntu_chroot shell to get in, you can run iwlist wlan0 scan...
Status Update Complete.
How to compile. Grab evervolv's device folder, but not his vendor folder.. grab hardware/qcom hardware/atheros and the compat-wireless from.. some folder.. forgot the name... I got these from evervolv's ubuntuphone branch for tenderloin.. (the kernel) and his build of android.
Those are the current sources.. May change.. Be sure to change ev.mk file to cm.mk, and change /vender/ev (inside of ev.mk) to /vendor/cm, ev.dependencies file to cm.dependencies....
JCSullins announced he will start work on JB. So that is cool. But.. 3.0.8 Kernel doesn't have working sound or bluetooth. Until someone figures that out with 3.0.8, Ubuntu-Touch and the Touchpad WILL NOT HAVE SOUND. (cough cough nag jcsullins cough cough).. That guy is the man to go to for that.
Backporting Fanotify is not easy. You run into having to change the msm code. (I ran into msm-watchdog.c) So much you might as well just go to 3.0.8.. I have an odd feeling that is someone were to backport it, sound would stop working....
EDIT TO POST. UNMOUNT PROC OUTSIDE OF CHROOT VIA USERINIT, AND NETWORK MANAGER WORKS WITHOUT FANOTIFY
Backup you jellybean system folder to a tarball and then extract it somewhere.. Same with the Ubuntu Touch system folder.
(I was about to give up!)
cp -R -f /jellybean/lib/* /system/lib
cp -R -f /ubuntutouch/lib/* /system/lib
cp -R -f /jellybean/etc/firmware/* /system/etc/firmware (my adreno firmware was missing, so this will fix that)
reboot.. and it worked.. merged libraries.
Fonts are not bad all the time..... Going to try this with 3.0.8 tonight.. If someone is bored today, give it a shot. Let us know how it works.
To brunch tenderloin I have to manually create out/host/linux-x86/bin and stick mkimage in there.
go to vender/cm/vendersetup.sh and add add-lunch-combo cm-tenderloin-userdebug.. I think.
there is a mkimage in the ubuntu touch source.. I used that. /system/extras/mkimage.. it needs to be compiled gcc mkimage.c -o mkimage -lz
then copy it cp ./system/extras/mkimage/mkimage ./out/host/linux-x86/bin no idea if this is required.
there are 2 bzr branch commands that need to be run.. google that.. Should be in Ubuntu Porting guide, but it's not. ubuntuappmanager library and some other library.
edit: run this inside of the ubuntu touch source folder/ubuntu
"bzr branch lphablet-extras/libhybris hybris" stupid smiles. =)
"bzr branch lplatform-api platform-api"
http://forum.xda-developers.com/showthread.php?p=38745624
dont forget to run extract-files.sh and get-prebuild, etc.
source build/envsetup.sh
lunch (pick 14)
brunch tenderloin
I bring over ts_srv and that other ts program from jellybean to ubuntu and currently add commands to /system/etc/init.d/90userinit to get stuff running.. Lazy, I am.
Confused? That is my rough draft guide.
A dude by the name of tigeris, or something that started with tig.. he helped me a lot on ubuntu-phone on irc. So did another guy named.. omxy.. I think... I will find them. Gotta go,
EDIT TO POST. UNMOUNT PROC OUTSIDE OF CHROOT VIA USERINIT, AND NETWORK MANAGER WORKS WITHOUT FANOTIFY
My wife would really like someone to pick this work up.. She wants me to .. "come back to the family"....
Oh yeah.. Wifi does work.
To get wifi working..
do this.
ubuntu_chroot shell
mount -o proc proc /proc
network manager should now bomb.
this is for open security.
ifconfig wlan0 essid "your essid"
ifconfig wlan0 up
dhcpcd wlan0
dhcpcd taken from jellybean tar.gz from the bin folder.. So.. yeah.. but no network-manager without fanotify and some other daemons. be sure to take dhcpcd stuff from etc.
DONT RUN ubuntu_chroot all by itself.. It will crash.
ALSO you MUST unmount proc before shutting down or it will be stuck in mtab and you will have old stuff inside of the /proc folder, inside of chroot, or rather /data/ubuntu/proc..
Problems? Restore ubuntufs tarball in recovery.
I will release something sometime soon.. after testing 3.0.8.. but if you know how to do all this stuff, be my guest.
Why don't you create your own github and share with us?
I bet that there are a lot of devs who want to continue.
I am really interested but I kind of got lost when you said to get the files from Evervolv... Can you post links to be more specific please?
Thank you.
Its just githib.com/evervolv
Sent from my Touchpad using xda premium
Doing that tonight... By the end of tonight I will release something..
It will be 3 files.
The first will be the .zip file that has the actual /system folder
second is of course from ubuntu and is the rootfs.
Third will be a tarball you guys can extract once the tablet is booted that will just have touch and graphics working. You can use wifi if you run it from adb, and keep the tablet powered on.
I haven't even touched pixel ratio.
Oh.. a 4th file.. of the whole ubuntu touch folder.. cleaned and made proper.. Uploaded to google drive.. Or hell I guess I can look at github...
Gotta play mario with my little girl first.
jshafer817 said:
Gotta play mario with my little girl first.
Click to expand...
Click to collapse
LOL
Gotta always spend time with them :good: