• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[Profile] [Root] Auto Nandroid backup Manager

sim card lock pin it comes up as soon as the phone boots. It is different to the pin/pattern lock of the lock screen. Actually it presents itself after the phone boots and comes to the lock screen and u unlock and it asks u for the pin to continue.
 
hey SU does this profile work for you in 4.2.1? It's not working for me. I tried manually running the profile and it does nothing(i get a message that tasker/secure settings has been granted SU status) but nothing else happens no reboot. i then had a look at the file structure i ended up cloning the profile and created a second one with the path as sh/mnt/shell/emulated/0/clockworkmod/nandroid.sh assuming it was unable to read the sh file but it still didnt work.
 
hey SU does this profile work for you in 4.2.1? It's not working for me. I tried manually running the profile and it does nothing(i get a message that tasker/secure settings has been granted SU status) but nothing else happens no reboot. i then had a look at the file structure i ended up cloning the profile and created a second one with the path as sh/mnt/shell/emulated/0/clockworkmod/nandroid.sh assuming it was unable to read the sh file but it still didnt work.

It will need updating
 
ohh ok cool so what exactly would need to be updated? I tried manually creating a backup to internal memory from philz touch but after it completed i could not see it in the file manager. Im guessing if i were to change the path to external sd it would solve the issue and it would work?
 
ohh ok cool so what exactly would need to be updated? I tried manually creating a backup to internal memory from philz touch but after it completed i could not see it in the file manager. Im guessing if i were to change the path to external sd it would solve the issue and it would work?

I've just tested this. I know it works on the S3 4.2.1.... I'm not sure about other devices....

But it should be:

[HIGH]# Set today's date
now=$(date +"%d_%m_%y-%H%M")

# Deletes previous archive (as contained within index1.txt)
rm -rf $(cat /sdcard/clockworkmod/backup/index1.txt)

# Moves previous backup to archive (index2 becomes index1 for delete next time)
mv /sdcard/clockworkmod/backup/index2.txt /sdcard/clockworkmod/backup/index1.txt

# Stamps new index 2
echo '/sdcard/clockworkmod/backup/'$now > /sdcard/clockworkmod/backup/index2.txt

# writes a command for recovery to read (creates index2 backup)
echo 'backup_rom("/sdcard/0/clockworkmod/backup/'$now'");' > /cache/recovery/extendedcommand[/HIGH]

But yes, instead of above, you could set external_sd where sdcard/0 is.
 
ok so i updated the nandroid.sh file(with the code given above) and when i click on play it still does nothing i just get a message that tasker has been granted SU permissions.
 
i made the changes as said above but still nothing it does not restart the phone it just gives me the same message(tasker has been granted SU permissions). Also can i ask how did u manage to get that path for the clockworkmod folder?

I tried deleting my entire profile from tasker and re adding it again but still does not work.

you can get to the clockworkmod folder through so many different paths

/storage/emulated/legacy/clockworkmod/nandroid.sh

/storage/emulated/0/clockworkmod/nandroid.sh

/sdcard/clockworkmod/nandroid.sh

/mnt/sdcard/clockworkmod/nandroid.sh

how do we know for sure which path to use? Technically i know any one of them should work as they are all pointing to the same location. Sorry if its a dumb question but im not a linux guy.
 
how do we know for sure which path to use?

Because I tested them!

Reboot is not even part of the script! Not rebooting is no indication of whether the script works or not.

Run the task then check if extended commands is in cache or if contents of index has changed. They are only ways to tell if script is running.

Not rebooting is separate issue.

The paths I said should work. At least they do for me on omega
 
Are you running the task from tasker itself or from a shortcut on the home screen?

Obviously something is wrong somewhere from your config but being remote I cannot see it.

Its either the link to the script, the locations in the script or tasker itself.
 
im running it from tasker itself open the nandroid task and click play. So any suggestions? I tried deleting the entire profile and re creating it and it didnt seem to help. If i were to create it on the external memory(with the old script) it would work right?
 
Can you export your profile and zip it up with your version of the script please? So I can look at it and test it on my phone?
 
sure no problem. The profile is the exact same one posted on this page i re downloaded it recently and used it. The script i copied from what you pasted above. The file is attached. Thanks for all the help and sorry for all the problems and questions.
 

Attachments

Your profile runs my script ok but I've already changed mine to work on external sd card.

It (the script) still lives on internal sd card (so don't change profile) and try this external sd script....

Code:
# Set today's date
now=$(date +"%d_%m_%y-%H%M")

# Deletes previous archive (as contained within index1)
rm -rf $(cat /extSdCard/clockworkmod/backup/index1.txt)

# Moves previous backup to archive (index2 becomes index1 for delete next time)
mv /mnt/extSdCard/clockworkmod/backup/index2.txt /mnt/extSdCard/clockworkmod/backup/index1.txt

# Stamps new index 2
echo '/mnt/extSdCard/clockworkmod/backup/'$now > /mnt/extSdCard/clockworkmod/backup/index2.txt

# writes a command for philz to read (creates index2 backup)
echo 'backup_rom("/external_sd/clockworkmod/backup/'$now'");' > /cache/recovery/extendedcommand

This is working for me at the mo....
 
Back
Top Bottom