19 #ifndef LIBMDM_MDM_APPLICATION_H 20 #define LIBMDM_MDM_APPLICATION_H 22 #include "mdm_client_type.h" 35 typedef enum _mdm_app_status {
90 MDM_APPSTORE_STATUS_SUCCESS = TIZEN_ERROR_NONE,
91 MDM_APPSTORE_UNKNOWN_ERROR = TIZEN_ERROR_UNKNOWN,
92 MDM_APPSTORE_APP_NOT_AVAILABLE_ERROR = TIZEN_ERROR_INVALID_PARAMETER,
93 MDM_APPSTORE_APP_ALREADY_UPDATED = TIZEN_ERROR_PACKAGE_MANAGER | 0x73,
94 MDM_APPSTORE_SERVER_RESPONSE_ERROR = TIZEN_ERROR_CONNECTION_TIME_OUT,
95 MDM_APPSTORE_CONNECTION_ERROR = TIZEN_ERROR_NETWORK_UNREACHABLE,
96 MDM_APPSTORE_APP_DOWNLOAD_ERROR = TIZEN_ERROR_DOWNLOAD,
97 MDM_APPSTORE_APP_INSTALL_ERROR = TIZEN_ERROR_PACKAGE_MANAGER,
98 MDM_APPSTORE_APP_NOT_FOUND_ON_DEVICE = TIZEN_ERROR_APPLICATION | 0x21,
99 MDM_APPSTORE_APP_ALREADY_INSTALLED = TIZEN_ERROR_PACKAGE_MANAGER | 0x72,
100 } mdm_appstore_error_e;
109 mdm_appstore_error_e error_code;
110 char * error_description;
112 } mdm_appstore_error_info_s;
834 mdm_status_t mdm_is_app_privilege_blocked(GList *privilege_list);
879 mdm_status_t mdm_is_app_signature_blocked(
const char *signature);
1778 mdm_result_t mdm_add_app_privilege_to_blacklist(
const char *appPermission);
1822 mdm_result_t mdm_remove_app_privilege_from_blacklist(
const char *appPermission);
1875 mdm_result_t mdm_add_app_privilege_to_whitelist(
const char *app_permission);
1919 mdm_result_t mdm_remove_app_privilege_from_whitelist(
const char *app_permission);
1969 mdm_result_t mdm_add_app_signature_to_blacklist(
const char *appSignature);
2014 mdm_result_t mdm_remove_app_signature_from_blacklist(
const char *appSignature);
2061 mdm_result_t mdm_add_app_signature_to_whitelist(
const char *app_signature);
2105 mdm_result_t mdm_remove_app_signature_from_whitelist(
const char *app_signature);
2652 mdm_data_t *mdm_get_app_privilege_blacklist(
void);
2692 mdm_data_t *mdm_get_app_privilege_whitelist(
void);
2732 mdm_data_t *mdm_get_app_signature_blacklist(
void);
2771 mdm_data_t *mdm_get_app_signature_whitelist(
void);
2826 mdm_data_t *mdm_get_app_privilege_all_blacklists(
void);
2879 mdm_data_t *mdm_get_app_privilege_all_whitelists(
void);
2932 mdm_data_t *mdm_get_app_signature_all_blacklists(
void);
2983 mdm_data_t *mdm_get_app_signature_all_whitelists(
void);
3028 mdm_data_t *mdm_get_app_blocked_privileges(
void);
3073 mdm_data_t *mdm_get_app_blocked_signatures(
void);
3391 mdm_result_t mdm_install_application_by_url(
const char *store_url,
const char *app_name,
3464 mdm_result_t mdm_update_application_by_url(
const char *store_url,
const char *app_name,
3558 const char *privilege_pattern);
3756 #endif //LIBMDM_MDM_APPLICATION_H
mdm_data_t * mdm_get_most_data_usage_apps(int appCount)
API to get a list of application packages that have the highest data usage.
mdm_result_t mdm_remove_app_package_name_from_whitelist(const char *pkg_name)
API to remove an application package name from the application package name whitelist.
mdm_data_t * mdm_get_application_code_size(const char *pkg_name)
API to get the code size of an application.
mdm_data_t * mdm_get_application_data_size(const char *pkg_name)
API to get the data size of an application.
mdm_data_t * mdm_get_application_version(const char *pkg_name)
API to get the application version.
mdm_result_t mdm_clear_all_app_package_names_from_installation_whitelist(void)
API to remove all application package names from the installation whitelist.
This structure is used to store GList.
mdm_result_t mdm_set_application_uninstallation_disabled(const char *pkg_name)
API to disable the uninstallation of an application package.
mdm_data_t * mdm_get_application_state_list(mdm_app_status_t state)
API to get the list of applications on the device that have the specified state.
mdm_result_t mdm_set_application_uninstallation_enabled(const char *pkg_name)
API to enable the uninstallation of an application package.
mdm_data_t * mdm_get_installed_applications_list(void)
API to get a list of all installed application packages.
mdm_privacy_permission_state_t
Runtime permission policy value stored in the following states.
mdm_status_t mdm_get_application_installation_disabled(const char *pkg_name)
API to check whether a particular application package can be installed.
mdm_result_t mdm_get_application_cpu_usage(const char *app_id, unsigned long *usage)
API to get the CPU usage of an application.
void(* mdm_client_callback_function_ext)(void *cb_data, void *user_data)
Policy callback function pointer.
mdm_result_t mdm_get_application_memory_usage(const char *app_id, unsigned int *usage)
API to get the RAM memory usage of an application.
Application control info.
mdm_status_t
MDM Policy status.
mdm_status_t mdm_get_application_installation_mode(void)
API to get the current installation mode for all applications.
mdm_result_t mdm_uninstall_application(const char *pkg_name)
API to uninstall an application package.
mdm_result_t mdm_update_application(const char *pkg_path)
API to update an application package on the device.
mdm_data_t * mdm_set_application_state_list(GList *pkg_list, mdm_app_status_t state)
API to set the state of a list of applications.
mdm_result_t mdm_remove_app_package_name_from_blacklist(const char *pkg_name)
API to remove an application package name from the application package name blacklist.
mdm_result_t mdm_disable_application(const char *pkg_name)
API to disable an application package without uninstalling it.
mdm_data_t * mdm_get_application_total_size(const char *pkg_name)
API to get the total size of an application, which includes both code and data.
mdm_data_t * mdm_get_most_memory_usage_apps(int appCount, mdm_status_t showAllProcess)
API to get a list of running applications or processes that have the highest memory usage...
mdm_result_t mdm_set_application_uninstallation_mode(mdm_status_t value)
API to set the default mode for application uninstallation.
mdm_result_t mdm_enable_application(const char *pkg_name)
API to enable an application package that was previously disabled.
mdm_app_status_t
Possible MDM application statuses.
mdm_result_t mdm_set_application_installation_mode(mdm_status_t state)
API to set the default application installation mode.
mdm_result_t mdm_set_application_installation_disabled(const char *pkg_name)
API to disable the installation of application package.
mdm_result_t knox_mdm_add_privacy_permission_state_for_package(const char *package_name, const char *privilege, mdm_privacy_permission_state_t state)
API to set runtime permission state for specified application package.
mdm_result_t mdm_set_application_installation_enabled(const char *pkg_name)
API to enable the installation of application package, that was previously disabled.
Application network statistics.
mdm_result_t mdm_start_application(const char *app_id)
API to launch an application.
mdm_status_t knox_mdm_widget_board_get_edit_permission(bool all_admins)
API to get information about whether any widget board edition is allowed. For more about widgets...
mdm_result_t mdm_clear_all_app_package_names_from_uninstallation_whitelist(void)
API to remove all application package names from the uninstallation whitelist.
mdm_result_t
MDM API result.
mdm_status_t mdm_get_application_state(const char *pkg_name)
API to check whether a given application package is enabled or disabled.
mdm_result_t mdm_install_application(const char *pkg_path)
API to install an application package on the device.
mdm_status_t mdm_is_application_running(const char *app_id)
API to check if an application is currently running.
mdm_result_t knox_mdm_get_privacy_permission_state_for_package(const char *package_name, const char *privilege, bool all_admins, mdm_privacy_permission_state_t *state)
API to get current state of a particular runtime permission for selected package name.
mdm_result_t mdm_clear_all_app_package_names_from_uninstallation_blacklist(void)
API to remove all application package names from the uninstallation blacklist.
mdm_data_t * mdm_get_app_package_names_all_blacklist(void)
API to get the list of blacklisted application package names for all admins.
mdm_status_t mdm_get_application_uninstallation_disabled(const char *pkg_name)
API to check if an application can be uninstalled.
mdm_data_t * mdm_uninstall_applications(GList *pkg_list)
API for bulk uninstallation of application packages.
mdm_status_t mdm_get_application_uninstallation_mode(void)
API to get the current uninstallation mode for all applications.
mdm_result_t mdm_set_application_state(const char *pkg_name, mdm_app_status_t state)
API to set the state of an application.
mdm_data_t * knox_mdm_get_privacy_permission_data(const char *package_name_pattern, const char *privilege_pattern, bool all_admins, mdm_privacy_permission_state_t state_pattern)
API to get current state of a particular runtime privacy permission for selected packages and privile...
mdm_data_t * mdm_get_application_name(const char *pkg_name)
API to get the name of an application.
mdm_result_t mdm_add_app_package_name_to_blacklist(const char *pkg_name)
Add an application package name to the application package name blacklist.
mdm_data_t * mdm_get_app_package_names_all_whitelist(void)
API to get whitelist of application package names for all admins.
mdm_data_t * mdm_get_most_cpu_usage_apps(int appCount, mdm_status_t showAllProcess)
API to get a list of running applications or processes that have the highest CPU usage.
mdm_result_t mdm_add_app_package_name_to_whitelist(const char *pkg_name)
API to add an application package name to the application package name whitelist. ...
mdm_result_t mdm_stop_application(const char *app_id)
API to stop an application.
mdm_result_t knox_mdm_widget_board_set_edit_permission(mdm_status_t status)
API to set whether the widget board can be edited.
mdm_result_t knox_mdm_remove_privacy_permissions_from_packages(const char *package_name_pattern, const char *privilege_pattern)
API to remove the state of a particular permission for specific application packages.
mdm_status_t mdm_is_application_installed(const char *pkg_name)
API to check if an application package is installed.
mdm_data_t * mdm_get_application_network_status_list(void)
API to get a list of applications and their corresponding network traffic usage.
mdm_result_t mdm_clear_all_app_package_names_from_installation_blacklist(void)
API to remove all application package names from the installation blacklist.