yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Android Development] otisw:
Stuck at Optimizing app 1 of 1, how to use NRT to fix?

I have a rooted N7 2013 on 4.4.4 via NRT long ago that is stuck with "Android is upgrading ... Optimizing app 1 of 1" on the screen as of this morning. I didn't try for an OTA to lollipop, nor did I see a notification of its availability when I stopped using it last night. Rebooting looks normal, until the colored dots stop, and then the message reappears instead of the launcher.

Connecting on my PC via USB, the device is recognized by NRT, and the model type shows Android 4.4.4 KTU84P. Backing up all apps from NRT yields a 0-byte file, selecting a single file is possible from a large list of apps with the same results of no backup. So NRT is communicating with the device OK, but I can't back anything up.

Holding the power to turn off and then power and volume down then gets me to "fastboot", and I have the options for start, restart bootloader, recovery mode, and power off.

Any advice on how to proceed to at least reflash stock 4.4.4 and reroot, or some idea of the reasone behind the update message, would be appreciated.
[Nexus 7 (2013) Android Development] otisw:
I reflashed stock 4.4.4 via NRT, lets see what happens.
[Nexus 7 (2013) Android Development] tv31284:
I was wondering, I'm stock - not rooted, locked bootloader, is there a way to use this toolkit to update to 5.0 without losing all your data and having to restore?
[Nexus 7 (2013) Android Development] WugFresh:
Yes, via sideload update in advanced utilities. You will have to Google for the official ota zip. Configure drivers, and use that button.
[Nexus 7 (2013) Android Development] tv31284:
Worked perfectly. Thanks.
[Nexus 7 (2013) Android Development] Magic2009:
I turned off both and yes it worked for me == thx for that
[Nexus 7 (2013) Android Development] Asphyx:
Thanks Wug...as always you were spot on!
[Nexus 7 (2013) Android Development] xander45:
Tool Kit available for MAC???

is this tool kit available for a Mac?
[Nexus 7 (2013) Android Development] mdamaged:
http://www.wugfresh.com/faqs/
[Nexus 7 (2013) Android Development] diabo_bom:
Thx Wug!
[Nexus 7 (2013) Android Development] toolsong:
I used the toolkit to update TWRP Recovery today and it applied the 'latest' one it had downloaded automatically - v2.8.2.0 - which is apparently a bit buggy as you can see from the posts starting here http://xdaforums.com/showthread.php?t=2380100&page=41

After rebooting into Recovery to check the update had applied, TWRP would not reboot into System saying 'No OS is installed' and its log was full of errors regarding inability to access local storage.

I was able to get back into System by rebooting into Bootloader and then System.

I manually installed more recent patch TWRP 2.8.2.2 and everything is back to normal :)
[Nexus 7 (2013) Android Development] WugFresh:
Thank you for the info. I will get the newer TWRP listed momentarily.
[Nexus 7 (2013) Android Development] ganggreen30:
Hey Wug I flashes stock and rooted b4 1.9.9 and u used different rooting method . should I reflash stock then root with the new way? N7 2013 WiFi? Is it safer ..better. More secure?
[Nexus 7 (2013) Android Development] WugFresh:
It's technically more secure. No need to reflash stock though, just restore the stock kernel then re-root. To restore stock kernel: advance utilities > fastboot flash > boot > restore stock kernel.
[Nexus 7 (2013) Android Development] ganggreen30:
Nvm

What about the modified boot img

---------- Post added at 05:51 PM ---------- Previous post was at 05:42 PM ----------

WugFresh I think the boys over at kali nethunter jacked your toolkit because it's identical almost
[Nexus 7 (2013) Android Development] WugFresh:
I built that for them ;)

They reached out for me looking for a custom installer for their platform.

That's why it looks similar. Thank you for notifying me regardless.
[Nexus 7 (2013) Android Development] WugFresh:
The modified boot.img is unique to NRT, it is never flashed, only used temporarily. Its used to automate procedures.
[Nexus 7 (2013) Android Development] ganggreen30:
Cool deal
[Nexus 7 (2013) Android Development] Kiwi_in_KC:
Nexus 7 2013 WiFi 5.0.1 OTA issues

Hey Wug,

Wondering if you have been following the issues with trying to sideload the 5.0.1 update for the Nexus 7 2013 WiFi? Check out the posts from osm0sis beginning in this thread and page http://xdaforums.com/showthread.php?t=2380113&page=40

Is it possible you may incorporate a way of dealing with the issues?

Great tool, just donated some bucks your way.
[Nexus 7 (2013) Android Development] WugFresh:
From my understanding, the system file he is referring too "install-recovery.sh" is not modified on lollipop with chainfires SuperSU that is utilized in v1.9.9. That said, you may get a similar error because root modifies a different system file.

Why not try simply unrooting first with "full unroot" option in SuperSU app. Assuming other things are stock, your ota could work.

I think that Dev was trying to keep root during the upgrade for some reason... Its easier to just re-root afterwards.
[Nexus 7 (2013) Android Development] Kiwi_in_KC:
I will try that on the next OTA, maybe my Nexus 5 as that 5.0.1 OTA is not available yet, because I completed my Nexus 7 5.0.1 update by taking the manual steps.
[Nexus 7 (2013) Android Development] Konstigt:
Can you root with this app without unlocking boot loader? Like you could do with Towelroot. Or maybe it isn't even possible any longer in Lollipop?
[Nexus 7 (2013) Android Development] WugFresh:
NRT does not utilize exploits to root. Bootloader unlocking is required.

{{ WugFresh }}
[Nexus 7 (2013) Android Development] Aha100:
I followed your Suggestion but the ota update still Fails with the message that it expected Fingerprint from lrx21P or lrx22C, but only get's reported 4.4.2 - my Nexus 7 2013 was succesfully updated before from 4.x to 5.0 without root via Ota.
[Nexus 7 (2013) Android Development] mertzi:
Hello! I got the 5.0.1 OTA today so I flashed stock kernel with NRT since I was rooted with the early method with a modified kernel. Then I tried to install the update, but I get "Error!" with a red exclamation mark. What did I miss?
[Nexus 7 (2013) Android Development] Mtsprite:
the entire ROM has to be un-tampered with in order to update through ota.
[Nexus 7 (2013) Android Development] mdamaged:
It's easier to just boot into fastboot mode and:

fastboot flash system system.img

fastboot flash boot boot.img

fastboot format cache

fastboot reboot

The .imgs are of course from 5.0.1 stock images.

..all done...just have to reroot, and redo whatever mods you like to do to system, kernel...etc.
[Nexus 7 (2013) Android Development] mertzi:
Un-tampered as in not even rooted - unrooted? I never use custom roms nor custom recovery, I only root to get greenify going. After getting 5.0 I rooted early with the modified kernel, which I replaced with stock prior to running the 5.0.1 OTA. Does regular OTA now only work for those who does nothing at all with their devices?

I know how to use ADB so it's not a problem, just thought it wasn't necessary.
[Nexus 7 (2013) Android Development] mertzi:
Did this just now, worked great, thanks! Didn't loose any data afaict. It beats me why Google had to implement this new "feature". Hopefully this method works for the next version too.
[Nexus 7 (2013) Android Development] toothbrush69:
great.

now i have to download the full image (which will take forever to finish) just to update.

damn it google!

damn slow internet!

(end of rant)
[Nexus 7 (2013) Android Development] idCyber:
Quick Boot (reboot) app has been updated to be compatible with Lollipop. Just an info in case you want to readd it to the Nexus Root Toolkit
[Nexus 7 (2013) Android Development] WugFresh:
Site is temp down. For mirrors: https://plus.google.com/113329792100896065459/posts/cTJeV68ChFJ

{{ WugFresh }}
[Nexus 7 (2013) Android Development] po8pimp:
was working about two hours ago. Wow this tool is pretty much the most amazing tool out there. I don't understand why this isn't featured nor stickied. WTF........ Thank you so much for this tool. I used it for my Nexus 7 and tomorrow for the Nexus 10 I am gonna get.
[Nexus 7 (2013) Android Development] xxboarderxx:
Amazing Tool

Hey Wugfresh,

Just wanted to let you know that this tool that you have created is awesome. It has gotten me out of many soft bricks and again yesterday when I was bootlooping after trying to manually downgrade from lollipop.

This kind of tool needs to be made for all devices!

Thanks so much for developing it.

Cheers

X
[Nexus 7 (2013) Android Development] hexxamillion:
This tool is the ultimate for my Nexus 7. It has never failed me and I just updated to 5.0.1 with little to no effort. Thanks!
[Nexus 7 (2013) Android Development] aldroidx:
[MENTION=3110798]WugFresh[/MENTION]

i'm trying to root my nexus 7(2013)wi-fi , did the unlock seamlessly, then did the USB debugging and unchecked MTP

and downloaded file dependency.

but after all that the "continue" button to apply root + recovery is disabled (WHY):confused:

see image attached

Thanks dev
[Nexus 7 (2013) Android Development] WugFresh:
Shouldn't be, deff a bug. I thought I fixed this. Did you download any of the files manually via the import during the process? I think I know where the bug is.

For the solution, Just close that window, and if you do it again, it should let you continue.

{{ WugFresh }}
[Nexus 7 (2013) Android Development] aldroidx:
I did it many times, closed that window, ran the test driver successfully.

today i got the new files dependency for recovery and latest root version .42 and still not letting me continue to the process. Whats wrong man !?
[Nexus 7 (2013) Android Development] vlad.obada:
I just downloaded the NRT v.1.9.9 and it seems that i can`t make it to work.

1) it can`t autodetect devices. tried with a N7(2013) and a N5.

2) when I try to update the files for the devices, I get a "mismatch" for file hashes for boot.img file and TWRP recovery file.

Can somebody else confirm this, or is it just me?
[Nexus 7 (2013) Android Development] nuxbag:
Drivers are installed correctly? Mismates are bad downloads try again till works
[Nexus 7 (2013) Android Development] vlad.obada:
Yup, got the drivers from http://developer.android.com/sdk/win-usb.html so it should be good.

I mean, I can access the devices, adb, fasboot, etc.

It`s NRT that`s making me trouble ..
[Nexus 7 (2013) Android Development] Hieuhoang:
hi all!

i flash stock + unroot

here is my cmd:

Flash Stock + Unroot...

------------------------------------------------------------------

sending 'bootloader' (2100 KB)...

OKAY [ 0.078s]

writing 'bootloader'...

FAILED (remote: Signature mismatched!!!)

finished. total time: 0.109s

rebooting into bootloader...

OKAY [ 0.016s]

finished. total time: 0.016s

sending 'radio' (16384 KB)...

OKAY [ 0.624s]

writing 'radio'...

OKAY [ 0.749s]

finished. total time: 1.373s

rebooting into bootloader...

OKAY [ 0.016s]

finished. total time: 0.016s

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

archive does not contain 'vendor.img'

Creating filesystem with parameters:

Size: 28856791040

Block size: 4096

Blocks per group: 32768

Inodes per group: 8192

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 7045115

Block groups: 215

Reserved block group size: 1024

Created filesystem with 11/1761280 inodes and 154578/7045115 blocks

Creating filesystem with parameters:

Size: 587202560

Block size: 4096

Blocks per group: 32768

Inodes per group: 7168

Inode size: 256

Journal blocks: 2240

Label:

Blocks: 143360

Block groups: 5

Reserved block group size: 39

Created filesystem with 11/35840 inodes and 4616/143360 blocks

--------------------------------------------

Bootloader Version...: FLO-04.02

Baseband Version.....: DEB-

Serial Number........: 072155dd

--------------------------------------------

checking product...

FAILED

Device product is 'deb'.

Update requires 'tilapia'.

finished. total time: 0.031s

Booting up your freshly flashed stock device...

------------------------------------------------------------------

Wait for your device to finish booting up...

- It may appear to be boot looping; just wait...

- It could take 5-10 minutes; please be patient...

When its finally booted back up, please remember

to re-enable USB debugging if you plan on using

the toolkit to perform other operations.

NOTE: If this process was too quick and your device

is still in bootloader mode, then flashing stock may

have failed or been incomplete. Simply check the

log above: if you notice it skipped steps because it

didn't meet certain requirements, like the bootloader

or baseband version, then consider enabling 'Force Flash'

mode in the toolkits options menu and trying the

'Flash Stock + Unroot' processs again. Cheers.

Press any key to exit...

My device can not successful boot and google is very long :(

please help me:rolleyes:

Sorry for my bad english.
[Nexus 7 (2013) Android Development] mdamaged:
You've selected the wrong ROM for your device.
[Nexus 7 (2013) Android Development] nuxbag:
If I am locked and after 5.0 update stuck on boot. Is there anyway to get unbricked?
[Nexus 7 (2013) Android Development] madbat99:
Yes, unlock and flash stock factory image. Or if using toolkit, unlock then select flash stock and unroot.
[Nexus 7 (2013) Android Development] aurion45:
I've sorted my problem, I click on the wrong button.
[Nexus 7 (2013) Android Development] mdamaged:
Sort my laundry.:p
[Nexus 7 (2013) Android Development] Aoi v1:
Hi all, I was running 4.4.4 and got in a bootloop (god knows why and how). It was quite some weeks ago, untill I recently found about this method. I formatted my PC (yes, clean driver install and everything - my PC was really messy) and installed the appropriate drivers. I flashed + unrooted using 5.0.1, and everything "worked fine", but my device keeps rebooting :/ So I now have a 5.0.1 bootloop... any help is much apreciated :)
[Nexus 7 (2013) Android Development] WugFresh:
Factory reset from stock recovery

https://support.google.com/nexus/answer/4596836?hl=en
[Nexus 7 (2013) Android Development] Aoi v1:
But i'm stuck in a bootloop, and I can't enter recovery mode (it stops in a black screen).
[Nexus 7 (2013) Android Development] kindofabuzz:
Newest version only downloads 2.8.3 and not the newest .4.
[Nexus 7 (2013) Android Development] WugFresh:
All new twrps and factory packs added.

{{ WugFresh }}
[Nexus 7 (2013) Android Development] Link_of_Hyrule:
I just updated to the latest version of the toolkit and I'm trying to find the option to force no wipe when flashing a factory imagine can you tell me where that went off to?
[Nexus 7 (2013) Android Development] WugFresh:
To the "Flash Stock Interface". Just hit the flash stock button.

I moved it there because its more intuitive.. But now everyone's asking me where it went, lol. I can't win. :)
[Nexus 7 (2013) Android Development] Link_of_Hyrule:
What you need to do is change the message that is displayed before you enter that menu because it says the option completely wipes your device it should say (unless no-wipe mode is enabled in the next menu) or something like that I never clicked ok for fear I'd accidentally wipe myself LOL.
[Nexus 7 (2013) Android Development] WugFresh:
Ahh. Thank you. I forgot to edit that message box. Will do.
[Nexus 7 (2013) Android Development] Link_of_Hyrule:
Thanks for such a great tool keep up the good work.
[Nexus 7 (2013) Android Development] ritchea:
We win with everything you do with the toolkit so consider that a win. However, if we've been using the kit for a long while, we're past the "intuitive" concept to "the old usual and comfortable." Not your fault. The message about "wipe unless...." did need to be included. I came to check it out before just fastboot flashing the latest update. Now I can go back to the toolkit.:victory:
[Nexus 7 (2013) Android Development] wooddale:
Can I just flash the 4.04 boot loader with this or do I need to flash lolli
[Nexus 7 (2013) Android Development] kindofabuzz:
You need the 4.04 bootloader just to flash ???*
[Nexus 7 (2013) Android Development] wooddale:
I read that in order to flash the 5.0.2 Roms you need the 4.04 bootloader. I would have flashed it in adb but I'm not quite sure what commands to use. Also it was said that you can still flash kk Roms.
[Nexus 7 (2013) Android Development] kindofabuzz:
Those question marks was a pic of a lollipop on my phone. So I was saying you need 4.04 to flash lollipop. The instructions are there on the image site. flash-all.bat/sh installs the bootloader and image.

---------- Post added at 08:39 PM ---------- Previous post was at 08:38 PM ----------

And your on the toolkit page so I assume you are using it. It can do it all for you, that's the purpose of the toolkit.
[Nexus 7 (2013) Android Development] wooddale:
I unlocked my Nexus about a year ago so no I haven't downloaded the newest one yet. That's why I'm asking the questions I don't think the one I used could do it. I didn't get any picture lol just ??????.
[Nexus 7 (2013) Android Development] kindofabuzz:
Well it's easy to just do it yourself. Straight from Google: https://developers.google.com/android/nexus/images
[Nexus 7 (2013) Android Development] wooddale:
Thanks loads just what I needed.
[Nexus 7 (2013) Android Development] madbat99:
Yes you can use the toolkit to just flash bootloader. You don't have to flash the whole lollipop image. This toolkit is as complete as they come now.
[Nexus 7 (2013) Android Development] wooddale:
Thanks that's what I want to do.
[Nexus 7 (2013) Android Development] DKirk:
Too many links

When I attempt to push 5.0.2 WiFi it consistently fails with "Too many links", what is going wrong? My 2012 Nexus 7 had no problems but this 2013 is not happy about something. Running Toolkit 2.0.2 with all of the latest updates applied.

erasing 'system'...

OKAY [ 0.308s]

sending 'system' (799293 KB)...

FAILED (data transfer failure (Too many links))

finished. total time: 6.425s

rebooting into bootloader...

OKAY [ 0.006s]

finished. total time: 0.007s

UPDATE: Very very weird. I always use the same cable on the same USB 3 port. I swapped to the motherboard USB 2 port and the system flashed flawlessly. Same cable and same port never a problem before, even the 5.0.1 was done this way, but for some reason that USB 3 port was the problem this time.
[Nexus 7 (2013) Android Development] DrPhant0m:
I just picked up a FLO 32GB at Staples (they're on clearance for $128!!!), so I dusted off the NRT, (eventually) updated it to 2.0.2, and... had a bunch of problems. I tried a few searches on the thread, but nothing came up since 1/10 when the new version was released. Besides, I figure if there was a bunch of people with the same issues, Wug would have fixed it in 2.0.3+. Can anyone assist me with these...?

It couldn't do a live update from 1.9.x to 2.0.2... I believe it failed the hash check, and wouldn't update. Retrying several times leaves me with several NRT_Updater icons in my taskbar. I had to download the new version from the site and install it manually. More on hash checks failing next.

When the NRT tries to update a boot image, recovery image, superSU... anything really... there's a hash mismatch. I downloaded and imported the latest masterlist, and it still fails. Clicking CANCEL and downloading/browsing for the files will pass the hash check.

I've got a Nexus 10 (Manta) and a Nexus 7 (Flo).... when I try to (or NRT prompts me to) switch devices or update the build number, I get an error that references a specific line number of code (can't say which line right now... I'm not at home) and the program stops. I have to restart it. This counts for both on the main screen, and in the options when I try to add a device. I downgraded to 1.9.x and it works fine.

Can anyone tell me how to flash an OTA update once I'm rooted with a custom recovery? Is my only option to do the flash stock + unroot and choose not to wipe the user partitions to save my data? There's a "flash OTA.zip" option in the tool that temporarily installs a stock recovery, but when it tries to ADB push the files over, I get an error. I believe I saw another textbox that said you need a completely stock ROM to do an OTA in this way. I succeeded in flashing the constituent parts (boot/recovery/system/etc *.img files) separately for the 5.0.1 update a while ago on my Nexus 10, but for the 5.0.2 update, I did the flash stock+unroot method, and chose to prevent formatting my data. Just wondering if there's an easier way.

Thanks for the help!

-Ryan
[Nexus 7 (2013) Android Development] fonephanatic:
Excuse the noon question,but first time using this tool kit and I unlocked my n7 and installed custom recovery.upon boot a noticed an app "quick reboot" did the tool kit install this? If so why?

Confused me because I was watching the log the whole time and it never mentioned this app.tyia
[Nexus 7 (2013) Android Development] theothermillion:
When running the root tool with installing custom recovery, my device will reboot into fastboot but refuses to do anything else from there. toolkit just says "waiting on device..." Anyone else running into this or have some thoughts? N7 2013 unlocked with 5.0.2
[Nexus 7 (2013) Android Development] Telyx:
It may have. Quick Boot was part of the N5's KitKat ROM, but it hadn't been updated for Lollipop when we first got the LP update. Now that it has, maybe Wugfresh added it to the toolkit.
[Nexus 7 (2013) Android Development] madbat99:
Yes toolkit installed it. Because its useful. And there is an option in the toolkit settings to not install it. In root settings. Also you can choose which superuser, or pro, busybox, which recovery to use. Check through the settings before you use it.
[Nexus 7 (2013) Android Development] kobefan2476:
I'm getting the same thing. Anyone have an answer?
[Nexus 7 (2013) Android Development] madbat99:
Have you plugged in to your PC while in boot loader, to let it install drivers. Should do it before using toolkit. You should go through all modes; ie, recovery, fastboot, system, with mtp checked on then off. Also try a diff. Cable and port.
[Nexus 7 (2013) Android Development] k4955:
Nexus 2013 Wi-Fi LRX21P

[MENTION=3110798]WugFresh[/MENTION]:

I have been using your Toolkit for a longtime to root my Nexus 2013 wi-fi. Yesterday I used to side upload my Nexus 2013which brought me up to 5.0 Build # LRX21P. Several attempts to side upload to bring to 5.0.1 failed with system error. I gave up the process. Can I skip 5.0.1 and move to 5.0.2? I am also getting message in my tablet that Android 5.0.2 system is downloaded and ready for installation. The installation process does not go anywhere because it opens TWRP and I have no idea where the download is saved. Please guide me to upgrade my Tablet.

Thank you.
[Nexus 7 (2013) Android Development] WugFresh:
Yeah, use flash stock, then tick "no wipe" and "force flash" and go straight to 5.0.2.
[Nexus 7 (2013) Android Development] k4955:
[MENTION=3110798]WugFresh[/MENTION]: Can you please explain that suggestion? Using your tool kit can I flash stock? I did not find a selection in your program installed in my PC Win 7. Currently the System Update states restart & install but after count down to 0, keeps flashing message "Rebooting" but it never does. Do you suggest I download manually stock 5.0.2?

Thanks for your help.

---------- Post added at 09:16 PM ---------- Previous post was at 09:09 PM ----------
[Nexus 7 (2013) Android Development] bovirus:
[MENTION=3110798]WugFresh[/MENTION]

Is it right that TWRP recovery for Asus Nexus 7 2013 Wifi is v. 2.8.4.0 and for Asus Nexus 7 2012 Wifi is 2.8.4.1?

Could update TWRP to v. 2.8.4.1 for Asus Nexus 7 2013 Wifi?

Could you update SuperSU at latest version (2.45)?
[Nexus 7 (2013) Android Development] madbat99:
Why don't you just flash SuperSU or twrp version you want without the toolkit? Install SuperSU that the toolkit has, then just update it, done.