to create terminal command shortcut you will need these apps
1.script manager
2.sm widget
3.es file explorer
now creating shortcut:-
1. open es file explorer
2. create a folder naming "scripts"
3. open scripts folder
4. create a simple .txt file and write only one command in it like 'reboot' without writing su after that rename the extension of the file to .sh (for e.g reboot.sh)
5. open script manager app
6. go to scripts folder
7. tap on .sh file a dialog box will appear
8. tap on fav and su icon and press save button(if dont have root dont press su icon)
9. go to the home screen and just create a widget or shortcut there now pressing the reboot shortcut or widget it will reboot the device
have fun and don't forget to press thanks button it helps me alot
if you are reading please reply to the post if it's working or not
Since you asked, it works when creating a widget, but not for a shortcut. Did you test both widget and shortcut, or did you just test widget and assume that shortcut would also work?
I have checked both Shortcut and widget and both of them are working
Thanks for checking. I will investigate further to find out why it's not working for me.
Regards,
Jacko
If you have sm widgets installed it will surely work
OK. I see what has happened.
The name of the add-on to be installed is neither "sm widget" (your first post) nor "sm widgets" (your most recent post). Because "sm widget" did not appear when I did a Play Store search, I assumed it was something which would be downloaded and installed by the main SManager app if I tried to create a script shortcut on the home screen. The name of the add-on is in fact "SMWidgets". I have now installed it and both the widget and the shortcut are working.
Thanks again for your help. It is very useful being able to run scripts from the home screen, like I do with command scripts on my Windows desktop.
Regards,
Jacko
It is crude: you can't define shortcut icons for one thing.
I can run your commands as SU if you have SU installed.
Overall, tasker is a much bette option IF YOUR DEVICE SUPPORTS tasker.
Related
Does anyone have a way to change the analog clock to digital?
Thanks
solution
Hi.! Yes,there is a possibility for this...firstly, you must download the :"Manila 2D customizer" from a link reported in the "hacking & developement" section of this site (see on top of the main page), and install it on the Opal..after, also in this forum's section, you can find a lot of Skins..Clocks, icons etc...so, when you have find and choose it, download the.zip file that you want, and copy it in the "theme" folder (collocated where there is installed the application; you will find a folder with this name) and after, open this application. secondly you should make a backup of the original theme installed by HTC (this application allow you to do this action. Check the last tab) in case you want return back of the original status..after that, you can go on the step 3: return on the "Theme" section, select the name of file that you have copied and click on "Apply theme" and wait...during the installation the program will ask you if you don't want make the changing also for Weather tab and another point..don't make a tick on this two point, and press continue...finally the TouchFlo will restart automatically, and this procedure permise you to change the skins without soft reset the PDA!
In addiction to this operation, you can change a lot of other parameters as: colors & fonts of tabs, browser internet, the parameters of the main page (ex. if you don't want the analog clock, on the digital clock) etcc...
good luck.!!
if you have problems, contact me
Thank you for your help
Thank you very much for the detailed instructions. Will try it out over the weekend.
It "almost" Worked. Thanks for detailed instructions.
However, The digital and analog clocks both appear. If I disable the analog clock, the layout of the digital clock is totally disturbed and its useless.
any idea why?
instructions
yes i've an idea...have you downloaded the Van_de_bosh clock.? if yes, firstly you should modify manually the HTChomesetting.xml in the Windows folder of Opal..(so connect it on the PC, see and click on top bar of the PC folder Utilties -> folder option-> select the Visualization tab and after click on "show folder's and hide's folders", then apply). secondly enter in the Windows folder in PDA (wait if is slowly the loading, don't worry the PC can appear freeze for a few second, but don't close the folder)..after serch the "HTChomesetting.xml" and copy it on the desktop..So open the .zip and here you probabily find a .txt file. open it. after you will see some strings that you will copy into the file on desktop..when you have finish all steps, take this "HTChomesetting.xml" and replice the old file into the .zip..after try to install this skin package on PDA i know, is quite difficult but , when you have understand the procedure all become simply
If you have problems contact me
Thanks for the reply. However, I just found an updated version of M2DC which "fixed" the bug with digital clock placement. I tried it, and yes, it works like a charm
Hi guys,
I have tomtom navigator installed to storage card but cannot create a shortcut on the today screen either through easytodaylauncher or spb ms3.5.
I got through the usual steps to create a shortcut but tomtom is not there.
to open tomtom I have to go to storagecard/navigator and select the .exe file for it to run.
I have tried copying the .exe file onto the device in to programfiles with no joy.
Please could someone with better intellegence than me tell me how to do it?
Thank you for reading.
Use total commander to create a shortcut to \windows\Start menu\Programs
I also got it at Storage card. Dunno if it will show up at easytodaylauncher and spb ms3.5 but i think so.
Tap and hold .exe file, select Edit > Copy, then navigate to windows/start menu/programs and tap menu and then select Edit > Paste Shortcut. Come out of the folder, go back in and there should be "Shortcut to TomTom..", rename.
Please elaborate on your problem. Does the shortcut appear in the file explorer?
Dan White said:
Tap and hold .exe file, select Edit > Copy, then navigate to windows/start menu/programs and tap menu and then select Edit > Paste Shortcut. Come out of the folder, go back in and there should be "Shortcut to TomTom..", rename.
Click to expand...
Click to collapse
THANK YOU,
I dont know why it wouldnt do this before but following you steps exactly sorted this out
Thanks Lucifertfa and orelsi also for your time.
###OK I haven't really written a tutorial before so if you catch a mistake please let me know so I can make the changes###
In my method we will be using Android Commander on a PC
Note: This does work on Win7
Android Commander is a free program that allows you to see the root and sd locations of your phone without having to type codes through adb. With this you can drag and drop anything anywhere onto or off of your phone.
Lets begin!
1: Ensure your phone drivers are installed and updated. Also that your phone is plugged in
2: Ensure you have the latest sdk downloaded and installed. You need this for adb. You'll see why in a minute
3. Download and install the attached file at the bottom. This is the Android Commander program.
4. On the first run of Android Commander if you don't know what the options that are shown meen then select the I don't know/ autodetect option.
5. When AC finally opens you will see two windows. On mine the left is Windows Files and the right is Android Files
Personally I don't use the Windows Files side for anything. Its all about your preferance because AC allows you to drag directly from your desktop to the Android Files window.
You should notice on the Android files side all your android "system" folders. locate your original bootanimation like this: Double click "data" then double click "local" Once inside the local folder you will actually be able to see the original bootanimation.zip file. From here select the check box next to it and hit the copy button. By default AC will "copy" the selected file to whatever window is open on the Windows side but you can choose to copy it to your choice. If you don't want to copy it AC allows you to right click it and simply delete it. Your choice. I won't be held responsible if you do delete it and later you decide you want it back!!!
Moving on, once you've done what you want to the original bootanimation.zip you need to locate the new bootanimation of your choice and simply click and drag it to the AC window. When you drop it a window will pop up asking where to put it. Obviously you will want to push it to the android side so if android is on the right then select right window and select ok. Another window will pop up showing the push in progress. I have mine set to close on finish so that window goes away once the file is moved.
Done!
After this you can restart your phone to watch the animation on start up or you can cmd into your phone and actually play the bootanimation to see it working on your phone without restarting!
To use adb to see it without restarting your phone open cmd by winkey+r then type cmd and then hit enter. in cmd navigate to your adb tools like this:
NOTE: I'll use mine as an example.
Code:
C:\Users\Name>cd C:\Android\platform-tools
NOTE: I typed "cd" then my tools location. Important.
Press Enter
Code:
adb remount
Press Enter
Code:
adb shell
Press Enter
Code:
bootanimation
Press Enter. Once you press enter this time the animation will play instantlly on your phone if all has went well. Also if it plays then the install has worked obviously...
To stop the animation press ctrl+c
I know this tut may seem a bit long, but once you do it a couple times I believe you will see this is the easiest and quickest way to change your bootanimation.
If your still confused, watch my Instruction Video file at youtube:
http://www.youtube.com/watch?v=LIeia2HAXXk
Will this work with the Samsung Fascinate? Thank you
i found bootanimation in data\media folder not data\local
can anybody tell me about any terminal app which can create shortcut or widget for commands like if i want to reboot my device then i just need to tap on that widget or shortcut to reboot my device
dhlalit11 said:
can anybody tell me about any terminal app which can create shortcut or widget for commands like if i want to reboot my device then i just need to tap on that widget or shortcut to reboot my device
Click to expand...
Click to collapse
Script Manager maybe.. But I don't know how to make the scripts.. haha
dhlalit11 said:
can anybody tell me about any terminal app which can create shortcut or widget for commands like if i want to reboot my device then i just need to tap on that widget or shortcut to reboot my device
Click to expand...
Click to collapse
http://www.appbrain.com/app/reboot-widget/com.schreinerDev.rebootwidget it is what it is, a widget to immediately reboot your phone. i don't know about any other widget for other commands though
wtfshouldidonow said:
http://www.appbrain.com/app/reboot-widget/com.schreinerDev.rebootwidget it is what it is, a widget to immediately reboot your phone. i don't know about any other widget for other commands though
Click to expand...
Click to collapse
i dont need many apps fir many purposes i need an app which can create widget or commands
guys kitrax gave me a great idea i have found a way to create widgets for command in script manager what we need to create is .sh scripts and it is very simple creating :-
first create a simple text file with "sh" extension
then open it with text editor and write the command you like and save it e.g. reboot
open the script manager
tap on the script you created it will show you dialog box
tap on the fav and su icon and activate those 2 option and tap on run button
after that normally create widget on your home screen
dhlalit11 said:
guys kitrax gave me a great idea i have found a way to create widgets for command in script manager what we need to create is .sh scripts and it is very simple creating :-
first create a simple text file with "sh" extension
then open it with text editor and write the command you like and save it e.g. reboot
open the script manager
tap on the script you created it will show you dialog box
tap on the fav and su icon and activate those 2 option and tap on run button
after that normally create widget on your home screen
Click to expand...
Click to collapse
Great!.. Hope you hit the Thanks button! will try you're suggestion as well..
So as you may know, Google released their Assistant SDK a couple days back. Naturally, my first instinct was to replace Siri with Google Assistant on my MacBook Pro.
Here we go...
NOTICE: I am not responsible for any loss of data or damage to your computer. I strongly recommend backing up your device before following this tutorial. Proceed at your own risk.
You are installing the Google Assistant SDK on to your device, and there are limitations and differences between it and Google Home.
This is not elegant by any means and doesn't have a fancy GUI like Siri, so be warned. It's a bodge. But hey, it works
1. Firstly, download and extract the zip file attached to the bottom of this post. I chose to do this in the Downloads folder. If you haven't already installed Python 3, go ahead and install it (the pkg file is located in the '1. Python' folder).
2. Go to the Project Page (console.cloud.google.com/project) of Google's Cloud Platform Console, and click 'Create Project'. Name your project "My Google Assistant". After your project has been created, close the page.
3. Enable the Google Assistant API by following this link (console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview) and clicking 'Enable'. Make sure your project is selected (the project title is displayed at the top of the page). Click "Create Credentials", and select "Other UI (e.g. Windows, CLI tool)" and "User Data" in the following dropdown boxes. Give your OAuth 2.0 Client ID a name, and hit 'Create Client ID'. Call your Product "My Google Assistant". When you are prompted to download credentials, click 'I'll do this later'. You will be brought to a page with a list of OAuth 2.0 Client IDs, and you should see the one you just made. Click the download button to the side, and download it to a folder called "googleassistant" in your Home Directory.
4. Ensure that "Web & App Activity", "Location History", "Device Information" and "Voice & Audio Activity" are all enabled in your Activity Control page (myaccount.google.com/activitycontrols) so that Assistant can be personalised to you.
5. Open a Terminal window (Applications > Utilities > Terminal.app), and install pip if you haven't already installed it, by entering the command:
Code:
sudo easy_install pip
6. Navigate to your googleassistant directory:
Code:
cd ~/googleassistant
7. Install these dependencies:
Code:
python -m pip install google-assistant-sdk[samples]
8. Enter the following command, changing XX to the name of the json file you downloaded earlier:
Code:
python -m googlesamples.assistant.auth_helpers --client-secrets XX.json
9. You will be given a URL. Enter it into your browser and login to your Google Account to authorise the application. You will be given a code. Copy it, and enter it back into the Terminal window - this may take a few minutes.
10. Test that your Google Assistant works with your Mic by entering the following command; it will record 5 seconds of audio and play it back to you.
Code:
python -m googlesamples.assistant.audio_helpers
11. If you can hear yourself, entering the following command to start talking to your new Google Assistant! It can take a couple of minutes to load when you first enter the command, and can take a minute to realise you've finished speaking, so be patient! It does become a lot more responsive after you've ran it for the first time. When you enter the command, wait for it to prompt the command "press Enter to send a new request", and ignore any warnings.
Code:
python -m googlesamples.assistant
Congrats, you just got Google Assistant working on your Mac!
12. Now to replace Siri with Google Assistant, go to the '2. Assistant App' folder from the archive you downloaded and extracted from this post earlier. Copy it, and place it in the ~/googleassistant directory you created earlier.
All this app does is run the Terminal command from step 11 when pressed (if you're worried, all of these apps can be opened in Automator so you can see there's no funny business here).
13. Next, go to System Preferences > Users & Groups > Login Items, and add the Assistant app as a login item, and click the checkbox to Hide the app so it runs in the background.
14. Go to the directory '/System/Library/CoreServices/SystemAppearance.bundle/Contents', and press Cmd-I to bring up the Get Info dialog box. Give yourself Read & Write access by clicking the padlock at the bottom of the window, clicking the '+' Icon, your username, and setting your Privilege to 'Read & Write'.
Next, enter into the 'Resources' folder and do exactly the same thing to the file 'Assets.car', giving yourself Read & Write access.
15. Repeat step 14 at the directory '/System/Library/CoreServices/Siri.bundle/Contents', again with the 'Resources' folder and 'Assets.car' file.
16. IF YOU DO NOT HAVE A TOUCH BAR, SKIP THIS STEP!
Open the '3. Icons' folder from the archive you extracted earlier, and open ThemeEngine.app. Click 'Open Document', go the directory '/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources',
and click on 'Assets.car'. Go to the "TouchBarControlStripSiriContent" element, and backup the original image by dragging the 'normal' image to your Desktop or location of your choice.
Next, go into the Images > TouchBar folder and drag the 'sharedArt...' image into the 'normal' box to replace it. Click File > Save and exit.
17. If you do not have ThemeEngine open from the last step, open the '3. Icons' folder from the archive you extracted earlier, and open ThemeEngine.app.
Click 'Open Document', but this time go the directory '/System/Library/CoreServices/Siri.bundle/Contents/Resources', and click on 'Assets.car'.
Go through each element, and backup the original images by dragging both of the images in 'StatusMenuDark', 'StatusMenuLight', and the two images in 'ZZZZPackedAsset-1.0' and 'ZZZZPackedAsset-2.0' to your Desktop or another safe location.
Next, go into the Images > StatusMenuDark in the archive you extracted earlier, and ensure the 'StatusMenuDark' element is selected in ThemeEngine. In the folder, there will be two images - one that begins with 'siri-menu-icon-darkmode_', and one that begins with '[email protected]_'.
Look at the image that is selected in Theme Engine, and drag the image with the same name into its place.
Repeat this with the 'StatusMenuLight', 'ZZZZPackedAsset-1.0' and 'ZZZZPackedAsset-2.0' elements + folders in the archive (sidenote: the PackedAsset elements only have one image inside each, unlike the StatusMenu elements). After this, click File > Save and exit.
18. At this point, you have replaced the Siri Icons with Google Assistant Icons, and have Google Assistant set to open in the Terminal when you login. But all those Siri apps still just open Siri! Lets fix that.
It turns out that when you click the Siri Icon on your Touch Bar, in your Status bar, or open Siri in the Applications folder, they're actually all just shortcuts for opening Siri.app in the CoreServices folder.
In System Preferences, click on Siri and make sure it is DISABLED - do not close this window!
Next, open Activity Monitor (Applications > Utilities > Activity Monitor.app) and search for Siri. Kill Siri and its related service if running.
Open a new Finder Window, and navigate to '/System/Library/CoreServices'. Copy Siri.app and back it up somewhere safe. Go the archive, open the folder '4. Siri Shortcut', and copy Siri.app into the CoreServices folder, replacing the Siri app that's already there. Go back to your System Preferences window, and enable Siri. Close out of your windows, restart your mac, and hey presto - Siri has been fully replaced by Google Assistant! You're welcome.
That Siri.app is again an AppleScript made in Automator, and it essentially just enters 'Return' into the Terminal window when pressed. In other words, it's the equivalent of clicking 'return' in that Terminal window when you were talking to Google Assistant earlier. As I said, it's a bodge, but it works!
When the Terminal window launches, don't exit it! Instead, press Cmd-H to hide the window.
If you want to go back to Siri just follow this tutorial again (in the correct order), but replace the Assistant files with the Siri files that you backed up.
I hope you found this useful!
If you did, please follow me on twitter (@_lucasys) and help share this guide around
ZIP FILE: drive.google.com/file/d/0B9n0ZPG3Fgh3emJaanRHT2ZMSWc/view?usp=sharing
Screenshots: imgur.com/s88t7hC, imgur.com/qIi5t9W
Thanks to Alexander S. Zielenski and Mishaal Rahman
Reserved
Reserved Post
Wow keep it up man!
Any tweaks like this for jailbroken iPhones?
Python
Valiante said:
Any tweaks like this for jailbroken iPhones?
Click to expand...
Click to collapse
I don't know if iPhone have the required version of python if yes then there is a way.
hi, nice hack! one of the best!
does this support local commands for the mac?
Would this work with an M1 Macbook Air and that thise post is like 6 years old?