Hello!

I've noted that
SilentUninstall does not work if app UID is from Legacy UID Range (0x1xxxxxxx).
It returns -1.
For apps which UID is from V9 protected UID range (0x2xxxxxxx) it works as expected (returns 0 and uninstall application).
E.g. uninstallApp: 0x2004411b - works OK
uninstallApp: 0x10152d27 - returns -1

Both apps were downloaded from ovi store...


Why?

Code:
void DeviceHelper::uninstallApp(TUid id)
{
	RDebug::Print( _L("uninstallApp: %x"), id);
	SwiUI::RSWInstSilentLauncher inst;
	inst.Connect();
	SwiUI::TUninstallOptions options;
	SwiUI::TUninstallOptionsPckg optionsPckg;
	options.iKillApp = SwiUI::EPolicyAllowed;
	options.iBreakDependency = SwiUI::EPolicyAllowed;
	optionsPckg = options;
	TInt res = inst.SilentUninstall( id, optionsPckg, SwiUI::KSisxMimeType );
	inst.Close(); 
	RDebug::Print(_L("%d"), res);
}