Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
96237457
Commit
96237457
authored
May 22, 2019
by
Evan W. Patton
Committed by
Jeffrey Schiller
May 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle compiled app installation via browser
Change-Id: Ia72226088534933b61021100a990fc74979c1d5e
parent
20ac639f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
appinventor/appengine/src/com/google/appinventor/server/BuildOutputServlet.java
...src/com/google/appinventor/server/BuildOutputServlet.java
+10
-0
appinventor/components/src/com/google/appinventor/components/runtime/PhoneStatus.java
...om/google/appinventor/components/runtime/PhoneStatus.java
+1
-1
No files found.
appinventor/appengine/src/com/google/appinventor/server/BuildOutputServlet.java
View file @
96237457
...
...
@@ -55,6 +55,16 @@ public class BuildOutputServlet extends OdeServlet {
// Set a default http header to avoid security vulnerabilities.
CACHE_HEADERS
.
setNotCacheable
(
resp
);
resp
.
setContentType
(
CONTENT_TYPE
);
if
(
"store=1"
.
equals
(
req
.
getQueryString
()))
{
// Play Store companion adds this for Chrome to
// do the right thing w.r.t. the download
String
body
=
"<!DOCTYPE html><html><head><meta http-equiv=\"refresh\" content=\"0; url="
+
req
.
getRequestURI
()
+
"\" /></head><body></body></html>"
;
resp
.
setContentLength
(
body
.
length
());
ServletOutputStream
os
=
resp
.
getOutputStream
();
os
.
write
(
body
.
getBytes
());
os
.
close
();
return
;
}
RawFile
downloadableFile
;
...
...
appinventor/components/src/com/google/appinventor/components/runtime/PhoneStatus.java
View file @
96237457
...
...
@@ -249,7 +249,7 @@ public class PhoneStatus extends AndroidNonvisibleComponent implements Component
m
.
invoke
(
o
,
url
);
}
catch
(
Exception
e
)
{
// Fall back to using the browser
Uri
uri
=
Uri
.
parse
(
url
);
Uri
uri
=
Uri
.
parse
(
url
+
"?store=1"
);
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
).
setData
(
uri
);
form
.
startActivity
(
intent
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment