Reputation: 230
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.
Upvotes: 0
Views: 1477
Reputation: 1789
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
Upvotes: 0
Reputation: 1789
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?"
Upvotes: 1