yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] johnnydeathmatch:
I can't seem to get Tasker to import the files I downloaded to this post. How exactly do you set up an auto-backup intent for ROM Manager? I was thinking perhaps Launch App and for Data input some sort of command, but I couldn't find anything on launching intents on the Tasker Wiki or Userguide... Sorry if I'm just being a n00b.
[Nexus One Themes and Apps] brandall:
Have you installed both ROM Manager and the Locale Execute Plugin? Place the. Zip file in the Tasker folder on your SDcard and in the main Tasker screen press the menu button, profile data and 'import one profile'. Import the two profiles this way and you should be good to go?

Let me know if you are stuck.
[Nexus One Themes and Apps] brandall:
Is the intent still working for you? Mine stopped running...

The folder/directory deletion works properly now! Typical :rolleyes:

Edit: My bad, updated SuperUser application and hadn't given it permissions...
[Nexus One Themes and Apps] strictlyrude27:
brandall -

I'm excited to try your scheduled-nandroid backups (although ROM Manager Premium allows you to schedule your backups - I might cough up to support the developer). I think nightly backups are a bit too much, though. How would you modify to do every 2 or 3 days, say?

Forgive me if this is obvious from looking at the profiles. I just downloaded the .zip and haven't looked yet.
[Nexus One Themes and Apps] brandall:
I'm actually going to update this later, so try back again in a few hours. I'll add in the number of days context too :)

Agreed on schedule inbuilt in the app, but I like to get Tasker to do everything (assume it uses less resource) and the app doesn't have the file management...
[Nexus One Themes and Apps] strictlyrude27:
brandall, when I run the Action Intent to fire ROM Manager's backup program, should my phone be rebooting and going into recovery to perform backup?? Nothing is happening when I test the task.

EDIT: I rebooted my phone and tried again - it FCs against ROM Manager, then doesn't do anything. Hm.

EDIT2: brandall, are you using ROM Manager Premium? I tried again and captured a logcat and found this:

It looks like ROM Manager is checking for a Premium license, and (rightly) failing to do so - this crashes the program. Could someone with ROM Manager Free please verify this behavior, and someone with Premium also post a logcat of what happens when this is executed?
[Nexus One Themes and Apps] brandall:
Hi Strictly, thanks for investigating. Yes, you require premium for this to work now. I tested both and found that the permission check is an update in their latest release of the free version.

If users want to continue to evaluate/use this on a free basis, then you'll have to revert to a previous version - v4.0.0.6 works - Otherwise it's a premium only service.

I'll update the original thread accordingly. Do you think it's wrong to post the apk of the free version that works? If I put in bold SUPPORT THE ADDS for example? Think the dev would be happy with that?? Opinions please.....
[Nexus One Themes and Apps] strictlyrude27:
I don't think it would be right to post the working, free apk. (I did before, but upon further thinking I don't now.) The profile you built is essentially scheduling a backup operation, which is only naively available (i.e., doable without Tasker) in the Premium version. In fact, Koush bills scheduled backups as one of the major reasons to upgrade from Free to Pro. So I don't think it would be right to circumvent that.

on another note entirely, I wonder how much work it would be for you to document all the posts that you've written profiles and aggregate them into, say, your Tasker tutorial? This thread is dense and I keep finding that your profiles rock the most :) i thought my profiles were clever! and i'd like to volunteer for your Tasker tutorial thread, although I don't know how much time I can afford it.
[Nexus One Themes and Apps] brandall:
I'm not sure either... I think what I'll do is post it and then send Koush a message asking him if he wants me to remove it... I'm sure he'd like as many users as possible to download his free version, to then see the benefits of upgrading to premium...? I think that's probably the best way forward..? Tell me if you think I'm wrong.... :confused:

In regard to profiles I've posted, yes, I do need to make a list of them in a random thread somewhere and stick it in my signature... I'm going to start making YouTube videos, as I think these would be so much easier to understand and follow and also a lot quicker, as it takes ages to 'explain' Tasker in words only!

Great that you want to write a topic - have a think about what you could do and let me know! From the posts I've seen you do, you seem to know a lot about plugins that are compatible with Tasker. Perhaps you could do an ongoing tutorial on those and what benefits they provide and how to use them? I know I'd like to read that!!

I'm sure if you contacted the devs of each plugin and told them what you were going to do they'd supply a free copy. You've hit XDA front page before after all and that gets a fair few hits... :D
[Nexus One Themes and Apps] strictlyrude27:
ohsnap, when the hell did i hit the front page! lulz. that's gratifying.
[Nexus One Themes and Apps] brandall:
June 10th 2011 ;)
[Nexus One Themes and Apps] kantjer:
nandroid backup V3 not working for me

I have been trying out nandroid backup V3, but is doesn't appear to do anything.

I have the Rom Mananer premium version. When I run it manually by using the test function in Tasker it works, but scheduled nothing seem to happen.

Below the Tasker log from last night. Any tips why this isn't working for me.

Thanks,

Bauke
[Nexus One Themes and Apps] brandall:
The log doesn't tell me why it didn't trigger... Do you have a copy of the previous version of ROM Manager in a backup? See if rolling-back a version works. There is a post in the market thread stating there have been a few issues with latest release.
[Nexus One Themes and Apps] kantjer:
Unfortunately I don't have an older version of ROM Manager.

I just installed and reinstalled ROM Manager.

I will give it another go this night.
[Nexus One Themes and Apps] waydownsouth:
@Brandall,

There is another method of firing a backup rather than the ROMmanager intent.

when ClockworkMod boots, it looks to see if /cache/recovery/extendedcommand exists and executes it if found...

all you need to do is create the extendedcommand file with the following contents

ui_print("Tasker Nandroid backup");
backup_rom("/path/to/backup/folder");

then via locale execute: reboot recovery

been using this method for quite a while now.

HTH :)
[Nexus One Themes and Apps] brandall:
Let me know if it works for you. Or alternatively, try the below suggestion, which I'm about to!

Thanks waydownsouth - how did you find this out?!

What does the file extension need to be?? Does it automatically reboot afterwards?

Just to check, does "Tasker Nandroid backup" need to be replaced with something else, or does that execute the backup??

Thanks in advance! :)
[Nexus One Themes and Apps] heywtf:
That's awesome.
[Nexus One Themes and Apps] waydownsouth:
I was curious to know how ROM manager got its commands through to ClockworkMod, did some sleuthing and figured it out...

in /data/data/com.koushikdutta.rommanager/files/extendedcommand

it contains the last thing you used ROM manager to do in ClockworkMod

Its probably clear as day in Koush's github too

no extension, just a text file called extendedcommand, & yep it automatically reboots & will delete the file once done

ui_print just prints the message in the recovery console

eg you could have: ui_print("Brandall's uber awesome auto backupper")

or I guess that you could leave it out altogether to simplify... you will be asleep ;)

It's in Edify script syntax if you want to google it

np
[Nexus One Themes and Apps] brandall:
As it deletes the file afterwards, I assume Tasker writes/moves this file first before it boots into recovery?

ui_print just prints the message in the recovery console

eg you could have: ui_print("Brandall's uber awesome auto backupper")

or I guess that you could leave it out altogether to simplify... you will be asleep ;)

It's in Edify script syntax if you want to google it [/QUOTE]

^ Ha! :) I can't wait to compose my own personalised messages!

Thanks for sharing, I'm setting up now!

EDIT: Can't get it to run... The recovery.log says "line 1: unexpected character at 'u'". So I removed the first command line from extendedcommand but then got unexpected character at 'b' ? It doesn't seem to like the contents of the extendedcommand file...

Any ideas what I'm doing wrong?
[Nexus One Themes and Apps] waydownsouth:
hmm... ok,

What I did:

grabbed the extendedcommand file from the data/data/com.... folder

edited in vi, as I use the same backup path for all my backups... & left it saved in data/local/

Then, all tasker does is copy the file to /cache/recovery/ using locale execute & reboots into recovery

possible things to check:

did you using a *nix compatible text editor to create the file?

could be permissions? the file has 0600 permissionsnope

are you making sure that there is a ";" on the end of each line?

I'll see if I can replicate your problem at my end

EDIT: Only way I could get it to throw an error was without the ";" at the end of each line
[Nexus One Themes and Apps] brandall:
Before you investigate let me try editing with notepad++ on my laptop as I'm using the built in editor of my file explorer on the device - I'll report back! Thanks again.

EDIT: I've got it to work :) but only by leaving the commands the same in data/data file:

print "BLAR BLAR BLAR"
backup_rom /sdcard/clockworkmod/backup/

Obviously no idea why I didn't need any of these -> ui_("; etc... but I won't dwell on it! Thanks again. Will update the previous 'howto' and credit you of course :eek:

EDIT2: Only issue I'm left with now is writing to the file before I move as I want to keep more than one backup:

backup_rom /sdcard/clockworkmod/backup/Scheduled_Backup_%DATE_%TIME

Will have to work out how to append it on the end, but keep the original.... DOH! :eek:
[Nexus One Themes and Apps] waydownsouth:
Just to clarify, for anyone else following...

it depends on the version of ClockworkMod you have on your device

using the syntax I posted works for 3.0 +

if its the older 2.5 then brandall's version will work

HTH
[Nexus One Themes and Apps] strictlyrude27:
Variable Join? Put all strings in separate variables, then use a null delimiter. Of course, I have no idea if a null delimiter is allowed in Tasker. You can be our guinea pig :)
[Nexus One Themes and Apps] kantjer:
It didn't work. I tried setting a Tasker schedule for 5AM and a Rom Manager schedule at 6AM.

Neither of them did anything.

At 8:10 I set a Rom Manager schedule for 8:15 and locked the phone. This time the backup ran.

I will watch this treat and try out the alternative mode.

Bauke
[Nexus One Themes and Apps] brandall:
Version 4 is up now in the original post. Test it out and let me know if it works correctly for you please! :eek:
[Nexus One Themes and Apps] strictlyrude27:
excellent. testing now.
[Nexus One Themes and Apps] brandall:
Hey heywtf, need to call on your intent discovering services please!!

It's really doing my head in.... I cannot get the minimalistic text force weather update intent to work in Tasker, but Launcher Pro does it every time...

Posts are here and here

Would be great if you could have a look at it for me... :(

EDIT: SOLVED! Dev of Tasker came up with the answer in the linked thread above...
[Nexus One Themes and Apps] strictlyrude27:
the first time I tried the profiles, it rebooted me to recovery but didn't do anything. All my Tasker profiles disappeared. Thank god for titanium backup..

Second time worked fine.

Dunno why my profiles got erased, might be worth backing them up before running the backup for the first time.
[Nexus One Themes and Apps] kantjer:
I tried it, nothing happend, no reboot, no backup :confused:

Bauke

EDIT: After running the script I noticed that "/data/data/com.koushikdutta.rommanager/files/extendedcommand" doesn't exist.

This this the contend of the .setting file:

Hope this helps nailing it.

Bauke
[Nexus One Themes and Apps] brandall:
Not good on the profiles!!! I'll add a suggestion to backup into the post.. :eek: Glad yours were....

hmmm.... In action #14 it writes the extendedcommand file to /cache/recovery rather than to /data/data/com.koushikdutta.rommanager/files/extendedcommand

I'd imagine it's not working due to actions not being given SU permission prior to the final reboot action.

Can you insert a STOP (tasker/stop) action into #16 above the execute reboot command so it doesn't run. Press 'test' (a few times) to see if more SU permission requests appear.

If not (or afterwards), please can you check that the file has been correctly written to /cache/recovery - running the full task again with the STOP action removed should hopefully then work correctly! :confused:

If the above is the case, I may need to add a few more instruction lines into the thread to inform this will happen...
[Nexus One Themes and Apps] kantjer:
Good news after pressing the test button a few times I finally got 2 SU permission requests.

After the first the extendedcommand was written and after the second a reboot and the backup started.

I have now set a daily backup at 6AM. so lets hope it will fire so I finally can start using/testing the Nandroid-Files part of the script.

I also installed your CPU control and Data & Sync control yesterday, the are working great.

Thanks again for al your hard work.

Bauke
[Nexus One Themes and Apps] heywtf:
I had a stab at this last night and couldn't figure it out, but decided to hold off posting here just in case you found the solution first and it turned out to be really obvious.

This will be useful to know though in future if intents aren't working properly.
[Nexus One Themes and Apps] brandall:
Glad they are all working out for you!

Hope you didn't spend too long on it.... I did!! :mad:

'Component Intent':

Class: de.devmil.minimaltext.weather.WeatherForceUpdateAc tivity
Package: de.devmil.minimaltext
Category: none
Target: Activity

I never understood what to put in the class and package fields before, so this will give me some clues for intents of other apps I could use...
[Nexus One Themes and Apps] rickytenzer:
Anyone know if there's a way to have Tasker set the screen calibration settings built into CM7 on boot?
[Nexus One Themes and Apps] brandall:
If you can locate the file that the changes are applied to, then we can simply get Tasker to overwrite it... I assume they will stick.
[Nexus One Themes and Apps] tommo123:
i tried it this way already and found that my battery life had taken a hit

there's also the fact that this way means that apps that you don't want to allow to access gps data can do so - anything can in fact.
[Nexus One Themes and Apps] brandall:
No application should be able to use GPS without you allowing it. Maps/navigation/running companions/location based searches you obviously want it to automatically trigger - If you track down the application that is using GPS in the background (which it shouldn't be able to), just disable the option within the application...

If you get rid of the rouge app that is using it, it honestly will use zero resource... It's not active! Google updated it to manage itself this way...
[Nexus One Themes and Apps] tommo123:
i didnt' see the icon flash away like you normally do when using gps but i had worse battery life by about 10% or so. android has a bad habit of allowing apps to start by themselves so wonder if something (google maps even runs without me starting it) like this is causing it.

when checking batt stats, the phone slept less and has a line against gps all the way across (i might be wrong but wouldn't this indicate that it's active all the time?)

in the end, there's the need to feel in control of our phones. so i'll end up turning gps on and off manually till CM comes out with a rom i guess :(
[Nexus One Themes and Apps] brandall:
Oh... Well if it shows up on your monitor, can't really disagree with that - All I can say is that it doesn't on mine and I've referred many users to that post who all report back that it used no resource. Of course having full control over it like the good old days would be better, but when it works like it's supposed to, it does a good job... Perhaps if you give it another try you could catch the culprit? - maps shouldn't start GPS unless they are in the foreground - Latitude is another issue though...

Hope you track it down or CM release a patch as they have before...
[Nexus One Themes and Apps] tommo123:
ta :)

i have an sgs2 and afaik no rom does it yet but hopefully the CM team come through soonish.

i just hope this isn't a sign of the google attitude to come. locking android down as much as the iphone.
[Nexus One Themes and Apps] brandall:
I'm not sure what I'd do with my life! :eek:

Let's hope not.....
[Nexus One Themes and Apps] luculuc:
Stop the GPS when it cannot get a fix with tasker

Hey there!

I am using a great app called Latify to sync my Latitude account even without data connection. IT basically records the GPS location points where I go and then sync to Latitude once I have a connection. The dev recently made an update and we can now use tasker to trigger the frequency and the way to determine the location. Very handy. But and that s my question, is there a way with tasker to tell the gps not to work when it cannot get a fix? For example I m going out with my car so my LAtify profiles triggers to GPS polling. But if I go to a shop (so with a roof) the GPS cannot get a fix. Is there a way that Tasker after 3 or 5 attempts stops the gps for a while and then resume it after let s say 30 minutes? Thanks!
[Nexus One Themes and Apps] trollsperm:
I just bought Tasker a couple of days ago, and I must say I'm really amazed by all the possibilities.

So far I mostly use it to deliver variables and information to some Minimalistic Text-widgets - counting of unread messages/calls/emails, WLAN name/ip/signal (by splitting %WIFII), etc.. I also have some that displays the name of whoever sent the last recieved message, and the same for call and email.

If "Megan Fox" (:P) sends me a message, it will say "MEGAN FOX HAS SENT A MESSAGE" - and after I've read it will say "Megan Fox sent a message". For the corresponding concept for email, I use the variable %EFROM. I got an email from eBay today, and %EFROM for that email was:

eBay <ebay@ebay.com>

I guess that if I recieve emails from "Megan Fox" or "Jack the Ripper, the second", they will have %EFROM's like this:

Megan Fox <megan@meganfox.com>

Jack the Ripper, the second <jack.the.ripper.the.second@gmail.com>

What I obviously want is to remove the email address in the <>'s, but I feel that splitting may be difficult. For eBay I want %EFROM1, for Megan I want %EFROM1 and %EFROM2, for Jack the Ripper I want the 5 first, and so on.. Any ideas on how to only get the name, no matter if it is 1 word or 10 words?

(Please note that I actually don't have Nexus One, but this was apparently the most popular Tasker-thread I could find)
[Nexus One Themes and Apps] strictlyrude27:
Could you do a Variable Split, using "<" as the delimiter? %EFROM1 will be everything before the "<", and %EFROM2 would be everything after (which you could then throw away). So it'll work regardless of how long the person's name is, so long as a "<" doesn't occur in the name (in which case it will truncate, and %EFROM2 will contain everything up to the next "<").
[Nexus One Themes and Apps] heywtf:
I'm on 4.0.0.2 and the old way still works.

Actually I downgraded from 4.0.0.5 a while ago, can't remember why, but it might have been this.

What exactly do we need to change for the latest versions?
[Nexus One Themes and Apps] brandall:
Is that all you have in the file?

If it doesn't fail, I'm pretty sure it should delete it afterwards...

Super! - If that's the case, then:

#5 GoTo action #12 IF %CLOCKVD2 is not set

That should do it if the syntax is the same.

This should work for you:

getprop | grep ro.build.version.release | awk '{ print $2 }'

getprop | grep ro.product.model | awk '{ print $2,$3 }'

uname -r

Let me know all above works!? :eek:
[Nexus One Themes and Apps] strictlyrude27:
Yeah, it's all that I have. Like I said, it's likely due to the fact that the CWM I have isn't officially supported by ROM Manger yet..

:confused: you skip writing extendedcommand entirely here. My workaround: Variable Set %CLOCKMV to %CLOCKVD21 IF %CLOCKVD21 is set; Variable Set %CLOCKMV to 4 IF %CLOCKMV ! Set. This satisfies the Write File IF statements. As you people across the pond would say, "this works a treat". :D

results of all:

# getprop | grep ro.build.version.release | awk '{ print $2 }'
[color="red"][2.3.4][/color]
# getprop | grep ro.product.model | awk '{ print $2,$3 }'
[color="red"][SGS-T959][/color]

uname -r gives my kernel, which is nice. I'm hoping for the name of the ROM - on my Vibrant, the line is

[ro.modversion]: [CyanogenMod-TriggerRedux_build_13]

But I think ro.modversion is a CM thing and may not be applicable to other ROMs.

[/code]
[Nexus One Themes and Apps] brandall:
Inserting an action #5 would make the syntax shift down to #12 ;)

[ro.modversion]: [CyanogenMod-TriggerRedux_build_13]

It should be generic in buildprop - meant to give you this one

getprop | grep ro.modversion | awk '{ print $2 }'

That should be the baby!
[Nexus One Themes and Apps] strictlyrude27:
Could anyone please post the contents of their /sdcard/clockworkmod/.settings file please? I'm writing a script to replicate the Tasker Nandroid profiles, and want to release it universally.

EDIT: nvm, got it