如何添加symbian^3 UID?

发布于 2024-10-24 22:34:33 字数 111 浏览 7 评论 0原文

我的应用程序仅针对诺基亚 N8。有人可以告诉我如何仅添加对诺基亚 N8 的支持并在其他手机尝试安装它时显示错误吗?如果有人可以放置需要更新的文件的工作代码和名称。我将非常感激。

非常感谢回报。

My application is only targeted for Nokia N8 . Can some one please tell me how to add support for Nokia N8 only and displays error if other handsets try to install it. If someone can place the working code and name of the file that needs to be updated. i would be much obliged.

Many thanks in return.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心安伴我暖 2024-10-31 22:34:33

您所追求的详细信息请参阅 本文档。在您的包 (PKG) 文件中:

#{"DeviceSpecificApp"},(0x20000001),1,0,0
[0x20029A73], 0, 0, 0, {"Nokia N8 UID"}

其中 0x20000001 是您的应用 UID。
如果将生成的 SIS 安装到 N8 以外的任何设备,用户将收到警告“应用程序与手机不兼容。仍然继续吗?”

What you are after is detailed in this document. In your package (PKG) file:

#{"DeviceSpecificApp"},(0x20000001),1,0,0
[0x20029A73], 0, 0, 0, {"Nokia N8 UID"}

Where 0x20000001 is your app UID.
If the resulting SIS is installed to any device other than the N8, the user will get a warning "Application not compatible with phone. Continue anyway?"

深白境迁sunset 2024-10-31 22:34:33

好的,如果只是 QT,那么您也可以在不破解 .PRO 文件的情况下执行此操作。在您的 .PRO 中:

symbian {     
    supported_platforms = "; Application that only supports N8" \
        "[0x20029A73],0,0,0,{\"Nokia N8 UID\"}"
    # Remove the default platform dependencies
    default_deployment.pkg_prerules -= pkg_platform_dependencies

    packageheader = "${LITERAL_HASH}{\"MyAppName\"}, \ 
        (0x20000000), 0, 10, 0, TYPE=SA"

    # Add in the new platform dependencies
    sisInformation.pkg_prerules = packageheader supported_platforms 
}

DEPLOYMENT += sisInformation

显然您需要将“0x20000000”替换为您的应用程序 UID,更改应用程序名称并输入正确的平台 UID

OK, if it is QT only then you can also do this without hacking the .PRO file. In your .PRO:

symbian {     
    supported_platforms = "; Application that only supports N8" \
        "[0x20029A73],0,0,0,{\"Nokia N8 UID\"}"
    # Remove the default platform dependencies
    default_deployment.pkg_prerules -= pkg_platform_dependencies

    packageheader = "${LITERAL_HASH}{\"MyAppName\"}, \ 
        (0x20000000), 0, 10, 0, TYPE=SA"

    # Add in the new platform dependencies
    sisInformation.pkg_prerules = packageheader supported_platforms 
}

DEPLOYMENT += sisInformation

Obviously you will need to replace '0x20000000' with your app UID, change the app name and put in the right platform UID

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文