[Q] installing app via cmd terminal? - GT540 Optimus General

Is it possible to install an app via cmd terminal?
if so, please show me tnx...

adb install nameofyourapk.apk

Place app in your adb folder
connect phone with usb and leave it
then type cd c:\adb (thats adb destination/folder)
adb remount
adb push nameofapk.apk system/app for example adb push titaniumbackup.apk system/app
And thats it :good:

Or you can use my application and do it without console:
http://forum.xda-developers.com/showthread.php?t=1881410

Related

app2sd for mac

Is there anyway i can use app2sd on a mac? or someway of writing things to the system/apps folder
darthwouter said:
Is there anyway i can use app2sd on a mac? or someway of writing things to the system/apps folder
Click to expand...
Click to collapse
Apps2SD just transfers data from /data/app and /data/app-private to /system/sd/app and /system/sd/app-private. That is done on your phone.
Try these commands:
adb remount
adb push <filename> /system/app/<filename>
Adb is from the Google Android SDK. It's located in the SDK folder (Whatever you name is as) under the tools folder.
However, /system/app is really reserved for core apps. If you want to just push an application directly to the phone, try:
adb remount
adb push <filename> /data/app/<filename>
If you are using Apps2SD, use this instead
adb remount
adb push <filename> /system/sd/<filename>

adb mount errors?

I'm trying to go back to the stock HTC keyboard, and I have the new xda one installed. I'm using adb and i'm going to sdk directory, then typing:
adb devices
adb remount
adb uninstall HTC_IME.apk
adb install HTC_IME.apk (from my sdk directory)
When I try to uninstall, I get Failure in a next line. I try to install, then get Failure [INSTALL_FAILED_ALREADY_EXISTS]
Anyone have any ideas? I tried putting the .apk on my sd and installing, and it would just say not installed, then with HTC Sync, I installed,but nothing happened..
try just pushing it to /system/app/ its not installing becuase its already intalled and it wont uninstall becuase there is no other keyboard for it to use
Code:
adb remount
adb push HTC_IME.apk (if its in your sdk tools folder) /system/app/
adb reboot
that should do it for you.

Im sorry

Hello,im sorry for asking all theese questions lately but i am really confused.could someone post how to adb push and adb shell from like the first cmd line.because i do
cd C:\android-sdk-windows\tools
adb remount
Remount failed no such file or directory
extra info. i am rooted i have recovery and su i have samsung driver installed usb debugging checked.thank you everyone i really appreciate all the help.
Can Any1 Help?
II5StarII Swag said:
Can Any1 Help?
Click to expand...
Click to collapse
Adb push is to send something to the phone. You needt to put that file in your tools directory on the computer, then navigate there as you demonstrated properly.
Adb push FILENAME /Location/
To access the shell
Adb shell
$ not root access
# root access
To mount the file system with th adb remount command, you need busybox installed. Otherwise you have to mount it from the shell (sorry don't have the long ass command memorized, but its all over here)
Sent from my SPH-D700 using XDA App

feeling like a serious noob today--ADB linux help

ok well i've been using adb for a while now via windows on our desktop, my laptop however runs ubuntu. but i've run into a problem.....I CAN'T OPEN ADB IN LINUX! using terminal i navigate to the proper location then i initiate adb shell but i get an error saying the command doesn't exist...what am i doing wrong?
tried ./adb ?
if you haven't added ADB to path it won't be recognized as a command, then you'd have to execute it using ./adb
Hi, adb
is located in <android-sdk-folder>/platform-tools folder. You could add it into your $PATH variable in .bashrc . Than it's ready to use from anywhere

[Q] Permissions problem using adb to push app

I'm running a script to modify settings.db (found in the application forum) so that I can wirelessly tether and use the GPS on my phone while running Google Maps on the KF.
The script starts like this:
adb shell rm /data/local/tmp/*
adb push zergRush /data/local/tmp
adb shell chmod 755 /data/local/tmp/zergRush
adb shell ./data/local/tmp/zergRush
Click to expand...
Click to collapse
and works fine.
But I'm having problems running the script that others are having no problem with at this point in the script.
adb pull /data/data/com.android.providers.settings/databases/settings.db
copy settings.db settings.bak
sqlite3 settings.db "update secure set value=1 where name='mock_location';"
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
adb reboot
Click to expand...
Click to collapse
The script runs into permission errors. I have all the files in the same directory as adb in the platform-tools folder. adb is communicating with the device with the adb devices command. I run the .bat file from the folder while in a DOS command shell. And I get this error
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb pull /data/data/com.android.providers.settings/databases/settings.db
failed to copy '/data/data/com.android.providers.settings/databases/settings.db' to './settings.db': Permission denied
C:\Program Files (x86)\Android\android-sdk\platform-tools>copy settings.db settings.bak
The system cannot find the file specified.
C:\Program Files (x86)\Android\android-sdk\platform-tools>sqlite3 settings.db "update secure set value=1 where name='mock_location';"
Error: no such table: secure
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
failed to copy 'settings.db' to '/data/data/com.android.providers.settings/databases/settings.db': Permission denied
Click to expand...
Click to collapse
Any idea what's going on?
i assume you'r at the $ prompt - if you type in su the prompt should change to #
perhaps a hint in the right direction ...
zergrush does'nt work anymore since 6.2.1 and burritoroot
I am not at any command prompt when running the script. I'm at the Windows prompt, and I just execute the script name?
Confused.
when you type adb or adb shell your mostly at the $ prompt
when you type su the promt usually changes to # - thats root access
i think you have to integrate that in your script ...
I added
adb shell su
to the start of my script, but then it just hangs at the root prompt.
if you have rooted with burritoroot try "adb root"
It says:
adbd cannot run as root in production builds
ok then i think you will have to try it with the su method - maybe "adb su" could work - it's just a try
otherwise i think you will have to write a second unix stile script (ending .sh) to do the stuff and call it from your dos script or run it in the adn shell - but i'm not the unix expert - sorry
i'm running out of time now - wish you much luck with your script !!!
Anyone else please?
Resolved.….
Resolved how? Very curious
Please, how did you solved the problem ???
thanks
would be interested too !
Here's how.
I was so frustrated, didn't seem to be able to achieve root status and use ADB. So, I bought root explorer, went to directory where settings.db file was, and copied it to sdcard folder on the KF. Then brought it over to my PC just over the USB connection (KF was a Windows drive).
In Windows, ran the part of the script that replaces the "0" with a "1". Then copied it back to the sdcard folder on the device, and used root explorer to move it back to its proper directory.
Only one caution. Make sure that you don't change the permissions or ownerships of the file, that they are the same as when you first grabbed it.

Categories

Resources