General :: Can't Execute Command Remotely Using SSH

Aug 23, 2013

I am new user in the area of Android, but have Linux knoweldge. I am trying to configure my android device LG Nexus 4 to act as Document Camera

For this purpose, I have to scp the files and then remove the files remotely. I have installed SSH server and my scp works, but my remote execution of commands using ssh not working, it throws error

with -v ssh gives the following messages
"Authenticated to 192.168.21.233 ([192.168.21.233]:57388).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: rm -rf /storage/emulated/0/DCIM/Camera/IMG_20130822_111706.jpg
exec request failed on channel 0 "

when I goggled it says that editing ssh_config file and uncomment: 'AddressFamily all' and changing it to 'AddressFamily inet' will work I checked in the android devices /etc directory, I did not find the ssh_config

General :: can't execute command remotely using SSH


General :: Android Device - Remotely Execute Batch File On PC Via WiFi Connection

Sep 6, 2011

I want to use my android device (4G Systems One Tab) to remotely execute a batch file on my PC via WIFI-Connection.

I want to have an Icon on my homescreen and when its clicked the batch-file on the desktop computer is executed. (no feedback or output needed, this is all done by the batch).

View 3 Replies View Related

General :: How To Execute Command Shell Programmatically

Apr 11, 2012

i have made a kinda theme installer (for stockrom)..

so.. first of all i extract needed file from assets to sdcard

n on button click i add this line of code..

the code is work n sometimes not...

when execute the code, my phone hang for several time

"here is the line of execution code :

Code:

Process ppush;
try {
ppush = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(ppush.getOutputStream());
os.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
");
os.writeBytes("cp /mnt/sdcard/dys/SystemUI.apk /system/app
");

[code].....

View 4 Replies View Related

General :: (SL4A) Importing PHP Or Python Script From Github To Execute From Command Line

Jun 1, 2013

What I am trying to do is get either nest-api in PHP or pynest in python to run out of SL4A in order to control my Nest thermostat ultimately out of Tasker. Both are found on github, but I can't link to them as I apparently need ten posts to do so. So a google search for "nest-api github" and "pynest github" will have to do I suppose.

I have absolutely no issues getting either to run out of Terminal on my MacBook Air, but for whatever reading the SL4A shell seems to escape my understanding. I would rather have the PHP script work, as it has more options for things I can set, which I like. Where to put the nest.class.php on my phone in order for the PHP shell to reference it when running the example.php or any script I write myself. When I put both files in the sdcard/sl4a/scripts folder and try to run either from within either sl4a or sl4a's shell I get a call to undefined function error.

For the python script, I'm not sure how I need to import the module so that I can call it with nest.py at the beginning of my command line prompt and follow it up with the user name and password and so on. I've done everything including trying to create an .egg file, which I've since been told is not necessary, and that I simply have to put it in the /sl4a/scripts folder. That doesn't make sense to me though, as I needed to run the setup.py command on my computer in order to start using it, and the .egg file should be the equivalent of that on the phone, no?

So what I am looking for is the foolproof way to get either a php or python script running through the shell that isn't actually hooking into the Android environment at all, which is what all the writeups I have found in my searching seems to pertain to. Then eventually make sure that they are available in a way that Tasker can call them. I should also note that all this has been done in an emulator through eclipse until this point, as I didn't want to go screwing around with my brand new Nexus 4's file structure until I had the best practice perfected.

View 2 Replies View Related

Android :: Execute Adb Shell Command At Runtime From Application

Apr 12, 2010

In my application I want to create a directory xyz in sdcard at the runtime from the my Application. But it doesn't work.

Here is my code...............

View 1 Replies View Related

Android :: Execute A System Command From Droid Application?

Nov 19, 2010

I would like to know how to execute a system command from an android application?

For example :

I would like to create a directory while I am running an application, so i need to execute the command "mkdir -p /x/y".

View 2 Replies View Related

Android : Execute DD Command From Java App / "copy" Internal Flash Memory In Sdcard

Jul 25, 2009

It's possible execute DD command from my Java application? I need to "copy" internal flash memory in a sdcard.

View 16 Replies View Related

General :: Any Way To Remotely Enable GPS?

Jan 11, 2014

I have a Galaxy Nexus (purchased directly from Google) running Jelly Bean. Is there anyway to remotely enable GPS without rooting?

View 6 Replies View Related

General :: Remotely Install App Without User Noticing?

Mar 19, 2014

is it possible to secretly and remotely install an app without the user noticing?

View 1 Replies View Related

General :: How To Remotely Tunnel Into Android Phone

Mar 7, 2012

It's there a way to access my phones files without it being connected to my WiFi network? Maybe an app that can run as a service?

View 1 Replies View Related

General :: Remotely / Automatically Enable GPS On Android 4.0+?

Apr 1, 2012

I have Seekdroid installed on my phone but if GPS is off it doesn't work - so I want to be able to send a text with a keyword that turns on, GPS (so if I lose my phone and someone turned gps off I can turn it back on).

I know this has been patched since 2.3 but is there a way to unpatch it or is there a workaround for this?

GT-I9100

View 3 Replies View Related

General :: How To Remotely Sign-in Android Device

Jul 20, 2012

I was using my handset as a tracking device. It was working well until one day i decided to change my google password. From next moment onwards, it stopped reporting data. When checked the handset, i saw that it is asking me to enter the new password to login. How can I remotely sign-in my android device?

View 2 Replies View Related

General :: How To Turn On Data Connection And GPS Remotely

Aug 26, 2012

I have tried a lot of apps for finding a lost phone - Lookout, Where's My Droid, AndroidLost, Prey etc.None of them have the feature to automatically on gps and data remotely [using sms]

Only AndroidLost has this feature, but when I tried it, it didn't work.So, is there any way to turn on data connection and gps remotely, via sms?

View 1 Replies View Related

General :: Methods For Streaming Video From PC Remotely?

Dec 31, 2013

Local wifi streaming. I am looking to be able to watch something stored on my pc with my N4 away from home via mobile network. I have an unthrottled data plan, so nothing is overkill.

View 7 Replies View Related

General :: How To Replace Any File In System Directory Remotely

Aug 3, 2013

Well actually I wanted to replace/ place a text file in system directory (e.g. /system/etc/) of android phone remotely which means I don't have any physical contact to that phone.

By remotely I mean via downloading or through app. or any other mean ?

- Is it possible?
- Is it necessary to have that phone rooted?

View 8 Replies View Related

General :: Remotely Change Text On Android Tablet

Aug 15, 2012

Is there any app or mothered that will allow me to remotely change text displayed on an Android tablet from another android tablet or phone?

I am planning a charity fundraising event and it would be grate if I can hang my Motorola Xoom (running Android 4.1.1 Jelly Been) up on the wall with total amount raised and be able to remotely change / add amounts as people donate with my HTC One X or HP Touchpad running Android 4.0 ICS.

FYI: All devices will be connected to same Wi-Fi network.

View 1 Replies View Related

General :: App / Site To Remotely View Device External IP

Sep 6, 2012

I was planning to make my phone (a rooted SGSII Skyrocket on AT&T running GB) accessible over SSH so I could remote-control it in the event thieves (or my parents) took it. how would I know what my phone's external IP is? Any app that can read the phone's external IP and respond with it via, say, text message?

View 4 Replies View Related

General :: Failed To Execute Box Appears In SDK

May 19, 2013

when i run the sdk manager i get. Failed to execute tools/android.bat:error 2 the system cannot find the file specified

View 1 Replies View Related

General :: Execute ADB Commands From C# Form?

Nov 2, 2012

Basically I have been working on a Boot animation changer for the Nexus 7 and the program so far is coded in a C# form for windows.

I have coded everything fine up till now. I need to run a ADB command to push a file from my Program files x86 to the nexus 7 and write over the original Boot file.

But is there a simple and easy solution for writing this code? Or do I need to make a console application which does this process when started?

( I can push files manually via ADB, but the point is to make the tool " one click " If you get my drift.)

View 9 Replies View Related

General :: Removed Google Accounts Can Still Remotely Install Apps

Aug 24, 2013

I have a problem with my android phone. During the holidays I added my mothers and girlfriends gmail-account to my android phone (android 4.0) so they could check their email at wifi points. Afterwards (about a week ago now) I removed their accounts again. So, there is no trace from their accounts left on my phone. However, I just noticed that when they go to the play store on a pc, they can still install apps! Even though they are not logged in to my phone! I tried it, and indeed, my phone started downloading the app.

Googling how to stop this did not turn up anything useful, How do I disable their ability to install apps? I even added the accounts again to the phone, made sure all syncing was off, removed them (with all syncing off), and it still worked!

View 4 Replies View Related

General :: Remotely Take Screenshot Of ICS Tablet / Phone And View It In Browser On PC?

Jun 20, 2012

Is there an app that you would install on Tablet to run as service (and so small footprint), then you access a web page from PC or other device over internet, click a button and that takes screenshot of whatever there is on the Tablet with the server installed, downloads it and displays in a window in the browser?

So it doesn't need to stream or allow for remote control, only take screenshot of remote tablet and view it locally.Since ICS has screenshot feature built in, maybe it wouldn't even require root?

View 2 Replies View Related

General :: Access Remotely HDMI Connected Android Device

Jan 9, 2013

I use an MHL adaptor to connect my Android device on a HDMI screen.

This is really great but it would be perfect if I could use my PC keyboard and PC mouse to control it.

I tried VNC servers and TeamViewer QuickSupport but the main problem is that I don't see the mouse pointer on my device so it's very difficult to use a mouse when you don't see the pointer ^^

Any way to remotely access an Android device from a computer and be able to see this mouse pointer on the device?

View 9 Replies View Related

Samsung Captivate :: Wifi - Error 'mmc1 Got Command Interrupt 0x00060001 Even Though No Command Operation Was In Progress

Sep 6, 2010

I have a rooted samsung captivate with sideloading enabled. After experimenting with different wifi tethering apps from the unofficial market, I began experiencing difficulties with my wifi connection. Even after uninstalling every app that I thought was changing the wifi state, the problem still persists. I can turn on the wifi and it will act normally for about 30 seconds before turning off without user intervention. In dmesg, the error is as follows: 'mmc1: Got command interrupt 0x00060001 even though no command operation was in progress.' Is this caused by an app or is this a more complicated problem?

View 15 Replies View Related

General :: Execute Shell Commands From Tasker?

Jan 14, 2014

I am trying to create a tasker automated thing, which would show a scene which will have a button to execute a shell command (The command should be executed as root). how to do it?

Code:

reboot recovery

View 1 Replies View Related

General :: Tasker With Locale Execute Plugin

Sep 8, 2012

It seems there is a lack of support for using tasker.

My aim: When ran, use a tasker task to execute the WiFi for Root users tether start, and if I'm lucky, stop as well in a separate task.

What I have done: I have locale execute plugin. I start an execute task and in configuration I typed

Code:
/data/data/com.googlecode.android.wifi.tether/bin/tether start
as this is what is displayed when enabling tethering in the WiFi tether app itself.

The problem: Though when ran, this exe task does nothing. Wrong code? Wrong plugin in tasker? I want to do this not just for convenience, but also to learn.

See attached for reference.

View 2 Replies View Related

General :: Mounting SDCard With Execute Permissions On HTC ONE

May 6, 2014

I've installed LinuxOnAndroid with Fedora 19, I'm trying to get the /dev/fuse /sdcard to mount with exec permissions.

Currently it's only mounting /dev/fuse without execute permissions.

View 3 Replies View Related

General :: Run Linux Execute File On Android

Apr 27, 2013

I Want to run This File in my phone (via terminal emulator).

but after type ./amxxpc i have error

line 1: syntax error: unexpected "("

File which I Want to start is in scripting.zip

View 3 Replies View Related

General :: Mapping Keycodes To Execute Commands

Apr 5, 2012

What I want to do is be able to map arbitrary keycodes to execute custom commands. I purchased a Bluetooth numeric keypad, and with CM7, I am able to sync it and generate key events. However, they're not mapped to anything, so it's pretty useless. My hope in buying this product was the ability to map the keys to input events and be able to control my phone (Maps, IME, etc) while my phone is docked in my car so I'm not doing the "distracted driving" thing. So, is there a way I could code an app/service that would capture key/scancodes and execute user-defined commands (such as screen events)? Further, could this service change its behavior when the IME is active, allowing me to map the keys to the on-screen keyboard? I use a T9 app, and if the program could map to screen events when the IME is active allowing me to type T9 on a physical keyboard, that would be amazing.

View 1 Replies View Related

General :: Execute ADB Commands From Java Desktop Application

Jun 28, 2012

I would like to execute adb commands from my Java application. At the moment I use Runtime.getRuntime().exec(command), is there a better way? Maybe even a library?

View 5 Replies View Related

General :: Milestone With ADB Command

Apr 6, 2013

I have milestone A853. I want to up cook ROM but it can't enter recovery menu because camera button have problem. Any enter menu of recovery with adb command?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved