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
51f76cb2
Commit
51f76cb2
authored
Feb 03, 2020
by
Evan W. Patton
Committed by
Jeffrey Schiller
Feb 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all known sensitive permissions in PlayApp
Change-Id: I7e9c1f665c212d9dc363ad98a010c0b5e5b96bb3
parent
b4bbaa77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java
...rver/src/com/google/appinventor/buildserver/Compiler.java
+10
-0
No files found.
appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java
View file @
51f76cb2
...
@@ -897,11 +897,21 @@ public final class Compiler {
...
@@ -897,11 +897,21 @@ public final class Compiler {
// Remove Google's Forbidden Permissions
// Remove Google's Forbidden Permissions
// This code is crude because we had to do this on short notice
// This code is crude because we had to do this on short notice
// List of permissions taken from
// https://support.google.com/googleplay/android-developer/answer/9047303#intended
if
(
isForCompanion
&&
!
includeDangerousPermissions
)
{
if
(
isForCompanion
&&
!
includeDangerousPermissions
)
{
// Default SMS handler
permissions
.
remove
(
"android.permission.READ_SMS"
);
permissions
.
remove
(
"android.permission.RECEIVE_MMS"
);
permissions
.
remove
(
"android.permission.RECEIVE_SMS"
);
permissions
.
remove
(
"android.permission.RECEIVE_SMS"
);
permissions
.
remove
(
"android.permission.RECEIVE_WAP_PUSH"
);
permissions
.
remove
(
"android.permission.SEND_SMS"
);
permissions
.
remove
(
"android.permission.SEND_SMS"
);
permissions
.
remove
(
"android.permission.WRITE_SMS"
);
// Default Phone handler
permissions
.
remove
(
"android.permission.PROCESS_OUTGOING_CALLS"
);
permissions
.
remove
(
"android.permission.PROCESS_OUTGOING_CALLS"
);
permissions
.
remove
(
"android.permission.CALL_PHONE"
);
permissions
.
remove
(
"android.permission.CALL_PHONE"
);
permissions
.
remove
(
"android.permission.READ_CALL_LOG"
);
permissions
.
remove
(
"android.permission.WRITE_CALL_LOG"
);
}
}
for
(
String
permission
:
permissions
)
{
for
(
String
permission
:
permissions
)
{
...
...
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