[Q] Need help with PATH variable in ADB! - General Questions and Answers

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.

Related

Help creating virtual sdcard for android emulator

Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!
SimPRoBer20 said:
Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!
Click to expand...
Click to collapse
You need to either add the sdk\tools folder to your path (PATH environment variable), or actually cd to the tools folder or fully specify the path. The error is Windows telling you it has no idea what this mksdcard thing you're talking about is because it can't find it.
This is pretty basic command line stuff, not Android specific--you can develop without knowing about it, but it's worth spending some time learning. (I recommend DOS for Dummies for DOS 6.2, if you can find it. Seriously. I've probably read that book a dozen times and I don't think there's anything like it for Windows. The modern cmd.exe isn't that different from command.com.)
Of course, you can also specify a virtual SD card when creating an AVD from the graphical SDK and AVD Manager, and skip the command line business.
ok i get what ur saying.
like i find the file through
c:\android-sdk-windows\tools\mksdcard.exe
then when it finds it
c:\android-sdk-windows\tools\mksdcard.exe mksdcard 64M sdcard.iso?
im confused
and when i make a sdcard in avd manager or watever its called my emulator cant find the sdcard. and even droid explorer cant see any of the emulators files. an idea what the problem could be or am i just blatently missing something?
SimPRoBer20 said:
ok i get what ur saying.
like i find the file through
c:\android-sdk-windows\tools\mksdcard.exe
then when it finds it
c:\android-sdk-windows\tools\mksdcard.exe mksdcard 64M sdcard.iso?
im confused
and when i make a sdcard in avd manager or watever its called my emulator cant find the sdcard. and even droid explorer cant see any of the emulators files. an idea what the problem could be or am i just blatently missing something?
Click to expand...
Click to collapse
You're making it too complicated.
Code:
> c:\android-sdk-windows\tools\mksdcard 64M sdcard.iso
Where "> " is just the prompt that's already printed on the screen. You only need the name of the command once.
ok so after i do that. it just gives me a fresh cmd line like i never typed anything in in the first place.
and when i go to look for the file its nowhere to b found.
is this normal?
wait!! i think i may have just found them
whats the most common method of emulating zip files that ppl make?

General Linux question

OK so I am running Ubuntu 9.04. I have a couple of java files that I would like to be able to run from terminal from anywhere in the system. Is this possible? Basically I don't want to have to move my target file to the folder that contains the .jar file every time I run it. Does that make sense?
Any help would be appreciated. I have been pretty much reliant on Linux for the past 3 months but I haven't figured this one out yet and it is kinda bugging me.
http://www.google.com/search?source...nG=Google-søgning&meta=lr=&aq=0&oq=linux+path
adding their dir to the path could fix that if I understand you correctly

Setting up ADB

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.

[GUIDE] Save apps to sdcard Surface RT 8.1

Assuming that you have:​
Not modified the registry.
Surface RT with Windows 8.1
Patience (Essential)
First: Taking ownership.​Use
Code:
takeown /F "C:\Program Files\WindowsApps" /A /R
Second​ Let's remove the C:\Program Files\WindowsApps folder (As we have already taken ownership we can do this) just use "SHIFT+SUPR".
There is also a way to preserve already installed apps, this shouldn't affect but in the proccess I just deleted everything, anyway, you decide...
Code:
robocopy "C:\Program Files\WindowsApps" "D:\WindowsApps" /E /COPYALL /DCOPY:DAT
and then just use "SHIFT+SPR" to delete the folder.
Assuming that your news apps folder is at "D:\WindowsApps" change it to the directory where you want to have the apps.
Third​Now let's create the symbolic link
Code:
mklink /D "C:\Program Files\WindowsApps" "D:\WindowsApps"
Restart
Try to install an app and... d*mn! Error 0xd00000bb
Don't worry just right click over the new app directory, in my case "D:\WindowsApps" and choose properties... then Security tab and then Advanced now we must be sure that there is the "ALL APPLICATION PACKAGES" with full control if it isn't then just add it. Enable inheritance and tick the option "Replace all child permi..." then ok and wait... when it's done go to the Windows Store and click "Retry" and.... voi lá app get installed.
Be hapy :good:
I'll try to do this later. But has anyone else tried this and confirmed it works. Also, I'm not a pro, so I don't understand what "use "SHIFT+SPR" to delete the folder." means. Can you elaborate?
I just bought one of these cheap 16gb Win tablets for my son and I'm SOOOOOOO mad that I can't install apps on the SD card. What a joke.
Ok. So I created the D:\WindowsApps and did the robocopy. That took about 30-45minutes.
I tried to create the link, but it said the link was already created. So I don't know about that. Does the robocopy create a symbolic link?
PS. I discovered with some Googling 'Shift+SPR' is 'Shift Delete in Spanish.
thehotrod11 said:
Ok. So I created the D:\WindowsApps and did the robocopy. That took about 30-45minutes.
I tried to create the link, but it said the link was already created. So I don't know about that. Does the robocopy create a symbolic link?
PS. I discovered with some Googling 'Shift+SPR' is 'Shift Delete in Spanish.
Click to expand...
Click to collapse
Did you deleted original folder in C:\ yet?
I tried this procedure three times today. I was never able to delete the WindowsApps folder from my C drive. And it would continue to install my apps on the C drive. Moreover there were no security options on the WindowsApp folder on my SD card. Frustrated that I spent so much time on this and didn't get anywhere.
If there are no security options on the SD card, then the SD card isn't using NTFS. FAT obviously doesn't support ACLs, so it has no security settings.
If you can't rename or delete the original folder, then obviously you can't replace it with a symlink. You'd have two things with the same name! Robocopy doesn't move files and folders, it copies them (surprise...).
Thanks GDTD
GoodDayToDie said:
If there are no security options on the SD card, then the SD card isn't using NTFS. FAT obviously doesn't support ACLs, so it has no security settings.
If you can't rename or delete the original folder, then obviously you can't replace it with a symlink. You'd have two things with the same name! Robocopy doesn't move files and folders, it copies them (surprise...).
Click to expand...
Click to collapse
HI again internet.
I tried this method with little success. Then again I had a bitlocker encrypted SD not sure if that makes a diff??
Have fun
Wcomhelp
Would this work on 8.1 with Bing? Could someone write a script, to automate the process?
Thanks!
"robocopy" Not Working?
First, i tried to post a comment but since my hotspot was a sprint isp, it denied me. Such a pain and waited a long time to finally register. I finally got around to accessing cable internet to register. But by now, I already found my answer. So here it is.
If you cannot successfully complete the robocopy (says access denied for certain files), you need to fix the permissions first.
1-Before starting these instructions; you must have "ALL APPLICATION PACKAGES" added in the permissions of D:\WindowsApps or wherever that folder is on D. But also be sure to hit the "Full Control" box before saving.
2- Start this tutorial and the robocopy should work.
Hi,
I cannot seem to get the permissions in the SD card folder to work permanently and folder permissions keep reverting to read-only. I have been able to install one app in the SD card folder but now I am continuing to get the error.
Any kind soul would like to explain how to permanently set the permissions to that will make sure that this works?
Thanks a lot.
You didn't mention that the SD Card must be formated as NTFS system in order to take into account correct NTFS Right access.
Does it valid only for Windows 8.1 RT version ??? I am trying on Windows X86 32Bits but doesn't works
Deleted
I'm also interested if it is possible to do this on other machines with Windows 8.1.
I followed the instructions above, but when I'm trying to install i.e. Adobe Touch app, I'v got an error: 0x80244022.
tried in windows 8.1 pro and it does not work. As soon as i open an installed app it opens for a few secconds and the exit imediately.
Please help.

Possibly Close To Solving Java on Windows RT?

Alright I've searched for a while to find a way to get my Surface 2 to run .java files as I have Notepad++ on here. I've seen that there is a Java version for ARM architecture but it's for the Raspberry Pi.
What I've done so far, and I'm hoping that someone else will be able to take it further as it will be a very valuable tool, is;
-Download the Java file 'Linux ARM 32 Hard Float ABI' from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-Extracted the .tar.gz file using 7Zip, then extracted the .tar file the same way.
-Moved the jdk folder into C:\Program Files\Java (where it would go if being installed on a normal Windows computer)
-I then used an elevated Command Prompt to open Environment Variables and added JAVA_HOME to the system variables with the value 'C:\Program Files\Java\jdk1.8.0_73'. I also edited the Path variable to include 'C:\Program Files\Java\jdk1.8.0_73\bin'
Now as far as I know surely that's half the job done? But if I try and do anything in cmd that starts with 'java' it says it's not recognised.
Have I done the Paths wrong? Another thing I noticed is that on a Windows 10 PC there are also Java files in 'C:\ProgramData\Oracle\Java\javapath' but this is the only difference between Java on my laptop and Surface.
The problem is these files are compiled for x86 or x64 architectures and won't do anything on my Surface.
Considering the files in ProgramData are now the only Java differences between my laptop and my surface and I've been told it's possible to install Java without using the installer and just copying files across a system, would it be possible for anyone to find a way to have those files on an ARM system or a way to run it without those?
Bear in mind this is the first time I've properly tried to do anything like this so if it's a bad idea please let me know nicely lol. I just haven't seen anyone go down this route, maybe there's a reason but it intrigued me so I thought I'd ask.
Thank you
You can't run Linux binaries on Windows. So downloading the Linux version of JAVA will not work.
EDIT: It's an interesting concept. It should be theoretically possible to compile OpenJDK to work on RT.
abtekk said:
You can't run Linux binaries on Windows. So downloading the Linux version of JAVA will not work.
EDIT: It's an interesting concept. It should be theoretically possible to compile OpenJDK to work on RT.
Click to expand...
Click to collapse
Oh I see, yeah I wasn't sure how far it could go but I thought I'd put it out there. I have absolutely no idea how to go about compiling that so I'm hoping someone sees this and does everyone a favour as this would be an extremely useful tool to have!

Categories

Resources