For some app like
111399000136, it's packagid is 'obxi69OqU7' which same with UI app's
package ID, but the service id is 'obxi69OqU4.service', if get packagid from service
name, 'obxi69OqU4' will get which is not 'obxi69OqU7'. So set smack label by service
app name, issue will happen.
Now get the packagid from webapis.getPackageId.
Change-Id: If7d0a53bc56bd7f002b4406ba78bc25176bbec60
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
try {
let ids = id.split(':');
let serviceId = ids[0];
- let packageId = serviceId.split('.')[0];
+ let packageId = global.webapis.getPackageId();
wrt.security?.dropThreadPrivilege(packageId, serviceId);
app = require(filename);