Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP][2.2+][24 Jul - v0.11] CommandCenter the power of shell without the terminal

OP chamonix

11th February 2012, 10:09 PM   |  #1  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
Have you ever dreamed of an app to execute your favorite shell commands, whether it is for collection dmesg/logcat/dumpsys or set kernel parameters.

Well here comes CommandCenter, a generic app for grouping all your favorite commands.

CommandCenter is free with ads and can be downloaded from the Google Play (please be patient, it takes a while to update as I just published)
It is also open source and your can check my repo to inspect / review the code.

If you are a kernel developer you may want to provide a tool for your users to run certain commands without havint to maintain an app for that; if yes just submit a Command Set and have your users download it.

If you are a poweruser there are commands that you use all the time, wither from adb shell or in the terminal. Make one or multiple Command Set and enjoy the comfort of an Android app and the power of your favorite commands.

From version 0.10 a Locale / Tasker Plugin was added to execute command from actions.



How it works
The command sets are stored of the sdcard in the app's private folder /sdcard/Android/data/com.asksven.commandcenter/files in the form of json files. On load the files are parsed and each file (Command Set) shown as a tab.

A single click on a Command displays its details, a long click pops up a dialog from where you can run the command (this is configurable in the preferences).

A command has two parts:
- the command to be executed itself: it may contain a variable and in that case a popup will ask for the value to be used
- an optional command to retrieve a status: if a status can be read it will be displayed

CommandCenter comes with two pre-configured Command Sets:
- general commands for logging / diagnosis
- a few command for Fracisco Franco's awsome GN kernel

Want to contribute?
If you want to create and distribute command set just drop me a PM. I would be happy to give you more details about the syntax of the command sets and there is a section in this thread to list authored Command Sets. I may also add some to the Market app.

Caution
Always check the command's before running them. CommandCenter support 'su' command and you should know what you do as those could harm your phone. I will not take any responsibility for any dammage caused by command run using CommandCenter

Contact
You can contact me here (PM, this thread) or on twitter
Last edited by chamonix; 3rd November 2012 at 12:19 AM. Reason: New naming convension for SDK Ver
The Following 22 Users Say Thank You to chamonix For This Useful Post: [ View ]
11th February 2012, 10:09 PM   |  #2  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
Release Notes
v0.11.0 2012-07-24
Major fix: added synchronization to avoid freeze conditions
#24: "refresh" reads changes on command collections from the external storage
#26, #27, #28: different error conditions from reports

v0.10.1 2012-05-06
#15: samples scripts were being re-created on every start instead of once at first install
#14: FC when turning to portrait
#16: FC when number of result lines for a command < 5
#17: Various FC conditions from google play logs
#21: error in one script should not cause the other not to load

v0.9.0 2012-03-10
Solved stability issues (threaded processing)
Tablet support
#8: new command dialog layout

v0.8.0 2012-02-24
#4 Popup menu was called "edit"
#5 added support for user defined and editable commands
#6 added support for commands returning data

v0.7.2 2012-02-12
#2: dumpsys missing su, and logcat files have zero-length
#3: A few issues with backward compat to Android 2.1/2.2 fixed

v0.7.1 2012-02-11
#1: fixed Android 2.1 compatibility issue

v0.7 2012-02-11 Initial release
Last edited by chamonix; 24th July 2012 at 09:55 PM. Reason: New release
The Following 5 Users Say Thank You to chamonix For This Useful Post: [ View ]
11th February 2012, 10:10 PM   |  #3  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
Command Sets
If you want to create command set for CommandCenter please read this
Last edited by chamonix; 26th May 2012 at 03:06 PM.
The Following User Says Thank You to chamonix For This Useful Post: [ View ]
11th February 2012, 10:10 PM   |  #4  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
FAQ
For future use
11th February 2012, 10:38 PM   |  #5  
XlAfbk's Avatar
Senior Member
Thanks Meter: 254
 
1,206 posts
Join Date:Joined: Aug 2010
sounds quite nice, can't wait to try. Have been using Tasker + Secure Settings for that so far, let's see how it compares.
11th February 2012, 11:17 PM   |  #6  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
V0.7.1
Fixed a minor issue with Android 2.1 (getExternalFilesDir does not exist on Eclair)
12th February 2012, 09:16 AM   |  #7  
Senior Member
Flag Yuba City
Thanks Meter: 280
 
1,593 posts
Join Date:Joined: Jan 2009
More
When I try and dump logcat radio or logcat it creates the file but it's blank. Also when I dump alarms the file reads Permission Denial: can't dump AlarmManager from pid=5637, uid=10128. ComandCenter never ask for SU Permissions. I ran the dump alarms with su permission from the terminal and it worked fine. HTC Inspire running ICS.
Last edited by harpo1; 12th February 2012 at 09:35 AM.
12th February 2012, 05:21 PM   |  #8  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
Quote:
Originally Posted by harpo1

When I try and dump logcat radio or logcat it creates the file but it's blank. Also when I dump alarms the file reads Permission Denial: can't dump AlarmManager from pid=5637, uid=10128. ComandCenter never ask for SU Permissions. I ran the dump alarms with su permission from the terminal and it worked fine. HTC Inspire running ICS.

Ok the alarm dump is fixed, it was a definition error in the command set (dumpsys did not require su).
Testing the other commands now on rooted and unrooted device
12th February 2012, 07:34 PM   |  #9  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 13,960
 
101010
4,231 posts
Join Date:Joined: Nov 2008
V0.7.2
Fix-Release is rolling out, see post #2 for release notes.

I did quite a lot of testing on 2.1, 2.2, 2.3 and 4 devices with and without root and I hope the fixes work for everyone.
Last edited by chamonix; 12th February 2012 at 07:34 PM. Reason: typo
The Following User Says Thank You to chamonix For This Useful Post: [ View ]
13th February 2012, 07:22 AM   |  #10  
Senior Member
Flag Yuba City
Thanks Meter: 280
 
1,593 posts
Join Date:Joined: Jan 2009
More
Quote:
Originally Posted by chamonix

Fix-Release is rolling out, see post #2 for release notes.

I did quite a lot of testing on 2.1, 2.2, 2.3 and 4 devices with and without root and I hope the fixes work for everyone.

Thanks for fixing this so fast. Everything is working perfectly now. Great app.

The Following User Says Thank You to harpo1 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes