LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices

Reply
 
Search this Thread
Old 09-27-2013, 02:01 PM   #1
WarTurkey
Member
 
Registered: Jun 2009
Posts: 63

Rep: Reputation: 8
Console applications without root?


Hey, I was wondering if it's possible to develop apps which could be launched from a Terminal on Android, without having to root it. Like develop an app that can send texts from the command line, make calls, etc. These features are available to developers of GUI-apps, so I wouldn't see why they couldn't be done from a Terminal, though I have seen nothing about developing them. I just like the Terminal. I'm the kind of guy that would be content with the lynx browser if it were able to OCR some Flash/Silverlight/Shockwave screens . I have my Droid X rooted and the only thing I really use the rooted-ness for is using a 7zip utility that I found online. I take a lot of pictures and I like to upload them to my server, I move around throughout the day and so it's ideal for me to have my phone compressing while I have no Wifi, and then spend only a short time uploading the actual archive. Also certain times I am searching for text within files, it's nice to be able to use some bash loops and the sort.

Can this be done? I have NO Android development experience and I just wanted to know if it could be done before I really dive into trying to figure it out. Thanks!
 
Old 09-28-2013, 07:57 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,509

Rep: Reputation: 571Reputation: 571Reputation: 571Reputation: 571Reputation: 571Reputation: 571
You should try launching an app from the terminal by calling the .apk file. . . let us know how you get on.

Basically, what you get in the terminal is a neutered busybox and some scripts without root. What the apps can do is leverage the rest of the system - libraries, etc. Those little lines in code that say
#include <some_file>
allow you to pick and call these routines in java, but not from a console.
 
Old 09-30-2013, 09:01 AM   #3
WarTurkey
Member
 
Registered: Jun 2009
Posts: 63

Original Poster
Rep: Reputation: 8
Alright. I'll write a little Console app and see what happens. Looks like I might need to call a specific "Activity" http://stackoverflow.com/questions/5...using-terminal
 
Old 10-03-2013, 07:09 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
I think you will like this: https://github.com/try2codesecure/ShellMS

Cheers!

Josh
 
Old 10-31-2013, 04:43 PM   #5
WarTurkey
Member
 
Registered: Jun 2009
Posts: 63

Original Poster
Rep: Reputation: 8
Definitely interesting. I'll be installing that one for sure!
 
Old 11-04-2013, 11:32 AM   #6
normanlinux
Member
 
Registered: Apr 2013
Distribution: Arch and SuSE
Posts: 54

Rep: Reputation: Disabled
Might also like tt take a squint at an app called TerminalIDE.

Although I don't use it a such it gives you a command-line-with-vim Android development environment on your Android device.

Obviously it is a pain o try to work on such a small screen, so you start a telnetd (running on port 8080) and telnet into your phone from your main achine over wifi

This app doesn't require root
 
Old 11-04-2013, 05:00 PM   #7
normanlinux
Member
 
Registered: Apr 2013
Distribution: Arch and SuSE
Posts: 54

Rep: Reputation: Disabled
Addendum

Forgot to mentionthat it has a command-line Anddroid development environment with a tuned version of vim to act more like an IDE (hence the name) with java tools plus the necessary to convert java class files to run on Dalvik AND gcc
 
Old 11-14-2013, 05:41 PM   #8
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia 3, Debian Wheezy, Maemo, Linux Mint 14.
Posts: 165

Rep: Reputation: Disabled
Quote:
Originally Posted by WarTurkey View Post
Hey, I was wondering if it's possible to develop apps which could be launched from a Terminal on Android, without having to root it. Like develop an app that can send texts from the command line, make calls, etc. These features are available to developers of GUI-apps, so I wouldn't see why they couldn't be done from a Terminal, though I have seen nothing about developing them. I just like the Terminal. I'm the kind of guy that would be content with the lynx browser if it were able to OCR some Flash/Silverlight/Shockwave screens . I have my Droid X rooted and the only thing I really use the rooted-ness for is using a 7zip utility that I found online. I take a lot of pictures and I like to upload them to my server, I move around throughout the day and so it's ideal for me to have my phone compressing while I have no Wifi, and then spend only a short time uploading the actual archive. Also certain times I am searching for text within files, it's nice to be able to use some bash loops and the sort.

Can this be done? I have NO Android development experience and I just wanted to know if it could be done before I really dive into trying to figure it out. Thanks!

Dream on. The Android terminal is not a real terminal.
 
Old 11-15-2013, 04:02 AM   #9
normanlinux
Member
 
Registered: Apr 2013
Distribution: Arch and SuSE
Posts: 54

Rep: Reputation: Disabled
Zeebra said ' Dream on. The Android terminal is not a real terminal.'

But Terminal IDE *is*, with bash (colour turned on) vim, gcc, java etc set up specifically to enable you to develop Android apps directly on your phone.

As mentioned before, you can use it directly on the phone, with its tiny screen - half of which is lost to the keyboard, or telnet into it over wifi from your computer.

Among the commands available are the aforesaid gcc and java tools such as javac etc., plus a set of git commands, rsync, ssh, vim and nano, the busybox set, Bitchx and the links command-line web browser.

For anybody wanting to use command-line in Android it is the one to look at first.
 
  


Reply

Tags
android, console, development, non-root, terminal


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Console Based Applications LXer Syndicated Linux News 0 10-11-2012 01:20 AM
Is there a console based applications (/ script) for viewing PDF documents? frenchn00b Linux - Software 3 01-10-2010 04:57 AM
Alternate applications for audio, video, console, editor crash_override_me Linux - Desktop 13 12-02-2008 12:37 PM
How to set the Qt theme gtk based applications run from the console? Basel MEPIS 2 04-14-2007 11:58 PM
questions about authentication and control+c in console applications punt Linux - General 1 11-29-2001 11:58 PM


All times are GMT -5. The time now is 05:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration