【问题标题】:What is data/data equivalent for TizenTizen 的数据/数据等价物是什么
【发布时间】:2016-10-14 23:04:00
【问题描述】:

android中安装的包进入/data/data文件夹。您可以通过 adb 命令浏览它们。

谁能告诉我已安装的软件包将安装在 tizen 的什么位置?如何使用 sdb 命令浏览它?

【问题讨论】:

    标签: tizen tizen-wearable-sdk tizen-web-app


    【解决方案1】:

    据我所知,Tizen specs 中没有关于应用程序安装目录的规范。

    但我知道移动和可穿戴设备(Z1、Z3、Gear S1、Gear S2)2.3.x 模拟器和目标遵循相同的规则。
    对于预安装的应用程序:/usr/apps/[Pakcage ID]
    对于用户安装的应用程序:/opt/usr/apps/[Package ID]

    由于 Tizen 3.0 具有多用户功能,因此用户应用程序应安装到 /home/[user name]/apps_rw/[Package ID]

    此外,目前的 Tizen 有两种类型的应用程序 Web 和 Native。
    每个应用都有不同的安装目录结构。

    本机应用程序

    author-signature.xml : Author signing that created with this App
    bin                  : Excutable binary or libs for App
    cache                : App Cache directory use internally for platform.
    data                 : Data directory that application can read or WRITE
    lib                  : Libraries used in only this application.
    res                  : Resources that used in only this application. 
    shared               : Files (Usually resource) that can SHARED with other apps.
    signature1.xml       : File signs for every files in application.
    tizen-manifest.xml   : Manifest file for this Application.
    

    网络应用程序

    shared               : Same Usage with Native
    tmp                  : It works like the browser Cache file directory
    bin                  : Link of the Launcher for Web Application that Platform internal use internally.
    data                 : Same Usage with Native
    res                  : Same Usage with Native 
    res/wgt              : Every files in User `wgt` package
    
    • 应用程序(本机和 Web)的图标放置在 shared/res/ 中,因为 它应该用于其他应用程序。
    • Web 应用程序包中的文件 (wgt) 将安装到 res/wgt。
    • 消息端口 API 使用共享和 内部共享/信任。 (web, native)

    如果您不是 root,则无法读取目录中的文件,除了 shared/res 之类的少数内容。
    在模拟器或工程图像上可以使用sdb root on 命令设置root。

    目录可以随时更改,因为 Tizen 规范没有描述应用程序的目录。

    【讨论】:

      猜你喜欢
      • 2021-12-15
      • 1970-01-01
      • 1970-01-01
      • 2011-03-15
      • 2019-09-24
      • 1970-01-01
      • 2015-06-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多