javamanager/javainstaller/installer/javasrc.s60/com/nokia/mj/impl/installer/applicationregistrator/SifRegistrator.java
--- a/javamanager/javainstaller/installer/javasrc.s60/com/nokia/mj/impl/installer/applicationregistrator/SifRegistrator.java Fri Oct 15 12:29:39 2010 +0300
+++ b/javamanager/javainstaller/installer/javasrc.s60/com/nokia/mj/impl/installer/applicationregistrator/SifRegistrator.java Fri Oct 29 11:49:32 2010 +0300
@@ -384,6 +384,7 @@
int uid = ((PlatformUid)aSuiteInfo.getUid()).getIntValue();
String[] componentFiles = getComponentFiles(aSuiteInfo);
long componentSize = aSuiteInfo.getInitialSize();
+ int installState = (aSuiteInfo.isPreinstalled()? 1: 0);
String attrValue = aSuiteInfo.getAttributeValue("Nokia-MIDlet-Block-Uninstall");
boolean isRemovable = !(attrValue != null && attrValue.equalsIgnoreCase("true"));
boolean isDrmProtected = (aSuiteInfo.getContentInfo() == aSuiteInfo.CONTENT_INFO_DRM);
@@ -397,7 +398,7 @@
iSessionHandle, uid,
getScrString(suiteName), getScrString(vendor),
getScrString(version), getScrString(globalId),
- componentFiles, componentSize,
+ componentFiles, componentSize, installState,
isRemovable, isDrmProtected,
isOriginVerified, aIsUpdate,
aSuiteInfo.getMediaId(),
@@ -867,6 +868,7 @@
* @param aGlobalId
* @param aComponentFiles
* @param aComponentSize
+ * @param aInstallState
* @param aIsRemovable
* @param aIsDrmProtected
* @param aIsOriginVerified
@@ -883,7 +885,7 @@
private static native int _registerComponent(
int aSessionHandle, int aUid, String aSuiteName, String aVendor,
String aVersion, String aGlobalId,
- String[] aComponentFiles, long aComponentSize,
+ String[] aComponentFiles, long aComponentSize, int aInstallState,
boolean aIsRemovable, boolean aIsDrmProtected,
boolean aIsOriginVerified, boolean aIsUpdate, int aMediaId,
String aMidletInfoUrl, String aMidletDescription,