Hello Baptiste, Actually, AIL APIs are replaced with appinfo APIs in package manager. These are part of Package APIs but for handling application information not package information. For example, one of replaced AIL APIs is as follows: ail_error_e ail_package_get_appinfo(const char *package, ail_appinfo_h *handle) __attribute__((deprecated)); ail_error_e ail_package_get_usr_appinfo(const char *package, uid_t uid, ail_appinfo_h *handle) __attribute__((deprecated));
(You can see the whole AIL APIs here: https://review.tizen.org/gerrit/gitweb?p=platform/core/appfw/ail.git;a=blob;f=include/ail.h;h=e745c615bf02e427f52df766791527bf801bc18c;hb=refs/heads/tizen) These are replaced with: int pkgmgrinfo_appinfo_get_appinfo(const char *appid, pkgmgrinfo_appinfo_h *handle); int pkgmgrinfo_appinfo_get_usr_appinfo(const char *appid, uid_t uid, pkgmgrinfo_appinfo_h *handle); (https://review.tizen.org/gerrit/gitweb?p=platform/core/appfw/pkgmgr-info.git;a=blob;f=include/pkgmgr-info.h;h=a82ab8bcbe03ccf7c37568d3a85ddef9e49d361a;hb=refs/heads/tizen) As far as I know, appinfo APIs in package manager can support multiple applications in one package. And, these APIs provides the same function with AIL APIs. If it is not true, it should be changed to support multiple applications. But, using AIL APIs should not be the solution. AIL should be deprecated. As you mentioned in the previous mail, AIL reads the information based in app_info.db. app_info.db is filled with data come from desktop files installed in /usr/share/applications or $HOME/.applications/desktop. Unfortunately, desktop file is no longer used in Tizen. No one specifies the application information in a desktop file. Manifest file (.xml) is replaced with the desktop file now. To make the AIL APIs work, desktop files are created and installed by application installer based in manifest file when the package is installed. We have no reason to maintain the AIL. It should be deprecated and we have to use other APIs. I think that appinfo APIs in package manager can be a great alternative. Thanks, Suchang. ------- Original Message ------- Sender : Baptiste Durand<[email protected]> Date : 2015-03-13 19:55 (GMT+09:00) Title : AIL / Package Api status : Architecure point of view Hello Suchang, hello all Recently, some changes were merged in aul package. Replacement of AIL API calls by Package API this leads to break applications managament for the future. Indeed, the Tizen packaging allows to have multiple apps inside one package. This has been already discussed in Security F2F in Vannes last year. Currently it could work only if we have 1 applications per package and the name of the app and the package is the same(Label field) AIL reads retreive the informations based in app_info.db pakcage API reads the informations on pkgmgr-parser.db This two database has two differents purposes. Both should be kept! Suchang, in a review you said that AIL API is obselete for 2.3 who decide this? Regarding the needs to support multiple apps inside one package,the Api AIL is still valid. Suchang if you thinks supporting mutliple apps inside one package is obselete too, please make a Jira feature ticket, and start a discussion on it in this mailling list So please Suchang revert the changes asap. Thanks you -- Baptiste DURAND Eurogiciel Vannes/FR _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
