tpk_name = Path(tpk_path).name
raw = cmd(f"shell pkgcmd -i -t tpk -p {OWNER_DIR}{tpk_name}")
if "key[end] val[ok]" not in raw:
+ cmd(f"shell rm {OWNER_DIR}{tpk_name}")
return "FAIL"
+
+ cmd(f"shell rm {OWNER_DIR}{tpk_name}")
return "OK"
# Get the root path of the application
# Get the device type
def get_device_type():
- raw = cmd(f"shell cat /etc/config/model-config.xml | grep tizen.org/system/device_type")
+ raw = cmd(f"shell cat /etc/config/model-config.xml | grep tizen.org/feature/profile")
return raw.split(">")[1].split("<")[0]
# Create the System.Private.CoreLib native image