Cygwin download - Other Tools & General Discussion

Clear command missing in cygwin download, need command for kitchen.Cannot get terminfo to "skip"
Sent from my N861 using Tapatalk 4

Related

command to install apk

Is there a command that can be used in a terminal emulator on the hero to install an apk from the sdcard? If not can it be done using adb commands? I am trying one of the froyo roms and before I start installing anything through the market, I would like to install a file manager. I have AndExplorer in an apk on the sdcard but I can only access it through adb or a terminal emulator.
Just adb push it to systen/app or you could install appinstaller from the market.
Sent from my HERO200 using XDA App
Open terminal.apk and issue these commands hitting enter after each line.
su
cd /sdcard
cp "app.apk" /data/app
This should do the trick. I don't think it will work with a2sd but I could be wrong. I tested it out just a few minutes ago and it worked great.
Sent from my Heroic using XDA App
mbobino said:
Open terminal.apk and issue these commands hitting enter after each line.
su
cd /sdcard
cp "app.apk" /data/app
This should do the trick. I don't think it will work with a2sd but I could be wrong. I tested it out just a few minutes ago and it worked great.
Sent from my Heroic using XDA App
Click to expand...
Click to collapse
Worked great, thank you for the tip

Need help

I rooted my cool with one click method and tried to flashed the latest tiamat kernel for SD card capabilities got as far as the and remount step and got to the step where you adb push the kernels system files and it didn't work it said file location doesn't exist now my WiFi doesn't work I'm sorry this is just one big sentence but I need help.
Sent from my PC36100 using XDA Premium App
Do you mean it can't find the files on your computer? Easiest fix is to copy all files in every subdirectory of the ZIP archive into one folder and run the adb commands from there.
My cmd is c:/users/(nam
Sent from my PC36100 using XDA Premium App
E)/ and I put the kernels system files there and adb pushed the file name and location and it still didn't work
Sent from my PC36100 using XDA Premium App
does your cmd window look anything like the attached file?
put single qoutes around your C:\ path like this 'C:\path\to\kernel\file'
When starting to type out a file name in the command prompt, pressing the TAB key will try to fill in the title. It ensures that you've got quotes around everything too if needed.
Like if I wanted to list the C:\Program Files folder, I'd type "dir C:\progr" and hit tab after going that far. It'll fill in what it can. Just keep typing to help it along as you press tab.
I copied and pasted what the instructions said about the kernel my CMD directory isn't c temp its c users (computer name)
Sent from my PC36100 using XDA Premium App
blackroseimmortal09 said:
I copied and pasted what the instructions said about the kernel my CMD directory isn't c temp its c users (computer name)
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
OK, let's try it this way. I packed you all the files of the Tiamat 1.3.1 into an archive that does not create subdirectories. Please follow the steps below:
connect the Xoom
create a directory on C: called "temp"
extract all files from the archive found here to c:\temp\
Start cmd (command prompt)
Simply copy and paste the next steps, line by line:
Code:
cd C:\temp\
adb shell
mkdir /data/media/sdcard2
exit
adb reboot bootloader
(wait until Motorola logo shows)
Code:
fastboot flash boot boot.img
fastboot reboot
(wait for reboot)
Code:
adb remount
adb push bcm4329.ko /system/lib/modules/bcm4329.ko
adb push tun.ko /system/lib/modules/tun.ko
adb push scsi_wait_scan.ko /system/lib/modules/scsi_wait_scan.ko
adb push cifs.ko /system/lib/modules/cifs.ko
adb push vold.fstab /system/etc/vold.fstab
adb reboot
Please let me know if that works for ya!
Never mind root my xoom got updated with the latest tiamat kernel with SD card support thanks anyways
Sent from my PC36100 using XDA Premium App

Root Help

I'm having trouble with step 4 of the rooting guide. The command prompt says:
data/local/gingerbreakBB: not found
Where should I place the files from the zip? Inside the platform-tools folder? Or inside a different folder?
Thanks in advance for helping a noob.
You need to put all of those files in the platform-tools folder or wherever advanced is located
Sent from my HTC Eva 4G using Tapatalk
Jocelyn said:
You need to put all of those files in the platform-tools folder or wherever advanced is located
Sent from my HTC Eva 4G using Tapatalk
Click to expand...
Click to collapse
All the files were in the platform-tools folder originally. Just making sure because it isn't working.
Cory1234 said:
All the files were in the platform-tools folder originally. Just making sure because it isn't working.
Click to expand...
Click to collapse
Did you change directories in Cprompt/terminal?
PS advanced above = adb silly spellchecker
Sent from my HTC Eva 4G using Tapatalk
Jocelyn said:
Did you change directories in Cprompt/terminal?
PS advanced above = adb silly spellchecker
Sent from my HTC Eva 4G using Tapatalk
Click to expand...
Click to collapse
Do you mean like to: C:\program files (x86)\android\android-sdk\platform-tools
??
I'm going to reinstall everything one more time.
Ok I got step 4 to go through, but I didn't get a number. When I try to redo step 4 it gives me this error: "cannot copy boomsh.: Permission denied.
What should I be looking for after step 4?
Cory1234 said:
Ok I got step 4 to go through, but I didn't get a number. When I try to redo step 4 it gives me this error: "cannot copy boomsh.: Permission denied.
What should I be looking for after step 4?
Click to expand...
Click to collapse
You need to remove them and start over
run these two lines then start from step 1
adb shell rm /data/local/tmp/boomsh
adb shell rm /data/local/tmp/sh
after step 4 if it successfully install you'll see a
[!] dance forever my only one
#
Also remember step 4 is actually a two lines process
run adb shell {Enter}
/data/local/gingerbreakBB {Enter}
Don't forget to open a DIFFERENT terminal window for steps 7-9
baseballfanz said:
You need to remove them and start over
run these two lines then start from step 1
adb shell rm /data/local/tmp/boomsh
adb shell rm /data/local/tmp/sh
after step 4 if it successfully install you'll see a
[!] dance forever my only one
#
Also remember step 4 is actually a two lines process
run adb shell {Enter}
/data/local/gingerbreakBB {Enter}
Don't forget to open a DIFFERENT terminal window for steps 7-9
Click to expand...
Click to collapse
Thanks. I got that info earlier by using google . Now I'm stuck on step 9. I am in a new terminal window. The output I receive after entering "md5sum cwm_blob_retransfer" is "md5sum is not recognized as an internal or external command, etc.
I also tried md5sums as another member commented on. Still no go.
This is starting to get frustrating..Jailbreaking was simple compared to this.
Anyone have any ideas?
Edit: Dur, Finally got it. Apparently, some of the files had write protection on them for some reason, which was causing all the problems. Thanks everyone for the help.

[UBUNTU] SDK,JDK,ADB Script

Auto SDK, JDK, & ADB Installation Script! ​
This is a little script i put together so when i install Ubuntu on my computer i don't have to manually install everything, it's a simple script that you run in the terminal that automatically installs SDK, JDK, & ADB!
How to use it!
First download the devinstall.zip package located at the bottom of the post!
Then extract it in your HOME folder.
Navigate to your terminal at type: chmod a+x devinstall
Then type ./devinstall!
THATS IT!
What exactly does this script do?
First it downloads the Java JDK (openjdk-6-jre openjdk-6-jdk icedtea6-plugin)
Then it Downloads and installs Androids r20.0.3 SDK!
Extracts & Renames it to sdk ( I named it sdk so its easier to navigate to when in terminal! )
Opens SDK manager for you to download platform-tools and whatever else needed.
Updates your .bashrc file with the new PATH, so you can adb or fastboot from any directory! ( You also dont have to type ./ before adb and fastboot anymore!)
Makes 51-android.rules to give your device adb & fastboot permissions!
And last automatically reboots your PC to apply PATH changes!
I've only used this on Ubuntu 12.04 32bit so im not sure what other versions it works on, but you can try it and let me know if it works!
if this helped you then HIT the thanks button!
Thx man this was a good idea!
Sent from my One X using Tapatalk 2
How about I click the thanks button. I don't want to break my TV...
Sent from my One X using xda app-developers app
Good stuff here about to run back to ubuntu I'm about sick of Windows
Sent from my HTC One XL using Tapatalk 2
just used this on my 64bit ubuntu it worked perfectly
---------- Post added at 10:04 PM ---------- Previous post was at 09:58 PM ----------
err spoke to soon seems it installed fine but i cant adb from any dir still gives me the adb not found
niiiice!! going to try it with Linux Mint.....ill let you know how it goes.
thanks!
Sent from my HTC Glacier using xda premium
CheesyNutz said:
just used this on my 64bit ubuntu it worked perfectly
---------- Post added at 10:04 PM ---------- Previous post was at 09:58 PM ----------
err spoke to soon seems it installed fine but i cant adb from any dir still gives me the adb not found
Click to expand...
Click to collapse
Alright as soon as I get to my PC I'll see what's going on, did you download the platform tools?
Sent from my One X using xda premium
android4ever91 said:
Alright as soon as I get to my PC I'll see what's going on, did you download the platform tools?
Sent from my One X using xda premium
Click to expand...
Click to collapse
The sdk folder is there and set up right just adb is not recognized
Sent from my HTC One XL using Tapatalk 2
CheesyNutz said:
The sdk folder is there and set up right just adb is not recognized
Sent from my HTC One XL using Tapatalk 2
Click to expand...
Click to collapse
Okay, open your terminal up and type:
nano ~/.bashrc
and and check and see if it says:
#AndroidDev PATH
export PATH=${PATH}:~/sdk/tools
export PATH=${PATH}:~/sdk/platform-tools
At the bottom of it...
Sent from my One X using xda premium
android4ever91 said:
Okay, open your terminal up and type:
nano ~/.bashrc
and and check and see if it says:
#AndroidDev PATH
export PATH=${PATH}:~/sdk/tools
export PATH=${PATH}:~/sdk/platform-tools
At the bottom of it...
Sent from my One X using xda premium
Click to expand...
Click to collapse
Nope its not
Sent from my HTC One XL using Tapatalk 2
CheesyNutz said:
Nope its not
Sent from my HTC One XL using Tapatalk 2
Click to expand...
Click to collapse
Add that in and reboot and then try
Sent from my One X using xda premium
android4ever91 said:
Add that in and reboot and then try
Sent from my One X using xda premium
Click to expand...
Click to collapse
Here see if this works
Mister J said:
Here see if this works
Click to expand...
Click to collapse
./devinstall-fixed: line 23: export: `ATTRS{idVendor}==0bb4,': not a valid identifier
./devinstall-fixed: line 24: ATTRS{idVendor}==0502,: command not found
./devinstall-fixed: line 25: ATTRS{idVendor}==12d1,: command not found
./devinstall-fixed: line 26: ATTRS{idVendor}==1004,: command not found
./devinstall-fixed: line 27: ATTRS{idVendor}==22b8,: command not found
./devinstall-fixed: line 28: ATTRS{idVendor}==04e8,: command not found
./devinstall-fixed: line 29: ATTRS{idVendor}==0fce,: command not found
./devinstall-fixed: line 30: ATTRS{idVendor}==0489,: command not found
./devinstall-fixed: line 31: ATTRS{idVendor}==18d1,: command not found
./devinstall-fixed: line 32: unexpected EOF while looking for matching `''
./devinstall-fixed: line 35: syntax error: unexpected end of file
CheesyNutz said:
./devinstall-fixed: line 23: export: `ATTRS{idVendor}==0bb4,': not a valid identifier
./devinstall-fixed: line 24: ATTRS{idVendor}==0502,: command not found
./devinstall-fixed: line 25: ATTRS{idVendor}==12d1,: command not found
./devinstall-fixed: line 26: ATTRS{idVendor}==1004,: command not found
./devinstall-fixed: line 27: ATTRS{idVendor}==22b8,: command not found
./devinstall-fixed: line 28: ATTRS{idVendor}==04e8,: command not found
./devinstall-fixed: line 29: ATTRS{idVendor}==0fce,: command not found
./devinstall-fixed: line 30: ATTRS{idVendor}==0489,: command not found
./devinstall-fixed: line 31: ATTRS{idVendor}==18d1,: command not found
./devinstall-fixed: line 32: unexpected EOF while looking for matching `''
./devinstall-fixed: line 35: syntax error: unexpected end of file
Click to expand...
Click to collapse
Forget the code, just go into nautilus and edit your .bashrc file, and add the line
Code:
#AndroidDev PATH
export PATH=${PATH}:~/sdk/tools
export PATH=${PATH}:~/sdk/platform-tools
After that, you need to do it for the root .bashrc as well.
sudo nautilus
go into the root's bashrc and add that line to the bottom as well.
Mister J said:
Forget the code, just go into nautilus and edit your .bashrc file, and add the line
Code:
#AndroidDev PATH
export PATH=${PATH}:~/sdk/tools
export PATH=${PATH}:~/sdk/platform-tools
After that, you need to do it for the root .bashrc as well.
sudo nautilus
go into the root's bashrc and add that line to the bottom as well.
Click to expand...
Click to collapse
did that and i get this
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
CheesyNutz said:
did that and i get this
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Click to expand...
Click to collapse
WOW! I'm an idiot lol just
sudo apt-get install ia32-libs ia32-libs-multiarch
You need 32 bit drivers, that was the problem the whole time
Mister J said:
WOW! I'm an idiot lol just
sudo apt-get install ia32-libs ia32-libs-multiarch
You need 32 bit drivers, that was the problem the whole time
Click to expand...
Click to collapse
Thanks for fixing it I will add it! Are you running 64bit?
Sent from my One X using xda premium
android4ever91 said:
Thanks for fixing it I will add it! Are you running 64bit?
Sent from my One X using xda premium
Click to expand...
Click to collapse
Yes, and it's not necessary for those running 32bit. Make a 64bit version and a 32bit version of the script.
Mister J said:
WOW! I'm an idiot lol just
sudo apt-get install ia32-libs ia32-libs-multiarch
You need 32 bit drivers, that was the problem the whole time
Click to expand...
Click to collapse
lol thanks for helping but now its flipping me off with this
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: insufficient permissions for device
Mister J said:
Yes, and it's not necessary for those running 32bit. Make a 64bit version and a 32bit version of the script.
Click to expand...
Click to collapse
That's what I planned
Sent from my One X using xda premium

Check the md5 sum of any file (How to?)

Windows:
For windows you need to download the md5sum binary. I recommend the one from my dev-host.
After that, copy the file you're trying to verify to the directory where where you downloaded the "md5sum.exe"
Once that is finished, do SHIFT+RIGHT CLICK (inside the folder window) and choose "Open command window here"
Image 1
Then type the following ("fileNameHere" must include the extension):
Code:
md5sum fileNameHere
That will output a hash, which you can compare to the ones above.
Image 2
Linux: No need to download anything, md5sum binaries are included in all distros, as far as I know.
Open a terminal and type the following ("fileNameHere" must include the extension):
Code:
$ cd path/to/download/folder
$ md5sum fileNameHere
In simple word
Google Search md5 sum check tool , download , open done and compare
Sent from my HTCSensation using Tapatalk 4
Harbir said:
In simple word
Google Search md5 sum check tool , download , open done and compare
Sent from my HTCSensation using Tapatalk 4
Click to expand...
Click to collapse
Or just using the Recovery if no pc is available

Categories

Resources