[Android Apps and Games] strictlyrude27:
Hi all -

NOTE: This project is on permanent hold until Tasker 1.1.2 is officially released. There are lots more features that will make it much easier both from a development end and a user end to use tRUE. I regret that I can't work on this now, but there are just too many Tasker limitations to work around that will be dealt with in Tasker 1.1.2. This will hopefully be by the end of the month, but may take into mid-October.

Furthermore, Koush has locked down writing commands to recovery starting with CWM5. If your ROM uses CWM5 for its recovery, it will not be compatible with tRUE.

Introduction

Welcome to tRUE - the Tasker Recovery User interfacE. The main goal of this Tasker profile scheme is to act as a replacement for most ROM Manager Premium features.

Why tRUE? How is it better than ROM Manager?

tRUE replicates ROM Manager functionality by writing commands to /cache/recovery/extendedcommand; these commands get executed upon reboot to recovery, just like ROM Manager. But there's lots more that tRUE can do!

Automatically download and install latest CM7 nightly for your device, at a time or context of your choice! GApps flashed automatically for free!

Bulk update-flash install - great to flash kernels, fixes, and more, along with your nightly!

One-touch and scheduled backup - Click a widget and immediately perform a Nandroid backup! Or, let it run automatically every night!

Free with Tasker - Tasker's the greatest $6 app out for Android, and it can replace lots of apps you typically pay for!

TO DO: Flash profiles: Flash any set of zips you want at any time!

TO DO: One-touch Nandroid restore of latest backup!

TO DO: Simple backup management - automatically delete old auto-backups!

I'm always listening for ideas as well, please contribute to the development of this project!

What's in the ZIP

The following Tasker profiles:

tRUE-nightlywget

tRUE-nightlyMD5

tRUE-nightlyinstall

tRUE-nightlycheck

tRUE-boot

The following Tasker tasks:

tRUE-AddNewZip

tRUE-boot

tRUE-cwm

tRUE-flash_nightly

tRUE-flash_user_zip

tRUE-nandroid

tRUE-NandroidWidget

tRUE-nightlycheck

tRUE-nightlyinstall

tRUE-nightlyMD5

tRUE-nightlywget

tRUE-restorenandroid

tRUE-RestoreWidget

tRUE-SETUP

tRUE-s_volts_scheduler

tRUE-UPGRADE

tRUE-wget_gapps

tRUE-wipe_cache

The folder "tRUE", which contains:

folder "download" - contains gapps-gb-20110729-signed.zip, and will contain your downloaded nightlies

folder "scripts" - contains checkupdate.sh, flashzip.sh, install_nightly.sh, nandroid.sh, wipe_cache.sh, get_CWM.sh, s_volts_scheduler.sh

Requirements

Tasker 1.1+, available on the Android Market or Tasker website

Secure Settings Plugin, available on the Android Market

For now, ROM Manager (free or premium) - I only need this for the directories it creates, I'll do it myself later

Coming from tRUE 2.1.1?

See this post; download the scripts folder and replace yours with this. It corrects some issues if you have a CWM that was both detected by ROM Manager and is not CWM2.x or 3.x.

Installation

Make sure you're already running a CM7-based ROM. tRUE does NOT wipe /data and perform the first-time-install instructions for your device; if you try to do so, you might brick!

In Tasker, click Menu->Preferences->Misc and check the box "Allow External Access". This allows Tasker to pass arguments to the shell scripts run by Secure Settings Plugin.

UPGRADING USERS: Delete all old tRUE profiles and tasks. (Sorry about the tedious installation! It'll be more streamlined in the future.)

Download the attached ZIP. Place the tRUE folder in the root your SD Card. (UPGRADING USERS: it will suffice to replace the scripts folder with the one from the zip.) Place *.tsk.xml in /sdcard/Tasker/tasks . Place *.prf.xml in /sdcard/Tasker/profiles.

Open Tasker, hit the Menu Button->Profile Data->"Import One Task". Import the 19 tasks. (WOW THAT'S ALOT! It's what you get with awesome functionality :) )

Repeat previous step, but with profiles. Import the 5 profiles.

Exit Tasker by hitting the check-mark. This will save the profiles and tasks.

NEW USERS: Re-enter Tasker, the click Tasks and select "tRUE-SETUP". Click the play button.

UPGRADING USERS: Re-enter Tasker, then click Tasks and select "tRUE-UPGRADE". Click the play button.

Download the GApps package below and place in /sdcard/tRUE/download. Or, run the task "tRUE-wget_gapps"

Edit the "tRUE-nightlycheck" profile to suit your needs - currently it'll fire every day at 4am, if your device is powered.

Setup will try to automatically detect your device's CM7 codename; if it can't, enter the codename (i.e., cdma_droid2, vibrantmtd, glacier, etc)

Create the tRUE widgets - on your home screen, long-press, then click "Widgets"->Tasker->Tasks->tRUE.

Usage

When a new nightly is available, tRUE will automatically wget the zip and leave it in /sdcard/tRUE/download . You can skip this process if you download the zip yourself and place it in that folder. It then performs an MD5 check; if the check succeeds, it writes commands to /cache/recovery/extendedcommand to perform a Nandroid backup; wipe your cache and dalvik-cache; flash the nightly; flash the GApps package; and flash any zip you provide. See below.

Use tRUE-AddNewZip to add update-flashables to your nightly installation. I install Glitch Kernel and my own Software GPS Fix for my Vibrant. tRUE looks at /sdcard/tRUE/toflash.txt and installs zips in order. You can either use tRUE-AddNewZip or manually edit this file.

Limitations and Bugs

Currently tRUE-nightlywget is kind of slow - I tried to provide download percentage so you don't patiently wait wondering how long the download will take, but this seems to actually slow down wget, and sometimes wget actually quits out. I can't replicate this all the time.. I might have to just remove the download percentage indicator. Sorry!

AFAIK, all variants of CM7 run on ClockworkMod3+; I only provide commands to use CWM3+. If you're running CM7 and are on CWM2 or below, please let me know ASAP so I can include functionality.

It seems that if you abort a script via the Secure Settings plugin notification (it fires when I use a script), no more scripts will fire until after a reboot. I am working with the developer of the plugin to see if it's a true bug or an issue between keyboard and chair.

Right now, tRUE-nightlycheck will run the entire download and install process even if it couldn't detect you were on CM7. If you're not running a CM7-based ROM, YOU MIGHT BRICK UPON TRYING TO USE tRUE. FOLLOW THE CM7 FIRST-INSTALLATION INSTRUCTIONS BEFORE ATTEMPTING TO USE tRUE.

To Do

Only enable vibration when user presses the tRUE-nightlycheck widget - this way the user can sleep soundly without his phone vibrating in the middle of the night :)

Manage deletion of old nightlies - maybe keep 2 or 3, but delete older ones?

Menu-driven interface to more ROM Manager-esque - one widget to access all functions, instead of many

Add "flash profiles" - allows you to quickly go from vanilla CM7 to MIUI to some other CM7-based ROM, while flashing all your extras for you

Add one-touch Nandroid restore widget

on setup, create clockworkmod folders (to store backups) if it doesn't already exist

Add profile to perform automatic Nandroid backups

If I helped improve your CM7 experience, PLEASE hit the Thanks button! Or even better, donate :eek: :eek: :eek: This has been a really fun project for me and I hope my work helps you too!

Changelog

V2.1.2:
- fixed issue where having CWM that was not version 2 or 3 (e.g. 4) was not detected by shell scripts
V2.1.1:
- fixed wget looping error - had to remove attempted wget workaround for failed downloads
- fixed "typo" - forgot an End If statement in tRUE-installnightly
V2.1:
- Menu-driven UI - single widget "tRUE" to do nightly check, backup, recovery, add to profile
- one-touch backup/restore - perform with tRUE widget
- if S_volts_scheduler detected, save it before flashing a nightly and restore upon boot
- notifications after boot if you just flashed, backed up, or restored
- support for CWM 2.x
- bug fix - /cache/recovery/extendedcommand not always written - fixed by mounting /system before writing (via scripts)
- bug fix - adding zip to flash profile didn't use full pathname; now also makes sure that the file the user selected actually exists (wtf?)
V2:
-initial release of tRUE - a complete rewrite of AutoCM7 with
loads more features and robustness!

Downloads

http://cmw.22aaf3.com/gapps/gapps-gb-20110729-signed.zip GApps package (07/29)