[Q] downloading apks in webview - Web App Development

my cordova/phonegap app automatically checks for updates. when it finds one, a window.open() in javascript brings up an update page. this page contains a button to download the latest APK. When the user clicks the install button, nothing happens. The install button is a form submit that attempts to download the APK through the action URL. This bug occurs on android 4 and 5. is there something about the webview I should know in order to enable submit buttons or downloading APKs? or something else I'm missing? also, the link is an HTTP link--no ssl is being used, so it's not a cert issue.

XDASW987 said:
my cordova/phonegap app automatically checks for updates. when it finds one, a window.open() in javascript brings up an update page. this page contains a button to download the latest APK. When the user clicks the install button, nothing happens. The install button is a form submit that attempts to download the APK through the action URL. This bug occurs on android 4 and 5. is there something about the webview I should know in order to enable submit buttons or downloading APKs? or something else I'm missing? also, the link is an HTTP link--no ssl is being used, so it's not a cert issue.
Click to expand...
Click to collapse
Can you display the code for the form?
Perhaps do a check on the final url being downloaded (the file) -- and if you use chrome, make sure your settings are not blocking downloads. It can honestly only be one of the two for the "most part" .
Are you just downloading the file, or are you trying to get it to actually install and update automatically?
Unfortunately, if option B, due to security reasons, google and MOST browsers block this from happening .

Related

Application Installation error -- "Unknown reason -110"

Hi All,
First time poster so please be gentle -- I did search for this issue on google and within the forums first.
This is the first smartphone I've ever purchased.
My Inc2 is non rooted and non modded.
It has been working w/o issue since I bought it about 6 weeks ago until this weekend when it would no longer install updates or new apps from either the Google Android or Amazon Android markets.
Note that in both markets the app or update downloads w/o issue -- the problem happens when it attempts into install what was downloaded.
The status bar at the top reads "Installation of app X unsuccessful"
Downloads/Updates from the Google Android market result in an error message within the notification bar. Clicking on it opens a dialog box with Installation error "Unknown reason -110"
When downloading/updating from the Amazon Android market the error is less specific, I click Install, the standard screen opens confirming I want to install the app explaining what it will need access to. I click the Install button at the bottom of the page which results in "Application not installed".
Note that this happens with all app downloads or updates.
The steps I have taken so far:
1) restarting the phone
2) clearing cache/data from Applications/Android Market application (and restarting again)
3) clicking on button to remove all updates to Android Market application (and restarting again) --
Interestingly the version listed under the Market app is 2.3.4 even though it has reverted to an earlier version -- it looks very different.
On a side note: since this did not fix the problem, how do I get the newest Market version again?
4) unmounted SD card (and restarting again) -- since this did not fix the issue, I remounted the SD card
5) Used file manager to navigate to directory Download and look for files named: XX.apk, where XX is 1 to 20. -- but did not find any such files.
6) Per HTC support:
First, open the phone dialer and enter in *#*#checkin#*#* [*#*#2432546#*#*]. The number will disappear and your should see a notification of either Checkin Succeeded or Checkin Failed. If it succeeded, then new updates should be detected for your device and the application.
I received "checkin succeeded" notification
[Can someone explain to me what entering the combination above does --
what is the phone checking in with?]
Next, try moving any applications you have on the SD card to your phone's internal memory. This can be done by going to: Home> Menu> Settings> Applications> Manage Applications> On SD. Tap each program and then tap Move to Phone. Once this is done, check for updates again.
I received "Failed to move application" notification for each application on my
SD card that I attempted to move to Internal Memory
Finally, I recommend clearing the data from the Google Services Framework applications. In the Manage Applications Screen, go to: All> Google Services Framework and then tap Clear data. Check for updates once again.
Followed the direction above but have not received any updates by navigating
to Settings/Software update and clicking Check new.
For whatever it is worth clicking Status shows that my last update has name
HTC_ADR6350_LargeUpdate_3.02.605.1 with Status of Update Successful,
code of 200, date of 09/19/11 and time of 07:55PM.
7) A (perhaps) related development is that as of tonight, my Inc2 is no longer listed as one of my devices in the Google Android Market when I navigate the web page on my computer. Anyone know how to get this resolved?
Thanks in advance for anyone willing to help.
---
xdadevmt said:
Hi All,
First time poster so please be gentle -- I did search for this issue on google and within the forums first.
My Inc2 is non rooted and non modded.
It has been working w/o issue since I bought it about 6 weeks ago until this weekend when it would not longer install updates or new apps from either the Google Android or Amazon Android markets.
Note that in both markets the app or update downloads w/o issue -- the problem happens when it attempts into install what was downloaded.
The status bar at the top reads "Installation of app X unsuccessful"
Downloads/Updates from the Google Android market result in an error message within the notification bar. Clicking on it opens a dialog box with Installation error "Unknown reason -110"
When downloading/updating from the Amazon Android market the error is less specific, I click Install, the standard screen opens confirming I want to install the app explaining what it will need access to. I click the Install button at the bottom of the page which results in "Application not installed".
Note that this happens with all app downloads or updates.
The steps I have taken so far:
1) restarting the phone
2) clearing cache/data from Applications/Android Market application (and restarting again)
3) clicking on button to remove all updates to Android Market application (and restarting again) --
On a side note: since this did not fix the problem, how do I get the newest Market version again?
4) unmounted SD card (and restarting again) -- since this did not fix the issue, I remounted the SD card
5) Used file manager to navigate to directory Download and look for files named: XX.apk, where XX is 1 to 20. -- but did not find any such files.
Per HTC support:
First, open the phone dialer and enter in *#*#checkin#*#* [*#*#2432546#*#*]. The number will disappear and your should see a notification of either Checkin Succeeded or Checkin Failed. If it succeeded, then new updates should be detected for your device and the application.
I received "checkin succeeded" notification
Next, try moving any applications you have on the SD card to your phone's internal memory. This can be done by going to: Home> Menu> Settings> Applications> Manage Applications> On SD. Tap each program and then tap Move to Phone. Once this is done, check for updates again.
I received "Failed to move application" notification for each application on my
SD card that I attempted to move to Internal Memory
Finally, I recommend clearing the data from the Google Services Framework applications. In the Manage Applications Screen, go to: All> Google Services Framework and then tap Clear data. Check for updates once again.
Follow the direction above but have not received any updates by navigating to
An additional development is that as of about 10:00pm tonight, my Incredible 2 no longer shows as one of my devices when I navigate to the Google Android Market from my pc -- could this be related?
Click to expand...
Click to collapse
Try clearing data in apps settings and reboot. How many apps are installed? When was the last time you deleted all your messaging threads and call logs?
Sent from my Sensation using xda premium
Joshua,
Can you advise on the click path to accomplish the "clearing data in apps settings" process.
When I click Settings/Applications/Manage Applications, I just see my apps listed.
I do not use sms or text messages but I have never deleted all my messaging threads and call logs (again, I've had the phone about 6 weeks) -- I will do a quick search on the forum to learn how to take those steps.
Thanks for your help.
xdadevmt said:
Joshua,
Can you advise on the click path to accomplish the "clearing data in apps settings" process.
When I click Settings/Applications/Manage Applications, I just see my apps listed.
I do not use sms or text messages but I have never deleted all my messaging threads and call logs (again, I've had the phone about 6 weeks) -- I will do a quick search on the forum to learn how to take those steps.
Thanks for your help.
Click to expand...
Click to collapse
You're in the right place, just click on market and choose clear data. Wiping messaging and call logs, just go into the app and hit menu.
Sent from my Sensation using xda premium
When I navigate to the Market App the "Clear data" button is grayed out.
Accessing the Phone app allows me to Clear data and I did -- can you help me with "hit menu" reference you made?
Also, I'm not sure what is normal but when I go into the Market Updater app, all the buttons are grayed out.
Thanks again.
xdadevmt said:
When I navigate to the Market App the "Clear data" button is grayed out.
Accessing the Phone app allows me to Clear data and I did -- can you help me with "hit menu" reference you made?
Also, I'm not sure what is normal but when I go into the Market Updater app, all the buttons are grayed out.
Thanks again.
Click to expand...
Click to collapse
Not the market updater app, the market app. They are different apps. It should be under the ALL APPS tab in applications settings.
"Hit menu" refers to the physical (or capacitive) menu button on the phone itself.
So you used the phone app to clear the call logs? Go to call logs and press the menu button on the phone.
Understood on the market updater app being separate from the market app -- just wanted to post an observation about the market updater as I wondered if maybe that wasn't the way it was supposed to look (all buttons grayed out).
I went to Settings/Applications/Manage Applications, selected the All tab, scrolled to the Phone app and clicked the Clear data button.
Upon doing so I received a Change Mode message that a SIM card was detected and the device was switching to global mode.
Do I want to stay in global mode if I only need CDMA?
Then navigated to Settings/Call -- but I was unable to find mention of call logs and pressing the physical menu button did not bring up anything.
Sorry if I'm being dense.
Not sure if this is related to any of the steps you have recommended but my Incredible 2 is now listed again in the Google Android market when I browse to it via my computer. I'll take any good news.
Thanks
xdadevmt said:
Understood on the market updater app being separate from the market app -- just wanted to post an observation about the market updater as I wondered if maybe that wasn't the way it was supposed to look (all buttons grayed out).
I went to Settings/Applications/Manage Applications, selected the All tab, scrolled to the Phone app and clicked the Clear data button.
Upon doing so I received a Change Mode message that a SIM card was detected and the device was switching to global mode.
Do I want to stay in global mode if I only need CDMA?
Then navigated to Settings/Call -- but I was unable to find mention of call logs and pressing the physical menu button did not bring up anything.
Sorry if I'm being dense.
Not sure if this is related to any of the steps you have recommended but my Incredible 2 is now listed again in the Google Android market when I browse to it via my computer. I'll take any good news.
Thanks
Click to expand...
Click to collapse
Nope, go into your call log and press menu. Open the phone app as if you're going to make a call, go to your call history, hit menu and delete all.
When you were in the all tab, that's where you clear data for market.
Sent from my Sensation using xda premium
Thanks for the additional explanation -- totally makes sense now -- Call history is now empty.
Have done the same for messages.
Now rebooting the phone...
Tested downloading an app and unfortunately got the same -110 error.
Do you have any ideas regarding these questions I posted above?
Interestingly the version listed under the Market app is 2.3.4 even though it has reverted to an earlier version -- it looks very different.
On a side note: since this did not fix the problem, how do I get the newest Market version again?
... enter in *#*#checkin#*#* [*#*#2432546#*#*]. The number will disappear and your should see a notification of either Checkin Succeeded or Checkin Failed. If it succeeded, then new updates should be detected for your device and the application.
I received "checkin succeeded" notification
Can someone explain to me what entering the combination above does --
what is the phone checking in with?
If I will only be using my phone in the United States -- is it better to leave from phone in World or CDMA mode?
Thanks again.
cdma mode only
Can anyone help with these three still unresolved issues?
1)
Downloads/Updates from the Google Android market result in an error message within the notification bar. Clicking on it opens a dialog box with Installation error "Unknown reason -110"
2)
The steps I have taken so far:
1) restarting the phone
2) clearing cache/data from Applications/Android Market application (and restarting again)
3) clicking on button to remove all updates to Android Market application (and restarting again) --
Note that additional steps have been tried based on suggestions in this thread but nothing has worked so far.
Interestingly the version listed under the Market app is 2.3.4 even though it has reverted to an earlier version -- it looks very different.
On a side note: since this did not fix the problem, how do I get the newest Market version again?
3)
Per HTC support:
First, open the phone dialer and enter in *#*#checkin#*#* [*#*#2432546#*#*]. The number will disappear and your should see a notification of either Checkin Succeeded or Checkin Failed. If it succeeded, then new updates should be detected for your device and the application.
I received "checkin succeeded" notification
Can someone explain to me what entering the combination above does --
what is the phone checking in with?
Would be grateful for any additional help.
Thanks
Android customer support indicated that they had received multiple reports of this issue but did not have a fix yet.
Worked with HTC support and ended up having to do a factory reset which fixed the problem.
Thanks to everyone for your help.

Downloading apk files directly from Google Play

This isn't my tool, but I thought I'd give folks the heads up for those who may not be aware of it.
I figured there had to be an easier method of getting apk packages to the FTV without installing them on a separate device first and then pulling the package from it.
APK Downloader
Just put the URL of the package into the field and it will generate a link for you to download directly. No need for your Google ID or anything.
mkhopper said:
This isn't my tool, but I thought I'd give folks the heads up for those who may not be aware of it.
I figured there had to be an easier method of getting apk packages to the FTV without installing them on a separate device first and then pulling the package from it.
APK Downloader
Just put the URL of the package into the field and it will generate a link for you to download directly. No need for your Google ID or anything.
Click to expand...
Click to collapse
Interestingly enough I came across this same site when looking for ways to get apk files to try on my FireTV. They have always hit their download limit when I've tried a direct download, however if that happens their Chrome extention works well and is safe (although if you are like be and use OTP with your Google account, you will need to create an application specific password, which is actually a good idea in terms of safety). Once the extension is configured correctly there will be an additional icon in your address bar when you visit play.google.com that will let you download the apk of whatever free Google App Store page you are on.

Reset ZenFone 2. Now asking to verify the account but getting "disallowed_useragent"

Reset ZenFone 2. Now asking to verify the account but getting "disallowed_useragent"
I was having touch-screen issues so I reset my phone. When I boot now I get prompted for language, wi-fi, etc. Next screen says:
Verify your account
This device was reset. To continue, sign in with a Google Account that was previously synced on this device.
Click to expand...
Click to collapse
The problem is that there's no place to enter any information, just a button "Verify account". When I press the button I get a Google error:
403. That's an error.
Error: disallowed_useragent
Google can't sign you in safely inside this app. You can use Google sign-in by visiting this app's website in a browser like Safari or Chrome.
Click to expand...
Click to collapse
...but I don't know the app and I can't do anything else on the phone. Can anyone provide an answer on how to fix it?
UPDATE:
So the OS version was really old. I went through a series of updates by side-loading the ROMs from the ASUS support site. After 3 or 4 upgrades I had a completely different experience and it let me verify my account. All seems well for now.
Just a couple of notes in case someone else has issues:
- Using Fedora (linux) desktop I needed to use "sudo ./adb devices" to be able to start the server and perform the side-load. Without "sudo" I was receiving an error about permissions.
- I performed the upgrades starting with the kernel version that was already on the phone and then upgraded to the next release each time after booting to each upgrade. I did this because I received an error on one upgrade saying I couldn't go there directly.
Peace.
I have the exact same issue with a phone that I'm trying to setup for my kid. Where did you get your firmwares for this phone?
Start by going here: https://icr-am.asus.com/webchat/icr...634.649586617.1546133606-337662955.1546133606
Then select "Download Center" from the chat window pane. Select your specific phone model. Select BIOS & FIRMWARE. Be sure to select the correct version for your phone (WW, CN, JP, etc.)
Good luck!

vivaldi / chromium / bromite browsers - cannot tap download in dialogue box

Using vivaldi as my browser. When I download a file and the location dialogue box is presented I cannot tap download. Cancel works, just not download. With chromium browsers the first file you download still presents the location box even with don't ask location ticked in settings. Chrome is OK as by default files download to download.
Tried with bromite, chromium and the both have the issue on my S20. Firefox is OK and my old pixel3 was fine
Anyone else confirm this?

Question Security message when running an app

Hello
I installed the Marriott app this morning, and when I go to run it, i get that security message along the bottom third of the screen, and the app shuts down.
What is causing that?
It is detecting root/magisk.
Add Marriott to Zygisk hide list, then clear Marriott storage&cache, force close and reopen.
I downloaded the app and installed it to test. If you don't clear the app cache (and only force close and reopen) it will not work. You must clear that before opening again
Thank you App
I followed your instructions, but I still get that message.
Should I have rebooted after adding to the list??
nabril15 said:
Thank you App
I followed your instructions, but I still get that message.
Should I have rebooted after adding to the list??
Click to expand...
Click to collapse
No. That's not necessary. The following 3 steps is all you need
I cleared storage, force closed, and run it.
I get that initial welcome screen of the app, and before I can press on the SIGN IN button, it closes forcefully.
This happens no matter how many times I repeat the steps.
nabril15 said:
I cleared storage, force closed, and run it.
I get that initial welcome screen of the app, and before I can press on the SIGN IN button, it closes forcefully.
This happens no matter how many times I repeat the steps.
Click to expand...
Click to collapse
What magisk version and modules are you using?
Also, what Android/oos version are you using?
Do you have device certification in play store? Or what's your YASNAC result?
nabril15 said:
I cleared storage, force closed, and run it.
I get that initial welcome screen of the app, and before I can press on the SIGN IN button, it closes forcefully.
This happens no matter how many times I repeat the steps.
Click to expand...
Click to collapse
After some more poking around, that app detects everything. I attempted to monitor the https traffic to see what contacts are made at app-boot. It detects that I'm monitoring traffic. I attempted to use frida to bypass the ssl pinning so I can monitor traffic. It detects that I'm using frida. All of those cause a close condition.
This could mean, if it detects anything abnormal, you're gonna get force closed. The whole toast not showing up is annoying. You might be able to adjust your font/text size for the system in Accessibility, to see the full text.
If you have busybox or anything else you can think of that might be detected, try disabling them or any questionable modules like lsposed, restart, then see if you can open the app.
I looked inside the app and don't see some of the stuff as strings, and existing strings are already using some reflected values in another index. It appears to use some kind of library that is checking for root, certification, ssl certificate pins, frida, probably xposed and so on. Then retrieving the response from an api.
My thought was to repackage the apk without root checks for you but if they're doing that much for security, there's almost no chance I will be able to launch the app with self signing for the apk.
Having the full toast response would be helpful here
Wow App.. How detailed, you are.
Here are my modules plus Universal Safetynet fix. I'm running a13 f.17 build.
I'm not sure how to proceed. I installed it on my wife's phone and used it..
Here's a reddit thread with someone else fighting with the Marriott Bonvoy app.
old.reddit.com/r/Magisk/comments/yf8gyu/help_hotel_app_detecting_root/
Its quite ridiculous that a Hotel app is so restrictive and difficult.
I just (briefly) tried running the app inside Island, but still got the toast nags / close.
Interestingly I get one of two nags "you're on an unsecure network" or "we've detected magisk, etc)
I wish that I had twrp to blame, but I don't have it installed.
Hey there,
I did some looking at older versions of the app (apkpure has them). On my phone (Android 9, Magisk 23) the last version that will run (using MagiskHide with all the 3 boxes ticked for the marriott app), is 10.4.0.
Marriott Bonvoy™ 10.4.0 (Android 9.0+) APK Download by Marriott International - APKMirror
Marriott Bonvoy™ 10.4.0 (Android 9.0+) APK Download by Marriott International - APKMirror Free and safe Android APK downloads
www.apkmirror.com
Version 10.5.0 starts giving me nags.
(Sometimes it is just easier to use an older version of an app, than fighting to get the very latest to work!)
Mine is 10.13.1. not sure what got updated. I usually don't want to get stuck with old version, so I'll just use the website to make reservation and redemption. Yikes
I heard Magisk Delta by HuskyG could hide it from detection. Has anyone been brave enough to try? Well, I tried and it didn't work. I tried the whitelist mode by leaving Marriott out of the SuList and many other banking apps too. But it still detects root. Marriott app version 10.13.1. Older version say 10.12.0 and below should survive.

Categories

Resources