Related
Major Changes to the UI and usage Check the market for the latest version or use the version attached to this post. If you have trouble with the posted version use the market version as it will always have the lastest fixes. The attached version might have an issue I did update the attached version but I won't manage it here.
1. Complete task ui revamp, easier building and management of tasks.
2. Added cron string builder, you can now build time string with rolling pickers and show you the next execution date (great for visualizing your time string). This will build 98% of the schedules most of us use.
3. Clicking on the clock in the Cron tab will now show all the active queued tasks (tasks that were active when cron was started).
4. Added option to run on boot for a task, this makes tasks execute if the option is checked and cron is set to auto restart. This allows a task to run only, at boot, and the task does not have to be active. (Sascha Kerkeling).
5. Added option to import scripts, you can now import the contents of a script file (Sascha Kerkeling).
6. You can now activate/deactivate a task from the tasks view.
7. I have kept the old tasks view in place for this update so that you can trasnfer any existing tasks over... it will be removed next update.
8. Added cron change log... this will automatically show once every update.
9. Added safe guard so that a reboot command cannot be fired with the execute on boot option (just in case).
10. Added better logging of why task commands fail, this will show as a complete stack trace in the execution log.
11. Added 6 new default tasks that might be helpful (Sascha Kerkeling, A. Simmons).
This is cron for your phone a small app I developed to allow me to restart/shutdown my phone on a schedule, but Cron has a billion uses and I wanted to see how others will use it I also use it to backup my market apps on a schedule.
**WARNING YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP**
This app can be dangerous if used wrong, if you use this app incorrectly and mess your phone up its your fault not mine. You wouldn't blame snap-on if the wrench you used breaks a bolt on your car, so don't try and blame me for what you do wrong with this tool. If you do I will only point at you and laugh.
**WARNING YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP**
Features:
Uses the standard Cron4Phone time string schedule.
Run all type of shell commands on any schedule you can think of.
Run tasks to shut your phone off on a schedule.
Auto restart so Cron4Phone continues to run even after a restart.
Small apk foot print.
unlimited concurrent tasks available.
Set a task as inactive/active.
Test execution setting to log commands only.
I'm really looking forward to seeing how others will use this tool. Please feel free to point out errors or suggestions. If you want help setting schedule I can give pointers.
Android market download
ooooh
as soon as I can liberate a copy from a market enabled phone I will begin tinkering... that might take a while
would you consider releasing it to f-droid.org if your license allows?
Here you go
Here's a copy... I haven't opened the source up although I probably will in the future, when I have more time to spend on it (working on a video game). This copy is signed with the same key as the market version and its ad supported I will slowing be updating the task management part of the ui.
this is the market description
*****YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP*****
This app can be dangerous if used wrong, if you use this app incorrectly and mess your phone up its your fault not mine. You wouldn't blame snap-on if the wrench you used breaks a bolt on your car, so don't try and blame me for what you do wrong with this tool. If you do I will only point at you and laugh.
*****YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP*****
-----------NEW INFO READ------------
After another full audit and help from Sascha Kerkeling and M. Porter, I redesigned Cron to no longer use long running service and instead now (correctly) uses AlarmManager to precisely execute tasks in a WakefullIntentService. This will will insure that all task are executed even when the phone is in deep sleep (even when the phoen doesn't hold any other wake locks) and barely uses any resources to accomplish this. I will now be able to focus on the UI... Dynamic task here we come!
-----------NEW INFO READ------------
Cron4Phone is a time-based job scheduler in Unix-like computer operating systems. Cron4Phone enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the restart your phone and backing up apps. This is a foreground service so that it is guaranteed to stay running, use the home key to back out of the app or double tap the back arrow to kill the app. Killing the app kills the service.
Features:
Uses the standard Cron4Phone time string schedule.
Run all type of shell commands on any schedule you can think of.
Run tasks to shut your phone off on a schedule.
Auto restart so Cron4Phone continues to run even after a restart.
Small apk foot print.
5 concurrent tasks available.
Set a task as inactive/active.
Test execution setting to log commands only.
This tool can be used to do endless amount of things, I'm really looking forward to see what you guys can use it for so please share your ideas, command and schedules.
I have provided 3 tasks that I thought would be the most useful to most users shutdown, restart, and backup apps.
Interesting
Sent from my SCH-I500 using XDA App
testing your application, it's really simple.., i'm hoping custom task can be added more
New version
EDIT: removed refer to the OP...
I attaching a new version to this post, it fixes a bug with the restart on reboot not registering your tasks. Basically if your phone reboots and you have active tasks and cron is started it will keep on running.
As for the ui I will slowly work on updating the task tab so that task can be managed dynamically, other than that the rest of the ui will basically stay the same, I want it to stay simple and small.
The market version has also been updated.
ttt for updates!
Very nice app, I would like to see more Linux tools working with Android.
Sent from my Zio using xda premium
Yes and this was one that I thought was needed, and while you can run cron on your phone through busy box, this app doesn't need that module and uses standard java to mimic cron all while putting a clean ui on top of it.
Thank you.
[EDIT]
ACK! Okay, I just stopped and started the cron and it is now working. Sorry about this post. :-/
[/EDIT]
I am going to resurrect this thread because I can't figure this out and I'm a Unix admin. I have tried to set a schedule for a job to run every 5 minutes (this was to test, the actual job will run every 30 minutes). I have tried to set */5 * * * *, /5 * * * *, and 0,5 * * * * and none of them work for every 5 minutes. Can you look into this or give an example in here? Thanks!
fstrim
If anyone is still out there -- I use Cron4Phone to schedule daily reboots and would like to add an fstrim command to run daily, maybe weekly. Can anyone help me with setting this up (command syntax, etc)?
Is there any chance to get the apk from somewhere? Thanks in advance!
I had high hopes (very high!) that I could get tasker to run on the ouya, unfortunately I have not had any luck as of yet.
Maps was installed, as was a few files that needed to be manually installed in /system, but unfortunately neither seemed to work.
Has anybody had any luck? Please let me know if you did, I had big plans for this little system and tasker was a key piece to it.
Thanks.
Well, apparently I'm batting 1000 tonight on threads.
A reboot allowed instillation of the tasker trial version.
It looks like everything works, or as much as you would expect for the ouya. I did two test tasks. First was just a screen popup, which obviously worked great. The other was a reboot to test root access, and this also worked perfect (say hello to automated weekly reboots!).
Now, to see if autoremote can be made to work, and then on to autovoice or utter! and the inherently difficult prospect that will be.
Snoman002 said:
Well, apparently I'm batting 1000 tonight on threads.
A reboot allowed instillation of the tasker trial version.
It looks like everything works, or as much as you would expect for the ouya. I did two test tasks. First was just a screen popup, which obviously worked great. The other was a reboot to test root access, and this also worked perfect (say hello to automated weekly reboots!).
Now, to see if autoremote can be made to work, and then on to autovoice or utter! and the inherently difficult prospect that will be.
Click to expand...
Click to collapse
Please periodically update this thread with your progress? Curious to follow suit, though don't have the time to help in the investigations
A few issues with tasker itself, such as I can't download from Google play, it won't recognize my original order #, i can't find 'my' .apk, basically can't get my purchased version working and am stuck on the 7 day trial version. As for functionality it works great.
Current main task is to start XBMC if Autoremote received a certain message, as well as sending a message when xbmc is open and a different one when it closes.
On my tablet when I fire up the Yatse app, Tasker checks to see if XBMC is running, if not it displays a popup asking if I want to start xbmc. If I say yes it sends a command through autoremote which is what triggers tasker to start xbmc.
OK, a few things I have found.
Originally I could not download Tasker through the Play Store as the Ouya showed up as 'incompatible', however after a Play Store crash that removed it from my system, and subsequent reinstall, I can now download it from Google Play. I don't know why this was, but when I first did the play store mod I didn't have busybox installed, I did for the reinstall. I don't need the play version however as I was able to get the 'Trial' version validated, which is good as the direct download has added functionality (that I will never use). To validate the trial version you need to find the 15 digit order number (not the 16 digit Google provides in the email). This is best accomplished by using the 'Contact Crafty Apps' link in the email, and then finding Tasker, the 15 digit order number should then be visible. This only works if you bought Tasker before March 2013 though, otherwise you will need the Play store version (thanks Google :/)
To get Tasker to run you need to be Rooted and move two Google files to the proper location on the Ouya. Tasker will not run without the Google maps framework and oddly enough installing Google maps doesn't install the full framework. You can get these files by flashing the gapps package with CWM, or just install the two files themselves. To get the files unzip the gapps package, I think in the 'framework' folder. You need to move com.Google.android.maps.XML to /system/etc/permissions, and move com.Google.android.maps.jar to /system/framework. This WILL require you to remount /system as writeable. ES File Explorer worked for me (download an old version, 3.0.4 maybe, as the newest Play store version crashes), it was the only free root access file manager to work for me. Remount /system back to the way it was. BTW, I did all of this without adb, it was all done on the system itself with some help from dropbox (unzipped on my nexus, it was easier).
Tasker itself works great and I currently have it sending messages through autoremote to update variables on my other devices, this triggers a popup that asks if I want to start XBMC when I start my XBMC remote app (only if XBMC isn't running). If I select yes then it sends an Autoremote message that triggers a Tasker profile that starts XBMC. I also have Utter! setup to trigger the 'Start XBMC' Auto remote message on my Nexus
My next two tasks will be for an automatic nightly reboot, and a task that sends the Ouya into sleep mode when I start my alarm clock app on my nexus. I'm still trying to think of good ideas to implement. I hope to get a microphone working to use voice commands directly on the Ouya, and my dream is for an IR blaster to work so the Ouya could turn on my TV with voice commands (old TV)
Snoman002 said:
OK, a few things I have found.
Click to expand...
Click to collapse
Wow! I really commend you for your perseverance and willingness to share your experience and findings...people don't realize how much this helps others.
Scenes Working
Hey Snoman002,
I have my Ouya rooted and found a Tasker that can be used to mount and unmount NFS mounts. I have the two google maps files installed and have version 4.2 of Tasker installed. When i try to open the scene or even create a new one Tasker closes and goes back to the Make Menu. Have you seen a similar thing with the version you have been using ?
Thanks
Techhhead33
Techhead33 said:
Hey Snoman002,
I have my Ouya rooted and found a Tasker that can be used to mount and unmount NFS mounts. I have the two google maps files installed and have version 4.2 of Tasker installed. When i try to open the scene or even create a new one Tasker closes and goes back to the Make Menu. Have you seen a similar thing with the version you have been using ?
Thanks
Techhhead33
Click to expand...
Click to collapse
Sadly, other than getting it running initially I have done nothing more with Tasked on my ouya.
Your trying to make a scene in tasked? Scenes are really only for overlays and custom menus (drastic oversimplification I know). I fail to see the need for the complication of a scene just for mounting and unmounting. Perhaps you could change the tasker task to a simple popup menu (which now that I think about it may be a scene...). Popups worked for me, but that's all I can say about it.
Sorry, I'm not here much anymore as my ouya just runs xbmc now. I will try and check in more often.
WARNING: I am not responsible for any bricked devices caused by attempting this howto. If you haven't read this how to twice, and fully understand the requirements, then please don't attempt it.
Introduction (not important):
First, this may not be the best way to do this, and if someone knows a better way, I'll be happy to listen.
I kinda stumbled across this solution after trying the many other ways to solve the problem, but all the other ways seemed to have something incomplete with them and ended with no ADS, but no something else, like rotating lock screens or something.
I started with the assumption that the ADS program (dtcp) can be disabled through a flag somewhere on the system, for if you pay the extra $20 you get a kindle with no ADS, but same Android build. After looking through lots of sqlite databases I found it in the com.android.providers.settings/settings.db file.
Prerequisites:
Basic knowledge of databases
SQLite Editor Pro (Free on 1Mobile Market)
DroidWall
Steps:
Open SQLite Editor
Open "Settings Storage" (com.android.providers.settings)
Open settings.db
open "global" table
Highlight entry "IS_DTCP_ENABLED"
Click the Edit Record button at the top
Change the value from a 1 to a 0
Click Save
Go back
Make same change on the "secure" table
Reboot kindle for new options to take effect.
Other Thoughts:
This just changes the value temporarily until the device checks back in with Amazon and then the value will get overridden again with the correct value. To prevent that install DroidWall and whitelist only the applications you need to access the internet. DroidWall requires root, which is why root is in the subject. But you should be doing this anyways to prevent OTA updates.
cool
Does this mean that you will now get the rotating native wallpapers that you would have if you paid for the dismissal of the ads? Currently I use adaway on my s4 hotspot and the only one I blacklist is (spectrum.s3.amazonaws.com) this has blocked updates because I am still on old software with no other blocking in place and I have noticed it also has blocked rotateing ads accept I have the same 1 at all times.
Edit: YAY !!!! and yes I now have rotating native wallpapers
Btw thank you for sharing and it is quite refreshing to see a new member join to share useful information in a well thought out and presented OP and not just join to start a thread with a question that is the heading of so many other threads that has been beat to death already..burying perfectly good information..thank you for joining us at XDA!
Awesome!!!! have been looking for a way to do this without factory reset for a while! You da man! Gonna spam that thanks button for a while lol
Thanks so much, that was easy!
Mind after a few days .2 went straight black lock screen
Anyone know what exactly I need to enable in droidwall to have internet but no ota updates or Amazon changing the lock screen back to ads?
Uhg
This mod works fine. No ads, rotating wallpapers appear every time. No reversion to black screen. No need for Droidwall. Use of Droidwall is impractical for this purpose. Who knows what not to include in some giant white list?
It appears that the wallpapers will continue to appear without reversion if you have blocked updates using the root kit.
earlgrey_44 said:
This mod works fine. No ads, rotating wallpapers appear every time. No reversion to black screen. No need for Droidwall. Use of Droidwall is impractical for this purpose. Who knows what not to include in some giant white list?
It appears that the wallpapers will continue to appear without reversion if you have blocked updates using the root kit.
Click to expand...
Click to collapse
Sorry, what's the root kit?
dras99 said:
Sorry, what's the root kit?
Click to expand...
Click to collapse
First link in this post:
http://forum.xda-developers.com/showpost.php?p=53451623&postcount=3
I assume the block update action from the rootkit is responsible for the lack of reversion to ads since I haven't done anything else except the steps I outlined in the post and the data base tweaks explained above. My kindle has been running for 5 days now without ads and with the startup wallpaper.
earlgrey_44 said:
First link in this post:
http://forum.xda-developers.com/showpost.php?p=53451623&postcount=3
I assume the block update action from the rootkit is responsible for the lack of reversion to ads since I haven't done anything else except the steps I outlined in the post and the data base tweaks explained above. My kindle has been running for 5 days now without ads and with the startup wallpaper.
Click to expand...
Click to collapse
I also blocked updates with the root kit. Then I followed this tutorial and it worked great however it did revert back to adds after a reboot or 2.
conan1600 said:
I also blocked updates with the root kit. Then I followed this tutorial and it worked great however it did revert back to adds after a reboot or 2.
Click to expand...
Click to collapse
Strange! What's different about my install I wonder?
earlgrey_44 said:
Strange! What's different about my install I wonder?
Click to expand...
Click to collapse
I'm left scratching my head over that as well. Tomorrow I will re run the ota block script as I'm now concerned that it perhaps did not do something correctly. I did check for updates and it says last update failed but better safe than sorry. I DO NOT want to end up getting updated again. I finally have this tablet running rather nicely and am quite satisfied with most aspects. Still need much more customization options but it's serviceable now. And this tablet has always had the best touch input response of any I've ever used. I'd hate to have to throw it back in the closet.
I am getting now BLACK SCREENS. Any way to change this?
Script
For anyone who wants to run this from command line (e.g. on reboot or network change event) you can create a script like below and use SManager to run it periodically. You will first need to install sqlite3 binary (google "SQLite Installer for Root").
Here is the script that needs to be executed as root:
Code:
#!/system/bin/sh
sqlite3 -batch /data/data/com.android.providers.settings/databases/settings.db "update global SET value='0' where name='IS_DTCP_ENABLED'";
sqlite3 -batch /data/data/com.android.providers.settings/databases/settings.db "update secure SET value='0' where name='IS_DTCP_ENABLED'";
I received build MRA58R today via official OTA. Device is unmolested (bootloader never unlocked). It was 702 MB and everything went very smoothly. The device is really snappy--I'm a happy big red customer!
Nice explanation of Marshmallow new features:
http://www.verizonwireless.com/support/google-nexus-6-update/
Here's the text from the link posted above.
Google Nexus 6 Software Update
[Updates]
Verizon Wireless is pleased to announce a software update for your device. This software update has been tested to help optimize device performance, resolve known issues and apply the latest security patches.
Before you download:
Connect your device to a Wi-Fi network, or make sure it has a strong Verizon Wireless network connection.
Ensure your battery is fully charged before starting the software update.
Current Software Update Benefits
Software Version: MRA58R
Verizon Wireless is pleased to announce a new software update for your Nexus 6. Android™ 6.0 Marshmallow improves your mobile experience with new battery-smart features and enhanced app permissions that give you even more control.
Now On Tap: spot-on answers, fast
Now on Tap, a new feature powered by Google™, helps you stay on task by instantly pulling up relevant information, like driving directions and restaurant reservations, letting you get more done.
A battery that works smarter, not harder
Android Marshmallow's new battery features help your device retain its charge longer.
Doze: When your device is at rest, Doze automatically puts it into a sleep state, but will still allow all your alarms, notifications and calls to ring through.
App Standby: Your seldom-used apps will go into App Standby in order to conserve battery power for the apps you use more often. If an app hasn't been used for several days, its power consumption is reduced to zero. Apps will come out of App Standby immediately once you interact with them.
New app permissions
You now have specific control over what info you share - no more all-or-nothing access. Android Marshmallow lets you define what you want to share and when.
Simplified app permissions
Permission requested only when relevant
User controls to turn on/off any permission, at any time
Link apps without a prompt
Android has always let apps register themselves to handle web URL links. With the new app links feature, the transitions between apps are even more seamless. The platform can determine the default app to use for a particular web link and skip prompting users to select an app.
For example, clicking a LinkedIn connection request in an email could automatically launch the installed LinkedIn app to complete the action, instead of showing the user a disambiguation dialog or launching a web browser.
Direct Share
The Direct Share feature lets users share content directly to targets, such as contacts, within other apps. Previously when sharing content via the Share menu, the user would have to go through a two-step process. First, choose the destination app and then choose the target, such as particular contacts, within the destination app. But apps can now define direct share targets that launch a specific activity that is directly exposed to the user via the Share menu.
For example, the direct share target might launch an activity in another social network app, which lets the user share content directly to a specific friend or community in that app.
Text selection & text editing
Selecting text is easier in Android Marshmallow, with word-by-word forward selection and character-by-character backward selection for increased precision.
After you select the text, actions such as Copy, Share, and Search are shown in a floating toolbar above the selection. When you use an external keyboard to edit, you can use Ctrl-z and Shift-Ctrl-z to undo and redo changes.
Easier device migration with Auto backup for apps
When apps are installed on a new device or an existing device that's been factory reset, they automatically retain previously associated user data. Account information, settings, game scores, and even the layout of the launcher are restored. Default app settings, sync settings, and keyboards are also automatically backed up and restored on new devices.
Simple notifications and volume control
Android Marshmallow adds a Do Not Disturb feature (formerly Priority) with improvements to the design, including:
None/Priority/All are now activated with simple on/off switch.
Clearer options such as Total Silence, Alarms only and Priority.
More precise control of Priority modes, such as for repeat callers, and also by notification category, and starred contacts.
Additional rules flexibility, including those based upon events or with a custom duration.
Each sound stream can now be individually controlled.
Peeking Notification (formerly Heads-up Notification)
Has smoother animations and the ability to configure the behavior of each app.
Next steps and additional links:
Please allow additional time for the apps on your device to continue to download after the software update.
Operating System FAQs
Previous Software Update Benefits
Related
View Software Version - Nexus 6
[Device-Specific Instructions]
How to Use Guide: Verizon Cloud
[How to Use Guide]
Get step-by-step instructions for how to sign up for and manage Verizon Cloud online. Learn how to upload contacts, pictures, videos, music, documents and more.
Advanced Devices - Software Updates
Click to expand...
Click to collapse
Mine is waiting for a WiFi connection before downloading. Verizon customer here..
If I don't see it by the weekend, I'll flash it.
Which baseband version is this OTA? Just curious if it's the same 27R.
bond32 said:
Which baseband version is this OTA? Just curious if it's the same 27R.
Click to expand...
Click to collapse
Good question, thats what i wanted to know also, i assume the base is the same as everyone is using in their roms, or the roms might even have a newer marshmallow base
bond32 said:
Which baseband version is this OTA? Just curious if it's the same 27R.
Click to expand...
Click to collapse
Confirmed mine is 27R.
Ditto... 27R here, as well.
Can anyone let me know if they now are able to use the voicemail icon in the dialer after this update? I dont have this on pure nexus, but a friend with a nexus 6 that just took the OTA says it appears now
The voicemail icon in the dialer (it's actually in "recents") says my VM box is empty. The Verizon visual VM correctly shows what's in my inbox. All messages predate installation of Marshmallow (MRA58R). I'll test to see what a new message does and advise.
Result: VM in recents still shows empty. Verizon visual VM apparently overrides it (IOW, they don't both work). Does the VM in recents work OK on Verizon for non-Verizon Nexus 6's?
I'm not sure of the reason, but the touch screen of my Yotaphone 2's e-ink stopped working. The e-ink screen itself visualises what it is supposed to, but it doesn't react to touches. The LED screen is OK. I thought this may be a software problem, so I did a factory reset that would probably eliminate it. It didn't, and the problem that I have now is that I can't even use the LED screen, because at startup it runs the tutorial, and the tutorial requires you to interact with the e-ink screen, which, in my case, is impossible, because it is not responsive to touches. So I never get to the "desktop" and the app launcher - the tutorial has to be completed. If I slide from the top rim I can get into Settings. I've tried stopping the process from the list of active apps, but it doesn't work. Anyone has an idea what to do?
I have the same issue yesterday and couldn't find a way to bypass the tutorial. As you I tried to kill the process via adb and didn't work. I also thought that there might be a place in the phone where the app checks to see if it has been run as it only runs the first time.
Two things to try:
1. Do you have the folder /data/data/com.yotadevices.yotaphone2.tutorial ? I see this in my phone so maybe it is created as a check. The folder is empty, you can try to create it as root to see if this bypasses?
2. Send the events via adb sendevent to the /dev/input/event4 or via input tap. You will need to calculate the coordinates somehow.
Good luck!
jaboto said:
I have the same issue yesterday and couldn't find a way to bypass the tutorial. As you I tried to kill the process via adb and didn't work. I also thought that there might be a place in the phone where the app checks to see if it has been run as it only runs the first time.
Two things to try:
1. Do you have the folder /data/data/com.yotadevices.yotaphone2.tutorial ? I see this in my phone so maybe it is created as a check. The folder is empty, you can try to create it as root to see if this bypasses?
2. Send the events via adb sendevent to the /dev/input/event4 or via input tap. You will need to calculate the coordinates somehow.
Good luck!
Click to expand...
Click to collapse
There was nothing I could do about it, but I found a workaround which would at least let me use the phone somehow. From the bottom side you can launch Google search and search for a popular android app, which will take you to the Play store. From then I installed Sidebar Lite by Mohammad Adib (probably other sidebar launchers would also work) and then the sidebar launcher works on top of the Tutorial and you can dock several apps in there.