Skip to content

Commit 443c668

Browse files
committed
fix(device): correct replacements.json format for pudding
Change replacements.json from array format to object format with 'replacements' key to match expected schema in file_replacement plugin. The file_replacement plugin expects config.get('replacements', []) which requires the JSON to be an object containing a 'replacements' array, not a direct array. Error fixed: 'list' object has no attribute 'items'
1 parent 5fd3707 commit 443c668

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

devices/pudding/replacements.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
[
2-
{
3-
"description": "Replace LyraSdkApp from stock",
4-
"type": "file",
5-
"search_path": "product/app/LyraSdkApp",
6-
"files": ["LyraSdkApp.apk"]
7-
}
8-
]
1+
{
2+
"replacements": [
3+
{
4+
"description": "Replace LyraSdkApp from stock",
5+
"type": "file",
6+
"search_path": "product/app/LyraSdkApp",
7+
"files": ["LyraSdkApp.apk"]
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)