Setting up ADB - Asus Transformer TF700

Hey guys,
I'm sure there are more appropriate places to post this but you guy have been so great with helping me get a feel for the ASUS setup (came from Moto's way of doing things).
I was setting up ADB on my machine (Windows 7 32-bit Lenovo laptop) and came to the step where I have to set the environment variable. I went to change the path to where my 'platform-tools' folder is located but this was in the field:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\
Should I delete all that or append the path to the end after a semi colon?
Thanks in advance!

I_EAT_BABIES said:
Hey guys,
I'm sure there are more appropriate places to post this but you guy have been so great with helping me get a feel for the ASUS setup (came from Moto's way of doing things).
I was setting up ADB on my machine (Windows 7 32-bit Lenovo laptop) and came to the step where I have to set the environment variable. I went to change the path to where my 'platform-tools' folder is located but this was in the field:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\
Should I delete all that or append the path to the end after a semi colon?
Thanks in advance!
Click to expand...
Click to collapse
Append to the end. Deleting will remove access to all of the other paths.

Nevermind, figured out I did need to append it. Please delete thread, thanks.

Related

DDMS Screenshot Help

I've been trying to take some screenshots on my G1 for some time now but nothing seems to work. I followed the instructions on these two pages http://www.allshadow.com/forum/viewtopic.php?f=9&t=4739
http://soi.kd6.us/2008/11/06/so-i-took-a-screenshot-on-my-g1heres-the-howto/
But ddms won't launch. Every time I click on ddms in the android-sdk-windows-1.1_r1\tools folder a cmd prompt flashes and then nothing happens.
What am I doing wrong? Or is there something wrong with my phone?
Now windows didn't prompt me to install new hardware when I plugged in my phone so I had to open Control Panel | Administrative Tools | Computer Management | Device Manager, go down to Other Devices and choose the Android phone, then right click Properties, and choose Update Driver, then browse to the specific location.
Does that make a difference?
Also I'm running on windows vista on my computer and I'm running JFv1.42 on my G1
Any help would be greatly appreciated. Thanks :]
Instead of running the batch file, have you tried to run cmd prompt first? Goto Start > Run > type in 'cmd' and hit enter. Then type in ddms and hit enter.
It seems whatever is happening, it is throwing an error once you click the batch file, so at least instead of closing you can post the error message here then it'll be clearer as to what is happening.
I opened up the cmd prompt and typed in ddms and this is what I got:
" 'ddms' is not recognised as an internal or external command, operable program, or batch file"
Does that mean that its not installed properly?
And I forgot to mention in my original post, that none of the batch files in the tools folder launch when clicked on.
Sounds like you haven't installed the SDK properly, especially the step where you add the /tools directory in the system environments.
Try this though: Copy the ddms.bat file and put it in /system32/ folder on your pc, and then try to launch cmd and run again..see if that helps.
Thanks
I figured out the problem. C:\WINDOWS\system32 wasn't in the system enviroments path
ChelseaO88 said:
Thanks
I figured out the problem. C:\WINDOWS\system32 wasn't in the system enviroments path
Click to expand...
Click to collapse
I'm having the same issue...how do I go about adding this?
Code3VW said:
I'm having the same issue...how do I go about adding this?
Click to expand...
Click to collapse
in windows, right click on my computer, go to properties, in one of the tabs, its in there.....
if you are running linux, and asking this, then you shouldn't be using linux....
Vista Home Premium...
I click on "Environment Variables" in the Advanced tab and it opens another menu, one with the option to add user variables, and one with system variables. Which one do I need to add, and what exactly do I need to add?
I tried creating a system variable with the variable name of test and the path as C:\Windows\System32 but it didn't solve the problem...
If I open cmd and cd to my sdk directory and type ddms I get:
Unable to access jarfile lib/archquery.jar
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
its a hell of a lot easier using eclipse, just hit the ddms tab and click the icon that looks like a picture
nobody knows how to make this work without using yet another program??
still cant figure this out
Having the same problem, when I click ddms it flashes then disappears. Any idea how to add the file path in windows 7?
If you can't get this to work - There's a nice little program in the market, simply called "screenshot" (free), that'll let you make screenshots either with a timer or by shaking the phone.

ABD for MAC users PLEASE HELP

Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
You mean adb, right?
The commands for adb are pretty much the same ones used on windows
Not development...post in general.
Anyways,
do you have the sdk set up as per these instructions? You dont need to worry about the eclipse stuff. The most important thing is getting the sdk downloaded, extracted and the /tools dir added to your path. From there, the command are exactly the same. eg:
Code:
adb push
adb pull
adb shell
adb shell reboot recovery
...
LostinThesauce said:
Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
Click to expand...
Click to collapse
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
hr00st said:
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
Click to expand...
Click to collapse
You dont have to mount the folder. It may be easier but in the long run adding it to path will teach you more. Just do a google search on edit path osx and you will find how to create or edit the bash_profile to add the tols folder to your path. from there you just open terminal and adb away
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
add me as #2 who never went iphone. i stayed winmo until i could get a canadian spphire shipped to usa to run the htc sensui. btw...i use mac for me and pc at work and my macbook runs a virtual machine so i fire up xppro os in a dedicated "spaces" desktop so i do use sdk and copilot's nav interface in windows.
i guess i'm "bi". actually "tri" now
Good to go
got it running this is fun
LostinThesauce said:
got it running this is fun
Click to expand...
Click to collapse
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
lpasq said:
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
Click to expand...
Click to collapse
There is no need in this. Everyone can find all information on GOOGLE. It is easer then "Easy Button"
MAC+ANDROID=FRIENDS FOREVER!
Setting up ABD for OSX, Hackintosh, mac newbies like myself.
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Johnny Blaze said:
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Click to expand...
Click to collapse
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
really??i know of many people lol..macs are just better and less of a pain in the ass to use..and if you watch the google confrences..theyre using macs lol
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
i use a mac and love android. hate the iphone
lpasq said:
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
Click to expand...
Click to collapse
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
hr00st said:
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
Click to expand...
Click to collapse
thank you. yes, respect and support

[Help!] Compiling an Android APK on Windows using Eclipse

I recently worked on a theme for some home alternative apps but when I tried to compile it in Eclipse, things seemed to be missing (for example Keytool and Jarsigner) which are not in my SDK directory anywhere.
I was able to get the theme to work by using the APK from someone else's, replacing the images with mine and signing using the Autosign tool downloaded from XDA but I was unable to change the name of the app in the Manifest.
So my question is, is there a way to compile in Windows at all? Reading the guide on the developers.android page didn't answer anything for me.
Also, would there be anyone willing to walk me through that? If not, just knowing if its possible is enough for me.
Windows 7 64-bit
im on windows 7 64 and I can compile my apps without any problem. right click on the folder of your app -> android tools -> export as signed / unsigned (which ever you prefer)
The "keytool" and "jarsigner" programs are in the JDK, which you'll need to get from Oracle (formerly known as Sun). Set the JAVA_HOME environment variable to the JDK directory; in my case, C:\Program Files\Java\jdk1.6.0_18, and add the JDK's bin path--in my case, C:\Program Files\Java\jdk1.6.0_18\bin--to your PATH environment variable. You may need to logoff/logon or reboot for everything to settle out. If you get the latest JDK, the paths should end in _20 instead of _18.
jarsigner is not needed in eclipse as eclipse will sign and zipalign the apk for you.
File | Export
Choose Android | Export Android Application
Create a new keystore via the tool and it will automatically sign and zipalign creating a nice new apk for you

Need help with editing APKs using various tools URGENT!!!

So, I've got a lot to say and will try to be as thorough as possible. I will answer questions if needed to know certain issues of mine better. I'm sure I'll probably forget a couple things but will say what's going on to the best of my ability.
I'd like to say I am in a real bind and my folders are a complete mess with WAY too many tools and I don't think I need them all. But these are tools that were suggested to me or in a link containing several more tools. I am no longer going to edit APK files or do anything else till my issues are resolved and I've been given the best suggested tools that are CURRENT (please no outdated stuff). I can provide links to most of the tools or suggestions that were given to me if needed. I've bookmarked every link.
I don't know who is going to see and read this but really do hope someone can work with me on fixing up my issues I'm having with all this. Also, if this thread has responses from whomever, could you also tell me where each folders should go and what needs to have its' own folder?
Here is my current set-up:
2 folders on C:\ directory (contains: android-sdk-windows and Android folders and separate)
In android-sdk-windows\platform-tools folder it contains:
lib (folder)
llvm-rs-cc.exe
source.properties
aapt.eve
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
aidl.exe
dexdump.exe
dx.bat
NOTICE.txt
finishedpngs (folder)
framework (folder)
SystemAppsOriginal (folder containing my original /system/app APKs from Droid 2)
projects (folder containing nothing yet but placing specific APK(s) here)
eclipse (folder)
Eclipse Workspace (folder belonging to eclipse program)
SDK (folder containing another SDK just like android-sdk-windows, don't know why I have this now)
NotePad ++ (folder)
Update Modifier (folder)
PNG Gauntlet (folder)
XMLEditing (folder when I get to editing XMLs I'll place it here for work)
xUltimate Draw9Patch (folder)
xUltimate Theme Optimizer x64 (folder)
xUltimate (folder)
xUltimate Color Converter (folder)
APK Manager (folder)
These are all on my laptop on the c:\android-sdk-windows\platform-tools folder. The reason I put them all in there is because some of them are requiring adb.exe and those 2 DLL files to be able to function on but it's not working like that. So, what I did was copy adb.exe, AdbWinApi.dll, and AdbWinUsbApi.dll into the APK Manager and Update Modifier folders so the Script.bat would work. Now I don't know if that was a good idea or not. It worked on making them operate but I'm getting errors in the APK Manager when I need to compile stuff, or adb push back to phone. It's not working correctly.
In Android folder:
PSPad (folder containing the program to read and supposedly edit XMLs)
RSDLite (goes with SBF)
SBF (contains the zip to restore my Droid 2 back to stock)
The rest are misc. stuff that's just screenshots and stuff not associated with my issues
Only success I have been able to do was run Command Prompt and do adb pull and adb push which runs through the adb.exe in the android-sdk-windows\platform-tools folder.
I had to boot into recovery via Clockwork bootstrap, unmount system and then do the adb push on one of my APK when I was finished editing just PNG image files. No .9.png image files. I hear you need APK Manager to take care of issues with that due to boundaries and chunks being lost or messed up.
I have tried several different methods. Only success was finally doing adb pull and adb push through android-sdk-windows tool but that took me ALL weekend. I'm not talking 3 or 4 hours. I'm talking from 9am to noon, lunch break, then till 3am in the morning and then repeat on Sunday morning till 2am. I DO NOT want to go through that again yet I'm still trying to sort through all this mess and eliminate tools and such and get the right things and MAKE them work according to how they are suppose to function.
I don't know if all those extra tools are suppose to be in the platform-tools or not. I don't know what else to do here. Like I said, I went through several methods but most are applied to what the dev has like for G1's and other phones. My phone is the Motorola Droid 2 A955 build.
I was able to successfully push Music.apk back to the phone and see the changes I made. I was happy. All I did was just change the colors in the PNG image files. I really want to do more than this. Even to .9.png image files, XMLs, smali and baksmali and all that and eventually get onto creating my own theme.
Also, I do have the latest version of Java. I have entered my environment variables. Check here to see what I did:
Under System variables:
Variable Name: adb
Variable Value: c:\android-sdk-windows\platform-tools
Variable Name: Path
Variable Value: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\QuickTime\QTSystem\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre6\bin;
My laptop build: Dell Inspiron 1525 with Windows Vista 32 bit x86
I have 3 threads at the DroidForums site but I had to edit this thread because I can't post outside links till I've posted more than 8 times. I've been a member here for a couple months, just haven't really posted much. I do more reading and researching here on the XDA forum rather than posting, which is what I've been doing for the last 3 days. If you need links to see my more thorough issues then I can provide links by PMing you with them.
Bottom line: All I'm asking is someone who knows my issues to work with me getting this mess sorted out and placing the folders in right places, getting adb to work with multiple scripts that rely on the adb.exe and those 2 dll's, and pointing me to the right direction so I can get out of the woods finally.
Sorry this is long but people understand more when things are laid out more thoroughly, which lacks in a lot of these threads explaining instructions and resolving issues.
Please close this thread. I will be working on my own since I have solved most of these issues on my own and there is no response to this thread in helping.

[Q] Need help with PATH variable in ADB!

So, like a noob, when I was adding to the path variable while setting up ADB on my laptop I managed to completely overwrite the PATH with the addition. Yeah yeah, I know dumb mistake. I just did a copy and paste so there were no typo's. Lesson learned: type it out and double check it for now on. I attribute it to being up too late and inhaling too many Monster's.
Can anybody help me with the whole path? Or at least what the format of it should be so I can cobble it together based on where everything is on my laptop.
Some background: I am setting up my Nook Color to run Honeycomb off the SD card and was in the process of trying to get the google apps onto it. I have a 64-bit version of Windows 7. Everything is in the root folder (C:\) and the drivers are already in there.
All you're entering in there is the path to the sdk phone-tools folder. That's it. So figure out the path something like: c:\sdk\phone-tools then name it adb. I assume this is what you're trying to do?
Here is the path variable from my 32bit Windows 7
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
Hopefully this will at least get you started if it isn't the same on the 64bit.
Just as a note, I warned someone else that the instructions for adding the ADB path were incorrect, that the ADB path needs to be appended to the end of the existing path, not overwrite it.
Thanks. I'll try this.
If anyone else has any input, it would be greatly appreciated.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\adb\android-sdk-windows\platform-tools
Mine looks the same as above poster on my 64bit laptop.

Categories

Resources