commit | 8e8b2d542a4180cfc02e3116e708f1468eb039e9 | [log] [tgz] |
---|---|---|
author | Ye Wen <ywen@google.com> | Wed Mar 14 11:48:24 2018 -0700 |
committer | Ye Wen <ywen@google.com> | Tue Mar 20 08:57:43 2018 -0700 |
tree | b82746f27dbf07c146497330d7f6abda5fa17e8b | |
parent | a501257ea22efd4cba2712eab730632e840de06b [diff] |
Fix default permission granting for system TextClassifier. The original code calls TCS.getServiceComponentName to get the package name of the configured system TextClassifier, which does not work before user logs in. This fixes the problem by using the package name from the configuration directly. Test: Manually tested to confirm permissions were granted. Permission section of the app info are gray. Bug: 74779259 Change-Id: I6bff7119e174c0e0b17d9736d69075f6df2bc882