FORUMS

HTC Delivering Ads Straight to Sense Home

HTC’s 2015 has been a year marked by a desperate search for revenue.The HTC One M9 … more

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

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

4,518 posts
Thanks Meter: 15,352
 
By chamonix, Recognized Contributor on 11th February 2012, 09:09 PM
Post Reply Subscribe to Thread Email Thread
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; 2nd November 2012 at 11:19 PM. Reason: New naming convension for SDK Ver
The Following 22 Users Say Thank You to chamonix For This Useful Post: [ View ]
 
 
11th February 2012, 09:09 PM |#2  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 15,352
 
10101010
More
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 08:55 PM. Reason: New release
The Following 5 Users Say Thank You to chamonix For This Useful Post: [ View ]
11th February 2012, 09:10 PM |#3  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 15,352
 
10101010
More
Command Sets
If you want to create command set for CommandCenter please read this
Last edited by chamonix; 26th May 2012 at 02:06 PM.
The Following User Says Thank You to chamonix For This Useful Post: [ View ]
11th February 2012, 09:10 PM |#4  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 15,352
 
10101010
More
FAQ
For future use
11th February 2012, 09:38 PM |#5  
XlAfbk's Avatar
Senior Member
Thanks Meter: 329
 
More
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, 10:17 PM |#6  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 15,352
 
10101010
More
V0.7.1
Fixed a minor issue with Android 2.1 (getExternalFilesDir does not exist on Eclair)
12th February 2012, 08:16 AM |#7  
Senior Member
Flag Yuba City
Thanks Meter: 281
 
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 08:35 AM.
12th February 2012, 04:21 PM |#8  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 15,352
 
10101010
More
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, 06:34 PM |#9  
chamonix's Avatar
OP Recognized Contributor
Berlin
Thanks Meter: 15,352
 
10101010
More
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 06:34 PM. Reason: typo
The Following User Says Thank You to chamonix For This Useful Post: [ View ]
13th February 2012, 06:22 AM |#10  
Senior Member
Flag Yuba City
Thanks Meter: 281
 
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 ]
13th February 2012, 07:58 AM |#11  
Senior Member
Thanks Meter: 883
 
More
Another great release from chamonix

I have been looking for an app like this..so thank you very much. Now I'll start study it to take full advantage from it

Sent from my sandwiched SGS
The Following User Says Thank You to Kurre For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes