blob: 26b122411c6bcb8213994fb44b5636da26808566 [file] [log] [blame]
Ruslan Tkhakokhov6712b722019-01-19 21:35:32 +00001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
15 */
16
17package com.android.server.backup.testutils;
18
19import android.content.ComponentName;
20import android.content.Intent;
21import android.content.IntentFilter;
22import android.content.IntentSender;
23import android.content.pm.ActivityInfo;
24import android.content.pm.ApplicationInfo;
25import android.content.pm.ChangedPackages;
26import android.content.pm.IDexModuleRegisterCallback;
27import android.content.pm.IOnPermissionsChangeListener;
28import android.content.pm.IPackageDataObserver;
29import android.content.pm.IPackageDeleteObserver;
30import android.content.pm.IPackageDeleteObserver2;
31import android.content.pm.IPackageInstaller;
32import android.content.pm.IPackageManager;
33import android.content.pm.IPackageMoveObserver;
34import android.content.pm.IPackageStatsObserver;
35import android.content.pm.InstrumentationInfo;
36import android.content.pm.KeySet;
37import android.content.pm.ModuleInfo;
38import android.content.pm.PackageInfo;
39import android.content.pm.PackageManager;
40import android.content.pm.ParceledListSlice;
41import android.content.pm.PermissionGroupInfo;
42import android.content.pm.PermissionInfo;
43import android.content.pm.ProviderInfo;
44import android.content.pm.ResolveInfo;
45import android.content.pm.ServiceInfo;
46import android.content.pm.SuspendDialogInfo;
47import android.content.pm.VerifierDeviceIdentity;
48import android.content.pm.VersionedPackage;
49import android.content.pm.dex.IArtManager;
50import android.graphics.Bitmap;
51import android.os.IBinder;
52import android.os.PersistableBundle;
53import android.os.RemoteException;
Nadav Bar6d79ab72019-01-10 10:52:11 +020054
Ruslan Tkhakokhov6712b722019-01-19 21:35:32 +000055import java.util.List;
56
57/**
58 * Stub for IPackageManager to use in tests.
59 */
60public class IPackageManagerStub implements IPackageManager {
61 public static PackageInfo sPackageInfo;
62 public static int sApplicationEnabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
63
64 @Override
65 public PackageInfo getPackageInfo(String packageName, int flags, int userId)
66 throws RemoteException {
67 return sPackageInfo;
68 }
69
70 @Override
71 public int getApplicationEnabledSetting(String packageName, int userId) throws RemoteException {
72 return sApplicationEnabledSetting;
73 }
74
75 @Override
76 public void checkPackageStartable(String packageName, int userId) throws RemoteException {
77
78 }
79
80 @Override
81 public boolean isPackageAvailable(String packageName, int userId) throws RemoteException {
82 return false;
83 }
84
85 @Override
86 public PackageInfo getPackageInfoVersioned(VersionedPackage versionedPackage, int flags,
87 int userId) throws RemoteException {
88 return null;
89 }
90
91 @Override
92 public int getPackageUid(String packageName, int flags, int userId) throws RemoteException {
93 return 0;
94 }
95
96 @Override
97 public int[] getPackageGids(String packageName, int flags, int userId) throws RemoteException {
98 return new int[0];
99 }
100
101 @Override
102 public String[] currentToCanonicalPackageNames(String[] names) throws RemoteException {
103 return new String[0];
104 }
105
106 @Override
107 public String[] canonicalToCurrentPackageNames(String[] names) throws RemoteException {
108 return new String[0];
109 }
110
111 @Override
112 public PermissionInfo getPermissionInfo(String name, String packageName, int flags)
113 throws RemoteException {
114 return null;
115 }
116
117 @Override
118 public ParceledListSlice queryPermissionsByGroup(String group, int flags)
119 throws RemoteException {
120 return null;
121 }
122
123 @Override
124 public PermissionGroupInfo getPermissionGroupInfo(String name, int flags)
125 throws RemoteException {
126 return null;
127 }
128
129 @Override
130 public ParceledListSlice getAllPermissionGroups(int flags) throws RemoteException {
131 return null;
132 }
133
134 @Override
135 public ApplicationInfo getApplicationInfo(String packageName, int flags, int userId)
136 throws RemoteException {
137 return null;
138 }
139
140 @Override
141 public ActivityInfo getActivityInfo(ComponentName className, int flags, int userId)
142 throws RemoteException {
143 return null;
144 }
145
146 @Override
147 public boolean activitySupportsIntent(ComponentName className, Intent intent,
148 String resolvedType)
149 throws RemoteException {
150 return false;
151 }
152
153 @Override
154 public ActivityInfo getReceiverInfo(ComponentName className, int flags, int userId)
155 throws RemoteException {
156 return null;
157 }
158
159 @Override
160 public ServiceInfo getServiceInfo(ComponentName className, int flags, int userId)
161 throws RemoteException {
162 return null;
163 }
164
165 @Override
166 public ProviderInfo getProviderInfo(ComponentName className, int flags, int userId)
167 throws RemoteException {
168 return null;
169 }
170
171 @Override
172 public int checkPermission(String permName, String pkgName, int userId) throws RemoteException {
173 return 0;
174 }
175
176 @Override
177 public int checkUidPermission(String permName, int uid) throws RemoteException {
178 return 0;
179 }
180
181 @Override
182 public boolean addPermission(PermissionInfo info) throws RemoteException {
183 return false;
184 }
185
186 @Override
187 public void removePermission(String name) throws RemoteException {
188
189 }
190
191 @Override
192 public void grantRuntimePermission(String packageName, String permissionName, int userId)
193 throws RemoteException {
194
195 }
196
197 @Override
198 public void revokeRuntimePermission(String packageName, String permissionName, int userId)
199 throws RemoteException {
200
201 }
202
203 @Override
204 public void resetRuntimePermissions() throws RemoteException {
205
206 }
207
208 @Override
209 public int getPermissionFlags(String permissionName, String packageName, int userId)
210 throws RemoteException {
211 return 0;
212 }
213
214 @Override
215 public void updatePermissionFlags(String permissionName, String packageName, int flagMask,
Philip P. Moltmann2a537a62019-02-08 13:07:57 -0800216 int flagValues, boolean checkAdjustPolicyFlagPermission, int userId)
217 throws RemoteException {
Ruslan Tkhakokhov6712b722019-01-19 21:35:32 +0000218
219 }
220
221 @Override
222 public void updatePermissionFlagsForAllApps(int flagMask, int flagValues, int userId)
223 throws RemoteException {
224
225 }
226
227 @Override
228 public boolean shouldShowRequestPermissionRationale(String permissionName, String packageName,
229 int userId) throws RemoteException {
230 return false;
231 }
232
233 @Override
234 public boolean isProtectedBroadcast(String actionName) throws RemoteException {
235 return false;
236 }
237
238 @Override
239 public int checkSignatures(String pkg1, String pkg2) throws RemoteException {
240 return 0;
241 }
242
243 @Override
244 public int checkUidSignatures(int uid1, int uid2) throws RemoteException {
245 return 0;
246 }
247
248 @Override
249 public List<String> getAllPackages() throws RemoteException {
250 return null;
251 }
252
253 @Override
254 public String[] getPackagesForUid(int uid) throws RemoteException {
255 return new String[0];
256 }
257
258 @Override
259 public String getNameForUid(int uid) throws RemoteException {
260 return null;
261 }
262
263 @Override
264 public String[] getNamesForUids(int[] uids) throws RemoteException {
265 return new String[0];
266 }
267
268 @Override
269 public int getUidForSharedUser(String sharedUserName) throws RemoteException {
270 return 0;
271 }
272
273 @Override
274 public int getFlagsForUid(int uid) throws RemoteException {
275 return 0;
276 }
277
278 @Override
279 public int getPrivateFlagsForUid(int uid) throws RemoteException {
280 return 0;
281 }
282
283 @Override
284 public boolean isUidPrivileged(int uid) throws RemoteException {
285 return false;
286 }
287
288 @Override
289 public String[] getAppOpPermissionPackages(String permissionName) throws RemoteException {
290 return new String[0];
291 }
292
293 @Override
294 public ResolveInfo resolveIntent(Intent intent, String resolvedType, int flags, int userId)
295 throws RemoteException {
296 return null;
297 }
298
299 @Override
300 public ResolveInfo findPersistentPreferredActivity(Intent intent, int userId)
301 throws RemoteException {
302 return null;
303 }
304
305 @Override
306 public boolean canForwardTo(Intent intent, String resolvedType, int sourceUserId,
307 int targetUserId) throws RemoteException {
308 return false;
309 }
310
311 @Override
312 public ParceledListSlice queryIntentActivities(Intent intent, String resolvedType, int flags,
313 int userId) throws RemoteException {
314 return null;
315 }
316
317 @Override
318 public ParceledListSlice queryIntentActivityOptions(ComponentName caller, Intent[] specifics,
319 String[] specificTypes, Intent intent, String resolvedType, int flags, int userId)
320 throws RemoteException {
321 return null;
322 }
323
324 @Override
325 public ParceledListSlice queryIntentReceivers(Intent intent, String resolvedType, int flags,
326 int userId) throws RemoteException {
327 return null;
328 }
329
330 @Override
331 public ResolveInfo resolveService(Intent intent, String resolvedType, int flags, int userId)
332 throws RemoteException {
333 return null;
334 }
335
336 @Override
337 public ParceledListSlice queryIntentServices(Intent intent, String resolvedType, int flags,
338 int userId) throws RemoteException {
339 return null;
340 }
341
342 @Override
343 public ParceledListSlice queryIntentContentProviders(Intent intent, String resolvedType,
344 int flags, int userId) throws RemoteException {
345 return null;
346 }
347
348 @Override
349 public ParceledListSlice getInstalledPackages(int flags, int userId) throws RemoteException {
350 return null;
351 }
352
353 @Override
354 public ParceledListSlice getPackagesHoldingPermissions(String[] permissions, int flags,
355 int userId) throws RemoteException {
356 return null;
357 }
358
359 @Override
360 public ParceledListSlice getInstalledApplications(int flags, int userId)
361 throws RemoteException {
362 return null;
363 }
364
365 @Override
366 public ParceledListSlice getPersistentApplications(int flags) throws RemoteException {
367 return null;
368 }
369
370 @Override
371 public ProviderInfo resolveContentProvider(String name, int flags, int userId)
372 throws RemoteException {
373 return null;
374 }
375
376 @Override
377 public void querySyncProviders(List<String> outNames, List<ProviderInfo> outInfo)
378 throws RemoteException {
379
380 }
381
382 @Override
383 public ParceledListSlice queryContentProviders(String processName, int uid, int flags,
384 String metaDataKey) throws RemoteException {
385 return null;
386 }
387
388 @Override
389 public InstrumentationInfo getInstrumentationInfo(ComponentName className, int flags)
390 throws RemoteException {
391 return null;
392 }
393
394 @Override
395 public ParceledListSlice queryInstrumentation(String targetPackage, int flags)
396 throws RemoteException {
397 return null;
398 }
399
400 @Override
401 public void finishPackageInstall(int token, boolean didLaunch) throws RemoteException {
402
403 }
404
405 @Override
406 public void setInstallerPackageName(String targetPackage, String installerPackageName)
407 throws RemoteException {
408
409 }
410
411 @Override
412 public void setApplicationCategoryHint(String packageName, int categoryHint,
413 String callerPackageName) throws RemoteException {
414
415 }
416
417 @Override
418 public void deletePackageAsUser(String packageName, int versionCode,
419 IPackageDeleteObserver observer, int userId, int flags) throws RemoteException {
420
421 }
422
423 @Override
424 public void deletePackageVersioned(VersionedPackage versionedPackage,
425 IPackageDeleteObserver2 observer, int userId, int flags) throws RemoteException {
426
427 }
428
429 @Override
430 public String getInstallerPackageName(String packageName) throws RemoteException {
431 return null;
432 }
433
434 @Override
435 public void resetApplicationPreferences(int userId) throws RemoteException {
436
437 }
438
439 @Override
440 public ResolveInfo getLastChosenActivity(Intent intent, String resolvedType, int flags)
441 throws RemoteException {
442 return null;
443 }
444
445 @Override
446 public void setLastChosenActivity(Intent intent, String resolvedType, int flags,
447 IntentFilter filter, int match, ComponentName activity) throws RemoteException {
448
449 }
450
451 @Override
452 public void addPreferredActivity(IntentFilter filter, int match, ComponentName[] set,
453 ComponentName activity, int userId) throws RemoteException {
454
455 }
456
457 @Override
458 public void replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set,
459 ComponentName activity, int userId) throws RemoteException {
460
461 }
462
463 @Override
464 public void clearPackagePreferredActivities(String packageName) throws RemoteException {
465
466 }
467
468 @Override
469 public int getPreferredActivities(List<IntentFilter> outFilters,
470 List<ComponentName> outActivities, String packageName) throws RemoteException {
471 return 0;
472 }
473
474 @Override
475 public void addPersistentPreferredActivity(IntentFilter filter, ComponentName activity,
476 int userId) throws RemoteException {
477
478 }
479
480 @Override
481 public void clearPackagePersistentPreferredActivities(String packageName, int userId)
482 throws RemoteException {
483
484 }
485
486 @Override
487 public void addCrossProfileIntentFilter(IntentFilter intentFilter, String ownerPackage,
488 int sourceUserId, int targetUserId, int flags) throws RemoteException {
489
490 }
491
492 @Override
493 public void clearCrossProfileIntentFilters(int sourceUserId, String ownerPackage)
494 throws RemoteException {
495
496 }
497
498 @Override
499 public String[] setDistractingPackageRestrictionsAsUser(String[] packageNames,
500 int restrictionFlags, int userId) throws RemoteException {
501 return new String[0];
502 }
503
504 @Override
505 public String[] setPackagesSuspendedAsUser(String[] packageNames, boolean suspended,
506 PersistableBundle appExtras, PersistableBundle launcherExtras, SuspendDialogInfo dialogInfo,
507 String callingPackage, int userId) throws RemoteException {
508 return new String[0];
509 }
510
511 @Override
512 public String[] getUnsuspendablePackagesForUser(String[] packageNames, int userId)
513 throws RemoteException {
514 return new String[0];
515 }
516
517 @Override
518 public boolean isPackageSuspendedForUser(String packageName, int userId)
519 throws RemoteException {
520 return false;
521 }
522
523 @Override
524 public PersistableBundle getSuspendedPackageAppExtras(String packageName, int userId)
525 throws RemoteException {
526 return null;
527 }
528
529 @Override
530 public byte[] getPreferredActivityBackup(int userId) throws RemoteException {
531 return new byte[0];
532 }
533
534 @Override
535 public void restorePreferredActivities(byte[] backup, int userId) throws RemoteException {
536
537 }
538
539 @Override
540 public byte[] getDefaultAppsBackup(int userId) throws RemoteException {
541 return new byte[0];
542 }
543
544 @Override
545 public void restoreDefaultApps(byte[] backup, int userId) throws RemoteException {
546
547 }
548
549 @Override
550 public byte[] getIntentFilterVerificationBackup(int userId) throws RemoteException {
551 return new byte[0];
552 }
553
554 @Override
555 public void restoreIntentFilterVerification(byte[] backup, int userId) throws RemoteException {
556
557 }
558
559 @Override
Ruslan Tkhakokhov6712b722019-01-19 21:35:32 +0000560 public ComponentName getHomeActivities(List<ResolveInfo> outHomeCandidates)
561 throws RemoteException {
562 return null;
563 }
564
565 @Override
566 public void setHomeActivity(ComponentName className, int userId) throws RemoteException {
567
568 }
569
570 @Override
571 public void setComponentEnabledSetting(ComponentName componentName, int newState, int flags,
572 int userId) throws RemoteException {
573
574 }
575
576 @Override
577 public int getComponentEnabledSetting(ComponentName componentName, int userId)
578 throws RemoteException {
579 return 0;
580 }
581
582 @Override
583 public void setApplicationEnabledSetting(String packageName, int newState, int flags,
584 int userId,
585 String callingPackage) throws RemoteException {
586
587 }
588
589 @Override
590 public void logAppProcessStartIfNeeded(String processName, int uid, String seinfo,
591 String apkFile,
592 int pid) throws RemoteException {
593
594 }
595
596 @Override
597 public void flushPackageRestrictionsAsUser(int userId) throws RemoteException {
598
599 }
600
601 @Override
602 public void setPackageStoppedState(String packageName, boolean stopped, int userId)
603 throws RemoteException {
604
605 }
606
607 @Override
608 public void freeStorageAndNotify(String volumeUuid, long freeStorageSize, int storageFlags,
609 IPackageDataObserver observer) throws RemoteException {
610
611 }
612
613 @Override
614 public void freeStorage(String volumeUuid, long freeStorageSize, int storageFlags,
615 IntentSender pi) throws RemoteException {
616
617 }
618
619 @Override
620 public void deleteApplicationCacheFiles(String packageName, IPackageDataObserver observer)
621 throws RemoteException {
622
623 }
624
625 @Override
626 public void deleteApplicationCacheFilesAsUser(String packageName, int userId,
627 IPackageDataObserver observer) throws RemoteException {
628
629 }
630
631 @Override
632 public void clearApplicationUserData(String packageName, IPackageDataObserver observer,
633 int userId) throws RemoteException {
634
635 }
636
637 @Override
638 public void clearApplicationProfileData(String packageName) throws RemoteException {
639
640 }
641
642 @Override
643 public void getPackageSizeInfo(String packageName, int userHandle,
644 IPackageStatsObserver observer)
645 throws RemoteException {
646
647 }
648
649 @Override
650 public String[] getSystemSharedLibraryNames() throws RemoteException {
651 return new String[0];
652 }
653
654 @Override
655 public ParceledListSlice getSystemAvailableFeatures() throws RemoteException {
656 return null;
657 }
658
659 @Override
660 public boolean hasSystemFeature(String name, int version) throws RemoteException {
661 return false;
662 }
663
664 @Override
665 public void enterSafeMode() throws RemoteException {
666
667 }
668
669 @Override
670 public boolean isSafeMode() throws RemoteException {
671 return false;
672 }
673
674 @Override
675 public void systemReady() throws RemoteException {
676
677 }
678
679 @Override
680 public boolean hasSystemUidErrors() throws RemoteException {
681 return false;
682 }
683
684 @Override
685 public void performFstrimIfNeeded() throws RemoteException {
686
687 }
688
689 @Override
690 public void updatePackagesIfNeeded() throws RemoteException {
691
692 }
693
694 @Override
695 public void notifyPackageUse(String packageName, int reason) throws RemoteException {
696
697 }
698
699 @Override
700 public void notifyDexLoad(String loadingPackageName, List<String> classLoadersNames,
701 List<String> classPaths, String loaderIsa) throws RemoteException {
702
703 }
704
705 @Override
706 public void registerDexModule(String packageName, String dexModulePath, boolean isSharedModule,
707 IDexModuleRegisterCallback callback) throws RemoteException {
708
709 }
710
711 @Override
712 public boolean performDexOptMode(String packageName, boolean checkProfiles,
713 String targetCompilerFilter, boolean force, boolean bootComplete, String splitName)
714 throws RemoteException {
715 return false;
716 }
717
718 @Override
719 public boolean performDexOptSecondary(String packageName, String targetCompilerFilter,
720 boolean force) throws RemoteException {
721 return false;
722 }
723
724 @Override
725 public boolean compileLayouts(String packageName) throws RemoteException {
726 return false;
727 }
728
729 @Override
730 public void dumpProfiles(String packageName) throws RemoteException {
731
732 }
733
734 @Override
735 public void forceDexOpt(String packageName) throws RemoteException {
736
737 }
738
739 @Override
740 public boolean runBackgroundDexoptJob(List<String> packageNames) throws RemoteException {
741 return false;
742 }
743
744 @Override
745 public void reconcileSecondaryDexFiles(String packageName) throws RemoteException {
746
747 }
748
749 @Override
750 public int getMoveStatus(int moveId) throws RemoteException {
751 return 0;
752 }
753
754 @Override
755 public void registerMoveCallback(IPackageMoveObserver callback) throws RemoteException {
756
757 }
758
759 @Override
760 public void unregisterMoveCallback(IPackageMoveObserver callback) throws RemoteException {
761
762 }
763
764 @Override
765 public int movePackage(String packageName, String volumeUuid) throws RemoteException {
766 return 0;
767 }
768
769 @Override
770 public int movePrimaryStorage(String volumeUuid) throws RemoteException {
771 return 0;
772 }
773
774 @Override
775 public boolean addPermissionAsync(PermissionInfo info) throws RemoteException {
776 return false;
777 }
778
779 @Override
780 public boolean setInstallLocation(int loc) throws RemoteException {
781 return false;
782 }
783
784 @Override
785 public int getInstallLocation() throws RemoteException {
786 return 0;
787 }
788
789 @Override
790 public int installExistingPackageAsUser(String packageName, int userId, int installFlags,
791 int installReason) throws RemoteException {
792 return 0;
793 }
794
795 @Override
796 public void verifyPendingInstall(int id, int verificationCode) throws RemoteException {
797
798 }
799
800 @Override
801 public void extendVerificationTimeout(int id, int verificationCodeAtTimeout,
802 long millisecondsToDelay) throws RemoteException {
803
804 }
805
806 @Override
807 public void verifyIntentFilter(int id, int verificationCode, List<String> failedDomains)
808 throws RemoteException {
809
810 }
811
812 @Override
813 public int getIntentVerificationStatus(String packageName, int userId) throws RemoteException {
814 return 0;
815 }
816
817 @Override
818 public boolean updateIntentVerificationStatus(String packageName, int status, int userId)
819 throws RemoteException {
820 return false;
821 }
822
823 @Override
824 public ParceledListSlice getIntentFilterVerifications(String packageName)
825 throws RemoteException {
826 return null;
827 }
828
829 @Override
830 public ParceledListSlice getAllIntentFilters(String packageName) throws RemoteException {
831 return null;
832 }
833
834 @Override
835 public boolean setDefaultBrowserPackageName(String packageName, int userId)
836 throws RemoteException {
837 return false;
838 }
839
840 @Override
841 public String getDefaultBrowserPackageName(int userId) throws RemoteException {
842 return null;
843 }
844
845 @Override
846 public VerifierDeviceIdentity getVerifierDeviceIdentity() throws RemoteException {
847 return null;
848 }
849
850 @Override
851 public boolean isFirstBoot() throws RemoteException {
852 return false;
853 }
854
855 @Override
856 public boolean isOnlyCoreApps() throws RemoteException {
857 return false;
858 }
859
860 @Override
861 public boolean isUpgrade() throws RemoteException {
862 return false;
863 }
864
865 @Override
866 public void setPermissionEnforced(String permission, boolean enforced) throws RemoteException {
867
868 }
869
870 @Override
871 public boolean isPermissionEnforced(String permission) throws RemoteException {
872 return false;
873 }
874
875 @Override
876 public boolean isStorageLow() throws RemoteException {
877 return false;
878 }
879
880 @Override
881 public boolean setApplicationHiddenSettingAsUser(String packageName, boolean hidden, int userId)
882 throws RemoteException {
883 return false;
884 }
885
886 @Override
887 public boolean getApplicationHiddenSettingAsUser(String packageName, int userId)
888 throws RemoteException {
889 return false;
890 }
891
892 @Override
893 public void setSystemAppHiddenUntilInstalled(String packageName, boolean hidden)
894 throws RemoteException {
895
896 }
897
898 @Override
899 public boolean setSystemAppInstallState(String packageName, boolean installed, int userId)
900 throws RemoteException {
901 return false;
902 }
903
904 @Override
905 public IPackageInstaller getPackageInstaller() throws RemoteException {
906 return null;
907 }
908
909 @Override
910 public boolean setBlockUninstallForUser(String packageName, boolean blockUninstall, int userId)
911 throws RemoteException {
912 return false;
913 }
914
915 @Override
916 public boolean getBlockUninstallForUser(String packageName, int userId) throws RemoteException {
917 return false;
918 }
919
920 @Override
921 public KeySet getKeySetByAlias(String packageName, String alias) throws RemoteException {
922 return null;
923 }
924
925 @Override
926 public KeySet getSigningKeySet(String packageName) throws RemoteException {
927 return null;
928 }
929
930 @Override
931 public boolean isPackageSignedByKeySet(String packageName, KeySet ks) throws RemoteException {
932 return false;
933 }
934
935 @Override
936 public boolean isPackageSignedByKeySetExactly(String packageName, KeySet ks)
937 throws RemoteException {
938 return false;
939 }
940
941 @Override
942 public void addOnPermissionsChangeListener(IOnPermissionsChangeListener listener)
943 throws RemoteException {
944
945 }
946
947 @Override
948 public void removeOnPermissionsChangeListener(IOnPermissionsChangeListener listener)
949 throws RemoteException {
950
951 }
952
953 @Override
954 public void grantDefaultPermissionsToEnabledCarrierApps(String[] packageNames, int userId)
955 throws RemoteException {
956
957 }
958
959 @Override
960 public void grantDefaultPermissionsToEnabledImsServices(String[] packageNames, int userId)
961 throws RemoteException {
962
963 }
964
965 @Override
966 public void grantDefaultPermissionsToEnabledTelephonyDataServices(String[] packageNames,
967 int userId) throws RemoteException {
968
969 }
970
971 @Override
972 public void revokeDefaultPermissionsFromDisabledTelephonyDataServices(String[] packageNames,
973 int userId) throws RemoteException {
974
975 }
976
977 @Override
978 public void grantDefaultPermissionsToActiveLuiApp(String packageName, int userId)
979 throws RemoteException {
980
981 }
982
983 @Override
984 public void revokeDefaultPermissionsFromLuiApps(String[] packageNames, int userId)
985 throws RemoteException {
986
987 }
988
989 @Override
990 public boolean isPermissionRevokedByPolicy(String permission, String packageName, int userId)
991 throws RemoteException {
992 return false;
993 }
994
995 @Override
996 public String getPermissionControllerPackageName() throws RemoteException {
997 return null;
998 }
999
1000 @Override
1001 public ParceledListSlice getInstantApps(int userId) throws RemoteException {
1002 return null;
1003 }
1004
1005 @Override
1006 public byte[] getInstantAppCookie(String packageName, int userId) throws RemoteException {
1007 return new byte[0];
1008 }
1009
1010 @Override
1011 public boolean setInstantAppCookie(String packageName, byte[] cookie, int userId)
1012 throws RemoteException {
1013 return false;
1014 }
1015
1016 @Override
1017 public Bitmap getInstantAppIcon(String packageName, int userId) throws RemoteException {
1018 return null;
1019 }
1020
1021 @Override
1022 public boolean isInstantApp(String packageName, int userId) throws RemoteException {
1023 return false;
1024 }
1025
1026 @Override
1027 public boolean setRequiredForSystemUser(String packageName, boolean systemUserApp)
1028 throws RemoteException {
1029 return false;
1030 }
1031
1032 @Override
1033 public void setUpdateAvailable(String packageName, boolean updateAvaialble)
1034 throws RemoteException {
1035
1036 }
1037
1038 @Override
1039 public String getServicesSystemSharedLibraryPackageName() throws RemoteException {
1040 return null;
1041 }
1042
1043 @Override
1044 public String getSharedSystemSharedLibraryPackageName() throws RemoteException {
1045 return null;
1046 }
1047
1048 @Override
1049 public ChangedPackages getChangedPackages(int sequenceNumber, int userId)
1050 throws RemoteException {
1051 return null;
1052 }
1053
1054 @Override
1055 public boolean isPackageDeviceAdminOnAnyUser(String packageName) throws RemoteException {
1056 return false;
1057 }
1058
1059 @Override
1060 public int getInstallReason(String packageName, int userId) throws RemoteException {
1061 return 0;
1062 }
1063
1064 @Override
1065 public ParceledListSlice getSharedLibraries(String packageName, int flags, int userId)
1066 throws RemoteException {
1067 return null;
1068 }
1069
1070 @Override
1071 public boolean canRequestPackageInstalls(String packageName, int userId)
1072 throws RemoteException {
1073 return false;
1074 }
1075
1076 @Override
1077 public void deletePreloadsFileCache() throws RemoteException {
1078
1079 }
1080
1081 @Override
1082 public ComponentName getInstantAppResolverComponent() throws RemoteException {
1083 return null;
1084 }
1085
1086 @Override
1087 public ComponentName getInstantAppResolverSettingsComponent() throws RemoteException {
1088 return null;
1089 }
1090
1091 @Override
1092 public ComponentName getInstantAppInstallerComponent() throws RemoteException {
1093 return null;
1094 }
1095
1096 @Override
1097 public String getInstantAppAndroidId(String packageName, int userId) throws RemoteException {
1098 return null;
1099 }
1100
1101 @Override
1102 public IArtManager getArtManager() throws RemoteException {
1103 return null;
1104 }
1105
1106 @Override
1107 public void setHarmfulAppWarning(String packageName, CharSequence warning, int userId)
1108 throws RemoteException {
1109
1110 }
1111
1112 @Override
1113 public CharSequence getHarmfulAppWarning(String packageName, int userId)
1114 throws RemoteException {
1115 return null;
1116 }
1117
1118 @Override
1119 public boolean hasSigningCertificate(String packageName, byte[] signingCertificate, int flags)
1120 throws RemoteException {
1121 return false;
1122 }
1123
1124 @Override
1125 public boolean hasUidSigningCertificate(int uid, byte[] signingCertificate, int flags)
1126 throws RemoteException {
1127 return false;
1128 }
1129
1130 @Override
1131 public String getSystemTextClassifierPackageName() throws RemoteException {
1132 return null;
1133 }
1134
1135 @Override
1136 public String getWellbeingPackageName() throws RemoteException {
1137 return null;
1138 }
1139
1140 @Override
Nadav Bar6d79ab72019-01-10 10:52:11 +02001141 public String getContentCaptureServicePackageName() throws RemoteException {
1142 return null;
1143 }
1144
Joe Onorato5a15b552018-12-18 10:40:04 -08001145 public String getIncidentReportApproverPackageName() throws RemoteException {
1146 return null;
1147 }
1148
Nadav Bar6d79ab72019-01-10 10:52:11 +02001149 @Override
George Hodulikcd7695d2019-01-29 18:17:05 -08001150 public String getAppPredictionServicePackageName() {
1151 return null;
1152 }
1153
1154 @Override
Ruslan Tkhakokhov6712b722019-01-19 21:35:32 +00001155 public boolean isPackageStateProtected(String packageName, int userId) throws RemoteException {
1156 return false;
1157 }
1158
1159 @Override
1160 public void sendDeviceCustomizationReadyBroadcast() throws RemoteException {
1161
1162 }
1163
1164 @Override
1165 public List<ModuleInfo> getInstalledModules(int flags) throws RemoteException {
1166 return null;
1167 }
1168
1169 @Override
1170 public ModuleInfo getModuleInfo(String packageName, int flags) throws RemoteException {
1171 return null;
1172 }
1173
1174 @Override
1175 public IBinder asBinder() {
1176 return null;
1177 }
1178}