Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O OnlineNandroid
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Ameer Dawood
  • OnlineNandroid
  • Wiki
  • For Developers

For Developers · Changes

Page history
Updated For Developers (markdown) authored Dec 30, 2012 by Ameer Dawood's avatar Ameer Dawood
Hide whitespace changes
Inline Side-by-side
Showing with 18 additions and 15 deletions
+18 -15
  • For-Developers.md For-Developers.md +18 -15
  • No files found.
For-Developers.md
View page @ 2504e2ce
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<br /> <br />
<br /> <br />
### Command Line Flags (for v6 and above): ### Command Line Flags:
* v6 introduces a new command line flag mechanism with totally revamped code. Each command line flag also has a long version which is more descriptive and preferred by some. * v6 introduces a new command line flag mechanism with totally revamped code. Each command line flag also has a long version which is more descriptive and preferred by some.
```none ```none
-h, --help display this help message and exit -h, --help display this help message and exit
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<br /> <br />
<br /> <br />
### Specifying Alternate Backup Media (for v6 and above): ### Specifying Alternate Backup Media:
* Since some people are having issues where the script detects internal sd card for backing up, but people want the external sd card to be selected (there is instances of vice versa too), there is a command line flag to set the sdcard / base folder. You could also use this for cryptonite volumes or any other folders for that matter. Here is an example: * Since some people are having issues where the script detects internal sd card for backing up, but people want the external sd card to be selected (there is instances of vice versa too), there is a command line flag to set the sdcard / base folder. You could also use this for cryptonite volumes or any other folders for that matter. Here is an example:
* For sd card selection: (This would force Online Nandroid to backup to /sdcard/external_sd/clockworkmod/backup/...) * For sd card selection: (This would force Online Nandroid to backup to /sdcard/external_sd/clockworkmod/backup/...)
...@@ -54,7 +54,7 @@ onandroid --storage /sdcard/mnt/cryptonite ...@@ -54,7 +54,7 @@ onandroid --storage /sdcard/mnt/cryptonite
<br /> <br />
<br /> <br />
### Specifying sd-ext Path / Mountpoint (for v6 and above): ### Specifying sd-ext Path / Mountpoint:
* Since it is almost impossible for the script to detect all the various flavors of sd-ext usages (such as app2sd, link2sd, data2sd, etc...), I have added a command line flag to manually specify sd-ext path / mountpoint. Here is an example: * Since it is almost impossible for the script to detect all the various flavors of sd-ext usages (such as app2sd, link2sd, data2sd, etc...), I have added a command line flag to manually specify sd-ext path / mountpoint. Here is an example:
```shell ```shell
onandroid -e /data/sdext2 onandroid -e /data/sdext2
...@@ -65,7 +65,7 @@ onandroid --sd-ext-path /data/sdext2 ...@@ -65,7 +65,7 @@ onandroid --sd-ext-path /data/sdext2
<br /> <br />
<br /> <br />
### Advanced / Selective Backup Mode (for v6 and above): ### Advanced / Selective Backup Mode:
* Using this backup mode you can backup only specific partitions. * Using this backup mode you can backup only specific partitions.
```shell ```shell
Usage: onandroid -a <partitions> Usage: onandroid -a <partitions>
...@@ -81,6 +81,7 @@ Usage: onandroid -a <partitions> ...@@ -81,6 +81,7 @@ Usage: onandroid -a <partitions>
c: cache c: cache
t: datadata (for some Samsung devices) t: datadata (for some Samsung devices)
e: efs (for Samsung devices) e: efs (for Samsung devices)
o: preload (for Samsung devices)
u: .cust_backup (for Huawei devices) u: .cust_backup (for Huawei devices)
f: flexrom (for Acer devices) f: flexrom (for Acer devices)
p: boot (for HP Touchpad) p: boot (for HP Touchpad)
...@@ -104,7 +105,7 @@ onandroid --advanced bsd ...@@ -104,7 +105,7 @@ onandroid --advanced bsd
<br /> <br />
<br /> <br />
### Specifying Progress Indicator Type (for v6 and above): ### Specifying Progress Indicator Type:
* There are two progress indicator types available. Using dots (as in versions prior to v6), and using percentages. By default, the second indicator type is used. If, for some reason (for instance some apps may not be able to properly display the percentage progress indicator), you want to choose a specific indicator type, it can be set via the below flags. * There are two progress indicator types available. Using dots (as in versions prior to v6), and using percentages. By default, the second indicator type is used. If, for some reason (for instance some apps may not be able to properly display the percentage progress indicator), you want to choose a specific indicator type, it can be set via the below flags.
* Setting dot indicator: * Setting dot indicator:
```shell ```shell
...@@ -123,7 +124,7 @@ onandroid --progress-percent ...@@ -123,7 +124,7 @@ onandroid --progress-percent
<br /> <br />
<br /> <br />
### Disabling Notifications (for v6 and above): ### Disabling Notifications:
* If the app / tool you are developing has a method of notifying the user when backup is done, and / or if you do not require the notifications done by Online Nandroid script itself (currently led and vibrate notifications), you can disable notifications. Here is an example: * If the app / tool you are developing has a method of notifying the user when backup is done, and / or if you do not require the notifications done by Online Nandroid script itself (currently led and vibrate notifications), you can disable notifications. Here is an example:
```shell ```shell
onandroid -nd onandroid -nd
...@@ -134,7 +135,7 @@ onandroid --notification-disable ...@@ -134,7 +135,7 @@ onandroid --notification-disable
<br /> <br />
<br /> <br />
### Backup Format Indicators (for v6 and above): ### Backup Format Indicators:
* Online Nandroid adheres to backup format indicator set in **.default_backup_format** file, by ClockWorkMod (CWM) recovery. This file could have 2 different strings, **dup** or **tar**, where **dup** means incremental backup mode and **tar** means split backup mode. The file is normally in the below location, as set by CWM. The sd card mount point may vary. * Online Nandroid adheres to backup format indicator set in **.default_backup_format** file, by ClockWorkMod (CWM) recovery. This file could have 2 different strings, **dup** or **tar**, where **dup** means incremental backup mode and **tar** means split backup mode. The file is normally in the below location, as set by CWM. The sd card mount point may vary.
```shell ```shell
/mnt/sdcard/clockworkmod/.default_backup_format /mnt/sdcard/clockworkmod/.default_backup_format
...@@ -162,12 +163,14 @@ onandroid --notification-disable ...@@ -162,12 +163,14 @@ onandroid --notification-disable
72 : md5sum not found in path 72 : md5sum not found in path
73 : tar not found in path 73 : tar not found in path
74 : dd not found in path 74 : dd not found in path
75 : Could not change to backup path 75 : zip not found in path
76 : Cannot create backup directory 76 : update-binary not found in path
77 : Cannot delete backup directory 80 : Could not change to backup path
78 : Backup name already exists 81 : Cannot create backup directory
79 : Cannot write to backup directory 82 : Cannot delete backup directory
80 : Cannot write to blobs directory 83 : Backup name already exists
81 : Not enough disk space 84 : Cannot write to backup directory
82 : Could not change to backup directory 85 : Cannot write to blobs directory
86 : Not enough disk space
87 : Could not change to backup directory
``` ```
\ No newline at end of file
Clone repository
  • Code Names for Versions of Online Nandroid
  • Contact me
  • For Developers
  • Frequently Asked Questions
  • Home
  • How To Detect Partition Layouts
  • How To Gather Information About Partition Layouts
  • Installation
  • Interesting Facts about Online Nandroid
  • Localization
  • Mirrors
  • Partition Layout Files
  • Requirements
  • Supported Devices
  • Supported Recoveries
View All Pages