I've been looking for information on how to either: a) stop notification about stock OTA updates, and/or b) be able to choose not to install the updates.
Nothing was able to say where the OTA updates get downloaded. I'm not 100% certain I do, but I wanted to share what I've got so far.
I did an "ls -alR" from the root of my device in a Terminal session, and sent that to a file. This file contained a listing of every file on the device. Between sorting this in Excel, and using a text editor to find stuff, I limited my search for files of around 6.8MB in size (for the November 2015 update; it said the size in the system screen where you can choose to reboot & install)). Out of all the files around that size, the one that stood out was:
/data/app/com.google.android.apps.enterprise.cpanel-1/base.apk (6,709,676 bytes)
You'll need a root explorer to see this as the /data/app directory is owned by "system".
I wanted to see if I could get the system to think it needed to download the update again, so I renamed the file there to "base.apk-save". Well, the system kept thinking the update was properly downloaded and available to install, so I went for it and said "Reboot & Install".
Since I have TWRP on my Nexus 5X, the reboot ended up in TWRP. I simply rebooted into system, and then went back to System Updates.
The notification saying that "the update is ready for install" was gone. I checked for available updates and was told I was up to date! I went to the "About phone" screen to check the "Android security patch level", and it said "October 1, 2015".
So, the November update was not applied, since the security patch level still said October. The system thinks I'm up to date even though the base.apk was still renamed to base.apk-save.
The last thing I tried was to rename the base.apk-save file back to its original name and Check for Update. Nothing.
So, I'm not 100% positive that the OTA update gets downloaded to /data/app/com.google.android.apps.enterprise.cpanel-1/, but I think it does. We'll see if I can replicate this next month.
FWIW.
Nothing was able to say where the OTA updates get downloaded. I'm not 100% certain I do, but I wanted to share what I've got so far.
I did an "ls -alR" from the root of my device in a Terminal session, and sent that to a file. This file contained a listing of every file on the device. Between sorting this in Excel, and using a text editor to find stuff, I limited my search for files of around 6.8MB in size (for the November 2015 update; it said the size in the system screen where you can choose to reboot & install)). Out of all the files around that size, the one that stood out was:
/data/app/com.google.android.apps.enterprise.cpanel-1/base.apk (6,709,676 bytes)
You'll need a root explorer to see this as the /data/app directory is owned by "system".
I wanted to see if I could get the system to think it needed to download the update again, so I renamed the file there to "base.apk-save". Well, the system kept thinking the update was properly downloaded and available to install, so I went for it and said "Reboot & Install".
Since I have TWRP on my Nexus 5X, the reboot ended up in TWRP. I simply rebooted into system, and then went back to System Updates.
The notification saying that "the update is ready for install" was gone. I checked for available updates and was told I was up to date! I went to the "About phone" screen to check the "Android security patch level", and it said "October 1, 2015".
So, the November update was not applied, since the security patch level still said October. The system thinks I'm up to date even though the base.apk was still renamed to base.apk-save.
The last thing I tried was to rename the base.apk-save file back to its original name and Check for Update. Nothing.
So, I'm not 100% positive that the OTA update gets downloaded to /data/app/com.google.android.apps.enterprise.cpanel-1/, but I think it does. We'll see if I can replicate this next month.
FWIW.