yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] short/y:
Should it be possible to add or modify the command sets? I don't seem to be able to do either. In Edit mode, my soft keyboard never open and I don't see any option to create a new command set. Maybe I'm just not looking in the right place?

This is on a Samsung Galaxy Nexus running a rooted AOSP ICS.
[Android Apps and Games] chamonix:
In fact the is no way of editing the commands from within the app. I have been thinking about that a lot and the functionality itselt is not the problem (it occurs to me that the popup menu is named "edit" and this is of course not correct).

The reason I did not provide edition of commands within the app is that I want to offer a distribution channel for authors to update their command sets. Those updates would overwrite the local changes.

What you can do to edit the commands is edit the json files located on the sdcard in Android/data/com.asksven.commandcenter/files (one file per command set).

Do you feel the need to have "local" commands as well that could be edited from the app and stored in a local database?
[Android Apps and Games] aaronpoweruser:
Local commands would be handy also you can do generics for brand htc Samsung etc as the kernels tend to have commands in the same spot, also a log viewer would be cool but they are. Readily avaliable
[Android Apps and Games] aaronpoweruser:
Auto upload to paste bin would be sick and the ability to email to dev as well as adding the kernel version to the file name
[Android Apps and Games] short/y:
Yes, I'd like to have that. I can think of a few I'd like to have NOW as opposed to waiting for someone to come up with them

df -h /sdcard
df -h
ls -lrt /mnt/sdcard | tail
ls -lrt /sdcard/Download | tail
ping www.google.com
ifconfig lte_rmnet1
netstat -rn
netstat -l
netstat | grep CLOSE
uptime

And probably few others that I could come up with once I really thought about it. Why not have "protected" command sets which are updated thru the app or Market and "user" or, as you call them, "local"?
[Android Apps and Games] pp1276:
First of all, thanks for develop another great application.

I concur that having the possibility to add commands is really a 'must have'. Of course, if we are thinking about to create commands, this means all of us have already a terminal app installed to run them, but the purpose of this app is to make life easier for having our favorite commands ready to execute. Many of these commands are possibly a small subset of common ones, but even with that, I probably prefer to redirect the output to a diffferent place that abother user using the same command. So having a 'user tab' to be able to add, edit and delete commands (also maybe copy a command from other tab) will be very useful.

Anyway, congrats for comming up with this useful app.
[Android Apps and Games] chamonix:
One question about those commands: some of them return results that will not fit on one line and so would not fit in the space reserved for the status (lower line in the list).

How would you like to display the result?

- as a popup when running the command

- as a multi line status field 'growing' when required and updating automatically
[Android Apps and Games] chamonix:
I am convinced: https://github.com/asksven/CommandCenter/issues/5
[Android Apps and Games] short/y:
I think it would make sense to have a scrollable status field so that would be your second option, right?
[Android Apps and Games] MrSmith317:
Where was this when I was trying to get people through debloating the HTC Rezound via command line??? Good looking tool I'm going to give it a shot. Thanks!
[Android Apps and Games] chamonix:
Scrollable or one adjusting its size, or a drawer opening on click (like plume).

That part is pretty intensive on UI code so I may start implementing the handling of returned data and show it in a pop as a first step, the goal should be to have a fancy UI for that

Here's the link to the feature request for tracking: https://github.com/asksven/CommandCenter/issues/6
[Android Apps and Games] short/y:
Nice! Can/should we add our own requests?
[Android Apps and Games] blackalice:
Running this on Atrix CM9 - just stops responding when trying to run it.
[Android Apps and Games] chamonix:
As many as you like. You can add the?

M I directly to github or write them here, I copy stuff myself if valid/new.

I work exclusively based on the backlog out of github so everyone can follow. I wish there was a feature to vote on issues/features

Edit: typo
[Android Apps and Games] chamonix:
Could you provide a logcat showing where it stops?
[Android Apps and Games] Presjar:
Could someone please make a commant set for mounting / unmounting NTFS OTG and SD card?

Thanks :)
[Android Apps and Games] chamonix:
Would you provide the commands?
[Android Apps and Games] tr0ner:
Does this app support the execution of commands on remote computers? I use server assistant for that but it seems that the app does not get developed anymore..I am desperately looking for an alternative
[Android Apps and Games] chamonix:
If you mean remote commands using ssh the answer is yes, prerequisite is a working ssh on the phone. Do you have any specific commands in mind?

Fyi I'm currently testing a new version where you can add your own commands. If you post a few ideas we could take them for some testing, I could add whatever may be missing as I always am happy to have real life use cases to work on
[Android Apps and Games] Presjar:
Sure. I will work out what is required and post back asap. I have it working for ntfs usb via OTG now, I just want to be sure it doesn't stop other things happening. I also am not sure about unmounting, but I will research :)
[Android Apps and Games] chamonix:
Version 0.8

Version 0.8 is rolling out on Android Market

This version adds support for User commands that are stored in a database and can be edited from the app. User commands also can be created by making a copy of existing commands from any command set.

Commands have a new attribute "Show result". When ticked and the command returns data it is displayed in a popup.
[Android Apps and Games] short/y:
Love it! UI could use a little work to clear up some of the parameters but I still gave you 5 stars and +1 in market. Thanks for a great solution to one of those problems that's been with us since the G1.
[Android Apps and Games] yuyuyak:
editable user apps?

Hi chamonix and thank you so much for this app!

I think I'm going to love it, 'cause I'd like to use the on screen keyboard as little as possible, yet I have some things I must do from terminal.

I have the latest version, 0.8.0.0, where you state that it has user editable settings from inside the app, but for the life of me I cannot find them. Even wiped the Dalvik-cache. d/l'ed the source files but, uhhh, gotta learn that there java.

I do see the /sdcard/Android... files and have fooled around briefly with trying to create commands, no cigar so far, will keep at it. That would be quite livable if I had a little more comprehension of the format.

I also checked out your issue #5 at github.

What am I missing?

HTC eris running workshed's 7.2 cyanogenmod (Gingerbread), rooted & S-off

Thanks

Edit: I think the UI is just fine, less is often more. Want a button to push instead of typing in terminal-it does it!

Edit2: Hey I get it! Just hold down an item extra long, menu allows copy, edit the copy to what you want. Perhaps that could be clearer, but I'm happy! Thanks.
[Android Apps and Games] dcharleyultra:
Show result doesn't appear to work for me - I'm not seeing a popup.

Swyped from my Evo 4G using Tapatalk
[Android Apps and Games] chamonix:
Lol, I felt with you while reading. Any suggestions on how I could do this more intuitive? Maybe a 'hints' overlay showing when first using the app explaining the basics of the ui?
[Android Apps and Games] chamonix:
Could you post a Screenshot of the command? I added a feature request for exporting a command / all user commands: https://github.com/asksven/CommandCenter/issues/11
[Android Apps and Games] dcharleyultra:
Swyped from my Evo 4G using Tapatalk
[Android Apps and Games] chamonix:
I would say works as designed: this command has no return data as it writes to a file. The result dialog is not shown if there is no data to display.

Would you expect a different behavior and if yes how would you expect the app to behave?
[Android Apps and Games] dcharleyultra:
Maybe it's just my misunderstanding.

When we check Show result, what should we expect? Should the result of the command (in this case the contents of the file) show in a popup?

Swyped from my Evo 4G using Tapatalk
[Android Apps and Games] chamonix:
You are right, the result of the command is shown in a popup if the option is checked. But.... only as long as the command returns something.

A short example:

ls -l /

would return a listing of the files in /

ls -l / > /sdcard/dirlist

would return no data as the command ls is redirected to a file.
[Android Apps and Games] chamonix:
OK guys, time for a new release. Any feature you would like to see?
[Android Apps and Games] short/y:
How about extending this to give us cron-like functionality? In other words, let me specify a time (or multiple times or time intervals) that a command is to be run. I'd love to be able to trigger an rsync with one of my servers at 3AM while my phone's charging and I'm asleep.

Alternatively, hook it up to Tasker (http://tasker.dinglisch.net) so I can start commands from it. Or, better yet, do BOTH :) Basic cron-like functionality along with a Tasker plug-in would be a killer combination.
[Android Apps and Games] chamonix:
I like the idea: https://github.com/asksven/CommandCenter/issues/12

I believe that there are better tools that already implement scheduler functionalities (like tasker) so I think I will put on integration instead of re-implementing the whole logic (especially the dialogs for editing scheduled events).

I am on tasker coding for betterbatterystats anyway so let's do that.

Next release scope is set: bugfixing and tasker integration
[Android Apps and Games] short/y:
I think Tasker is a good idea but that means if folks want that capability it'll cost them not only money but time -- Tasker isn't the easiest thing to learn, I don't think ... at least it's not easy to learn well. Anyway, I added a comment to the issue.
[Android Apps and Games] chamonix:
That's a good idea, I may need to split that into two features though.

I agree on Tasker and the costs. On the other hand I don't want to code stuff into one app where interfacing is possible.

Does anyone know a free scheduler allowing to run intents or send broadcasts?
[Android Apps and Games] pp1276:
Not sure if 'Llama' is capable of doing the interfacing, but it is an awesome free program capable of scheduling and running intents and many other things. If someone is looking for an app similar to Tasker, it will worth to to review it.
[Android Apps and Games] chamonix:
Version 0.9 is rolling out

See post #2 for details or http://blog.asksven.org/post/19061672040/releasing-commandcenter-v0-9
[Android Apps and Games] chamonix:
Anyone with some interesting command sets that I could incorporate in the app?

I have the feeling this thread is dying...
[Android Apps and Games] short/y:
LLama's pretty good. As a result of your post I tried it out. But I couldn't work out how to easily get it to drive CommandCenter. Perhaps if chamonix get in touch with the llama developer they could work something out.

Aside from that, I haven't found a tool in Play that provides just a simple cron-like capability.
[Android Apps and Games] chamonix:
I have checked Llama. Seems to be a cool app and I will give it a test ride soon. About CommandCenter integration: LLama can only start apps but not pass any commands or handle Locale plugins (like tasker does). So I am going to code a Locale plugin that can be used from both LLama and Tasker (and Locale of course)
[Android Apps and Games] chamonix:
I finished coding and am testing the tasker plugin right now.

It supports commands without parameters (??) for now, the plugin has a simple interface for selecting the command from the list of available ones.

Expect release 0.10 soon with:

- neat drawer for displaying command results (instead of the dialog)

- tasker integration (compatible with Locale plugin architecture)
[Android Apps and Games] short/y:
Looking forward to the new version!

I don't know if you've contacted Pent (the author of Tasker) but I understand there's a much more elaborate interface available, too, that will let you pass parameters and results. I don't have his email address handy but I'm sure you could find it on his site.
[Android Apps and Games] chamonix:
No, I stick to the published interface for plugins set by Locale. Parameters are passed (the command), results is another story, I will work on that in another sprint
[Android Apps and Games] chamonix:
Release 0.10

Version 0.10 is rolling out: http://blog.asksven.org/post/19533550873/commandcenter-v0-10
[Android Apps and Games] chamonix:
Call for features! I will start working on a new version if there is anything you want added
[Android Apps and Games] DerTeufel1980:
is there a tutorial somewhere, how to create own scripts?

modifying the ones which come with the app is working so far...i would like to know, how can i combine multiple commands with one click.

also, is it possible, to do something like this:

echo 1450 1400 1350 1275 1075 975 875 800 > /sys/class/misc/customvoltage/arm_volt_screenoff

and at last, is there a way to give the commands a specific range (for example values which can be used are between 20000 and 40000), which i can select from after clicking the item?

many thanks for your app. it took me a bit to get my first script working, but now it is running well :)

ah, almost forgot this: how can i remove france tweaks? seems like the file is created by the app at every reboot/ app start

edit: or if i would like to change thresholds, the values are between 1 and 100. maybe i just did not find the right syntax for it, but it really would be nice, if i could type the desired value after clicking the item :)
[Android Apps and Games] denzel09:
Thanks :)

Inviato dal mio LG-P690 con Tapatalk 2
[Android Apps and Games] FadeFx:
Hi, just today DerTeufel provided a json file for your app to control some features of his kernel. Now i wanted to enable one feature at boot using tasker, but if i try to call it in the plugin i only get options for those dump scripts. Is this due to missing parameter support in the plugin? Because i wanted to enable devil_idle_automatic and need to set parameter=1

Is it possible to just copy the script to user and edit it so it always just sets 1?

------------------------------

tapatalked from Galaxy S
[Android Apps and Games] Kurre:
Piping a command makes app to FC. For example if i put simple command like "df | grep data" it crashes at execution.

Glad to see DerTeufel here also..now it's much easier to use his kernels special features :D
[Android Apps and Games] FadeFx:
I think it would be a big advantage if we could have certain scripts to be executed at boot somehow with a selected parameter so that we can apply kernel settings at boot.

------------------------------

tapatalked from Galaxy S
[Android Apps and Games] DerTeufel1980:
Ok, then i have a feature requests :)

I want the app to scan all the folders which are declared within a json file, and apply them again after boot. Maybe an extra button for activating it.

If this is not possible, I would love to have the possibility to echo one value to two different files at a time.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Android Apps and Games] jelle2503:
someone posted link to your app in DerTeufel thread. =) Many thanks for this app. Needs more appreciation, so I reply with this useful message.
[Android Apps and Games] chamonix:
Cool, finally some use cases :)

Let me collect the notes I had made and provide a first draft of a tut. In return I'd like your feedback and QA

Yes, I have some examples for that from old xdandroid times. Stay tuned

Yes there is a syntax for defining a list of values for the user to select from.

You mean the json files get re-created if you delete them? That sould only happen if you delete them all (and I can easily change that)

Well as I wrote before offering a discrete list is possible, adding ranges is a good idea: https://github.com/asksven/CommandCenter/issues/13

I will provide a first draft till end of the week so we can proceed on that
[Android Apps and Games] chamonix:
Could you please provide a logcat?
[Android Apps and Games] chamonix:
what exactly do you mean with "apply the again after boot"?

Are you planning a replacement for init.d?
[Android Apps and Games] chamonix:
CommandCenter can not execute anything at boot (as init.d does) as CommandCenter can at earliest start after userland is started. If you mean that it wouldn't be a problem technically, I have serious concerns about that though because of providing a tool to run commands easily editable automatically (and with su rights). The potential of creating problems because not all commands are run (because e.g. the user didn't allow the command to run with su) or the sequence is not the right one.

Before I start to thing about implementing such thing I'd like to understand more of the purpose and think about the supportability of such a solution (again, CommandCenter is not an init.d replacement)
[Android Apps and Games] chamonix:
Would you mind shareing the json file so we are all on the same page. Do the commands appear in CommandCenter and can you run them from there? have the command been marked as exposed (there is an attribute for commands to be exposed to the tasker plugin)
[Android Apps and Games] DerTeufel1980:
Yes, I was talking about a replacement. But the possibility to send the same value two two different files at one click would also be great. Cause I could grep this file during boot and apply it via initramfs.

For example, writing 1 to a sysfs file, grep the file to get the selected value, and apply it to a file which does not get overwritten/set to default, after rebooting.

edit:

i think, something like this should do the trick (although, this eems not to be the right syntax):

edit2:

the franco script always is recreated after starting your app. would be nice, if you could change this.

is the app supposed to work in landscape mode? i just tryied it, but it always force closed. no big deal, just wanted to let you know :)
[Android Apps and Games] DerTeufel1980:
Sorry for spamming your thread...

Is there a way to changr/integrate better error handling? I have realized, that the app does not start, if one of the scripts has a syntax error. Maybe it would be possible to just mark the scriptset as broken?

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Android Apps and Games] Kurre:
Logcat attached.

Activity:

-opened CC

-Executed script (command "df | grep data", su doesn't matter)

-CC crashes

PS. I just noticed that, it doesn't crash if I disable "Show result" -option, but then it makes this command quite useless :p But could the culprit for this issue be the handling of this output?
[Android Apps and Games] jelle2503:
Been using this app for 2 days now, and I must say it's really convenient for me.

But I'm running in to some FC and ANR.

I have FC when CC is not able to access SD card.

I also have FC when I have just copied an entry from Devil kernel to User, and then short press the new entry under user. If I restart Command Center all seems to work fine again.

I also run into some problems when I start deleting entries from User. It doesn't always delete the entry. If I force close CC, then restart it I can delete a few entries again, then same is happening.

I added logcat, donno if it's any use to you. I replicated one FC, before grabbing logcat. FC with no SD card is easily replicable.
[Android Apps and Games] chamonix:
I have scanned the log and added a bunch of bugs for me to fix.

Btw: blocking ads means blocking support for free apps like CommandCenter financed by ads
[Android Apps and Games] DerTeufel1980:
sorry for bothering again, but could you please tell me, if there is a way to combine two commands, like i wrote as example before?

this would give me plenty of options, and i could suggest every user of my kernel to use your app.
[Android Apps and Games] chamonix:
Could you post a sample json file that causes the error at load so that I could test the error handing?
[Android Apps and Games] chamonix:
I'm not sure to understand the thing with the multiple commands. Are you taking about something like?

echo ? > somefile && cat somefile
[Android Apps and Games] DerTeufel1980:
exactly:

edit: regarding the error handling. there were just stupid syntax errors in my file, like forgetting the "" or the ,

which caused the app to crash. don't know if it is possible to add this. if not, it's also ok ;)
[Android Apps and Games] chamonix:
I have fixed that in my current build but need to provide a proper error message hinting the error.
[Android Apps and Games] DerTeufel1980:
well, i finally realized, that this is the solution :p

thanks :) i am sure there will be much more downloads now ;)
[Android Apps and Games] chamonix:
:D

10 chars
[Android Apps and Games] chamonix:
Release

Bugfix Release 0.10.1 is rolling out
[Android Apps and Games] jelle2503:
Hey,

thanks for the support.

You made me feel bad about having blocked your finance with my ad blocking.

So today when I re-installed nightly with wipe, i pressed the ads in your app twice ;)

I also rated your app 5 stars in Market :)

I again provide you with logcat. I had FC on my first boot of latest CC. When I tapped devil tab.

Then I re-open Command Center, and I see black screen with notification bar for 5-10 seconds, and my launcher redraws after that.

Then all you have to do is open CC again. With no issues on devil tab. I see this behavior a lot since I edit the files a lot.

I provide the mentioned json file too, I hope it's any use.
[Android Apps and Games] DerTeufel1980:
i know this behaviour, too. i thought it was just me...

one or two other things ;)

is it possible, to make the app scan for new/changend scripts at every boot? i think the scripts are saved in cache. after changing a file, i sometimes have to clear app cache, or reboot to see the changes.

the other thing is, is it possible, to scale the name field with the name? for example: "devil kernel governors" is not fitting into it ;)
[Android Apps and Games] chamonix:
Added issues #23 and #24 for those
[Android Apps and Games] chamonix:
Thanks for the log, I will study it tonight. Could you please test something in between: see if the behavior changes if you uncheck 'background commands' in the prefs?
[Android Apps and Games] chamonix:
I have studied the log and found an error conditions that I could try to fix. On the other hand I also saw lots of errors not related to CommandCenter but to your permission database that seems somehow broken.

What happens when you boot your device? I saw some stuff being copied from the SD as if there is a buch of apps being installed on start. At the same time I also see that the error condition comes from an existing database lock that should not be there and occuring directly after the app being installed. Could you disable this installation process and see if it changes something? I just want to exclude that the error condition is specific to your device and to that init sequence
[Android Apps and Games] paintball23456:
FC on aokp b37

send from my brain to your con :D
[Android Apps and Games] chamonix:
could you send a little more context? what did you do when the FC came? maybe attach a logcat? I'd be happy to look into that but first I need to be able to reproduce
[Android Apps and Games] paintball23456:
I am on aokp with devils kernel and on that thread this is a file (devils Joan) and I move that file to the CC files in android/data then I go into that App and click preferences and then on execute on tap then I reboot and when I try to open the app it FC :(
[Android Apps and Games] chamonix:
Please post a link to that file so I can have a look
[Android Apps and Games] chamonix:
Doc

Doc for creating command sets added to post #3