5,606,253 Members 31,909 Now Online
XDA Developers Android and Mobile Development Forum

How I got the 4.4.2 update to actually update...

Tip us?
 
tronmech
Old
#1  
Senior Member - OP
Thanks Meter 70
Posts: 519
Join Date: Nov 2010
Default How I got the 4.4.2 update to actually update...

When I tried to update my rooted stock N7 to 4.4.2 from 4.4.0, the script always failed saying "debuggerd has unexpected content."

This is apparently a known issue revolving around stickmount. Unfortunately, I didn't have a replacement debuggerd and didnt' want to take the time to find and install the right one... So, if you need a quick list of things to do to get the update working (Used Windows 7)

Please note that
:
  1. 1) Download
  2. Install the Android SDK.
  3. Run the Android SDK manager and make SURE you get the USB drivers.
  4. Enable Android debugging on the N7 and plug it in via USB to the computer.
  5. Once it fails to find a driver for one of the options, open the device manager.
  6. Locate the "Nexus 7" in "other devices"
  7. Right click and select "update driver"
  8. Tell Windows to look in the ...\adt-bundle-windows-x86_64-20131030\sdk\extras\google\usb_driver directory
  9. Once the driver is installed, open a command prompt and CD to the ...\adt-bundle-windows-x86_64-20131030\sdk\platform-tools directory
  10. Run "adb devices"
  11. You should get a prompt on the N7 asking for permission. Allow it.
  12. You should see your device in the list.
  13. put the SuperSU update file on the N7 by running:
    adb push {downloadpath}\UPDATE-SuperSU-v1.80.zip /sdcard/
  14. if needed, push the OTA file to the same place.
    adb push {downloadpath}\{taht awfully long name} /sdcard/
  15. run adb reboot bootloader
  16. You should be in the bootloader.
  17. Another device driver should install. After that "fastboot devices" should show your device.
  18. Extract the 4.4 factory image to its own directory
  19. Locate the "image-nakasi-krt16s.zip" file in the "nakasi-krt16s" subdirectory.
  20. extract that .zip file to it's own directory
  21. CD to that last directory in the command prompt
  22. run fastboot flash-image system system.img
  23. use the bootloader interface to boot into recovery
  24. Flash the OTA file
  25. Flash the SuperSU update
  26. wipe cache and Dalvik
  27. reboot normally.

In my case, I used TWRP and created a flash queue to flash both the OTA file and SuperSu. When I rebooted, everything came up. The first boot was a little long, and I got the normal post-OTA "Optimizing app n of 200" count.
The Following User Says Thank You to tronmech For This Useful Post: [ Click to Expand ]
 
khaytsus
Old
#2  
Senior Member
Thanks Meter 1012
Posts: 6,717
Join Date: Apr 2008
Location: Central Kentucky
I just take the OTA, unzip it, edit the update script and remove where it patches boot, recovery-from-boot, power.grouper.so, and in this case, debuggerd. Zip it back up, flash with twrp.
AT&T LG G2 - 4.3, AOKP
Samsung Note i717 - 4.2.2, Unofficial AOKP
Nexus 7 Wifi 2012 - 4.4.2, Stock Rooted (m-kernel)
Try my Alternative XDA CSS Themes (including 2010!)

--
http://theblackmoor.net
http://unlimitedphoto.com
 
tronmech
Old
#3  
Senior Member - OP
Thanks Meter 70
Posts: 519
Join Date: Nov 2010
Quote:
Originally Posted by khaytsus View Post
I just take the OTA, unzip it, edit the update script and remove where it patches boot, recovery-from-boot, power.grouper.so, and in this case, debuggerd. Zip it back up, flash with twrp.
Well, I'm not that up on editing update scripts. Then someone posts the factory image URLs.... That would have been SOOO much faster. That's how I got to 4.3. I used fastboot to flash the 4.3 system image....

Sent from my Nexus 7 using Tapatalk 4
 
redmonke255
Old
#4  
redmonke255's Avatar
Senior Member
Thanks Meter 296
Posts: 1,040
Join Date: Jan 2012
Location: Fort Worth, Texas
Quote:
Originally Posted by khaytsus View Post
I just take the OTA, unzip it, edit the update script and remove where it patches boot, recovery-from-boot, power.grouper.so, and in this case, debuggerd. Zip it back up, flash with twrp.
I have the zip, where is the script located?

Sent from my Nexus 7 using Tapatalk
LG G2x P999 CM7.2
Nexus 7 16GB
 
khaytsus
Old
#5  
Senior Member
Thanks Meter 1012
Posts: 6,717
Join Date: Apr 2008
Location: Central Kentucky
Quote:
Originally Posted by redmonke255 View Post
I have the zip, where is the script located?
./META-INF/com/google/android/updater-script

Remove every line related to power.grouper.so and LNX:5109760 (part partition reference). There's two of each, one apply_check_patch and one apply_patch plus a set_metadata for the power.grouper.so

I could put the file on Dropbox but I think it's more useful to see what's going on than just handing it out. As they say, give a man a fish and you'll feed him for a day. Teach a man to fish and he'll sit out in a boat drinking beer all day.
AT&T LG G2 - 4.3, AOKP
Samsung Note i717 - 4.2.2, Unofficial AOKP
Nexus 7 Wifi 2012 - 4.4.2, Stock Rooted (m-kernel)
Try my Alternative XDA CSS Themes (including 2010!)

--
http://theblackmoor.net
http://unlimitedphoto.com
 
jazzespresso
Old
#6  
jazzespresso's Avatar
Senior Member
Thanks Meter 194
Posts: 727
Join Date: Jul 2012
Location: New York City
Quote:
Originally Posted by khaytsus View Post
./META-INF/com/google/android/updater-script

Remove every line related to power.grouper.so and LNX:5109760 (part partition reference). There's two of each, one apply_check_patch and one apply_patch plus a set_metadata for the power.grouper.so

I could put the file on Dropbox but I think it's more useful to see what's going on than just handing it out. As they say, give a man a fish and you'll feed him for a day. Teach a man to fish and he'll sit out in a boat drinking beer all day.
That's good information. I know last time someone posted details exactly what lines in updater-script needs to be removed (i believe it was 4.3 OTA update). it would be wonderful if someone posts an updated updater-script here, so avoid any kind of other issues.

looking forward to see updater-script attached here!

bunch of thanks!!
================================================== =
  • Nexus 7 WiFi (1st gen) - Pure Stock ROM 4.4.2
  • Galaxy Note 3 - AT&T, Stock ROM 4.4.2
  • Galaxy Tab 2 7 - GT-P3113 - 4.4.2 - Official SlimKat ROM
  • Galaxy Note 8.0 - GT-N5110 - CivZ-FLEX-BEAM-REV3.6 ROM
================================================== =
 
sephk
Old
#7  
sephk's Avatar
Senior Member
Thanks Meter 37
Posts: 203
Join Date: Jul 2011
Location: San Francisco Bay Area
small correction on command: run fastboot flash system system.img

in my case, I had to flash boot as well (wrong kernel I guess), otherwise TWRP was giving the emmc error, when flashing the OTA "emmc /dev/block/platform/msm_sdcc.1/by-name/boot 71"

I did fastboot flash boot boot.img
and then flashed the OTA in recovery, followed by SuperSU. And everything was back to normal, including xposed framework, which I had disabled prior to starting the OTA flashing.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...