[INFO] Nexus 5 OTA Help-Desk

godslave

New member
Jan 18, 2016
4
0
0
Flash Ota.zip from customUpdater.apk in Nexus 5 android 6 custom AOSP ROM

Scenario
-> custom aosp rom
-> stock kernel
-> without any google app (so no SystemUpdateServiceImpl service) I mean no system updater service
-> Have my own otaupdater.apk as system app

What I achieve:
-> Can download custom ota.zip from direct link using custom otaupdater.apk
-> In rooted device can reboot into recovery mode which take me to twrp recovery

What I failed to do:
-> can not write openrecoveryscript into system/cache/recovery/ directory
-> So no auto flash is happening

What I tried:
-> tried to set allow directory creation and file creation permission from within sepolicy/system_app.te


BUT FAILED


HELP NEEDED ...
 
D

Darth

Guest
Scenario
-> custom aosp rom
-> stock kernel
-> without any google app (so no SystemUpdateServiceImpl service) I mean no system updater service
-> Have my own otaupdater.apk as system app

What I achieve:
-> Can download custom ota.zip from direct link using custom otaupdater.apk
-> In rooted device can reboot into recovery mode which take me to twrp recovery

What I failed to do:
-> can not write openrecoveryscript into system/cache/recovery/ directory
-> So no auto flash is happening

What I tried:
-> tried to set allow directory creation and file creation permission from within sepolicy/system_app.te


BUT FAILED


HELP NEEDED ...
You are trying to run the OTA over a custom ROM? Won't work.

Best thing you can do now is flash the latest image with fastboot. You'll have a fresh clean install then.

I'm not sure what you mean by custom ota image, but to get to the latest stock version, you need to flash it clean, in your situation. Ota updates need a stock device to work.

You need scenario 6 from OP.

As far as I remember. Haven't had my N5 for a long time. :)
 

godslave

New member
Jan 18, 2016
4
0
0
You are trying to run the OTA over a custom ROM? Won't work.

Best thing you can do now is flash the latest image with fastboot. You'll have a fresh clean install then.

I'm not sure what you mean by custom ota image, but to get to the latest stock version, you need to flash it clean, in your situation. Ota updates need a stock device to work.

You need scenario 6 from OP.

As far as I remember. Haven't had my N5 for a long time. :)
So how do I provide otaupdate for my custom rom users with the option to get a auto flash after hitting the install Update button from updater.apk ?
 
D

Darth

Guest
So how do I provide otaupdate for my custom rom users with the option to get a auto flash after hitting the install Update button from updater.apk ?
Ah, it's an ota process for a custom ROM. Yes?

I'm sorry, but I don't know about that. I thought you were trying to install a stock ota file over a custom ROM.

That's what this thread is about, stock ota updates. I'd suggest you look around for a better place to ask, or open a thread in Q&A about it.

You could look for a thread with help on that in Chef Central too, or find an appropriate thread to ask in. :good:
https://forum.xda-developers.com/chef-central/android

Good luck!
 

dahawthorne

Senior Member
Nov 15, 2014
1,919
1,765
143
Brighton

Ph4

Member
Jun 26, 2016
40
3
8
Hi guys,
I have a question about this fantastic phone, I hope it isn't going to die...
Sometimes when I reboot it the battery drops, I'm meaning that after reboot the battery is nearly void, it happened with two different ROMs so it is hardware related,
Have I to change the battery?
Thanks in advance and sorry for bad English :)