Skip to content

Commit

Permalink
Hack for oneplus A0001.
Browse files Browse the repository at this point in the history
Change-Id: Ie5d7d7c63c456039bd0fae2fc237ce03ee6b2325
  • Loading branch information
xiaolu committed Sep 15, 2014
1 parent 16f038f commit d5c6061
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extendedcommands.c
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,13 @@ int verify_root_and_recovery() {
if (0 == lstat("/system/recovery-from-boot.p", &st))
remove("/system/recovery-from-boot.p");

if (!strcmp(TARGET_DEVICE, "A0001")) {
ensure_path_mounted("/data");
__system("rm -rf /data/data/com.oppo.ota/databases/ota.db");
ensure_path_unmounted("/data");
ensure_path_unmounted("/system");
return ret;
}
// check to see if install-recovery.sh is going to clobber recovery
// install-recovery.sh is also used to run the su daemon on stock rom for 4.3+
// so verify that doesn't exist...
Expand Down
7 changes: 7 additions & 0 deletions extendedcommands_cn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1843,6 +1843,13 @@ int verify_root_and_recovery() {
if (0 == lstat("/system/recovery-from-boot.p", &st))
remove("/system/recovery-from-boot.p");

if (!strcmp(TARGET_DEVICE, "A0001")) {
ensure_path_mounted("/data");
__system("rm -rf /data/data/com.oppo.ota/databases/ota.db");
ensure_path_unmounted("/data");
ensure_path_unmounted("/system");
return ret;
}
// check to see if install-recovery.sh is going to clobber recovery
// install-recovery.sh is also used to run the su daemon on stock rom for 4.3+
// so verify that doesn't exist...
Expand Down

0 comments on commit d5c6061

Please sign in to comment.