[Q] Copy a file from Android to PC - Nexus S Q&A, Help & Troubleshooting

UPDATE: I have reach the file through "adb pull", however, the adb shell still prevent me from reading that file. Strange, but my problem is solved. Thank you herbthehammer!
UPDATE: I have adb into NS, but it isn't a root shell. so still can't access that file.
Hi all, I have a problem here.
I have a stock 2.3.4 Nexus S. Now I need to copy a file from /data/data to my PC.
I can't even see this file unless I root my phone. But rooting means wipe all the data and then I'll lose that file forever.
So....How can I get this file?
Any suggestion?
Thank you for reviewing my question.

What file?
Sent from my Nexus S using XDA App

I don't know for sure, I'm just guessing. If you booted into the bootloader, couldn't you adb into the phone with root access? Then copy that way? I can't imagine what file would be sitting there that would be important enough to copy it. I think the sd card might get wiped in an unlock. Wasn't there a guide to root and recovery without unlock?

Rooting the phone doesn't wipe your data, unlocking the bootloader does.
Try adb commands as suggested above.

herbthehammer said:
I don't know for sure, I'm just guessing. If you booted into the bootloader, couldn't you adb into the phone with root access? Then copy that way? I can't imagine what file would be sitting there that would be important enough to copy it. I think the sd card might get wiped in an unlock. Wasn't there a guide to root and recovery without unlock?
Click to expand...
Click to collapse
Thank you for your reply!
It's a profile generated by an app. It seems only that app and the Android system can gain access to that file.
The guide to root and recovery without unlock? You mean this post? http://forum.xda-developers.com/showthread.php?t=931865
I think it only works for Android 2.3.3 and 2.3.2.
I'm interested in "adb into the phone with root access", just need some instructions.

Related

Usb Brick Fix For Stock Rom User

As My desire is amoled and unbranded i don't know for sure if this tut gonna help Slcd/Branded desire user if some one with slcd or branded desire fix there brick by follow this tut please leave a comment Here.
*To work this Hole Thing Out You need to setup Adb and fastboot in your pc,if you don't know how to do it follow this nice Guide.
http://androidforums.com/desire-all-things-root/337356-faq-adb-fastboot-windows-updated-1st-june-2011-a.html
Last few days i saw lots of people having usb brick problem even after they flashed the Ruu.exe or PB99IMG.zip update via hboot that because misc.img is corrupted and they stuck on stock rom without any usb function.Few Days ago i was in the same situation and solved my problem thought i should share this Information with people who need help.
Note-If you usb bricked on s-off device then try this fastboot command to solve this
fastboot oem enableqxdm 0(unblock your sd-card)
fastboot oem eraseconfig(fix misc partition)
if above command don't work then you have to flash a ruu.exe or PB99IMG.zip file via hboot to return to stock
rom usally that fix the usb brick but some time that trick also fails,if that happen then you have to go through the process below.
If your device is branded then create a goldcard and flash a unbranded PB99IMG.ZIP cause maybe this not gonna work on branded device.
I solve my usb brick this way
after return to stock rom via PB99IMG.zip file flash via hboot(didn't fix my usb brick so i had to do the steps below)
1.i unlocked my sd card via fastboot command"fastboot oem enableqxdm 0" sd card recognized by phone and i can browse it via file explorer.
note-you can access your sdcard only via file explorer nothing else so after execute the command download a file explorer from android market.
2.then i copied the visionary+(it gave me temporary root access which is needed to work this whole thing out).
root explorer,terminal emulator apk and those usb bricked update file(image_flash,mtd0.img) to sdcard from pc via card reader and installed them.
before copy those update file on sd card i edited the mtd0.img to put correct cid n rom info via hex editor.
To find cid info
If you don't know your Cid then type this command in fastboot-fastboot oem boot this will show you info about your phone cid.when the info shows up look for‘INFOCID HTC___xxx'
To find The Rom version-Go to Settings>About phone>Software Information and note your Software Number.
3.after that i copied those update file in phone memory to copy file in phone memory you have to set permission for r/w.When open root explorer look at the top left corner you will see mount as r/o mount r/w tap on mount r/w that's it you set permission to read/write on your phone memory and copy the file in
/data/data/ folder and set permission for r/w and execute for those file via root explorer.
4.after that i simply typed this command in terminal emulator
"su
/data/data/flash_image misc /data/data/mtd0.img"
Rebooted my phone and voila usb brick is gone htc sync,usb tethering,sd card mount,charge everything is working and now i am rooted and s-off again
Note-you don't need the rageagainstthecage file which only need if you try to get root access via terminal emulator which is lengthy n complicated but with visionary+ you can get root access with 1 click and it's much easier than typing command in T.E.
If above information helps you to fix Your usb brick Please Leave a comment Here and you can also hit the Thanks button
Exiled_SouL said:
before copy those update file on sd card i edited the mtd0.img to put correct cid n rom info via hex editor.
Click to expand...
Click to collapse
how do you edited it? thx
edited it with hex editor software it included in the zip file
I know. but how exactly?
tma24 said:
I know. but how exactly?
Click to expand...
Click to collapse
when you open the mtd0 file with hex editor look for
"HTC_1xx"-your cid
"ClearAutoImage .x.xx.405.x"-your rom value
and edit those according to your cid and rom value information.
i updated the thread with some more useful info so recheck the 1st post.
Thank you very much. While my phone is fine but I'm trying to fix a friend
you welcome,if it work out please leave a reply here
of course
my translated your post in slovak forum
http://smartmobil.sk/forum/viewtopic.php?f=142&t=12610
thank you very much
Regards.
Exiled_SouL said:
you welcome,if it work out please leave a reply here
Click to expand...
Click to collapse
Yes, I fixed it!!! Thx man.
Congrats.thanks for confirming
You've made my day. You need a donate button. Thanks.
Hi, thank you very much for responding my thread, and thank's to you my desire is back to normal..., I have one question, Is it safe to use permanent root using Visionary+ ?
thank's
kebhoganteng said:
Hi, thank you very much for responding my thread, and thank's to you my desire is back to normal..., I have one question, Is it safe to use permanent root using Visionary+ ?
thank's
Click to expand...
Click to collapse
Glad that it worked out for you about V+ root,TBH i don't know but my opinion is it's safer to use unrevocked for root.
Marc. said:
I read it, but a few questions...
( My phone is S-ON )
1. I'm not on a stock rom, but on Insertcoin
2. I can already acces my SD card, so can I skip the first step? Done that yesterday already.
3. Can I use the mtd0.img generator? If yes I have already the file.
4. With step 3, which files must be in /data/data?
5. With step 2, I have super user, so can I use that instead of the root acces thing?
Click to expand...
Click to collapse
Quote from the other topic, maybe you read it here faster.
Edit, just tried it. I generated my mtd0.img out of another topic. Read a lot, and it works perfect again!! Thanks!! You saved my phone!
Exiled_SouL said:
Glad that it worked out for you about V+ root,TBH i don't know but my opinion is it's safer to use unrevocked for root.
Click to expand...
Click to collapse
Hi, again
I have a new problem after fixing the USB Brick. I can't root my desire using Unrevoked 3, it was always failed on process uninstalling unrevoked3 system and showed :
Validation error : Backup CID is Missing
do you have any idea for this problem?
thx for your respond
That same error showed up when i tried to root after usb brick but in my app drawer the super user icon showed that means it worked somehow even after the error,so check your app drawer and recovery if you see the su icon and cwm recovery then it worked don't worry about the error
Sent from my HTC Desire using XDA App
Hello,
Can I try this method on my Desire S (unrooted, s-on v2.3.5-sense3.0) ?
a great big thank you. I am very happy!
rakhan01 said:
Hello,
Can I try this method on my Desire S (unrooted, s-on v2.3.5-sense3.0) ?
Click to expand...
Click to collapse
Yes, if you want to brick your device by flashing a misc meant for another one..

[Q] Rooting, Unlocking and installing new ROM on a HTC Tattoo

Hi,
I'm looking for some advice about my attempts to put a new ROM onto my phone (HTC Tattoo currently running Android 1.6). I'm struggling to copy an image file to the sdcard. Basically, I can copy the file to there from my PC but adb can't see the contents of the /sdcard folder from within the shell. I also can't use adb push to copy anything to /sdcard. I just keep getting permission denied errors or file not found errors.
I've followed the procedure to root the phone and all *seems* to have worked OK. When I go into the shell I can su and run all the other commands I try work OK but I just can't see the content of, or copy to, the sdcard.
My confusion is several fold:
1. How can I be sure the rooting has happened successfully? I've read in other posts that people get a message on the phone when they run su in the shell. I don't - so does this mean that I'm not rooted??
2. Assuming I am rooted properly, why can't I see the /sdcard folder? I've tried all sorts of things including creating a gold card but that also fails because the sdcard is not visible to adb.
3. Finally, what about unlocking the phone? I thought creating a gold card would unlock it but that process fails as described above. Do I need to get the phone unlocked before the rooting will work properly?
I don't really want to pay the £20 to get the phone unlocked if its not going to make any difference. However, if it means that the rooting will work properly (assuming it hasn't done yet!) and then everything else will fall into place then I'm willing to give it a go.
Hope someone can help clear the waters for me,
Martin.
My phone is a HTC Tattoo currently on Android 1.6 and the phone is locked to Orange.
To ensure rooting was successful, you can download root checker from the market

BEST Guide for Returning to Stock ! (Add to guide thread?)

Here are the directions and files used to fix this problem (do not type any of the "quotation marks"):
1. Download the .zip file from here: http://www.megaupload.com/?d=YUYEMJNM
and put it on the root of your sdcard. (Do not unzip the file). Then rename it to PD15IMG.zip .
2. Download the miscnew file to your computer (uploaded as attachment to this post). Unzip it and place the miscnew.img file that was in the zip onto the root of your sdcard. You can delete the .zip file after you do this.
3. Boot your phone up like normal and connect your phone to your computer.
4. Make sure your sdcard is NOT mounted (but make sure those 2 files were copied to your sdcard).
5. Go into adb and type "adb shell"
6. Then type, "su"
7. Then type, "dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p17"
8. Once this is done after about 5 seconds, turn your phone off and unplug from the computer.
9. Once the phone is off, hold down the volume-down key and the power button until you arrive at the bootloader. Once there, the phone should automatically start checking that .zip file you downloaded to the root of your sdcard. After its done checking, it will ask you if you want to continue, and just follow the prompt to say "yes" and YOU'RE DONE!
This guide was made by travisjames and was just put into my own words. His guide was a derivative of Apache14's OTA and Radio downgrade guide for the T-Mobile G2.
Also, thanks to Clarknick27 for tipping me off on how to get back into my phone after it was unbootable.
***Please click "thanks" if this helped you!
Ignore/Wrong thread...
two questions-
if i used gfree, do i need to undo gfree 1st? (you make no mention of rooting techniques, and if this undoes all those or not)
second, my phone, about a month ago, lost data connectivity on the usb port-- in other words, it charges fine, but i can not get any computer to pick it up any more to transfer files are use adb, which is a royal pain. -- can i use terminal emulator to accomplish your commands, or am I SOL ?
thanks
Yes, you need to undo Gfree.
Yes, you can run the commands from Terminal Emulator.
Added to Wiki.
thanks jack,
would the syntax be exactly the same as above via term em?
Yes, just skip the "adb shell" command.
Is this to undo 2.3.4 GB update and take it back to 2.2.1?
How do I undo gfree? And if I just run the pg15img will I keep root? I need a way to return to stock but rooted.
Sent from my Incredible 2 using XDA App
andrewp3481 said:
How do I undo gfree? And if I just run the pg15img will I keep root? I need a way to return to stock but rooted.
Sent from my Incredible 2 using XDA App
Click to expand...
Click to collapse
First question, Here is the thread you need to undo gfree (get s-on) http://forum.xda-developers.com/showthread.php?t=858996 (about half way down OP)
Second question, no you will not keep root
witch stock rom do you want rooted, stock 2.3.4 can not be rooted right now
So... to summarize, this would be to revert back to Android 2.3.4, sense 3.5 STOCK, without root, eng. hboot, or s=off.
In other words, if you purchased a MT4G now, or received a replacement MT4G with 2.3.4.... Following these steps will give you this new gingerbread stock state (approximately).
Please confirm. Thanks!
can i use this steps with terminal emulator on my phone instead of adb?
unciviilized said:
can i use this steps with terminal emulator on my phone instead of adb?
Click to expand...
Click to collapse
Yes...check the 3rd and 4th post of this thread....
Just curious, so if I flash this ROM in recovery, will I lose root, s-off, etc.?
What I'm trying to do is flash the phone to the MT4G stock rom (which I assume this is), use gfree to sim unlock it, then revert back to my nandroid backup, so I wanna make sure this will not interfere with my root access before I proceed to flashing it. Thanks in advance to whoever answers me~!
ronin178 said:
Yes...check the 3rd and 4th post of this thread....
Click to expand...
Click to collapse
ok so when im on emulator i do "s" and it says permission denied,
then i got to command prompt and it says adb shell is not recognized as and internal or external command. Any suggestions?
unciviilized said:
ok so when im on emulator i do "s" and it says permission denied,
then i got to command prompt and it says adb shell is not recognized as and internal or external command. Any suggestions?
Click to expand...
Click to collapse
You don't need to type adb shell because you are on terminal emulator.
Just type su to gain superuser access.
Then type dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p17
Make sure you have the file miscnew.img in the root of your sd card.
Absolutely Perfect
I have looked and looked all over both XDA and the Interent in general. I was trying to restore my Glacier (MyTouch 4g) from stock 2.3.4 to stock 2.2. NOTHING worked. It got to the point that I didn't even remember everything that I tried. I followed this guide to the T. PERFECT!!! I am now back to having my phone exactly how I left the Tmo store with it.
I CANNOT THANK YOU ENOUGH!!
Great work in helping people out that don't understand. And making it a less strenious process
Sent from my HTC Glacier using xda premium
Jack_R1 said:
Yes, you need to undo Gfree.
Yes, you can run the commands from Terminal Emulator.
Added to Wiki.
Click to expand...
Click to collapse
Sorry, a complete noob to "gfree". I'm a new convert to GSM as I was with SPrint CDMA for 10 years until a couple weeks ago. I've rooted Samsing phones but never an HTC.
Anyways, I just purchased a MyTouch that had been rooted and loaded with Virtuous ROM. It's for my wife and she wants it back to stock. I tried all your directions exactly but still will not work. I'm assuming it's this "gfree" issue. I followed the link to the other thread but it's not clear on exactly what I need to do in my situation.
When I run the bootloader, it says bad or no such image... I have confirmed I have PD15IMG.zip and miscnew.img in the sdcard root directory.
Can someone please show me in simplified terms. Thanks!
socal88 said:
Sorry, a complete noob to "gfree". I'm a new convert to GSM as I was with SPrint CDMA for 10 years until a couple weeks ago. I've rooted Samsing phones but never an HTC.
Anyways, I just purchased a MyTouch that had been rooted and loaded with Virtuous ROM. It's for my wife and she wants it back to stock. I tried all your directions exactly but still will not work. I'm assuming it's this "gfree" issue. I followed the link to the other thread but it's not clear on exactly what I need to do in my situation.
When I run the bootloader, it says bad or no such image... I have confirmed I have PD15IMG.zip and miscnew.img in the sdcard root directory.
Can someone please show me in simplified terms. Thanks!
Click to expand...
Click to collapse
If you are new to this rooting stuffs, i suggest don't go with methods, that have potential to brick your phone.
Just do this simple method, Follow the link in my signature, you will see a Rooted version of the stock 2.3.4 rom.
Just flash the Rom through your recovery.........no big deal.......easy way to get the stock feel.....
Follow the instructions carefully.........Happy Flashing........
Thanks for the great help. One more question -- How do I turn "quick boot" off?

Views saved password for WiFi

Hello,
i would like to read stored password for my wifi network.
According to article on internet, i have to open file data/misc/wifi/wpa_supplicant.conf. To read this file, i must have rooted phone and open in file explorer. Unfortunatelly im running on stock Desire S ROM, no root, no custom recovery, nothing. Phone like from box.
Is there any way to get access to mentioned file ?
Yes - root your phone.
Temp root is enough. No need to S-OFF or bootloader unlock, and these 2 also will wipe your phone, so you won't get the data anyway. But if you can run ZergRush and get temp root shell - it will be enough.
Thanks,
i did it
how??? I need help also..

[Q] Write to /system folder?

I am trying to place an app into the system/app/ folder of my Droid Maxx. I tried ES File Explorer and got "permission denied" each time, then read recommendations to buy Root Explorer which is good for situations like this as it can mount system as r/w so I tried that but it will not work either. I am rooted and on latest firmware update.
What would be preventing write permission for a root user? Is there any way around this? Push via ADB? Or would I run into the same problem via that method?
You will need to boot into your recovery to bypass write protection, make your changes, and then reboot normally.
Or follow the instructions to permanently remove the write protection.
http://forum.xda-developers.com/showthread.php?t=2551113
THANK YOU!
Teksu said:
You will need to boot into your recovery to bypass write protection, make your changes, and then reboot normally.
Or follow the instructions to permanently remove the write protection.
http://forum.xda-developers.com/showthread.php?t=2551113
Click to expand...
Click to collapse
You are awesome, thank you so much! I have been Googling all day and couldn't come up with much beyond Jcase's root method threads (which I already used but did me no good in overcoming this WP). I see this is a recent development, convenient!

Categories

Resources