I am running a slimed down version of Froyo on my DInc, I know enough that I am able to Titanium back up my device as well as Nandroid back up as well. I loaded the new software on and then continued in the CMD to delete some of the pre loaded programs that I didn't want, example "Footprints", "Car Panel", etc. I inserted the command to delete City ID and I got an error code. below is the line of code:
***CityID***
/system/bin/mv CityID.apk CityID.apkb
At this point I realized that for not being a computer guy I have done pretty well so far. However I would like to know how you experts out there view the files and then delete them, because up to this point all i am doing is using other people findings and I would like to be able to do it myself. So I guess the question it what do I need to look at my file structure to find City ID and then determine what line of code to type into the CMD?
My name is Adam Hosman I am from the Twin Cities in MN, please leave a response or feel free to give me a call at 612.226.7017
Thank you,
Adam:mad
Which rom:
The newest leak?
Newest leak lite?
Sky raider?
Incredible does?
Jdfroyo?
Sent from my ADR6300 using XDA App
be sure to specify the location /system/apps/filename.apkb
/edit I created a folder /system/apps.disabled , then i used the mv command to move the files to /system/app.disabled
I am using the newest 2.2 froyo leak lite with nothing else
Yes I am renaming them so they do not show up. but when I try to do it with City ID i get an error, So how would I do the same thing with City ID? That is why I want to know how to view the files so I can locate the proper path and type it in correctly.
make it simple...
cd /system/app
mv CityID.apk CityID.apkb
the caps are important***
So no one knows hoe to view the files on the device?
The ls command should list all files in the current directory.
I commented in the thread that lists the apps you might want to delete. The problem was with city id, teeter, and my Verizon. It was an oversight by the OP. It should read just as the other apps do.
Check page 2 of this forum. It's title "List of APKs..." I think that's what you're looking for.
Sent from my incredible Droid Incredible using the XDA app
IShootPixels said:
I commented in the thread that lists the apps you might want to delete. The problem was with city id, teeter, and my Verizon. It was an oversight by the OP. It should read just as the other apps do.
Check page 2 of this forum. It's title "List of APKs..." I think that's what you're looking for.
Sent from my incredible Droid Incredible using the XDA app
Click to expand...
Click to collapse
Thank you guys for your help
I opened up the CMD and typed in cd/ enter, cd tools enter, cd sdk enter, cd tools enter, adb shell enter, then Is and it did not list anything so then I typed exit and hit enter and it went back to C:\sdk\tools and then I hit enter and this is what it showed:
C:\sdk\tools>Is
'Is' is not recognized as a internal or external command, operable program batch file.
I dont understand why it is so hard to just look at the files?
It is ls with an L not an I, as in list.
adamhosman said:
I opened up the CMD and typed in cd/ enter, cd tools enter, cd sdk enter, cd tools enter, adb shell enter, then Is and it did not list anything so then I typed exit and hit enter and it went back to C:\sdk\tools and then I hit enter and this is what it showed:
C:\sdk\tools>Is
'Is' is not recognized as a internal or external command, operable program batch file.
I dont understand why it is so hard to just look at the files?
Click to expand...
Click to collapse
after you enter "adb shell"
type: cd /system/app
then type: ls
Ok I will try that
Sent from my ADR6300 using XDA App
Also try
ls -l
for long view. Gives more details. You can do a Google search for linux commands if you want to learn more.
Sent from Incredible using Tapatalk.
to view the files while booted into android take a look at root explorer, its a paid app file explorer in the market. as of now you can only view and not write to the system files on our phones outside of recovery
Nice, that's what I wanted to know. Thank you
Sent from my ADR6300 using XDA App
Related
Ive downloaded SDK for mac
Placed it in the applications folder on the mac
Draged tools folder from the SDK folder intoterminal and try using commands like adb devices i get "bad cpu type in executable" or "is a directory" and nothing happens
Please help me get this working
Thanks in advanced,,
lets try again:
1. open terminal and type cd and then hit the {space bar}
2. drag the tools folder into terminal then hit enter
at this point your terminal should look something like this:
MacBook-Pro:~ Admin$ cd /Applications/Android\ SDK/tools
MacBook-Pro:tools Admin$
3. type ./adb then hit enter
you should be good...
Well lets start by asking...what type of mac do you have?
Pretty much if you DONT have a intel mac (macbook, macbook pro, etc) you're hosed.
I have a powerbook G4, the last model that apple made before going intel. I'm attempting to compile the full sdk into binaries that run on PowerPC.
If you get the incorrect processor arch or 'bad cpu type' error messages, i'll put a $5 down on you being in the same boat im in -- running a PowerPC G3/G4/G5.
It's an Imac g5,so no possible way?
Sent from my PC36100 using XDA App
nope, you need a intel machine. i looked around on their website for the source code so it can be compiled for your arch, but its not listed. lame sauce
I believe im onto something. It's not in the files list, but I stumbled on something. I'll bookmark this thread and try to work on something this weekend.
Yeah PPC isnt a arch they have a build of the SDK for, but ive seen source somewhere. I'll dig around.
After cd draged tools folder into terminal,and hit enter says"is a directory"
Typed ./adb enter and got "no such file or directory"
Sent from my HTC EVO
See... this is why you should never own a MAC. If you get a PC, you can put anything on it.... any flavor of windows, linux, etc... and you can even do multiboot and have all of those OS's.
But.... you could always go get a netbook for about $250 over at costco. They have windows on them and USB ports. Should be perfect for this kind of deal.
Once again Mr.Jobs disappoints
I have a mac and no issues using adb.
keanpndx256 said:
After cd draged tools folder into terminal,and hit enter says"is a directory"
Typed ./adb enter and got "no such file or directory"
Sent from my HTC EVO
Click to expand...
Click to collapse
remember to add a space after cd before you drag the tools folder and hit enter
I'm having the same issue on a PowerPC G5. Trying to use ADB to use the RemoteSMS app. I need a new intel Mac Pro!!
ok,,,noob here.. but not a dummy. I want to load music on my sd card. I have downloaded everything I think I'm supposed to have.. SDK, adb, drivers eclipse java program...I'm running vista 32 and have created C:\program files\Android\android-sdk-windows. I have extracted all files I think all the drivers. I have spent some considerable time (wee hours ..) I can start the sdk .exe and the java eclipse but how do I use it to connect to my usb connected phone? I want to load data onto my sd card. BTW I have temprooted with VISIONary r14.
The cmd prompt window that comes up with the sdk .exe does not respond to typing in it. Commands typed into the computer's cmd prompt are not recognized. Or maybe I'm typing the wrong thing. I can't navigate to the android folder, to find my usb'd phone. I have read a lot of posts here trying to figure this out..I'm really at wits end anybody please help!!! I thought there'd be a desktop lauch icon..haha.
There's a guide for using ADB in the dev forum: http://forum.xda-developers.com/showthread.php?t=865685
If you are just trying to put music on your SD card though, I don't think you need to do all of this. Just mount the SD card once your phone is connected to your computer (there will be an option that appears in your notification drawer to do this). Your SD card will then show up as a drive on your computer...
I saw that guide..Step 4 doent apply on vista.."My Computer" and the path that is described is not on Vista, or anything similar. I can't "update your Path variable." It did not say HOW TO LAUNCH! What is it application that I need to work from for adb? I have read every post I could find here..and that one maybe four or 5 times. I want to use adb I can see and browse my SD card as drive F..thanks..I still want to run adb.. I cant type into the sdk cmd pane.
captmack007 said:
I saw that guide..Step 4 doent apply on vista.."My Computer" and the path that is described is not on Vista, or anything similar. I can't "update your Path variable." It did not say HOW TO LAUNCH! What is it application that I need to work from for adb? I have read every post I could find here..and that one maybe four or 5 times. I want to use adb I can see and browse my SD card as drive F..thanks..I still want to run adb.. I cant type into the sdk cmd pane.
Click to expand...
Click to collapse
Whoa whoa whoa! If all you want to do is load music on your phone and your using Windows, either just install Doubletwist on it. It's kind of like iTunes for everything. Or just make a music folder and load your music onto that. No adb needed.
Now, about adb; there is no program to run. You don't really need to set your path either, it just makes things easier. Just cd to the sdk tools folder.
Sent from my HTC Vision
It's not all i want to do...i should not have mentioned it.
cd to the ??
If I wish to make an adb command, what and where do I go/do to do that....on a vista puter....thnkx
I can see tghe adb android interface is there ...I figured out to right click on "computer" "manage", which opens Computer Manager. There in the left column is "Device Manager" clicked on that and I see the Android Phone listed, with subcatagory android adb interface. and down at the bottom under "Portable Devices" HTC is shown. All drivers are showing up and say they are functioning properly.
appreciate the help..
captmack007 said:
It's not all i want to do...i should not have mentioned it.
cd to the ??
appreciate the help..
Click to expand...
Click to collapse
Oh I see. You first mentioned simply putting music on your phone and the next thing you've got a full development emvironment! Lol!
Cd to the tools folder of the android sdk. (Bear with me as I haven't done this on windows in a good long while). For example, open command prompt, then type "cd C:\androidsdk\tools", where the androidsdk part is whatever the sdk is called.
Sent from my HTC Vision
Once you have the android sdk on your computer- change the folder name to something simple so typing is easier. You'll also want to edit the enviornment variables (google is your friend, but I'll post a link tomorrow to help). The latest sdk is missing a dll file - I'm sure one of us can upload it, I just don't remember which one it is right now.
Now that you've got that done open command prompt an type:
cd c:\where\you\put\it (the sdk)
Then type:
adb devices
Or
adb start-server
If you get an error it means you did something wrong.
"cd C:\androidsdk\tools
I'll ad that to the list of command that do nuttin...lol
I downloaded all the sh*t I was told in these threads to dowload...yeah..everything to create an app. lol
I still am waiting to read or be informed of the precise command line that will let me into adb... tfn
thks KCRic... I will give that a shot.. nice tip on renaming the folder..I did not type cd C: first.. (the tuts I've been rackin my brain on did not say that..
I had read that it was missing and found it downloaded it and put it in tools..
the edit the environment variables is what I can't find where to do that.. thanks.
I added the missingAdbWinApi.dll and AdbWinUsbApi.dll and Adb.exe (of course) into the tools folder...
I renamed the folder in Programs\Android..."android-sdk-windows" simply "sdk"
I typed in:
cd c:\program files\Android\sdk\tools
I got in..opened a port..gave me my phones serial #
so this is where adb commands are made? (stupid question perhaps)
I thought the other cmd screen that opens with the sdk.exe was it. And I cant type anything there anyway.
If you have got "adb devices" to show you your phone's serial number, then adb is working find, and you can start using the other adb commands.
Sent from my HTC Desire Z
captmack007 said:
I renamed the folder in Programs\Android..."android-sdk-windows" simply "sdk"
I typed in:
cd c:\program files\Android\sdk\tools
I got in..opened a port..gave me my phones serial #
so this is where adb commands are made? (stupid question perhaps)
I thought the other cmd screen that opens with the sdk.exe was it. And I cant type anything there anyway.
Click to expand...
Click to collapse
Just type "adb", no quotes, and that will give you an output of all the adb commands.
captmack007 said:
I renamed the folder in Programs\Android..."android-sdk-windows" simply "sdk"
I typed in:
cd c:\program files\Android\sdk\tools
I got in..opened a port..gave me my phones serial #
so this is where adb commands are made? (stupid question perhaps)
I thought the other cmd screen that opens with the sdk.exe was it. And I cant type anything there anyway.
Click to expand...
Click to collapse
Yeah you're up and running now. If you typed adb devices or adb usb and got it to list your phones serial # then it's connected and running.
As far as adb commands, you can type adb help to get a list of some and they're pretty easy. Some of them are:
adb push <path\to\file> <where\to\push> - copies files to your phone
adb pull <path\to\file> <where\to\put\it> - copies files from the phone to your computer
adb remount - remounts your device
adb reboot - self explanatory
adb install <path\to\file> - self explanatory
adb start-server - starts adb service
adb kill-server - kills adb process (I always type this in when I'm done, sometimes it doesn't terminate and causes issues)
adb shell <linux type command> - runs command in the device shell
adb shell [enter] - operates in the devices shell until you type {exit}
Once you enter the shell you can type {su} to enter superuser. All commands in the shell are in linux format so if you're unfamiliar with that then do some reading.
HERE is a link that should help with adb also.
KCRic said:
As far as adb commands, you can type adb help to get a list of some and they're pretty easy. Some of them are:
adb push <path\to\file> <where\to\push> - copies files to your phone
adb pull <path\to\file> <where\to\put\it> - copies files from the phone to your computer
adb remount - remounts your device
adb reboot - self explanatory
adb install <path\to\file> - self explanatory
adb start-server - starts adb service
adb kill-server - kills adb process (I always type this in when I'm done, sometimes it doesn't terminate and causes issues)
adb shell <linux type command> - runs command in the device shell
adb shell [enter] - operates in the devices shell until you type {exit}
Once you enter the shell you can type {su} to enter superuser. All commands in the shell are in linux format so if you're unfamiliar with that then do some reading.
HERE is a link that should help with adb also.
Click to expand...
Click to collapse
Apologies if you've seen it already, but most of that is covered in the adb guide on the dev forums, with that link also - http://forum.xda-developers.com/showthread.php?t=865685
Thanks for the great info... Now I'm standing at the gate (maybe the precipice..lol)
As far as completing the pathway...
I found (through excrutiating trial and error) the Vista path for step 4 on that tut.
So under "Environment Variables" there are two editable windows, and the bottom with the "Path" that the tut says to edit says to ad the path to the tools folder and the platform folders...
The question is, when I double click to edit the Path line,(C:\Program Files\JavaFX-sdk1.3....) it changes to a different path (~1C:\Program Files\Quicktime\QTSystem\
So am I to delete that line and ad a new path or ad to the Quicktime line..
ty
The existing path was probably just too long to show up on the screen (so you saw the beginning of the line initially and the end of the line when you tried to edit it). Just add a semi-colon and then the path you want to add. You don't want to delete what you already have there since it might mess with other software installed on you computer.
So for example:
...C:\Program Files\Quicktime\QTSystem\;C:\android-sdk-windows\tools
Quicktime and android are both separatefolders under program files... so....no.. that's not it. I don't even know why java showsthere... my sdk is in C:/Program Files/Android/sdk/tools...
p.s. how you do backslash on this keyboard....lol
Sent from my T-Mobile G2 using XDA App
The path is simply a listing of directories separated by semi-colons. When executing a command, Windows will check the local directory you are in first for the program, and then parse through the directories listed in your path. This is why this step is even needed (it allows you to run adb.exe from any directory instead of always having to change to the tools directory). This is also why I said it's not a good idea to simply delete what is already there. You just want to add the tools directory where adb.exe is located to the existing listing.
So in your case, the end of the path variable will look like this:
...C:\Program Files\Quicktime\QTSystem\;C:\Program Files\Android\sdk\tools
Alternatively, you could stick it in the beginning of the path (so double-click to edit the variable, hit Home to go to the beginning, and add the directory there with a semi-colon). It should look like this in your case:
C:\Program Files\Android\sdk\tools;C:\Program Files\JavaFX-sdk1.3...
And there is no backslash on the G2 hardware keyboard (as you noticed), but you can access it by hitting the Alt key and then space to pull up a dialog box of additional symbols.
Word of advice to anyone reading this:
When adding the adb to your path make sure and don't put a space after the the semicolan. When I set mine up I spent 4 hours trying to figure out why it wasn't working, and it was the stupid space lol.
I haven't looked at the wiki since I did it back in October so maybe they've updated it to be clearer but just want to throw it out there.
Sent from my HTC Vision using XDA App
Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
30bushido1 said:
Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
What version of windows are you on? You followed all of the instructions on setting up adb from that thread in the Shift forums? I also rooted my roomate's Shift, and I read that adb setup tutorial when I was over there. It was pretty solid. I already had adb set up, but read it through to see. When I set up adb, I had someone advise to me to place the adb.exe, and that .dll file (found in platform tools, in the SDK download) in my 'system32' folder of my PC. Once I placed those two files in the 'system32' folder, adb has worked flawlessly.
Also, have you made sure you have all the correct drivers installed? I believe I also had to install HTC Sync, because that installed some drivers that were necessary. Once it installed, I uninstalled it (the drivers will remain installed) because it can interfere with adb communication, apparently. Hope you get it set up. Once you do, rooting the Shift wasn't hard. Just follow the instructions to the t, and just copy and paste the commands, to eliminate the possibility of messing up the commands.
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
30bushido1 said:
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You're welcome, feel free to PM me if you have any more issues.
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Muellersirch said:
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Click to expand...
Click to collapse
By putting the adb.exe and the .dll files in the 'system32' folder, that will allow you to execute adb commands from any directory in the command prompt. I don't have to navigate to my sdk tools to use adb. It saves a few steps, so you can just open up your command prompt and command away.
Or you can put the directory that contains adb in your system PATH. This will let you execute adb in a command prompt anywhere...
Sent from my ADR6300 using XDA App
I'm running wd7. I've gone through it again and installed the drivers then uninstall HTC sync I'm still not able to access sdk through the command prompt. I know its something simple I'm missing how do I move adb to the system path
Sent from my PC36100 using XDA App
C:\user\paul>
Is what the terminal reads any command I enter is not recognized as an internal or external command.
I have got the command list to show up but cannot exicute any of them
Sent from my PC36100 using XDA App
hi my htc desire keeps restarting when i flash any gingerbread miui rom i have tired data2ext and a2sd and have wiped and also formated my sdcard and stil have same problem with both but it works fine with all other roms and the froyo version of miui. please help
What hboot are you using and how did you root your phone?
Sent from my HTC Desire using xda premium
hi im using normal hboot-0.93.0001 i used unrevoked to root my phone i am not really a noob i have flashed and rooted many phones but for some strange reason all other roms including miui froyo work on my phone but gingerbread miui wont it loads up to the home screen and then just reboots ive tried data2et version and a2sd version and same thing happens with both versions.i have also tried using diffrent recoverys amon-ra,clockwork etc and still get the same problem.
You need to understand what is going on under the hood.. Getting an adb logcat is the way to go..
Code:
Windows>Start>Run
echo "null" > log.txt
start log.txt
adb logcat > log.txt
Use Notepad++ to associate with the txt file and reload the file every couple of seconds while keeping the cmd shell in the background.. See what's happening just before it reboots. It could be anything from a bad script to a bad module
Have you tried gingerbread 2.8, its simple and a very plain ROM, I have had issues with miui roms with my desire, if that doesn't work I will keep looking my self, sorry I'm not very insightful, you have an odd problem.
Sent from my HTC Pyramid using xda premium
Nice one Droidzone, I will have to try that also.
Sent from my HTC Pyramid using xda premium
Hi droidzone thanks for your reply could u please maybe help me and tell me the steps to get the log cat i know how to access adb by cmd but thats about it im a noob when it comes to adb commands and dont know much about it and didnt really understand the commands that u asked me to do,do i enter those while in adb or before.
casanova786 said:
Hi droidzone thanks for your reply could u please maybe help me and tell me the steps to get the log cat i know how to access adb by cmd but thats about it im a noob when it comes to adb commands and dont know much about it and didnt really understand the commands that u asked me to do,do i enter those while in adb or before.
Click to expand...
Click to collapse
Once you open a command line prompt in the folder where adb is installed (or anywhere else, if the file adb.exe is in your Windows path variable-Dont worry about that if you dont know), you can directly type each line of the commands starting from step 2.
Before that, install Notepad+, and associate .txt file to open with it by default..
By the way, you have to start typing those commands directly after rebooting from recovery after installing the Rom..
hi droidzone i have installed notepad++ but dont understand how to install Notepad+, and associate .txt file to open with it by default. also my adb is located in c:\androidsdk\tools that is what i type in cmd to get adb working and if i type adb devices it shows my device.also i typed the commands u gave me once in adb and it says "the process cannot access the file because it is being used by another process."
casanova786 said:
hi droidzone i have installed notepad++ but dont understand how to install Notepad+, and associate .txt file to open with it by default. also my adb is located in c:\androidsdk\tools that is what i type in cmd to get adb working and if i type adb devices it shows my device.
Click to expand...
Click to collapse
Hmm.. I seem to be offering more Windows support than Android!
I meant Notepad+. Hold Shift, rightclick any text file, Choose Open with Notepad+ as default. You can go to your adb folder like you normally do and then type each line I posted and hit Enter after each time. You can also make a batch file with all those commands (search Google for that if you dont know how)
hi thanks i have made notepad+ to open as default but when i type the commands u told me it says "the process cannot access the file because it is being used by another process."
casanova786 said:
hi thanks i have made notepad+ to open as default but when i type the commands u told me it says "the process cannot access the file because it is being used by another process."
Click to expand...
Click to collapse
Hmm yes, that can happen if you have more than one adb.exe process running in the background because you exited it by closing the command shell with the close button instead of typing
Code:
exit
after done with it.
Use Ctrl+Alt+Del or Process Explorer to terminate the background adb.exe processes
I have done everything accordingly but I keep getting this error: 'adb' device is not recognized as an internal or external command, operable program or batch file after typing adb device..... plz help!!
You downloaded the sdk and your device drivers?
If you ran the updates, look in your andoid-sdk\tools\ folder and I bet there's a txt file that says adb tools has moved, or adb.exe or something like that.
Go to the folder where it moved to. Copy the path to that folder.
Go to Control panel\System\Advanced Settings\Environmental Variables and then double click on path in the lower window. If there's something in there, add ;<path to adb tools>
For me, it's C:\Android\android-sdk\platform-tools
The easiest way I got adb to work is when I rooted my friends inspire 4g the .zip came with adb and the program and some other stuff so I unzipped it and went to CMD and typed adb and it worked
Sent from my PC36100 using XDA App
HipKat said:
If you ran the updates, look in your andoid-sdk\tools\ folder and I bet there's a txt file that says adb tools has moved, or adb.exe or something like that.
Go to the folder where it moved to. Copy the path to that folder.
Go to Control panel\System\Advanced Settings\Environmental Variables and then double click on path in the lower window. If there's something in there, add ;<path to adb tools>
For me, it's C:\Android\android-sdk\platform-tools
Click to expand...
Click to collapse
yeah I found a .txt saying exactly that n explaining how to get it, im all good now =) now all I need to do is learn to use adb..... being a newb is hard work jeje thanx every1 for ur replies
No prob.....
There are a lot of tutorials on the web. Google is your friend lol
HipKat said:
No prob.....
There are a lot of tutorials on the web. Google is your friend lol
Click to expand...
Click to collapse
Yeah dats exactly what I used, google (its like everybody always has it in them to always use google ) anyways I found one here on xda n I gotta say its pretty simple once u get used to it =)
-Rr!cAn 3v0