4.4.3 OTA was screwing the pooch...

errsta

Member
Dec 2, 2011
5
0
0
Visit site
Phone (XT1053; GSM, Developer Edition; Rooted) kept insisting that I install the update, install kept crapping out. "Status 7", "ro.build.product", etc. etc. Tried updating recovery, tried switching from philz to cwm to twrp to stock. No go.

Any who...unzipped the OTA zip file (Blur_Version.161.44.25.ghost_row.Retail.en.US.zip) and grepped for "ro.build.product".

Found the updater-script file META-INF/com/google/android/updater-script and deleted some lines in vi:

Code:
mount("ext4", "EMMC", "system", "/system");
[B]file_getprop("/system/build.prop", "ro.build.fingerprint") == "motorola/ghost_retail/ghost:4.4.2/KXA20.16-1.25/31:user/release-keys" ||
    file_getprop("/system/build.prop", "ro.build.fingerprint") == "motorola/ghost_retail/ghost:4.4.3/KXA21.12-L1.21/23:user/release-keys" ||
    abort("Package expects build fingerprint of motorola/ghost_retail/ghost:4.4.2/KXA20.16-1.25/31:user/release-keys or motorola/ghost_retail/ghost:4.4.3/KXA21.12-L1.21/23:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
assert(getprop("ro.product.device") == "ghost" ||
       getprop("ro.build.product") == "ghost" ||
       getprop("ro.product.device") == "ghost" ||
       getprop("ro.build.product") == "ghost");
ui_print("Verifying current system...");
show_progress(0.100000,0);[/B]
apply_patch_check("/system/app/3c_main.apk", "3f90ee31a5052364f49ce15bdceab7c1ec4c27c1", "bcc237a61ea4e7557cb17461370abe381150d780") || abort("\"/system/app/3c_main.apk\" has unexpected contents.");
set_progress(0.000612);
apply_patch_check("/system/app/3c_main.odex", "02b5d474395d369f2b1382169623c1b5f1d081ec", "0b1df2625c85b73cc7bf3ac77a9115ec037e5343") || abort("\"/system/app/3c_main.odex\" has unexpected contents.");
set_progress(0.002483);
apply_patch_check("/system/app/AonInt.apk", "a39f248a4aaceb9e6f03f45117aec6952d435cd2", "cc681d3ed8d5566cdce85675890d35b663c7d4f8") || abort("\"/system/app/AonInt.apk\" has unexpected contents.");
set_progress(0.002540);
apply_patch_check("/system/app/AonInt.odex", "39a61d60f5515643e60483818575c8dacf628ef7", "c620493db414add5e86c45ea56e3b71cacacfd15") || abort("\"/system/app/AonInt.odex\" has unexpected contents.");
set_progress(0.002591);

deleted lines in bold, re-zipped, adb sideloaded, voila.

Don't post here often..forgive if it's a well known, easy workaround. Hopefully it's helpful to someone.
 
Last edited:

UJ95x

Retired Ambassador
Aug 26, 2013
9,337
0
0
Visit site
Phone kept insisting that I install the update, install kept crapping out. "Status 7", "ro.build.product", etc. etc. Tried updating recovery, tried switching from philz to cwm to twrp to stock. No go.

Any who...unzipped the OTA zip file (Blur_Version.161.44.25.ghost_row.Retail.en.US.zip) and grepped for "ro.build.product".

Found the updater-script file META-INF/com/google/android/updater-script and deleted some lines in vi:

Code:
mount("ext4", "EMMC", "system", "/system");
[B]file_getprop("/system/build.prop", "ro.build.fingerprint") == "motorola/ghost_retail/ghost:4.4.2/KXA20.16-1.25/31:user/release-keys" ||
    file_getprop("/system/build.prop", "ro.build.fingerprint") == "motorola/ghost_retail/ghost:4.4.3/KXA21.12-L1.21/23:user/release-keys" ||
    abort("Package expects build fingerprint of motorola/ghost_retail/ghost:4.4.2/KXA20.16-1.25/31:user/release-keys or motorola/ghost_retail/ghost:4.4.3/KXA21.12-L1.21/23:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
assert(getprop("ro.product.device") == "ghost" ||
       getprop("ro.build.product") == "ghost" ||
       getprop("ro.product.device") == "ghost" ||
       getprop("ro.build.product") == "ghost");
ui_print("Verifying current system...");
show_progress(0.100000,0);[/B]
apply_patch_check("/system/app/3c_main.apk", "3f90ee31a5052364f49ce15bdceab7c1ec4c27c1", "bcc237a61ea4e7557cb17461370abe381150d780") || abort("\"/system/app/3c_main.apk\" has unexpected contents.");
set_progress(0.000612);
apply_patch_check("/system/app/3c_main.odex", "02b5d474395d369f2b1382169623c1b5f1d081ec", "0b1df2625c85b73cc7bf3ac77a9115ec037e5343") || abort("\"/system/app/3c_main.odex\" has unexpected contents.");
set_progress(0.002483);
apply_patch_check("/system/app/AonInt.apk", "a39f248a4aaceb9e6f03f45117aec6952d435cd2", "cc681d3ed8d5566cdce85675890d35b663c7d4f8") || abort("\"/system/app/AonInt.apk\" has unexpected contents.");
set_progress(0.002540);
apply_patch_check("/system/app/AonInt.odex", "39a61d60f5515643e60483818575c8dacf628ef7", "c620493db414add5e86c45ea56e3b71cacacfd15") || abort("\"/system/app/AonInt.odex\" has unexpected contents.");
set_progress(0.002591);

deleted lines in bold, re-zipped, adb sideloaded, voila.

Don't post here often..forgive if it's a well known, easy workaround. Hopefully it's helpful to someone.
Thanks for posting the solution :)
Don't think I've seen this issue here yet, but I'll link your thread if I see another.
 

errsta

Member
Dec 2, 2011
5
0
0
Visit site
Thanks for posting the solution :)
Don't think I've seen this issue here yet, but I'll link your thread if I see another.

Found a bunch of related issues with nexus devices (e.g.,androidhackz.blogspot.com/2013/11/android-44-ota-update-gives-status-7.html) and the one I found for Moto X suggested Odin flash...thought I'd poke around, find, and tinker with the update script instead. Thank goodness it worked.
 

errsta

Member
Dec 2, 2011
5
0
0
Visit site
Were you fully stock before the update?

Posted via Android Central App

Mostly stock. I was using the stock 4.4.2 - only changes: unlocked, custom recovery, rooted...aside from that, I had converted Cerberus to a system app via (Titanium Backup). While trying to get the update to take, I undid everything except re-locked the phone.