Capture OTA URL - Samsung Galaxy Nexus

HI,
Is there a way to capture the URL when we eventually receive the official Jelly Bean OTA update?

creamop66 said:
HI,
Is there a way to capture the URL when we eventually receive the official Jelly Bean OTA update?
Click to expand...
Click to collapse
alogcat
When/if you see the notification that you have an update available -- stop everything and run the aLogcat app.
Send the log file to yourself via email (that's built into the app)
Look through the log file on your computer, searching for a URL
Try any URL's that you find on your computer's browser
When you find one that downloads a zip file, save the zip file to your computer
Shout from the rooftops, and share that URL

In addition to what zephiK said, once the OTA is installed, you can look in the log files in the /cache directory. Open them in a text editor, and the name of the file (ending in .zip) will be in one of them.

Related

Zip-attachment in email

I got an email with a zip-file, but the standard email client doesn't allow me to download or open zips, because they could possibly contain malware...
Is there an option somewhere in settings to disable that "feature"?
PS: I know that there are other programs, but I wanna use the stock one
Just in case somebody is searching for a solution for this problem:
With the last update to 4.2.2 the email-app can now download zip files. It's not forbidden, you just get a hint that the file may contain malware.
Now I'm just missing push.

[Q] OTA Download location?

Hi, my m8 just got an Lollipop OTA update. I'd like to extract the ota zip file from the phone, but i'm having hard time locating the file. Anybody know where the download location is?
http://forum.xda-developers.com/showpost.php?p=58523173&postcount=6
You can only have the OTA.zip if you're not yet install the update.
Hmm....it's already been updated, and can't find the file in Download folder. However, I can see the file in the phone's "Download" app. Can't see it in other file browsers though =P
adotkdotjh said:
Hmm....it's already been updated, and can't find the file in Download folder. However, I can see the file in the phone's "Download" app. Can't see it in other file browsers though =P
Click to expand...
Click to collapse
Then it's too late for you. The OTA.zip is deleted by the system after installation.
Just check this thread, maybe someone will upload the OTA.zip soon
http://forum.xda-developers.com/showthread.php?t=2694297
finally found android 6 sense 7 download location for the german, nonbranded version of the M8. path:
/data/data/com.android.providers.downloads/app_fota
Click to expand...
Click to collapse
for search purposes, filename is
OTA_M8_UL_M60_SENSE70_MR_HTC_Europe_6.12.401.4_R-4.16.401.13_release_464427.zip
Click to expand...
Click to collapse
don`t forget to activate root browser if you are using ES File Explorer, otherwise the folder will be empty
not:
/cache ..
/data/data/com.htc.updater/files
only works if you downloaded the ota files and then postponed installation!
/// german keywords: speicherort dateiname deutsch ota update

Lollipop ota URL capture help

EDIT:URL GRAB INST.
Ok so after some research and some advice. We have a way to grab the ota's url,this will give the ability to download to your pc.
There is one small pita in the mix. If you don't have the popup telling you to upgrade it's crazy hard to grab the url. Below i'll give super easy instruction's so more people can try to help out. Make sure USB debugging is checked and authorized
(If you run the log and then decide to hit software update if the popup telling you to download shows up that will work. if it just starts downloading it might not show to link. It hasn't for me at all, that's why I think we need to run log from popup.)
1.In your adb folder hold shift then right click mouse,select open command window here.
2. You will see this in cmd C:\adb> type this adb logcat > logcat.txt press enter. Now in your adb folder a log is being created in text form. You will not see the log running in cmd because it's writting it in txt.
3.Open the update popup and hit download.
4. In your txt file will be the ota's URL address. Open it with notepad++ and search for android.clients.google in one instance of that will be the URL we need.
5.Post the URL or your txt and I'll search it.
Newest adb/fastboot drivers below place in root of C:
2400258 this should be numbers.
norbarb said:
2400258 this should be numbers.
Click to expand...
Click to collapse
That's the call for galaxy s4 active KK. This one will be different.
You're not going to be able to get it out of /cache regardless. It has to be done via ADB. I've been working on this but having a lot of issues with Windows 8.1 not cooperating with me setting up tools to do this. What you need is to capture the URL link where the OTA is coming from then go to the URL on a browser and pull the file from there.
darkbots said:
That's the call for galaxy s4 active KK. This one will be different.
Click to expand...
Click to collapse
It was same on my S5 lollipop and Note 3 lollipop. So i assume they use same number for all updates.
norbarb said:
It was same on my S5 lollipop and Note 3 lollipop. So i assume they use same number for all updates.
Click to expand...
Click to collapse
Thanks man. I'll see if I can pull it using that number.
heXacode said:
You're not going to be able to get it out of /cache regardless. It has to be done via ADB. I've been working on this but having a lot of issues with Windows 8.1 not cooperating with me setting up tools to do this. What you need is to capture the URL link where the OTA is coming from then go to the URL on a browser and pull the file from there.
Click to expand...
Click to collapse
I'm still on window 7. I've never pulled by the url before. Do you mind explaining procedure. I already pulled the system to start deodex but I want the Ota also.
Edit. It looks like all I need to do is run a log while downloading it. From what I see the url will be in the log. Is this correct?
darkbots said:
I'm still on window 7. I've never pulled by the url before. Do you mind explaining procedure. I already pulled the system to start deodex but I want the Ota also.
Edit. It looks like all I need to do is run a log while downloading it. From what I see the url will be in the log. Is this correct?
Click to expand...
Click to collapse
Yes it'll be in the log.
Example:
http://ausdroid.net/howto/capture-ota-update/
Or you can use Alogcat from the Play Store.
big thanks
we will be thankful for your big efforts. do your best guys!!
are there any good news about the lollipop image? :crying:
It's not cooperating with me. I'm waiting to receive the Ota toast. Once that's done I can get a proper log. It's hard to catch the url when the damn phone just starts downloading. Once that happens the url is lost. I need to be able to have log running then hit download. If I try and hit check for updates,it just starts downloading. I don't have a chance to capture what I need. I've tried 6+times just running log and hitting check for update. It doesn't even tell me I have an update,it just starts the download. Hopefully it won't be much longer. If I don't get a toast note soon. I'll try the check button process again.
darkbots said:
It's not cooperating with me. I'm waiting to receive the Ota toast. Once that's done I can get a proper log. It's hard to catch the url when the damn phone just starts downloading. Once that happens the url is lost. I need to be able to have log running then hit download. If I try and hit check for updates,it just starts downloading. I don't have a chance to capture what I need. I've tried 6+times just running log and hitting check for update. It doesn't even tell me I have an update,it just starts the download. Hopefully it won't be much longer. If I don't get a toast note soon. I'll try the check button process again.
Click to expand...
Click to collapse
That's why I prefer ADB through command prompt. It'll read everything through there without interruption and stay on there once your phone is done downloading the OTA and getting ready to install.
heXacode said:
That's why I prefer ADB through command prompt. It'll read everything through there without interruption and stay on there once your phone is done downloading the OTA and getting ready to install.
Click to expand...
Click to collapse
That was my plan for today.I figured run log to txt something like adb logcat > ~/Desktop/logcat.txt Then running a search in notepad after its all done. That should get the url no matter what,or so I'm thinking.
darkbots said:
That was my plan for today.I figured run log to txt something like adb logcat > ~/Desktop/logcat.txt Then running a search in notepad after its all done. That should get the url no matter what,or so I'm thinking.
Click to expand...
Click to collapse
hopefully
OK guys here's the deal. I can't get the ota toast to pop up. My problem is consistent no matter how I approach it. So what we're going to do is see if we can't few more people trying to get it. I'm going to change the OP with exact instruction's. If you are seeing the popup telling you,you have an update that's what we need to make it happen.

Block Android System Update Notification?

How do I block the Android System Update notification telling me that the latest Android build is available? I can block all Google Play Service notifications, but will that block other notifications that I may want to see? Thanks!
Don't know the answer but I'd like to know as well. With rooted stock it's just a waste of time to have it download the updates and it's annoying to get that constant Notification.
I just blocked Google Play Services notifications for now. Hopefully I won't be blocking some other notifications that I actually want to see by doing this!
Rename /system/etc/security/otacerts.zip to otacerts.bak (or whatever you want really). You could just delete that file but that's a one-way street.
Without that file the updates can't be verified and you'll get no notifications and no background downloads.
If you have Xposed installed; you can use the Notify Clean module to just block that one notification from Google Play Services and still allow all other notifications from Google Play Services.
djmcnz said:
Rename /system/etc/security/otacerts.zip to otacerts.bak (or whatever you want really). You could just delete that file but that's a one-way street.
Without that file the updates can't be verified and you'll get no notifications and no background downloads.
Click to expand...
Click to collapse
What happens if it already downloaded one update package before renaming that file..?
It happened to my phone, I tried to flash it via FlashFire, didn't go through, now I just renamed the file, but I'm afraid that ~60MB of the update remained on my phone, and I wouldn't like that.
mironiko said:
What happens if it already downloaded one update package before renaming that file..?
It happened to my phone, I tried to flash it via FlashFire, didn't go through, now I just renamed the file, but I'm afraid that ~60MB of the update remained on my phone, and I wouldn't like that.
Click to expand...
Click to collapse
Either don't worry about it or find it in /cache and delete it.
Tried to find it in /cache, but it's already gone - I guess that it got erased after the FlashFire flashing attempt, and it's still not downloaded once more, so I guess it won't ever be downloaded.
Thanks for Your help.
Explaination
djmcnz said:
Rename /system/etc/security/otacerts.zip to otacerts.bak (or whatever you want really). You could just delete that file but that's a one-way street.
Without that file the updates can't be verified and you'll get no notifications and no background downloads.
Click to expand...
Click to collapse
I'm new to these things I'd appreciate it if you'd explain a few things about this method, I'm not going to update this months patch because I've read few post where people have faced a problem and they had to get phone replaced since I doubt that i'd get a another phone from google so i'm not updating this month's patch.
I'm running everything stock
is there any possibility for getting some kind of error?
What if I want to start getting updates notifications as usual?
Cheesejam said:
I just blocked Google Play Services notifications for now. Hopefully I won't be blocking some other notifications that I actually want to see by doing this!
Click to expand...
Click to collapse
https://googleappsupdates.blogspot.com/2016/08/notifying-android-users-natively-when.html
Definately blocking this and other important stuff..
shaheerabbasi1122 said:
I'm running everything stock
is there any possibility for getting some kind of error?
What if I want to start getting updates notifications as usual?
Click to expand...
Click to collapse
You can't do this if you're stock, you need root. And it's unnecessary if you're stock as you should accept the updates. If there's a serious problem with an update Google will replace it so perhaps just wait a few weeks.
If you're rooted and can't accept stock updates this is a perfectly safe method. OTACerts is short for "Over The Air Certificates" and contains code to verify the authenticity of a remote update, if the certificates in that file and update manifest don't match then the update won't be fetched. Renaming that file prevents this validation so the update is considered invalid and not downloaded. You can revert back by renaming the file to the original, restoring the stock access modes (permissions) and rebooting.
HebeGuess said:
https://googleappsupdates.blogspot.com/2016/08/notifying-android-users-natively-when.html
Definately blocking this and other important stuff..
Click to expand...
Click to collapse
Yes, disabling all Play Services notifications is a very bad idea.
djmcnz said:
Rename /system/etc/security/otacerts.zip to otacerts.bak (or whatever you want really). You could just delete that file but that's a one-way street.
Without that file the updates can't be verified and you'll get no notifications and no background downloads.
Click to expand...
Click to collapse
The methods I found include (some discussed here) disabling Play Services/Framework notification, disabling the System Update Service within Play Services, and this one--renaming the OTA Cert.
Rationally, renaming the OTA Cert is the best solution. I agree that the first two I listed can have undesirable results. Thank you @djmcnz for the info.
I did find, though, that after renaming the cert, I still have to "toggle" the Google Play Services notification to "Block All" in order to remove the persistent Android N update notice. After that, I simply toggled back to normal.
Edit: Well, the joy was temporary. Renaming the OTA cert did not keep away the notification for long. It returned....
Yes, I've also noticed this method is no longer persistent. It does work for the main notification but the reminder notification now breaks through occasionally (but not always).
I might look into it further but no promises. Will post back here if I learn anything new.
djmcnz said:
Yes, I've also noticed this method is no longer persistent. It does work for the main notification but the reminder notification now breaks through occasionally (but not always).
I might look into it further but no promises. Will post back here if I learn anything new.
Click to expand...
Click to collapse
Renaming the OTA cert definitely used to work, but now it doesn't anymore--otacerts.zip doesn't even exist for me anymore.
My Nexus 5x keeps trying to download Android 7.0 and it is KILLING my data. Android OS has used 10 GB of data this month (I assume this has to be from trying to download the update over and over) and I don't know how to get it to stop. At the very least, I want to make it download over WiFi only. Any ideas?
When I was still on ver 6, I had otacerts renamed and I didn't get any OTA notifications. However, when the Nougat OTA was available it started to notify me which was a bit of a surprise.
I ended upgrading (Need time to have available to make that change) and have again renamed the otacerts but have little confidence it will block OTA notices now.
krelvinaz said:
When I was still on ver 6, I had otacerts renamed and I didn't get any OTA notifications. However, when the Nougat OTA was available it started to notify me which was a bit of a surprise.
I ended upgrading (Need time to have available to make that change) and have again renamed the otacerts but have little confidence it will block OTA notices now.
Click to expand...
Click to collapse
Ya, I also experienced this. I guess I am just going to have to update too.
In /system/app or /system/priv-app or /system/secure/app , the roms haves apks, some apks in there, are responsible to connect , notify, and download the ota updates.
Don't touch the ota-certs.zip.
Of course these ota-certs are not only for system updates, but internet navigation in general too.
You need patience, search apk by apk on /system dirs, untill find named apks like: ota-updater.apk upgrader.apk, botaSettings.apk fotaUpgrader.apk, sytemUpdater.apk etc...
---------- Post added at 01:06 AM ---------- Previous post was at 01:05 AM ----------
After found relative ota updater .apk, you don't need delete, you can rename to otaX.ap and the updaters and their crappy notifications, evaporates .
Dethfull said:
In /system/app or /system/priv-app or /system/secure/app , the roms haves apks, some apks in there, are responsible to connect , notify, and download the ota updates.
Don't touch the ota-certs.zip.
Of course these ota-certs are not only for system updates, but internet navigation in general too.
You need patience, search apk by apk on /system dirs, untill find named apks like: ota-updater.apk upgrader.apk, botaSettings.apk fotaUpgrader.apk, sytemUpdater.apk etc...
After found relative ota updater .apk, you don't need delete, you can rename to otaX.ap and the updaters and their crappy notifications, evaporates .
Click to expand...
Click to collapse
No, not really. Fishing for an app to rename/delete isn't a good strategy and otacerts is only used for "Over The Air" (OTA) updates, not general browsing.
For those faced with constant downloads my recommendation at this stage, as painful as it is, is to block the download servers in your hosts file. I can't provide explicit instructions because I don't know the servers but:
1. Identify the servers - there will likely be more than one - start the download and check logcat that will tell you which current server is being used
2. Add that server to your hosts file (/system/etc/hosts) either manually or some ad blockers allow manual entries
3. Reboot
You may still get the notification occasionally but the attempt to download from the blocked server(s) will fail. The limitation of this method is that you won't know if you've blocked all the servers and will need to monitor. It's not perfect, I'm not suggesting it's even good but it is an option.
Edit: start by blocking this and see what happens - http://android.clients.google.com/ or if you want to be more narrow - http://android.clients.google.com/packages/ota/
I like fish apps, scan their funtions, because satan is darkness.
Someday i touched the otacerts, from one J2ME Device, and some another BLACKBERRY device and finally any androed device too.
The WEB POOL WAS REFUSING CONNECTION.
A question:
J2ME devices does not receive OTA UPDATES,
Why i got nor connection after TOCH THE OTA CERTS??
Like our friend said:
"I can't detect the servers"
O tried to search too
Without sucess
Our /system/ dir haves apks
And i agree.
Deleting these apks that are responsible for these lies
Is the best way.
Sent from SomeFon

Where does the phone download updates?

My Sprint HTC 10 is on a stock rom, but has a custom recovery. I read about it and was told that I can possibly try flashing the update.zip from the OTA update using TWRP to install it without having to do through the mess of flashing stock recovery, relocking, and possibly having my phone format itself from all this. Issue is, I can't figure out where my phone downloaded the update.
I tried reading this post:
https://forum.xda-developers.com/htc-10/how-to/guide-ota-tricks-extracting-manual-t3367449
But the app_fota folder mentioned in that post does not exist.
Any idea where I can find the update my phone downloaded so I can try to manually flash it?
From the link you mentioned, try doing the second method, using the log cat etc.
I don't have root on the stock rom to do that though. TWRP itself is the only root access I have.
you dont need root from what I remember. I have done it in the past using command prompt, it just uses adb. Not the Shell or superuser. It saves the output to a text file and from there, you can CTRL+F the word OTA or FOTA to get the link.
Oh, so the idea is to see where it downloaded the update from and download it directly using my PC?
Can I just download a log viewing app on the phone itself then?
Basically yes. I imagine you can find an app, its just easier to scroll through and find that information using a computer, I find. You dont want the log running too long, otherwise it will have tonnes of information. Even just starting the log, clicking "check for updates" and then stopping it collects quite a lot of data.
But once you have the OTA file, which will look something like this in the log file:
OTA_PERFUME_UHL_M60_SENSE80GP_hTC_Asia_TW_1.30.709.1_R-1.21.709.2_R2_release_477314i6fyk64xlvy886ba.zip
You just add it to this link: http://fotadl-az.htc.com/secure/ so that it looks like this
http://fotadl-az.htc.com/secure/OTA...1.709.2_R2_release_477314i6fyk64xlvy886ba.zip
and you can download it on the computer.
I still can't find where the update was downloaded, the logcat instructions seem to just point to the same folder.

Categories

Resources