command to install apk - Hero CDMA Themes and Apps

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

Related

adb install in terminal emulator?

Some of you are familiar with the adb install command.
Is there an equivalent of it in the terminal emulator?
Hi,
Adb is used from the computer and terminal emulator is used from the phone.
What are you trying to do?
I'm trying to install an app without using astro.
your best choise would be
cd to the location of the apk file and use
adb install appname.apk
or adb install C:\folder\appname.apk
think thats the correct way im not sure how you can install it in the terminal i knwowho to remove it.. but not install :/
Install .apk via Terminal EMulator
1) Place the .apk on the root of your SD card (for simplicity)
2) Type "su"
3) cd into the destination of your .apk (in this case it will be cd /sdcard)
4) Use "install "name of .apk" /"destination"/"name of .apk"
su
cd /sdcard
install com.makemobile.coursepro.apk /system/app/com.makemobile.coursepro.apk
further example:
install "space" com.makemobile.coursepro.apk "space" /system/app/com.makemobile.coursepro.apk
This will install the app on your phone using the Terminal Emulator. The destination location can change as well.
Additional help: http://www.busybox.net/downloads/BusyBox.html
On the flip side, could you uninstall from the ext2 partition this way?
install on/from ext2
not sure...I'll looks into this. I had my apps and data on my sd however, it seemed a little buggy and inconsistant. It may have been due to using original G1 1gb class 2 card.
-let me know if you find out first.
a1t said:
1) Place the .apk on the root of your SD card (for simplicity)
2) Type "su"
3) cd into the destination of your .apk (in this case it will be cd /sdcard)
4) Use "install "name of .apk" /"destination"/"name of .apk"
su
cd /sdcard
install com.makemobile.coursepro.apk /system/app/com.makemobile.coursepro.apk
further example:
install "space" com.makemobile.coursepro.apk "space" /system/app/com.makemobile.coursepro.apk
This will install the app on your phone using the Terminal Emulator. The destination location can change as well.
Additional help: http://www.busybox.net/downloads/BusyBox.html
Click to expand...
Click to collapse
nevermind..........used astro file manager and it worked fine
help
what's 'cd' ? the emulator is already installed on the phone ?
i'm trying to install an app but i don't understand the adb method. someone can help me ?
thanks
MikeMadden said:
what's 'cd' ? the emulator is already installed on the phone ?
i'm trying to install an app but i don't understand the adb method. someone can help me ?
thanks
Click to expand...
Click to collapse
cd is a command, meaning "change directory". Which is used to move your location on the system.
MikeMadden said:
what's 'cd' ? the emulator is already installed on the phone ?
Click to expand...
Click to collapse
cd is a *nix command , it is short for 'change directory' and it... changes directory
MikeMadden said:
i'm trying to install an app but i don't understand the adb method. someone can help me ?
thanks
Click to expand...
Click to collapse
it depends on what the app is
your best bet would be to get an app called 'Astro file manager' from the market
Its quite easy, so I won't go into further detail
Which to be honest is a fair trade
APrinceAmongMen said:
Some of you are familiar with the adb install command.
Is there an equivalent of it in the terminal emulator?
Click to expand...
Click to collapse
Some people have mentioned the `install' command from BusyBox, but this won't quite do what you probably want. To invoke the full Android package installation experience--the complete equivalent of `adb install'--you're looking for `pm install'. It takes the same arguments that `adb install' does, checks signatures, creates the appropriate user accounts, etc. so the package is installed the Android way. You can also use `pm uninstall' to remove a package (and as with `adb install', the "-k" option keeps its data around).
The `am' and `pm' commands are both underdocumented, but can be terribly useful. `am' can issue arbitrary Intents, including some Extra values. `pm' has other features not mentioned here, but which are shown in the help text.
olearyp said:
Some people have mentioned the `install' command from BusyBox, but this won't quite do what you probably want. To invoke the full Android package installation experience--the complete equivalent of `adb install'--you're looking for `pm install'. It takes the same arguments that `adb install' does, checks signatures, creates the appropriate user accounts, etc. so the package is installed the Android way. You can also use `pm uninstall' to remove a package (and as with `adb install', the "-k" option keeps its data around).
The `am' and `pm' commands are both underdocumented, but can be terribly useful. `am' can issue arbitrary Intents, including some Extra values. `pm' has other features not mentioned here, but which are shown in the help text.
Click to expand...
Click to collapse
'pm install' often fails with [INSTALL_FAILED_INSUFFICIENT_STORAGE]
which used to frustrate me no end ..
simple shell script
Code:
am start -a android.intent.action.VIEW -t application/vnd.android.package-archive -d file://$1
just pass the full path e.g
sh /sdcard/installapk.sh /sdcard/theapp.apk
and it pops up the Android Package installer
Firerat said:
'pm install' often fails with [INSTALL_FAILED_INSUFFICIENT_STORAGE]
which used to frustrate me no end ..
Click to expand...
Click to collapse
Interesting. I wonder if that's related to A2SD or a particular implementation, and pm getting confused as a result? Still, I like the idea of sending the VIEW intent to bring up the package installer. Good snippet.
I just cp the files to /system/sd/app/
from Windows Command prompt, and after switching to the folder containing the .apk file, type:
adb install filename.apk
if it is a reinstall:
adb install -r filename.apk
you could also push the file to the app folder. I use this method to push system apk:
adb remount <<<< you have to remount since you're going to mess with a sys folder
adb push filename.apk /system/app
seriously useful thread... especially after for some weird reason certain apps fail to install using the default Android installer. *cough* Radiant *cough*
Thanks for the help guys. Btw install command doesn't work. To clear things out for some clueless person like I am :
1. Open Terminal Emulator
2. Type -
su
cd /dir
pm install appname.apk
3. Done!
Example -
su
cd /sdcard
pm install AstroFileManager.apk
Hope that can help!
rajasyaitan said:
Thanks for the help guys. Btw install command doesn't work. To clear things out for some clueless person like I am :
1. Open Terminal Emulator
2. Type -
su
cd /dir
pm install appname.apk
3. Done!
Hope that can help!
Click to expand...
Click to collapse
This is very helpful, thanks!
rajasyaitan said:
Thanks for the help guys. Btw install command doesn't work. To clear things out for some clueless person like I am :
1. Open Terminal Emulator
2. Type -
su
cd /dir
pm install appname.apk
3. Done!
Example -
su
cd /sdcard
pm install AstroFileManager.apk
Hope that can help!
Click to expand...
Click to collapse
Thanks big time. Installed perfectly although apk won't open...just got to find one that will.

Does anyone have the proper file to get QuickBoot working?

I know you had to push a reboot file to get it working on some Hero ROMs. What about the EVO version?
The Hero way works.
FIRST, install Quickboot from the market. Run it and enable it in the superuser permissions screen.
Download the reboot.txt file I attached and rename it to "reboot" (take off the ".txt"). Move it to where ever your "android-sdk-windows/tools" folder is.
Connect your phone to your computer (make sure it is "charge only") and boot into recovery...
Code:
adb shell
reboot recovery
Start your "Windows-recovery.bat" (if using windows) and let it do it's thing in the CMD prompt. Keep that prompt open.
In a CMD prompt OTHER THAN the one opened by recovery.bat type...
Code:
adb shell
mount /dev/block/mtdblock4 /system
exit
This will keep your system mounted but get you out of shell. Now type...
Code:
adb push reboot /system/bin
adb shell
cd /system/bin/
chmod 755 reboot
reboot
Once you're back up, run Quickboot and choose either reboot or recovery (both will now work). It takes about 5 seconds to start rebooting but it does work.
What does this do? does it make recovery stick?
watzone69 said:
The Hero way works.
Download the reboot.txt file I attached and rename it to "reboot".
Once you're in recovery...
Code:
adb push reboot /system/bin
adb shell
cd /system/bin/
chmod 755 reboot
reboot
EDIT: It takes about 5 seconds to start rebooting but it does work.
Click to expand...
Click to collapse
Woo! Thanks!
Edit: Didn't seem to work for me. Damn.
joeavery2 said:
What does this do? does it make recovery stick?
Click to expand...
Click to collapse
No, this just lets you use the QuickBoot app from the Market to reboot your phone.
TheBiles said:
Didn't seem to work for me. Damn.
Click to expand...
Click to collapse
Code:
adb shell
cd /system/bin/
ls
See if the reboot file actually got pushed to the directory. If so, try this:
Code:
chmod 755 /system/bin/reboot
The only other thing I can think of is that I installed Quickboot BEFORE doing all of this. Did you get the SU permission screen when you tried to run it?
Any luck??
Did I mention that the Quickboot "recovery" button works also? Much easier than opening a shell and typing it in.
Of course you still have to run the recovery.bat to get the custom recovery but at least it's one less step.
Still no dice. I also already had QuickBoot installed and granted it root permission prior to pushing the reboot file.
any update to this?
thanks
joey3002 said:
any update to this?
thanks
Click to expand...
Click to collapse
It doesn't work for you?
I updated my earlier post to give more instructions for getting into recovery and pushing the "reboot" file. I hope it helps!
I have a ROM ready to go that changes a couple icons and quickboot works with no probelm. Wifi tether is the only thing I don't have working. I can post it if you would like. I also removed sprint apps and some widgets
I made an update zip that got Quickboot working for me. This is using watzone69's reboot file.
Run from Toast's recovery. http://forum.xda-developers.com/showthread.php?t=690762
watzone69 said:
It doesn't work for you?
Click to expand...
Click to collapse
yes i got it working last night by reading this thread from top to bottom.. then repeated.. thanks

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

[Q] some questions

I hope you can help me with those questions please
I'm getting familiar with the Terminal commands, and had some questions
- Where could I get flash_image binary file?
- When I get into recovery and use adb shell, I can't use any commands such as the ones when booted. It seems that the emulator isn't pointing to the bin directory (it is pointing to the sbin). I tried using cd /system/bin/ doesn't work either. What am I missing?
- What is the use of mount system,data,cache and so on in the recovery? Are those alternatives to "mount" in terminal? I can't understand how to use it either. xD
Thank You
Great xD
Sent from my HTC Sensation Z710e using XDA App

(RESOLVED)Alternative of script manager

Im having problems with the app "script manager" on se x10i running on custom ROM (feralabs v4). Is there an alternative for this app? Im trying to install v6 supercharger. Any help would be highly appreciated.
Sent from my X10 using XDA App
before running the script manager, you must install busybox first
a simply tutorial video
http://www.youtube.com/watch?v=75yH02rxUxI
I used to have problem too in installing v6 supercharger using script manager. I tried different busybox version but still had problems. Finally, I only installed it using terminal emulator. If you want to try it, here's how I did it:
- copy the downloaded v6 script to the root folder of the sdcard and rename it to v6.sh
- open terminal emulator
- type this command:
$ su [enter]
# sh /sdcard/v6.sh [enter]
- that will open v6 interface like usual and you can install it from there.
Only one drawback though, there's no widget that script manager provide to quick check v6 status. If I want to check it, then I have to run the command in the terminal again.
Sent from my SK17i using XDA App
Sent from my SK17i using XDA App
greenAlgae said:
I used to have problem too in installing v6 supercharger using script manager. I tried different busybox version but still had problems. Finally, I only installed it using terminal emulator. If you want to try it, here's how I did it:
- copy the downloaded v6 script to the root folder of the sdcard and rename it to v6.sh
- open terminal emulator
- type this command:
$ su [enter]
# sh /sdcard/v6.sh [enter]
- that will open v6 interface like usual and you can install it from there.
Only one drawback though, there's no widget that script manager provide to quick check v6 status. If I want to check it, then I have to run the command in the terminal again.
Sent from my SK17i using XDA App
Sent from my SK17i using XDA App
Click to expand...
Click to collapse
Thank you so much. This worked. Im now blazing on my x10i
Cheers.
Sent from my X10 using XDA App
glad I could help
Sent from my SK17i using XDA App
Installed v6 using the terminal method (smanager keeps fc) and it worked. Thanks. I know it's an old thread but it helped. Just a Q; how do i check if v6 is up? Do i enter sh /sdcard/v6.sh again?
keypad not working
hey i followed all steps. but when it come to choose a number my keypad dont work. what to do??

Categories

Resources