Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chris Buitendag
OnlineNandroid
Commits
dc55240d
Commit
dc55240d
authored
11 years ago
by
Ameer Dawood
Browse files
Options
Download
Email Patches
Plain Diff
v8.21
Bug Fix: boot and recovery partition backup on MTD devices.
parent
37fe5e80
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
changelog
changelog
+1
-0
onandroid
onandroid
+9
-5
version
version
+1
-1
No files found.
changelog
View file @
dc55240d
...
...
@@ -203,3 +203,4 @@ v8.12 - Bug Fix: Recovery partition backup on HTC One (Sprint).
Bug Fix: Minor bug in partition size calculation.
v8.20 - Added: Return device ID used by TWRP (-d flag).
Removed: (cp)uid from list of partitions help screen.
v8.21 - Bug Fix: boot and recovery partition backup on MTD devices.
This diff is collapsed.
Click to expand it.
onandroid
View file @
dc55240d
...
...
@@ -34,7 +34,7 @@
######################################################################
#### Define constants
version="8.2
0
"
version="8.2
1
"
blobsdir="/clockworkmod/blobs"
tz="utc"
req_power=10
...
...
@@ -834,6 +834,7 @@ if $bb [ -f "/proc/mtd" ]; then
part_type="/proc/mtd"
part_path="/dev/mtd"
part_bytediv=1048576
part_bsval=4096
logmsg "This is an MTD based device!"
else
part_type="not_found"
...
...
@@ -844,6 +845,7 @@ if $bb [ -f "/proc/emmc" ]; then
part_type="/proc/emmc"
part_path="/dev/block"
part_bytediv=1048576
part_bsval=1024
logmsg "This is an EMMC based device!"
else
part_type="not_found"
...
...
@@ -854,6 +856,7 @@ if $bb [ -f "/proc/dumchar_info" ]; then
part_type="/proc/dumchar_info"
part_path="/dev/block"
part_bytediv=1048576
part_bsval=4096
logmsg "This is an MTK based device!"
else
part_type="not_found"
...
...
@@ -864,6 +867,7 @@ if $bb [ -f "/system/partlayout4nandroid" ]; then
part_type="/system/partlayout4nandroid"
part_path="/dev/block"
part_bytediv=1048576
part_bsval=1024
logmsg "This device has a patch file installed!"
else
part_type="not_found"
...
...
@@ -1447,7 +1451,7 @@ fi
#### Backup boot
if $bb [ "$is_hptouchpad" != "yes" -a "$custbkp_fs" == "" ]; then
nandroid_dd "boot" "boot" "$part_boot" "b" "$u_boot" "
1024
" "$boot_count" "$boot_start" "yes"
nandroid_dd "boot" "boot" "$part_boot" "b" "$u_boot" "
$part_bsval
" "$boot_count" "$boot_start" "yes"
fi
#### Notice to install patch file, if boot partition is not found.
...
...
@@ -1456,13 +1460,13 @@ if $bb [ $part_type == "not_found" -o "$part_boot" == "" ]; then
fi
#### Backup recovery
nandroid_dd "recovery" "recovery" "$part_recovery" "r" "$u_recovery" "
1024
" "$recovery_count" "$recovery_start" "yes"
nandroid_dd "recovery" "recovery" "$part_recovery" "r" "$u_recovery" "
$part_bsval
" "$recovery_count" "$recovery_start" "yes"
#### Backup wimax (for Samsung devices)
nandroid_dd "wimax" "wimax" "$part_wimax" "w" "$u_wimax" "
1024
" "$wimax_count" "$wimax_start" "no"
nandroid_dd "wimax" "wimax" "$part_wimax" "w" "$u_wimax" "
$part_bsval
" "$wimax_count" "$wimax_start" "no"
#### Backup appslog (for HTC and Sony (Ericsson) devices)
nandroid_dd "appslog" "appslog" "$part_appslog" "l" "$u_appslog" "
1024
" "$appslog_count" "$appslog_start" "no"
nandroid_dd "appslog" "appslog" "$part_appslog" "l" "$u_appslog" "
$part_bsval
" "$appslog_count" "$appslog_start" "no"
#### Backup /system
nandroid_fs "system" "system" "s" "/system" "system" "$system_fs" "$u_system" "$system_excludes" "$system_excludes_dedupe" "yes"
...
...
This diff is collapsed.
Click to expand it.
version
View file @
dc55240d
8.20
\ No newline at end of file
8.21
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment