Jump to content

Recommended Posts

Posted

By using the BackupAndRestore pacakage, cookers can include backup features in their own cfw through highly customizable scripts.

It is also very easy to use from the user point view, indeed 3 new icons will be shown in the menu':

-1) Backup (will perform the backup of all the data which has been choosed by the cooker)

-2) Restore (will restore all the data previously saved)

-3) MiniCmd (this is optional and could be useful to execute some other maintenance task eg: killing some processes, automatically at startup, or manually by the user)

This BackupAndRestore package is totally based on MiniCmd.exe by Just Fancy... I only did some modding stuff to include 3 different icons (and related scripts).

While the original idea to use MiniCmd to include some backup and restore features in the cfw is from XCape.

Download

The integration in the CFW is straigh-forward, you should only place the "For Cookers" contents in your ROFS.

And then, create the 3 scripts (can be placed in c: d: e: z: ) to choose the data you want to backup/restore

\Data\BackCMD.txt (will be executed when user presses the Backup icon)

\Data\RestCMD.txt (will be executed when user presses the Restore icon)

\Data\MiniCMD.txt (will be executed when user presses the MiniCmd icon)

Scripts Commands:

This is a brief list of all the availble commands which can be used in the scripts, I suggest you to take a look at some script example to know the exact syntax for each command.

- att

- mv

- cp / copy

- md / mkdir

- rm / rmdir

- rn / rename

- delete

- run

- kill

- sleep

- cmd

- key

- sendkey

- file

- note

- disable

- abort

- if

- ifn

- elseif

- elseifn

- else

- endif

- abort_if_not_exists

- abort_if_exists

- skip_if_exists

- skip_if_not_exists

- back_if_exists

- back_if_not_exists

- restart_if_exists

- restart_if_not_exists

Some Ready-Made Scripts Examples:

\Data\BackCMD.txt (saves apn, manulayout, notes, t9 database)

# saves apn, manulayout, notes, t9 database
mkdir e:\bkupfolder\
mkdir e:\bkupfolder\Apn\
mkdir e:\bkupfolder\MenuLayout\
mkdir e:\bkupfolder\Note\
mkdir e:\bkupfolder\DatabaseT9\
copy -o c:\private\10202be9\persists\cccccc00.cre e:\bkupfolder\Apn\
copy -o c:\private\200113dd\content\matrixmenudata.xml e:\bkupfolder\MenuLayout\
copy -o c:\Private\100012A5\DBS_101f8878_Notepad.dat e:\bkupfolder\Note\
copy -o c:\Predic\*.* e:\bkupfolder\DatabaseT9\
note "Saved!"

\Data\RestCMD.txt (restores apn, manulayout, notes, t9 database)

# restores apn, manulayout, notes, t9 database
copy -o e:\bkupfolder\Apn\*.* c:\Private\10202be9\persists\
copy -o e:\bkupfolder\MenuLayout\*.* c:\Private\200113dd\content\
copy -o e:\bkupfolder\Note\DBS_101f8878_Notepad.dat c:\Private\100012A5\
copy -o e:\bkupfolder\DatabaseT9\*.* c:\Predic\
note "Restored!"

\Data\MiniCMD.txt

#===Clean===????????????????<-Just a comment
delete C:\System\System.ini?????????<-delete C:\System\System.ini
delete C:\private\102072c4\reserved?????<-delete C:\System\reserved
delete C:\private\102072c4\reserved.bin???<-delete C:\System\reserved.bin
#===run SPB===???????????????<-Just a comment
run 0x20028B16??????????????? <- start a program with uid 0x20028B16
#===kill home screen===?????????? <- Just a comment
kill 0x102750F0??????????????? <- Kill/Quit a program with uid 0x102750F0
#===Kill Menu===?????????????? <- Just a comment
kill 0x101f4cd2??????????????? <- Kill/Quit a program with uid 0x101f4cd2
#===Kill SPBDeamon?????????????<- Just a comment
kill 0x20028b1C????????????????<- Kill/Quit a program with uid 0x20028b1C

Some Quick Hint:

You could set the MiniCmd.exe to be launched as autostart (modding a startup*.rsc file) ;)

To hide the MiniCmd.exe icon from the main menu, just don't put the MiniCMD_reg.rsc in the ROFS.

Download for Original Fw: (the hack is required)

A stand-alone version is available too, so it can be used also in the Original Firmware...

Download

It doesn't include any script... You must manually place the 3 scripts (BackCMD.txt / RestCMD.txt / MiniCMD.txt) in the \Data\ folder.

3993_.zip

3994_.sis

Posted

Thanks to Socio  to bring out the details and usage. My post  (Aug 2011) in  http: //forum. smartphonegeeks.in/index.php?topic=2066.msg39996#msg39996  was about the same but could not get help from any one. The author is Justfancy  from BBSDOSPY , China  . This is used by Chineese CFW makers regularly. Further details http://code.google.com/p/minicmd/downloads/list http://bbs.dospy.com/thread-11767315-1-341-1.html  ( just fancy page  in chinese ) Some englisg translation is below Program Description If you've used LittleCmd, I believe look at the name on a rough idea about the. Yes, as with LittleCmd, first edit the specified command set, and then execute the program, the program operating under the command set accordingly. Such as copy, move files and other operations. Although a similar function with LittleCmd, but there is a difference. Let us look at each command description. (Due to changes in each version of the command are listed below all have the latest version, if not, please update to the latest version) abort function: suspension MiniCMD continue to abort command statement (valid only for the current command set file) form: abort att functions: set the file attributes or file the form: att [parameter list] [destination path] list of available parameters: + S system attributes plus additional hidden attributes + h + r plus read-only attribute (corresponding to + to - that means to In addition to the corresponding attributes) / S, including subdirectories Example: remove c: \ data and all the files read-only attribute att-r / sc: \ data \ * cmd : Dynamic load the specified file in the command set in the form: cmd [file path] For example if XXX cmd ddd.txt endif At this point, set up only if executed when cmd, rather than the previous versions have not established whether as prior to execution Load Example: Loading e: \ other \ my.txt in the command cmd e: \ other \ my.txt In addition, another file can not load the original! ! ! For example, in C: \ A.txt in cmd C: \ B.txt, can not write in the B's cmd C: \ A.txt! ! ! cp or copy features: Copy the file or folder form: cp [parameter list] [source path] [destination path] list of available parameters: / S, including subdirectories, copy the directory included subdirectories, so only when copying files / o or-o to overwrite the existing file, this parameter is not overwritten without support while setting a new file attributes, parameters are the same att Example: Copy z: \ data under the *. aac aac to e drive under the folder, and remove read-only attribute cp / s-rz: \ data \ *. aac e: \ aac \ delete function: delete a file Example: delete e: \ test \ *. txt log Function: output line log form: log [to output the contents] mv function: move the file or folder form parameter with cp Example: e: \ music files \ under the lyrics (*. lrc) to move to e: \ LYRICS mv / S "e: \ Music Files \ *. lrc" e : \ lyrics \ md or mkdir function: create a directory in the form: md [directory] Example: In the e drive to create test \ subfolder directory md e: \ test \ subfolder rm or rmdir function: delete a file or folder form: rm [parameter list] [destination path] list of available parameters: / S, including subdirectories, should only be used to delete a file Example: delete c: \ other sis installation package of all rm / sc: \ other \ *. sis? rn or rename features: Rename the file or folder form: rn [source path] [destination path] Example: Rename e: \ lyrics lyrics of the file under the suffix (*. lrc) for the. txt Rn e: \ LYRICS \ *. lrc e: \ lyrics \ *. txt run function: calling application form: run [uID or program name] list of available parameters: -c, in theory, apply only to run the daemon process may take the path name Example: Running UC run UcWeb60Signed.ex kill function: the end of the process in the form: kill [uID or process name] which UID must be 0x (0X) at the beginning of the hex example: the end of MIFEditor kill MIFEditor.exe sleep function: pause the program in the form: sleep [milliseconds] Example: Pause three seconds sleep 3000 Analog button key [-c (optional)] [key sequence] [button time (optional)] SendKeys [-c (optional)] [key sequence] [uID or program title] Key in the current interface for the simulation of the key , sendkey to send to the procedures specified UID or title case: call 10 086 Key-c 197; 197 for the red hang up key, where to exit to the desktop Key 10 086 Key-c 196; 196 key code for the green note features: pop-up message box note [-c (optional)] [information] [Title] add-c show that the message need to press the OK button, then the title option is valid file functions: to create a blank file or Open the file called system associated file [-c (optional)] file path With the-c parameter when creating a blank file (but do not overwrite the saved file), without the open Find Find [parameters] [path | file] [Operation] function: to find the corresponding file and operating the current operation and the only support rm log, only parameter / s one, plus the time that while the search directory [path | file] format: There can be multiple paths separated by semicolons in English (;) between the path with the file with | delimited like to find the C drive and E drive under the txt file and delete find / s C: \; E: \ | *. txt rm Note, the path must be \ (as above C: \ ), the path with | Less operation can only be lowercase form of the current operation is not supported rm delete directory (assuming you find a directory) support the use of wildcard, specifically to see individual play. . . Jump command abort_if_exists, abort_if_not_exists when the specified file exists (does not exist) when a file loaded interrupt the current command following example: abort_if_exists c: \ Data \ test.bin skip_if_exists, skip_if_not_exists specified file (not) exist to skip The next command back_if_exists, back_if_not_exists specified file (not) exist on the command returns  restart_if_exists, restart_if_not_exists specified file (not) exist to re-execute all the commands (ie, start from scratch) (be careful with the above two commands (highlighted in green a), may cause an infinite loop leading to MiniCMD collapse does not work) (and limit orders can not be two sets of the first, or simply ignored) Increase-a parameter, refer to IF-ELSE IF-ELSE statement is supported if, ifn, elseif, elseifn, else, endif which followed n (not) the representation of non- current version of the function is only to determine the file (folder) exists in the form for IF XXX ENDIF IF XXX ELSE ENDIF IF XXX ELSEIF YYY ELSEIF ZZZ . . NNN ELSEIF ELSE ENDIF is to say, else, elseif (n) is optional, elseif (n) may have more than one, else where in each only one if-else, and endif must have if can not be left blank between-else (do not write any command is non-empty lines and the like) Example If d: \ test.txt  md d: \ newdir ElseIfn d: \ folder \  md d: \ folder \  cp / S - RZ: \ Data \ *. AAC e: \ AAC \ Else  att + R / SE: \ Test \ *. lrc EndIf available parameters: -a, specify the procedure for judging whether the running -e, the last command operation return value, When the last command for the note, if you use the-c parameter, then point to determine the return is 0, the abolition of returns -1 -S, to determine the file size is equal to two examples of if-a x-plore or if-a 0xa0000bcd / / RM d: \ Test \ if-e note the failure to delete else note deleted successfully endif Note: The command with the parameter is not case-sensitive, and if the path contains spaces, use double quotes (such as the mv command in the example) In addition, Symbian system API to determine a standard for the folder back there \ , the proposed path of the folder containing the file one more in the back \ Use the program a bunch of nonsense not say how to use. . . Amount first set of editing commands, save for the MiniCMD . txt , code can only be UCS-2 Little Endian (X-Plore in the Save as Unicode wants to) will MiniCMD . txt into any one of the root directory of the Data directory search order is: C ? D ? E ? Z (because the order does not meet everyone's requirements, you can change it by 16 hex, or PM me alone generates the appropriate version for you) which MiniCMD . txt content can have comment line with a # or a semicolon (both half-width English characters) MiniCMD the next step is to run if you want to temporarily disable MiniCMD, please create a new file called MiniCMD.disable into any one under the root directory The final talk nonsense has more than enough. . . Source projects in: http://CODE. GOOGLE.COM / P / minicmd / Although I have made ??several tests, if you find problems, please contact me, thank you! MiniCMD_v2_0_3_3rd_fp2.zip (28.57 KB) extract exe version MiniCMD_v2_0_3_3rd_fp2.sisx (31.64 KB) sis install version MiniCMD_v2_0_3_3rd_mr.sisx (43.29 KB) MR models generated due icon not the same as with the later models, so download the MR machine SIS , exe version are the same note: SIS installation package is only the icon only, not the UI, just to save the old with the X-Plore to sys \ bin clicks only

Posted

Thanks to Socio  to bring out the details and usage.

My post  (Aug 2011) in  http: //forum. smartphonegeeks.in/index.php?topic=2066.msg39996#msg39996  was about the same but could not get help from any one.

The author is Justfancy  from BBSDOSPY , China  . This is used by Chineese CFW makers regularly.

Further details

http://code.google.com/p/minicmd/downloads/list

http://bbs.dospy.com/thread-11767315-1-341-1.html  ( just fancy page  in chinese )

Some englisg translation is below

Program Description

If you've used LittleCmd, I believe look at the name on a rough idea about the. Yes, as with LittleCmd, first edit the specified command set, and then execute the program,

the program operating under the command set accordingly. Such as copy, move files and other operations.

Although a similar function with LittleCmd, but there is a difference. Let us look at each command description. (Due to changes in each version of the command are listed below all have the latest version, if not, please update to the latest version)

abort

function: suspension MiniCMD continue to abort command statement (valid only for the current command set file)

form: abort

att

functions: set the file attributes or file

the form: att [parameter list] [destination path] list of available parameters: + S system attributes plus additional hidden attributes + h + r plus read-only attribute (corresponding to + to - that means to In addition to the corresponding attributes) / S, including subdirectories Example: remove c: \ data and all the files read-only attribute att-r / sc: \ data \ *

cmd

: Dynamic load the specified file in the command set

in the form: cmd [file path]

For example if XXX cmd ddd.txt endif At this point, set up only if executed when cmd, rather than the previous versions have not established whether as prior to execution Load Example: Loading e: \ other \ my.txt in the command cmd e: \ other \ my.txt In addition, another file can not load the original! ! ! For example, in C: \ A.txt in cmd C: \ B.txt, can not write in the B's cmd C: \ A.txt! ! !

cp or copy

features: Copy the file or folder

form: cp [parameter list] [source path] [destination path] list of available parameters: / S, including subdirectories, copy the directory included subdirectories, so only when copying files / o or-o to overwrite the existing file, this parameter is not overwritten without support while setting a new file attributes, parameters are the same att Example: Copy z: \ data under the *. aac aac to e drive under the folder, and remove read-only attribute cp / s-rz: \ data \ *. aac e: \ aac \

delete

function: delete a file Example: delete e: \ test \ *. txt

log

Function: output line log

form: log [to output the contents]

mv

function: move the file or folder

form parameter with cp Example: e: \ music files \ under the lyrics (*. lrc) to move to e: \ LYRICS mv / S "e: \ Music Files \ *. lrc" e : \ lyrics \

md or mkdir

function: create a directory

in the form: md [directory] Example: In the e drive to create test \ subfolder directory md e: \ test \ subfolder

rm or rmdir

function: delete a file or folder

form: rm [parameter list] [destination path] list of available parameters: / S, including subdirectories, should only be used to delete a file Example: delete c: \ other sis installation package of all rm / sc: \ other \ *. sis?

rn or rename

features: Rename the file or folder

form: rn [source path] [destination path] Example: Rename e: \ lyrics lyrics of the file under the suffix (*. lrc) for the. txt Rn e: \ LYRICS \ *. lrc e: \ lyrics \ *. txt

run

function: calling application

form: run [uID or program name]

list of available parameters:

-c, in theory, apply only to run the daemon process may take the path name Example: Running UC run UcWeb60Signed.ex

kill

function: the end of the process

in the form: kill [uID or process name] which UID must be 0x (0X) at the beginning of the hex example: the end of MIFEditor kill MIFEditor.exe

sleep

function: pause the program

in the form: sleep [milliseconds]

Example: Pause three seconds

sleep 3000

Analog button key [-c (optional)] [key sequence] [button time (optional)] SendKeys [-c (optional)] [key sequence] [uID or program title] Key in the current interface for the simulation of the key , sendkey to send to the procedures specified UID or title case: call 10 086 Key-c 197; 197 for the red hang up key, where to exit to the desktop Key 10 086 Key-c 196; 196 key code for the green

note features: pop-up message box note [-c (optional)] [information] [Title] add-c show that the message need to press the OK button, then the title option is valid

file

functions: to create a blank file or Open the file called system associated file [-c (optional)] file path

With the-c parameter when creating a blank file (but do not overwrite the saved file), without the open

Find

Find [parameters] [path | file] [Operation]

function: to find the corresponding file and operating the current operation and the only support rm log, only parameter / s one, plus the time that while the search directory [path | file] format: There can be multiple paths separated by semicolons in English (;) between the path with the file with | delimited like to find the C drive and E drive under the txt file and delete find / s C: \; E: \ | *. txt rm Note, the path must be \ (as above C: \ ), the path with | Less operation can only be lowercase form of the current operation is not supported rm delete directory (assuming you find a directory) support the use of wildcard, specifically to see individual play. . .

Jump command abort_if_exists, abort_if_not_exists when the specified file exists (does not exist) when a file loaded interrupt the current command following example: abort_if_exists c: \ Data \ test.bin skip_if_exists, skip_if_not_exists specified file (not) exist to skip The next command back_if_exists, back_if_not_exists specified file (not) exist on the command returns  restart_if_exists, restart_if_not_exists specified file (not) exist to re-execute all the commands (ie, start from scratch) (be careful with the above two commands (highlighted in green a), may cause an infinite loop leading to MiniCMD collapse does not work) (and limit orders can not be two sets of the first, or simply ignored)

Increase-a parameter, refer to IF-ELSE

IF-ELSE statement is

supported if, ifn, elseif, elseifn, else, endif

which followed n (not) the representation of non-

current version of the function is only to determine the file (folder) exists

in the form for IF XXX ENDIF IF XXX ELSE ENDIF IF XXX ELSEIF YYY ELSEIF ZZZ . . NNN ELSEIF ELSE ENDIF is to say, else, elseif (n) is optional, elseif (n) may have more than one, else where in each only one if-else, and endif must have if can not be left blank between-else (do not write any command is non-empty lines and the like) Example If d: \ test.txt  md d: \ newdir ElseIfn d: \ folder \  md d: \ folder \  cp / S - RZ: \ Data \ *. AAC e: \ AAC \ Else  att + R / SE: \ Test \ *. lrc EndIf available parameters: -a, specify the procedure for judging whether the running -e, the last command operation return value, When the last command for the note, if you use the-c parameter, then point to determine the return is 0, the abolition of returns -1 -S, to determine the file size is equal to two examples of if-a x-plore or if-a 0xa0000bcd / / RM d: \ Test \ if-e note the failure to delete else note deleted successfully endif

Note: The command with the parameter is not case-sensitive, and if the path contains spaces, use double quotes (such as the mv command in the example)

In addition, Symbian system API to determine a standard for the folder back there \ , the proposed path of the folder containing the file one more in the back \

Use the program a bunch of nonsense not say how to use. . . Amount first set of editing commands, save for the MiniCMD . txt , code can only be UCS-2 Little Endian (X-Plore in the Save as Unicode wants to) will MiniCMD . txt into any one of the root directory of the Data directory search order is: C ? D ? E ? Z (because the order does not meet everyone's requirements, you can change it by 16 hex, or PM me alone generates the appropriate version for you) which MiniCMD . txt content can have comment line with a # or a semicolon (both half-width English characters) MiniCMD the next step is to run if you want to temporarily disable MiniCMD, please create a new file called MiniCMD.disable into any one under the root directory

The final talk nonsense has more than enough. . . Source projects in: http://CODE. GOOGLE.COM / P / minicmd / Although I have made ??several tests, if you find problems, please contact me, thank you!

MiniCMD_v2_0_3_3rd_fp2.zip (28.57 KB) extract exe version MiniCMD_v2_0_3_3rd_fp2.sisx (31.64 KB) sis install version MiniCMD_v2_0_3_3rd_mr.sisx (43.29 KB) MR models generated due icon not the same as with the later models, so download the MR machine SIS , exe version are the same note: SIS installation package is only the icon only, not the UI, just to save the old with the X-Plore to sys \ bin clicks only

Great findings vizi :)

Socio did a wonderful job packing it perfectly and making it handy to use !!!

Posted

Some more information My question to Socio in DM I have found the below attached files in a Chineese RM-356 CFW ROFS2 . 1.DdiskCmd.exe , 2.LittleCmdD.exe are in sys/bin. Can you help us about the usage of these files. I have attached the below 1.DdiskCmd.exe 2.LittleCmdD.exe 3.Littlcmd.txt , startcmd.txt 4.Scriptinit.txt Reply from Socio in DM It uses MiniCmd.exe for backup and Scriptinit for restore littlecmd.txt seems to be for hacking stuff startcmd.txt contains the backup script scriptinit.txt contains the restore script If you want to use those script with the BackupAndRestore package, you should: - rename littlecmd.txt in \data\MiniCMD.txt - rename startcmd.txt in \data\BackCMD.txt - rename scriptinit.txt in \data\RestCMD.txt (for this script you have also to make some syntax conversion because scriptinit and minicmd commands are slightly different) The file is attached

3881_.rar

  • 3 weeks later...
Posted

added support for the domainsrv... ;)

Download the DomainSrv Addon:

http://www.mediafire.com/?65y4povllw8524i

Some files can be copied / restore only during the phone startup, using the DomainSrv.exe (eg. the contacts database)

In order to do these operations, cookers can integrate this additional package (it includes domainsrv.exe boot0.exe)

By integrating this package in the cfw, an additional script file will be automatically processed at the phone startup:

\Data\Boot0.txt

So, you can also copy / restore contacts database.

Posted

added support for the domainsrv... ;)

Download the DomainSrv Addon:

http://www.mediafire.com/?65y4povllw8524i

Some files can be copied / restore only during the phone startup, using the DomainSrv.exe (eg. the contacts database)

In order to do these operations, cookers can integrate this additional package (it includes domainsrv.exe boot0.exe)

By integrating this package in the cfw, an additional script file will be automatically processed at the phone startup:

\Data\Boot0.txt

So, you can also copy / restore contacts database.

Great work buddy... really awesome...people like you keep the Symbian alive :-bd
  • 3 weeks later...
Posted

sorry, I do not know English properly  :-q. I do not know what happens, but the links "http://www.multiupload.com/LW9BXBWMGN" and "http://www.multiupload.com/SFFOS006A6" do not open, it would be possible to pass other download links? Installed but nothing happens, I read the above q must have the script in the folder "C: \ data", so I wanted the link. Thanks for the help, this app will be very useful for me. Thank you for providing this app!

Posted

sorry, I do not know English properly  :-q.

I do not know what happens, but the links "http://www.multiupload.com/LW9BXBWMGN" and "http://www.multiupload.com/SFFOS006A6" do not open, it would be possible to pass other download links?

Installed but nothing happens, I read the above q must have the script in the folder "C: \ data", so I wanted the link.

Thanks for the help, this app will be very useful for me.

Thank you for providing this app!

Its attached in the forum itself...check 1st post :)
  • 1 month later...
Posted

So...how to use this.???

read all...but somewhat confusin....

and I have x6 with mass storage as e:/

so,i will do modding and experiments on my c:/ drive only not e:/ .....

Suggest me...

use the moded scripts....then place it in c:/data/...
  • 9 months later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...