Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
ca9056eb
Commit
ca9056eb
authored
5 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Use updatable sysprop to for enabling APEX mgmt" into qt-dev
parents
ec554bdd
2ce84341
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Android.bp
+2
-1
2 additions, 1 deletion
Android.bp
services/core/java/com/android/server/pm/ApexManager.java
+2
-5
2 additions, 5 deletions
services/core/java/com/android/server/pm/ApexManager.java
with
4 additions
and
6 deletions
Android.bp
+
2
−
1
View file @
ca9056eb
...
...
@@ -687,6 +687,7 @@ java_defaults {
"core/java/com/android/server/DropboxLogTags.logtags",
"core/java/org/chromium/arc/EventLogTags.logtags",
":apex-properties",
":platform-properties",
":framework-statslog-gen",
...
...
@@ -1834,4 +1835,4 @@ aidl_mapping {
name: "framework-aidl-mappings",
srcs: [":framework-defaults"],
output: "framework-aidl-mappings.txt"
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
services/core/java/com/android/server/pm/ApexManager.java
+
2
−
5
View file @
ca9056eb
...
...
@@ -33,6 +33,7 @@ import android.content.pm.PackageParser.PackageParserException;
import
android.os.RemoteException
;
import
android.os.ServiceManager
;
import
android.os.ServiceManager.ServiceNotFoundException
;
import
android.sysprop.ApexProperties
;
import
android.util.Slog
;
import
com.android.internal.annotations.GuardedBy
;
...
...
@@ -237,11 +238,7 @@ class ApexManager {
* @return true if APEX packages can be managed on this device, false otherwise.
*/
boolean
isApexSupported
()
{
populateActivePackagesCacheIfNeeded
();
// There is no system-wide property available to check if APEX are flattened and hence can't
// be updated. In absence of such property, we assume that if we didn't index APEX packages
// since they were flattened, no APEX management should be possible.
return
!
mActivePackagesCache
.
isEmpty
();
return
ApexProperties
.
updatable
().
orElse
(
false
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment