console.log(`serviceType : ${global['serviceType']}`)
new DeviceAPIRouter(id, isGlobalService());
+ // this is workaround solution to make webapis singleton worker
+ // ahead of dropThreadPrivilege()
+ global.tizen.systeminfo.getPropertyValue("CPU", () => { }, () => { });
+
+ // This is for awaking up uv loop.
+ dummyTimer = setInterval(() => {
+ checkLauncherAlive(id);
+ }, 100);
+
if (isServiceApplication()) {
registerExtensionResolver(id);
filename = wrt.getStartServiceFile(id);
console.log(`start global service file: ${filename}`);
}
- // This is for awaking up uv loop.
- dummyTimer = setInterval(() => {
- checkLauncherAlive(id);
- }, 100);
printAppControlData(id);
try {
injectVirtualRootResolver(func: Function) {
return (...args: any[]) => {
- console.log('arguments : ' + args);
if (args.length && !(args[0] === null || args[0] === undefined)) {
args[0] = wrt.resolveVirtualRoot(this.getServiceId(), args[0]);
console.log('updated argument[0] : ' + args[0]);