{
	"rule":{
		"naboo":{
			"ro.boot.devicetypeid":"0ABA0AA4F71949C4A3FB0418BF025113"
		},
		"rokid-mini":{
			"ro.boot.devicetypeid":"3EBDA7D872134F9485457653B43257D8"
		},
		"rokid-glass":{
			"ro.boot.devicetypeid":"87EB530938A74472BF1A954EFB218EB3"
		},
		"rokid-me":{
			"ro.boot.devicetypeid":"AA12D7458EAD4AC4A8BF8ABB96FD8B74"
		},
		"rokid-rk3308":{
			"ro.boot.devicetypeid":"C8F9B0DB89994533A33908606F4C732C"
		},
		"rokid-hi3561":{
			"ro.rokid.build.productname":"Rokid-HI3561"
		}
	},

	"action":{
		"naboo":{
			"recoverySwitch":true,
			"recovery":{
				"script":"module/upgradeYoudaOS/upgrade"
			},
			"monitorSwitch" : true,
			"monitor":{
				"savePath": "module/monitor/yoda-sixsix-naboo",
				"downloadUrl" : "https://github.com/yodaos-project/edge-monitor/releases/download/kamino_last/yoda-sixsix",
				"startScript":"chmod +x /data/yoda-sixsix && /data/yoda-sixsix",
				"stopScript":"busybox ps|grep -v grep|grep /data/yoda-sixsix|awk '{print $1}'| xargs kill",
				"checkExist":"busybox ps|grep -v grep|grep /data/yoda-sixsix|wc -l"	
			},
			"log":{
				"logread -f":{
					"switch":true,
					"delay":2
				},
				"rklogger 30100":{
					"switch":false,
					"delay":30
				},
				"cat /proc/kmsg":{
					"switch":false,
					"delay":5
				}
			}
		},
		"rokid-mini":{
			"recoverySwitch":true,
			"recovery":{
				"script":"module/upgradeYoudaOS/upgrade"
			},
			"monitorSwitch" : true,
			"monitor":{
				"savePath": "module/monitor/yoda-sixsix-rokid-mini",
				"downloadUrl" : "https://github.com/yodaos-project/edge-monitor/releases/download/a113-last/yoda-sixsix",
				"startScript":"chmod +x /data/yoda-sixsix && /data/yoda-sixsix",
				"stopScript":"busybox ps|grep -v grep|grep /data/yoda-sixsix|awk '{print $1}'| xargs kill",
				"checkExist":"busybox ps|grep -v grep|grep /data/yoda-sixsix|wc -l"	
			},
			"log":{
				"logread -f":{
					"switch":true,
					"delay":2
				},
				"rklogger 30100":{
					"switch":false,
					"delay":30
				},
				"cat /proc/kmsg":{
					"switch":false,
					"delay":5
				}
			}
		},
		"rokid-glass":{
			"recoverySwitch":true,
			"recovery":{
				"script":"module/upgradeGlass/upgrade"
			},
			"monitorSwitch" : true,
			"monitor":{
				"savePath": "module/monitor/yoda-sixsix-rokid-glass",
				"downloadUrl" : "https://github.com/yodaos-project/edge-monitor/releases/download/arm64-v8a_last/yoda-sixsix",
				"startScript":"chmod +x /data/yoda-sixsix && /data/yoda-sixsix",
				"stopScript":"pkill yoda-sixsix",
				"checkExist":"ps|grep -v grep|grep /data/yoda-sixsix|wc -l"	
			},
			"log":{
				"logcat":{
					"switch":true,
					"delay":5
				}
			}
		},
		"rokid-me":{
			"recoverySwitch":true,
			"recovery":{
				"script":"module/upgradeYoudaOS/upgrade-new-opt-for-me"
			},
			"monitorSwitch" : true,
			"monitor":{
				"savePath": "module/monitor/yoda-sixsix-rokid-me",
				"downloadUrl" : "https://github.com/yodaos-project/edge-monitor/releases/download/a113-last/yoda-sixsix",
				"startScript":"chmod +x /data/yoda-sixsix && /data/yoda-sixsix",
				"stopScript":"pkill yoda-sixsix",
				"checkExist":"ps -ef|grep -v grep|grep /data/yoda-sixsix|wc -l"	
			},
			"log":{
				"logread -f":{
					"switch":true,
					"delay":2
				},
				"rklogger 30100":{
					"switch":false,
					"delay":30
				},
				"cat /proc/kmsg":{
					"switch":false,
					"delay":5
				}
			}
		},
		"rokid-rk3308":{
			"recoverySwitch":false,
			"recovery":{
				"script":"xxxxxxxx"
			},
			"monitorSwitch" : true,
			"monitor":{
				"savePath": "module/monitor/yoda-sixsix-rokid-rk3308",
				"downloadUrl" : "https://github.com/yodaos-project/edge-monitor/releases/download/a113-last/yoda-sixsix",
				"startScript":"chmod +x /data/yoda-sixsix && /data/yoda-sixsix",
				"stopScript":"pkill yoda-sixsix",
				"checkExist":"ps -ef|grep -v grep|grep /data/yoda-sixsix|wc -l"
			},
			"log":{
				"logread -f":{
					"switch":true,
					"delay":2
				}
			}
		},
		"rokid-hi3561":{
			"recoverySwitch":false,
			"recovery":{
				"script":"xxxxxxxx"
			},
			"monitorSwitch" : true,
			"monitor":{
				"savePath": "module/monitor/yoda-sixsix-rokid-hi3561",
				"downloadUrl" : "https://github.com/yodaos-project/edge-monitor/releases/download/kamino_last/yoda-sixsix",
				"startScript":"chmod +x /data/yoda-sixsix && /data/yoda-sixsix",
				"stopScript":"pkill yoda-sixsix",
				"checkExist":"ps -ef|grep -v grep|grep '/data/yoda-sixsix '|wc -l"
			},
			"log":{
				"logread -f":{
					"switch":true,
					"delay":2
				}
			}
		}
	}
}
