Hello, while not duplicating the information is a desired objective that I am happy to see implemented (it was delayed to keep backward compatibility) we need to keep in mind :
- Packages and App are different and we need to manage both. LIkely sbest olution is change the DB schema - affected packages and WIki documentation must be updated. - Security and multu User models need to be supported - a mail explaining the lost backward compatibility and API removal must be publsihed in the Dev amiling list. In a similar model, the removal of the Desktop file while desired requires : - a public communication in the Dev Mailing list - correction of Wiki pages - update of the Common Launcher to make it work model on the new DB rather than on the legacy Desktop file. Can you please work together to agree who does what and get the code and the documentation aligned. Regards 2015-03-16 0:59 GMT+01:00 Semun Lee <[email protected]>: > Hello, > > ail db and pkgmgr db contains duplicated information about applications. > That may cause mismatch between them. > As Suchang explained, the ail db is not needed anymore. It should be > deprecated. > > Best regards, > Semun > >> -----Original Message----- >> From: Dev [mailto:[email protected]] On Behalf Of 우수창 >> Sent: Saturday, March 14, 2015 7:26 PM >> To: Baptiste Durand >> Cc: [email protected] >> Subject: Re: [Dev] AIL / Package Api status : Architecure point of view >> >> 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=blo >> b;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 > > _______________________________________________ > Dev mailing list > [email protected] > https://lists.tizen.org/listinfo/dev -- Dominig ar Foll Senior Software Architect Intel Open Source Technology Centre _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
