1 /* 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_ERRORS_H 17 #define OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_ERRORS_H 18 19 #include <map> 20 21 #include "errors.h" 22 23 namespace OHOS { 24 namespace AAFwk { 25 enum { 26 /** 27 * Module type: Ability Manager Service side 28 */ 29 ABILITY_MODULE_TYPE_SERVICE = 0, 30 /** 31 * Module type: ABility Kit side 32 */ 33 ABILITY_MODULE_TYPE_KIT = 1, 34 /** 35 * Module type: Ability connection state kit side 36 */ 37 ABILITY_MODULE_TYPE_CONNECTION_STATE_KIT = 2 38 }; 39 40 // offset of aafwk error, only be used in this file. 41 constexpr ErrCode AAFWK_SERVICE_ERR_OFFSET = ErrCodeOffset(SUBSYS_AAFWK, ABILITY_MODULE_TYPE_SERVICE); 42 43 enum { 44 /** 45 * Result(2097152) for StartAbility: An error of the Want could not be resolved 46 * to ability info from BMS or DistributedMS. 47 */ 48 RESOLVE_ABILITY_ERR = AAFWK_SERVICE_ERR_OFFSET, 49 /** 50 * Result(2097153) for Connect: An error of the get ability service. 51 */ 52 GET_ABILITY_SERVICE_FAILED, 53 /** 54 * Result(2097154) for Connect State: An error of the the ability service not connect. 55 */ 56 ABILITY_SERVICE_NOT_CONNECTED, 57 /** 58 * Result(2097155) for StartAbility: An error of the Want could not be resolved 59 * to app info from BMS or DistributedMS. 60 */ 61 RESOLVE_APP_ERR, 62 /** 63 * Result(2097156) for StartAbility: The ability to start is already at the top. 64 */ 65 ABILITY_EXISTED, 66 /** 67 * Result(2097157) for StartAbility: An error to create mission stack. 68 */ 69 CREATE_MISSION_STACK_FAILED, 70 /** 71 * Result(2097158) for StartAbility: An error to create ability record. 72 */ 73 CREATE_ABILITY_RECORD_FAILED, 74 /** 75 * Result(2097159) for StartAbility: The ability to start is waiting. 76 */ 77 START_ABILITY_WAITING, 78 /** 79 * Result(2097160) for TerminateAbility: Don't allow to terminate launcher. 80 */ 81 TERMINATE_LAUNCHER_DENIED, 82 /** 83 * Result(2097161) for DisconnectAbility: Connection not exist. 84 */ 85 CONNECTION_NOT_EXIST, 86 /** 87 * Result(2097162) for DisconnectAbility:Connection is invalid state. 88 */ 89 INVALID_CONNECTION_STATE, 90 /** 91 * Result(2097163) for LoadctAbility:LoadAbility timeout. 92 */ 93 LOAD_ABILITY_TIMEOUT, 94 /** 95 * Result(2097164) for DisconnectAbility:Connection timeout. 96 */ 97 CONNECTION_TIMEOUT, 98 /** 99 * Result(2097165) for start service: An error of the get BundleManagerService. 100 */ 101 GET_BUNDLE_MANAGER_SERVICE_FAILED, 102 /** 103 * Result(2097166) for Remove mission: An error of removing mission. 104 */ 105 REMOVE_MISSION_FAILED, 106 /** 107 * Result(2097167) for All: An error occurs in server. 108 */ 109 INNER_ERR, 110 /** 111 * Result(2097168) for Get recent mission: get recent missions failed 112 */ 113 GET_RECENT_MISSIONS_FAILED, 114 /** 115 * Result(2097169) for Remove stack: Don't allow to remove stack which has launcher ability. 116 */ 117 REMOVE_STACK_LAUNCHER_DENIED, 118 /** 119 * Result(2097170) for ConnectAbility:target ability is not service ability. 120 */ 121 TARGET_ABILITY_NOT_SERVICE, 122 /** 123 * Result(2097171) for TerminateAbility:target service has a record of connect. It cannot be stopped. 124 */ 125 TERMINATE_SERVICE_IS_CONNECTED, 126 /** 127 * Result(2097172) for StartAbility:The ability to start is already activating.. 128 */ 129 START_SERVICE_ABILITY_ACTIVATING, 130 /** 131 * Result(2097173) for move mission to top: An error of moving stack. 132 */ 133 MOVE_MISSION_FAILED, 134 /** 135 * Result(2097174) for kill process: An error of kill process. 136 */ 137 KILL_PROCESS_FAILED, 138 /** 139 * Result(2097175) for uninstall app: An error of uninstall app. 140 */ 141 UNINSTALL_APP_FAILED, 142 /** 143 * Result(2097176) for terminate ability result: An error of terminate service. 144 */ 145 TERMINATE_ABILITY_RESULT_FAILED, 146 /** 147 * Result(2097177) for check permission failed. 148 */ 149 CHECK_PERMISSION_FAILED, 150 151 /** 152 * Result(2097178) for no found abilityrecord by caller 153 */ 154 NO_FOUND_ABILITY_BY_CALLER, 155 156 /** 157 * Result(2097179) for ability visible attribute is false. 158 */ 159 ABILITY_VISIBLE_FALSE_DENY_REQUEST, 160 161 /** 162 * Result(2097180) for caller is not systemapp. 163 */ 164 CALLER_ISNOT_SYSTEMAPP, 165 166 /** 167 * Result(2097181) for get bundleName by uid fail. 168 */ 169 GET_BUNDLENAME_BY_UID_FAIL, 170 171 /** 172 * Result(2097182) for mission not found. 173 */ 174 MISSION_NOT_FOUND, 175 176 /** 177 * Result(2097183) for get bundle info fail. 178 */ 179 GET_BUNDLE_INFO_FAILED, 180 181 /** 182 * Result(2097184) for KillProcess: keep alive process can not be killed 183 */ 184 KILL_PROCESS_KEEP_ALIVE, 185 186 /** 187 * Result(2097185) for clear the application data fail. 188 */ 189 CLEAR_APPLICATION_DATA_FAIL, 190 191 // for call ability 192 /** 193 * Result(2097186) for resolve ability failed, there is no permissions 194 */ 195 RESOLVE_CALL_NO_PERMISSIONS, 196 197 /** 198 * Result(2097187) for resolve ability failed, target ability not page or singleton 199 */ 200 RESOLVE_CALL_ABILITY_TYPE_ERR, 201 202 /** 203 * Result(2097188) for resolve ability failed, resolve failed. 204 */ 205 RESOLVE_CALL_ABILITY_INNER_ERR, 206 207 /** 208 * Result(2097189) for resolve ability failed, resolve failed. 209 */ 210 RESOLVE_CALL_ABILITY_VERSION_ERR, 211 212 /** 213 * Result(2097190) for release ability failed, release failed. 214 */ 215 RELEASE_CALL_ABILITY_INNER_ERR, 216 217 /** 218 * Result(2097191) for register remote mission listener fail. 219 */ 220 REGISTER_REMOTE_MISSION_LISTENER_FAIL, 221 222 /** 223 * Result(2097192) for unregister remote mission listener fail. 224 */ 225 UNREGISTER_REMOTE_MISSION_LISTENER_FAIL, 226 227 /** 228 * Result(2097193) for invalid userid. 229 */ 230 INVALID_USERID_VALUE, 231 232 /** 233 * Result(2097194) for start user test fail. 234 */ 235 START_USER_TEST_FAIL, 236 237 /** 238 * Result(2097195) for send usr1 sig to the process of not response fail. 239 */ 240 SEND_USR1_SIG_FAIL, 241 242 /** 243 * Result(2097196) for hidump fail. 244 */ 245 ERR_AAFWK_HIDUMP_ERROR, 246 247 /** 248 * Result(2097197) for hidump params are invalid. 249 */ 250 ERR_AAFWK_HIDUMP_INVALID_ARGS, 251 252 /** 253 * Result(2097198) for parcel fail. 254 */ 255 ERR_AAFWK_PARCEL_FAIL, 256 257 /** 258 * Result(2097199) for for implicit start ability is failed. 259 */ 260 ERR_IMPLICIT_START_ABILITY_FAIL, 261 262 /** 263 * Result(2097200) for instance reach to upper limit. 264 */ 265 ERR_REACH_UPPER_LIMIT, 266 267 /** 268 * Result(2097201) for window mode. 269 */ 270 ERR_AAFWK_INVALID_WINDOW_MODE, 271 272 /** 273 * Result(2097202) for wrong interface call. 274 */ 275 ERR_WRONG_INTERFACE_CALL, 276 277 /** 278 * Result(2097203) for crowdtest expired. 279 */ 280 ERR_CROWDTEST_EXPIRED, 281 282 /** 283 * Result(2097204) for application abnormal. 284 */ 285 ERR_APP_CONTROLLED, 286 287 /** 288 * Result(2097205) for invalid caller. 289 */ 290 ERR_INVALID_CALLER, 291 292 /** 293 * Result(2097206) for not allowed continuation flag. 294 */ 295 ERR_INVALID_CONTINUATION_FLAG, 296 297 /** 298 * Result(2097207) for not allowed to cross user. 299 */ 300 ERR_CROSS_USER, 301 302 /** 303 * Result(2097208) for not granted for static permission. 304 */ 305 ERR_STATIC_CFG_PERMISSION, 306 307 /** 308 * Result(2097209) for non-system-app use system-api. 309 */ 310 ERR_NOT_SYSTEM_APP, 311 312 /** 313 * Result(2097210) for ecological rule control. 314 */ 315 ERR_ECOLOGICAL_CONTROL_STATUS, 316 317 /** 318 * Result(2097211) for app jump interceptor. 319 */ 320 ERR_APP_JUMP_INTERCEPTOR_STATUS, 321 322 /** 323 * Result(2097212) for URI flag invalid. 324 */ 325 ERR_CODE_INVALID_URI_FLAG, 326 327 /** 328 * Result(2097213) for URI type invalid. 329 */ 330 ERR_CODE_INVALID_URI_TYPE, 331 332 /** 333 * Result(2097214) for start not self application. 334 */ 335 ERR_NOT_SELF_APPLICATION, 336 337 /** 338 * Result(2097215) for edm application abnormal. 339 */ 340 ERR_EDM_APP_CONTROLLED, 341 342 /** 343 * Result(2097216) for sandbox application grant URI permission. 344 */ 345 ERR_CODE_GRANT_URI_PERMISSION, 346 347 /** 348 * Result(2097217) for collaborator is empty. 349 */ 350 ERR_COLLABORATOR_NOT_REGISTER, 351 352 /** 353 * Result(2097218) for collaborator is empty. 354 */ 355 ERR_COLLABORATOR_NOTIFY_FAILED, 356 357 /** 358 * Result(2097219) for prouct application boot setting. 359 */ 360 ERR_NOT_SUPPORTED_PRODUCT_TYPE, 361 362 /** 363 * Result(2097220) for starting invalid component. 364 */ 365 ERR_INSIGHT_INTENT_START_INVALID_COMPONENT, 366 367 /** 368 * Result(2097221) for developer mode. 369 */ 370 ERR_NOT_DEVELOPER_MODE, 371 372 /** 373 * Result(2097222) for get active ability list empty when record exit reason. 374 */ 375 ERR_GET_ACTIVE_ABILITY_LIST_EMPTY, 376 377 /** 378 * Result(2097223) for query highest priority ability. 379 */ 380 ERR_QUERY_HIGHEST_PRIORITY_ABILITY, 381 382 /** 383 * Result(2097224) for the target to restart does not belong to the current app or is not a UIAbility. 384 */ 385 ERR_RESTART_APP_INCORRECT_ABILITY, 386 387 /** 388 * Result(2097225) for restart too frequently. Try again at least 3s later. 389 */ 390 ERR_RESTART_APP_FREQUENT, 391 392 /** 393 * Result(2097226) for connect ERMS service failed. 394 */ 395 ERR_CONNECT_ERMS_FAILED, 396 397 /** 398 * Result(2097227) for ability is not foreground state. 399 */ 400 ERR_ABILITY_NOT_FOREGROUND, 401 402 /** 403 * Result(2097228) for in wukong mode, ability can not move to foreground or background. 404 */ 405 ERR_WUKONG_MODE_CANT_MOVE_STATE, 406 407 /** 408 * Result(2097229) for operation not supported on current device. 409 */ 410 ERR_OPERATION_NOT_SUPPORTED_ON_CURRENT_DEVICE, 411 412 /** 413 * Result(2097230) for capability not support. 414 */ 415 ERR_CAPABILITY_NOT_SUPPORT, 416 417 /** 418 * Result(2097231) for not allow implicit start. 419 */ 420 ERR_NOT_ALLOW_IMPLICIT_START, 421 422 /** 423 * Result(2097232) for start options check failed. 424 */ 425 ERR_START_OPTIONS_CHECK_FAILED, 426 427 /** 428 * Result(2097233) for ability already running. 429 */ 430 ERR_ABILITY_ALREADY_RUNNING, 431 432 /** 433 * Native error(2097234) for not self application. 434 */ 435 ERR_NATIVE_NOT_SELF_APPLICATION, 436 437 /** 438 * Native error(2097235) for IPC parcel failed. 439 */ 440 ERR_NATIVE_IPC_PARCEL_FAILED, 441 442 /** 443 * Native error(2097236) for ability not found. 444 */ 445 ERR_NATIVE_ABILITY_NOT_FOUND, 446 447 /** 448 * Native error(2097237) for ability state check failed. 449 */ 450 ERR_NATIVE_ABILITY_STATE_CHECK_FAILED, 451 452 /** 453 * Native error(2097238) for kill process not exist. 454 */ 455 ERR_KILL_PROCESS_NOT_EXIST, 456 457 /** 458 * Native error(2097239) for start other app failed. 459 */ 460 ERR_START_OTHER_APP_FAILED, 461 462 /** 463 * Native error(2097240) for memory size state unchanged. 464 */ 465 ERR_NATIVE_MEMORY_SIZE_STATE_UNCHANGED, 466 467 /** 468 * Native error(2097241) for target bundle not exist. 469 */ 470 ERR_TARGET_BUNDLE_NOT_EXIST, 471 472 /** 473 * Native error(2097242) for get launch ability info failed. 474 */ 475 ERR_GET_LAUNCH_ABILITY_INFO_FAILED, 476 477 /** 478 * Native error(2097243) for check preload conditions failed. 479 */ 480 ERR_CHECK_PRELOAD_CONDITIONS_FAILED, 481 482 ERR_SET_SUPPORTED_PROCESS_CACHE_AGAIN, 483 484 /** 485 * Result(2097245) for size of uri list out of range. 486 */ 487 ERR_URI_LIST_OUT_OF_RANGE, 488 489 /** 490 * Native error(2097246) for not allow preload by rss. 491 */ 492 ERR_NOT_ALLOW_PRELOAD_BY_RSS, 493 494 /** 495 * Result(2097247) for get active extension list empty when record exit reason. 496 */ 497 ERR_GET_ACTIVE_EXTENSION_LIST_EMPTY, 498 499 /** 500 * Result(2097248) for get ExtensionName by uid fail. 501 */ 502 GET_EXTENSION_NAME_BY_UID_FAIL, 503 504 /** 505 * Native error(2097249) no resident process permissions set. 506 */ 507 ERR_NO_RESIDENT_PERMISSION, 508 509 /** 510 * Result(2097250) for app clone index does not exist. 511 */ 512 ERR_APP_CLONE_INDEX_INVALID, 513 514 /** 515 * Result(2097251) not support twin. 516 */ 517 ERR_MULTI_APP_NOT_SUPPORTED, 518 519 /** 520 * Result(2097252) for unlock screen failed in developer mode. 521 */ 522 ERR_UNLOCK_SCREEN_FAILED_IN_DEVELOPER_MODE, 523 524 /* 525 * Result(2097253) for block startup in lock screen. 526 */ 527 ERR_BLOCK_START_FIRST_BOOT_SCREEN_UNLOCK = 2097253, 528 529 /* 530 * Result(2097254) for extension blocked by third party app flag 531 */ 532 EXTENSION_BLOCKED_BY_THIRD_PARTY_APP_FLAG = 2097254, 533 534 /* 535 * Result(2097255) for extension blocked by service list 536 */ 537 EXTENSION_BLOCKED_BY_SERVICE_LIST = 2097255, 538 539 /* 540 * Result(2097256) for non-app-provision mode 541 */ 542 ERR_NOT_IN_APP_PROVISION_MODE = 2097256, 543 544 /* 545 * Result(2097257) for share file uri non-implicitly 546 */ 547 ERR_SHARE_FILE_URI_NON_IMPLICITLY = 2097257, 548 549 /** 550 * Native error(2097258) for target bundle not exist. 551 */ 552 ERR_BUNDLE_NOT_EXIST, 553 554 /* 555 * Result(2097259) for open link start abilty default ok. 556 */ 557 ERR_OPEN_LINK_START_ABILITY_DEFAULT_OK = 2097259, 558 559 /* 560 * Result (2097260) for target free install task does not exist. 561 */ 562 ERR_FREE_INSTALL_TASK_NOT_EXIST = 2097260, 563 564 /* 565 * Result (2097261) for killing process uid is foundation. 566 */ 567 ERR_KILL_FOUNDATION_UID = 2097261, 568 569 /* 570 * Result (2097262) caller not exists. 571 */ 572 ERR_CALLER_NOT_EXISTS = 2097262, 573 574 /* 575 * Result (2097263) Not support back to caller. 576 */ 577 ERR_NOT_SUPPORT_BACK_TO_CALLER = 2097263, 578 579 /* 580 * Result (2097264) for not support child process. 581 */ 582 ERR_NOT_SUPPORT_CHILD_PROCESS = 2097264, 583 584 /* 585 * Result (2097265) for already in child process. 586 */ 587 ERR_ALREADY_IN_CHILD_PROCESS = 2097265, 588 589 /* 590 * Result (2097266) for child process reach limit. 591 */ 592 ERR_CHILD_PROCESS_REACH_LIMIT = 2097266, 593 594 /** 595 * Result(2097267) for check is debug app. 596 */ 597 ERR_NOT_DEBUG_APP = 2097267, 598 599 /* 600 * Result (2097268) for native child process reach limit. 601 */ 602 ERR_NOT_SUPPORT_NATIVE_CHILD_PROCESS = 2097268, 603 604 /* 605 * Result (2097269) for failed to get profile when execute insight intent. 606 */ 607 ERR_INSIGHT_INTENT_GET_PROFILE_FAILED = 2097269, 608 609 /* 610 * Result (2097270) for all apps are blocked from starting due to resource shortage. 611 */ 612 ERR_ALL_APP_START_BLOCKED = 2097270, 613 614 /** 615 * Result(2097271) not support multi-instance. 616 */ 617 ERR_MULTI_INSTANCE_NOT_SUPPORTED = 2097271, 618 619 /* 620 * Result (2097272) for not support app instance key. 621 */ 622 ERR_APP_INSTANCE_KEY_NOT_SUPPORT = 2097272, 623 624 /* 625 * Result (2097273) for reach the upper limit. 626 */ 627 ERR_UPPER_LIMIT = 2097273, 628 629 /* 630 * Result (2097274) for not support to create a new instance. 631 */ 632 ERR_CREATE_NEW_INSTANCE_NOT_SUPPORT = 2097274, 633 634 /* 635 * Result (2097275) for invalid app instance key. 636 */ 637 ERR_INVALID_APP_INSTANCE_KEY = 2097275, 638 639 /* 640 * Result (2097276) for not support app clone. 641 */ 642 ERR_NOT_SUPPORT_APP_CLONE = 2097276, 643 644 /* 645 * Result (2097277) for invalid extension type. 646 */ 647 ERR_INVALID_EXTENSION_TYPE = 2097277, 648 649 /* 650 * Result (2097278) for replying failed while executing insight intent. 651 */ 652 ERR_INSIGHT_INTENT_EXECUTE_REPLY_FAILED = 2097278, 653 654 /* 655 * Result (2097279) for get target bundle info failed. 656 */ 657 ERR_GET_TARGET_BUNDLE_INFO_FAILED = 2097279, 658 659 /* 660 * Result (2097280) for UIAbility in starting state. 661 */ 662 ERR_UI_ABILITY_IS_STARTING = 2097280, 663 664 /* 665 * Result (2097281) for setSessionManagerService failed. 666 */ 667 SET_SMS_FAILED = 2097281, 668 669 /* 670 * Result (2097282) for get appSpawn client failed. 671 */ 672 ERR_GET_SPAWN_CLIENT_FAILED = 2097282, 673 674 /* 675 * Result (2097283) for create start msg failed. 676 */ 677 ERR_CREATE_START_MSG_FAILED = 2097283, 678 679 /* 680 * Result (2097284) for create spawn process failed. 681 */ 682 ERR_SPAWN_PROCESS_FAILED = 2097284, 683 684 /* 685 * Result (2097285 - 2097295) for record exit reason failed. 686 */ 687 ERR_RECORD_SIGNAL_REASON_FAILED = 2097285, 688 ERR_GET_EXIT_INFO_FAILED = 2097286, 689 ERR_NO_PERMISSION_CALLER = 2097287, 690 ERR_NULL_APP_EXIT_REASON_HELPER = 2097288, 691 ERR_READ_EXIT_REASON_FAILED = 2097289, 692 ERR_IPC_PROXY_WRITE_FAILED = 2097290, 693 ERR_INVALID_ACCESS_TOKEN = 2097291, 694 ERR_GET_KV_STORE_HANDLE_FAILED = 2097292, 695 696 ERR_WRITE_INTERFACE_TOKEN_FAILED = 2097296, 697 ERR_WRITE_RESULT_CODE_FAILED = 2097297, 698 ERR_READ_RESULT_PARCEL_FAILED = 2097298, 699 ERR_NO_ALLOW_OUTSIDE_CALL = 2097299, 700 ERR_APP_MGR_SERVICE_NOT_READY = 2097300, 701 ERR_NULL_APP_RUNNING_MANAGER = 2097301, 702 ERR_NULL_APP_MGR_SERVICE_INNER = 2097302, 703 ERR_NULL_APP_MGR_PROXY = 2097303, 704 ERR_NO_APP_RECORD = 2097304, 705 706 /** 707 * Native error(3000000) for target bundle not exist. 708 */ 709 ERR_CODE_NOT_EXIST = 3000000, 710 }; 711 712 enum { 713 /** 714 * Provides a list that does not contain any 715 * recent missions that currently are not available to the user. 716 */ 717 RECENT_IGNORE_UNAVAILABLE = 0x0002, 718 }; 719 720 enum NativeFreeInstallError { 721 FREE_INSTALL_OK = 0, 722 /** 723 * FA search failed. 724 */ 725 FA_FREE_INSTALL_QUERY_ERROR = -1, 726 727 /** 728 * HAG query timeout. 729 */ 730 HAG_QUERY_TIMEOUT = -4, 731 732 /** 733 * FA Network unavailable. 734 */ 735 FA_NETWORK_UNAVAILABLE = -2, 736 737 /** 738 * FA internal system error. 739 */ 740 FA_FREE_INSTALL_SERVICE_ERROR = 0x820101, 741 742 /** 743 * FA distribution center crash. 744 */ 745 FA_CRASH = 0x820102, 746 747 /** 748 * FA distribution center processing timeout(30s). 749 */ 750 FA_TIMEOUT = 0x820103, 751 752 /** 753 * BMS unknown exception. 754 */ 755 UNKNOWN_EXCEPTION = 0x820104, 756 757 /** 758 * It is not supported to pull up PA across applications on the same device 759 */ 760 NOT_SUPPORT_PA_ON_SAME_DEVICE = -11, 761 762 /** 763 * FA internal system error. 764 */ 765 FA_INTERNET_ERROR = -3, 766 767 /** 768 * The user confirms to jump to the application market upgrade. 769 */ 770 JUMP_TO_THE_APPLICATION_MARKET_UPGRADE = -8, 771 772 /** 773 * User gives up. 774 */ 775 USER_GIVES_UP = -7, 776 777 /** 778 * Installation error in free installation. 779 */ 780 INSTALLATION_ERROR_IN_FREE_INSTALL = -5, 781 782 /** 783 * HAP package download timed out. 784 */ 785 HAP_PACKAGE_DOWNLOAD_TIMED_OUT = -9, 786 787 /** 788 * There are concurrent tasks, waiting for retry. 789 */ 790 CONCURRENT_TASKS_WAITING_FOR_RETRY = -6, 791 792 /** 793 * FA package does not support free installation. 794 */ 795 FA_PACKAGE_DOES_NOT_SUPPORT_FREE_INSTALL = -10, 796 797 /** 798 * The app is not allowed to pull this FA. 799 */ 800 NOT_ALLOWED_TO_PULL_THIS_FA = -901, 801 802 /** 803 * Not support cross-device free install PA 804 */ 805 NOT_SUPPORT_CROSS_DEVICE_FREE_INSTALL_PA = -12, 806 807 /** 808 * Free install timeout 809 */ 810 FREE_INSTALL_TIMEOUT = 29360300, 811 812 /** 813 * Not top ability 814 */ 815 NOT_TOP_ABILITY = 0x500001, 816 817 /** 818 * Target bundle name is not exist in targetBundleList. 819 */ 820 TARGET_BUNDLE_NOT_EXIST = 0x500002, 821 822 /** 823 * Permission denied. 824 */ 825 DMS_PERMISSION_DENIED = 29360157, 826 827 /** 828 * Result(29360176) for component access permission check failed. 829 */ 830 DMS_COMPONENT_ACCESS_PERMISSION_DENIED = 29360176, 831 832 /** 833 * Invalid parameters. 834 */ 835 INVALID_PARAMETERS_ERR = 29360128, 836 837 /** 838 * Remote DMS is not compatible. 839 */ 840 REMOTE_DEVICE_NOT_COMPATIBLE = 502, 841 842 /** 843 * Remote service's device is offline. 844 */ 845 DEVICE_OFFLINE_ERR = 29360142, 846 847 /** 848 * Result(29360175) for account access permission check failed. 849 */ 850 DMS_ACCOUNT_ACCESS_PERMISSION_DENIED = 29360175, 851 852 /** 853 * Result(29360131) for remote invalid parameters. 854 */ 855 INVALID_REMOTE_PARAMETERS_ERR = 29360131, 856 857 /** 858 * Native error(29360135) for target bundle has no main ability. 859 */ 860 ERR_NO_MAIN_ABILITY = 29360135, 861 862 /** 863 * Native error(29360136) for target app has no status-bar ability. 864 */ 865 ERR_NO_STATUS_BAR_ABILITY = 29360136, 866 867 /** 868 * Native error(29360137) for target app is not attached to a status bar. 869 */ 870 ERR_NOT_ATTACHED_TO_STATUS_BAR = 29360137, 871 872 /** 873 * Result(29360138) for Connect State: An error of the BMS not connect. 874 */ 875 BMS_NOT_CONNECTED = 29360138, 876 877 /* 878 * Result(29360205) for continue freeinstall failed. 879 */ 880 CONTINUE_FREE_INSTALL_FAILED = 29360205, 881 882 /* 883 * Result(29360206) for atomic service minimized. 884 */ 885 ATOMIC_SERVICE_MINIMIZED = 29360206, 886 887 /* codes 29360210 - 29360220 are reserved for StartSelfUIAbility with startOptions */ 888 /* 889 * Result(29360210) for write interface code failed. 890 */ 891 ERR_WRITE_INTERFACE_CODE = 29360210, 892 893 /* 894 * Result(29360211) for write want failed. 895 */ 896 ERR_WRITE_WANT = 29360211, 897 898 /* 899 * Result(29360212) for write startOptions failed. 900 */ 901 ERR_WRITE_START_OPTIONS = 29360212, 902 903 /* 904 * Result(29360213) for read want failed. 905 */ 906 ERR_READ_WANT = 29360213, 907 908 /* 909 * Result(29360214) for read startOptions failed. 910 */ 911 ERR_READ_START_OPTIONS = 29360214, 912 913 /* 914 * Result(29360215) for write StartSelfUIAbility result failed. 915 */ 916 ERR_WRITE_START_SELF_UI_ABILITY_RESULT = 29360215, 917 918 /** 919 * Undefine error code. 920 */ 921 UNDEFINE_ERROR_CODE = 3, 922 }; 923 } // namespace AAFwk 924 } // namespace OHOS 925 #endif // OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_ERRORS_H 926