@app.route('<STR_LIT>', methods=['<STR_LIT:GET>'])<EOL>def app_stop(device_id, app_id):
if not is_valid_app_id(app_id):<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>if not is_valid_device_id(device_id):<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>if device_id not in devices:<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>success = devices[device_id].stop_app(app_id)<EOL>return jsonify(success=success)<EOL>
stops an app with corresponding package name