Quick question - Hero CDMA Q&A, Help & Troubleshooting

Im trying to root my hero but im stuck =/
How can i "make your way to the Android SDK tools folder where the file adb is located " im so lost I save the folder on my desktop.
Can someone help me please and thank you.

go to Start->Run and type in "cmd" and hit enter. It should default you into your user's folder so...
From there type in "cd Desktop"
and then "cd [whatever the folder is called where you unzipped the sdk]"
Navigating file structures via command line is a good thing to know when messing around in your Phone's OS. It might be wise to google around and brush up on this (Esspecially navigating linux command lines) before attempting too much on the phone.

Thanks but I figured it out lmao =]]

Related

nexus one system png files

hi, i just tried to open a nexus one image to extract all the png files, but failed. does anyone know how or where to get all these files, like banners, battery meters etc.?
thanks in advance!
They are in /system/framework/framework-res.apk. If you adb pull that file onto your PC you should be able to unzip it to get the pngs.
alright, thanks. i'll try this at home - i just dl adb but dont know how to use it. when i doubleclick adb.exe the windows opens and shuts very quickly, probably because i dont have admin rights here.
Alternatively, you could install a file manager like Astro that lets you browse the system folders and just email it to yourself from there. I've done that with a few of the files just because it's convenient and I don't have to dig out the USB cable.
woelv said:
alright, thanks. i'll try this at home - i just dl adb but dont know how to use it. when i doubleclick adb.exe the windows opens and shuts very quickly, probably because i dont have admin rights here.
Click to expand...
Click to collapse
adb is a command line app. Anyway Mike's suggestion of using Astro is an easier way.
my problem is the adb window wont stay open, so i have no chance to write a command line. i need all the files for themeing, so Astro seems inappropriate to me.
The Astro method should work. If you browse to /system/framework with it you should see the framework-res.apk. Long press on it and tap send. It should attach it to a new email which you can send to yourself. You can then unzip it with a program like 7-zip.
This will be easier than using adb as you will need to install the adb usb drivers, connect the phone to your PC and use a DOS prompt.
go start menu for xp and click run and type CMD and you'll get your command line. vista or 7 go to start and right above it type CMD. theres a little more to but that will get you your command line
woelv said:
my problem is the adb window wont stay open, so i have no chance to write a command line. i need all the files for themeing, so Astro seems inappropriate to me.
Click to expand...
Click to collapse
So run it like every other command line app. From the command line. (terminal, console, cmd, etc...)
craz6r said:
go start menu for xp and click run and type CMD and you'll get your command line. vista or 7 go to start and right above it type CMD. theres a little more to but that will get you your command line
Click to expand...
Click to collapse
Clarkster said:
So run it like every other command line app. From the command line. (terminal, console, cmd, etc...)
Click to expand...
Click to collapse
So I am pretty sure if the OP hasn't figured this out over six months later, they have either given up, or figured it out.
Good job bringing things back from the dead.

Can't get apk's to install?

I got my NC rooted (I think LOL) I went through the root process and everything looks fine but now i'm trying to install some apk's and I cant get it to work. I want to install root explorer so I pulled the apk from my Htc Evo and put it in a folder on my desktop. Then in cmd I type
cd\
cd android-sdk-windows\platform-tools
adb kill-server
adb devices
I get my device listed so then I type (before the cursor it says C:\android-sdk-windows\platform-tools>)
adb install C:\documents and settings\owner\desktop\apks\root explorer 2.12.4.apk"
and I get a message that says "can't find 'explorer 2.12.4.apk' to install
I am stuck I don't know what to do. Please help me!!
I have tried the name root explorer 2.12.4.apk with and without spaces
Novarider said:
adb install C:\documents and settings\owner\desktop\apks\root explorer 2.12.4.apk"
Click to expand...
Click to collapse
If cmd is like Linux you have to put \ before spaces like root\ explorer\ 2.12.4.apk
its definitely related to where the apk is located or the file name.
Try putting quotes around the path such as....
adb install "c:\docume...."
If that doesn't work then create a folder on your c:\ called apk then move the file over to that folder and rename the .apk file to something without spaces.
Good luck!
So I am at the correct path? What EXACTLY do you type after you open the cmd? Can you just open the cmd and start installing apps or do you have to navigate to android-sdk-windows...
What do I need to type from the time I open cmd?
rob04 said:
its definitely related to where the apk is located or the file name.
Try putting quotes around the path such as....
adb install "c:\docume...."
If that doesn't work then create a folder on your c:\ called apk then move the file over to that folder and rename the .apk file to something without spaces.
Good luck!
Click to expand...
Click to collapse
The " around the path worked. Thanks!
Now that I have root explorer installed how do I use it? Can I put it on my home screen?

Easy way to install bootanimations

###OK I haven't really written a tutorial before so if you catch a mistake please let me know so I can make the changes###
In my method we will be using Android Commander on a PC
Note: This does work on Win7
Android Commander is a free program that allows you to see the root and sd locations of your phone without having to type codes through adb. With this you can drag and drop anything anywhere onto or off of your phone.
Lets begin!
1: Ensure your phone drivers are installed and updated. Also that your phone is plugged in
2: Ensure you have the latest sdk downloaded and installed. You need this for adb. You'll see why in a minute
3. Download and install the attached file at the bottom. This is the Android Commander program.
4. On the first run of Android Commander if you don't know what the options that are shown meen then select the I don't know/ autodetect option.
5. When AC finally opens you will see two windows. On mine the left is Windows Files and the right is Android Files
Personally I don't use the Windows Files side for anything. Its all about your preferance because AC allows you to drag directly from your desktop to the Android Files window.
You should notice on the Android files side all your android "system" folders. locate your original bootanimation like this: Double click "data" then double click "local" Once inside the local folder you will actually be able to see the original bootanimation.zip file. From here select the check box next to it and hit the copy button. By default AC will "copy" the selected file to whatever window is open on the Windows side but you can choose to copy it to your choice. If you don't want to copy it AC allows you to right click it and simply delete it. Your choice. I won't be held responsible if you do delete it and later you decide you want it back!!!
Moving on, once you've done what you want to the original bootanimation.zip you need to locate the new bootanimation of your choice and simply click and drag it to the AC window. When you drop it a window will pop up asking where to put it. Obviously you will want to push it to the android side so if android is on the right then select right window and select ok. Another window will pop up showing the push in progress. I have mine set to close on finish so that window goes away once the file is moved.
Done!
After this you can restart your phone to watch the animation on start up or you can cmd into your phone and actually play the bootanimation to see it working on your phone without restarting!
To use adb to see it without restarting your phone open cmd by winkey+r then type cmd and then hit enter. in cmd navigate to your adb tools like this:
NOTE: I'll use mine as an example.
Code:
C:\Users\Name>cd C:\Android\platform-tools
NOTE: I typed "cd" then my tools location. Important.
Press Enter
Code:
adb remount
Press Enter
Code:
adb shell
Press Enter
Code:
bootanimation
Press Enter. Once you press enter this time the animation will play instantlly on your phone if all has went well. Also if it plays then the install has worked obviously...
To stop the animation press ctrl+c
I know this tut may seem a bit long, but once you do it a couple times I believe you will see this is the easiest and quickest way to change your bootanimation.
If your still confused, watch my Instruction Video file at youtube:
http://www.youtube.com/watch?v=LIeia2HAXXk
Will this work with the Samsung Fascinate? Thank you
i found bootanimation in data\media folder not data\local

How to push files via adb?

Can someone please point me to a place that explains how to push files via adb? I have Android SDK installed and I know how to do a screen shot using Dalvik Debug Monitor using the ddms.bat file. But other than that, I don't know what I am doing. lol Also, I am not rooted.
I know it can't be that difficult, any help is appreciated! Thanks!
Holy crap, apparently I pushed a new bootanimation via adb and really had no idea what I was doing. lol
So I guess my question is different now.
First, I put the bootanimation.zip file in the platform-tools folder.
Then I launched a CMD prompt and then I went into my Android/Android-SDK\platform-tools\
then I typed in "adb push bootanimation.zip /data/local" and I wasn't even sure it did anything.
So my question now is what made it push the bootanimation file to my xoom? Did it have something to do with the file being in the platform-tools folder, along with the adb.exe file?
I don't really get the question... It pushed the file to the Xoom because you told it to. A better question might be why it did not push the file during your previous attempts, but I cannot answer that without knowing what you tried. Anyways, I just wanted to chime in that since you are already familiar with DDMS, right under the screenshot option is a file explorer that you can use to push files.
edit: actually, I think it may not be possible to push to subfolders in /data using ddms since it cannot see them
sangreal06 said:
I don't really get the question... It pushed the file to the Xoom because you told it to. A better question might be why it did not push the file during your previous attempts, but I cannot answer that without knowing what you tried. Anyways, I just wanted to chime in that since you are already familiar with DDMS, right under the screenshot option is a file explorer that you can use to push files.
edit: actually, I think it may not be possible to push to subfolders in /data using ddms since it cannot see them
Click to expand...
Click to collapse
Yea, I didn't do it in ddms because I did not see the local folder. I did it through the CMD prompt. But my question is how does it know where to push the files by just typing "adb push bootanimation.zip /data/local"? No where in that does it say push it to the xoom. When using adb, does it automatically try to push the file to whatever Android is plugged up? How does it know where and what to push it on? That was my question.
Best place I've found to start is http://developer.android.com/guide/developing/tools/adb.html which gives an overview along with some good details on some of the subcommands. Beyond that, use your favorite search engine.
To answer your question more directly, though, if only one Android device is connected, ADB can figure out how to talk with it. With two or more you'll need to specify the device (which you can get from "adb devices").
HTH
short/y said:
Best place I've found to start is http://developer.android.com/guide/developing/tools/adb.html which gives an overview along with some good details on some of the subcommands. Beyond that, use your favorite search engine.
To answer your question more directly, though, if only one Android device is connected, ADB can figure out how to talk with it. With two or more you'll need to specify the device (which you can get from "adb devices").
HTH
Click to expand...
Click to collapse
Ahh.. cool. I did google it to see what came up and learned a little but nothing ever explained how adb knew what or where to push the file.
But just knowing that it does know, then the rest is pretty easy to figure out. I can follow and type commands well... even though I might not know what they do (which is scary, huh?). lol
Edit: Thanks for the link also.
I got this from XDA somewhere so credit to them:
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish

Theming Android 2.1

Okay I'm sure some ppl still run Android 2.1 so I hope this isn't a complete waste of time. I did post this on VR ages ago before their site went tits up and lost everything.
"How to perform "simple" theme changes in 2.1 based roms (tested on VR12).
Firstly, if I can do this, you can.
The only tool (apart from winrar and some photo editing software) you'll really need is AndroidSDK because you need to push/pull things using ADB (android debugging bridge) ->
http://developer.android.com/sdk/index.html
Download and follow setting up instructions.
So now we have to "pull" the files from the phone we want to change.
1) Load command prompt and change the directory to "androidsdk\tools" eg:
C:\Documents and Settings\user>
C:\Documents and Settings\user>cd c:\androidsdk\tools <hit enter>
C:\AndroidSDK\tools>
(If you cannot find command prompt, type into search "cmd" and it should come up.)
2) Ensure your phone is connected via usb and select "charge only".
You can type "adb devices" into the command prompt to check that your phone is connected tho this isn't necessary...useful to check if you're having issues tho.
3) Now to pull the files we want. In this example we are only going to look at pulling "framework-res.apk" as this is the file that contains the images for the status bar, it's icons and the background of the status bar...amongst other things.
Type the following into ADB: adb pull <location of file you want to pull (+ file name)> <location you want the file to be pulled to (+ file name)>
So in the case of pulling framework-res.apk we type:
adb pull /system/framework/framework-res.apk c:\androidapps\framework-res.apk
"/system/framework/framework-res.apk" is the location of the file on the phone and "c:\androidapps\framework-res.apk" is the location the file will be placed on your computer. c:\androidapps is the folder on my c drive where I pull .apk's to (you'll need to make your own folder like this).
4) Locate the file framework-res.apk on your computer (in c:\androidapps if you're using the same folder name as myself) and open it with winrar. Do not extract anything we just want to have a look for some .png's. (.png is a type of image compression that preserves transparency)
Now that you've opened framework-res.apk open the folder named "res" then open the folder named "drawable-mdpi". In here you can find all the .png images I've previously mentioned. Do not close winrar as you will need it.
The .png for the status bar is named "statusbar_background.png" you can drag and drop this to you computer and open it with some image editing software.
I personally recommend GIMP as it is free and very good (http://www.gimp.org/). If you are not confident with image editors you can use http://fotoflexer.com/ for basic editing (clicking on the layers tab on fotoflexer allows you to edit the transparency of the image...remember to save images as .png)
5) Now that you have edited your .png you can drag and drop it back to the res\drawable-mdpi folder hopefully still open in winrar. Close winrar now...it's time to push the edited framework-res.apk back to your phone!
6) Go back to command prompt, if you have removed the usb from your phone at any time, plug it back in and type "adb remount" into command prompt. This remounts the phone for editing.
Now type the following into ADB: adb push <location of file on computer> <location of file on phone>
In this case:
adb push c:\androidapps\framework-res.apk /system/framework/framework-res.apk
and hit enter! This is how it should appear in command promt:
C:\AndroidSDK\tools>adb push c:\androidapps\framework-res.apk /system/framework/framework-res.apk
You phone should restart sense but if it freezes/gets a bit schizy type "adb reboot" into the command prompt to manually reboot the phone.
And it's as simple as that.
You can look through the .png's in res\drawable-mdpi to find more images you might want to edit. The background of the status bar drop down is called "status_bar_background.png" and actual drag down bar is named "status_bar_close_on.9.png".
I think I'll save the explaination of how to edit the bar at the bottom of the screen with the app drawer, phone and + for another time as it requires the knowledge of how to sign .apk's which tho isn't hard is probably quite time consuming for me to explain (due to my very limited knowledge)."
Hope this attempt at 'giving something back' helps someone.
Mark
thanks alot .. Really like it

Categories

Resources