Open w-all opened 7 months ago
Hi @wall25 Interesting case. On my side. I have the same ipk with the combination of your 2 ipks. LG provides a different way for your TV. My and your IPK were built at the same time:
Your IPK build info
cobalt_version: 22.lts.6
cobalt_build: 308696
cobalt_branch: 22.lts
commit_revision: daa9163647
build_target: egs_gold
soc: o22
oe_env: mlt4tv_260
build_time: 2023-06-13 13:07
build_env: Linux 400f4c44798d
My IPK build info
cobalt_version: 22.lts.6
cobalt_build: 308696
cobalt_branch: 22.lts
commit_revision: daa9163647
build_target: eg_gold
soc: o20n
oe_env: kcl4tv_253
build_time: 2023-06-13 12:42
build_env: Linux 400f4c44798d
@wall25 I did an update for your case, can you try it on your youtube app 2023-10-19-youtube.leanback.v4-1.1.44.ipk
.
Here the change: https://github.com/GuillaumeSmaha/youtube-webos-cobalt-browser/commit/3d5775eba463997f4322a7cdbc1e6a359a14aa59
The current repo was splitted into 2 repos. You can find the cobalt part here: https://github.com/GuillaumeSmaha/youtube-webos-cobalt-browser
Let me know if it works :)
Let me know if it works :)
The patching process works fine, but the resulting application does not work. It tries to start and exits without messages.
Yes, I was not sure it will work I saw small difference.
Here the difference between the 2 initial IPKs and the patched IPK.
cobalt:
$ tree cobalt-shared/data
cobalt-shared/data
└── usr
└── palm
├── data
│ └── images
│ └── cobalt.shared
│ └── data.img
├── packages
│ └── cobalt.shared
│ └── packageinfo.json
└── resources
└── cobalt.shared.resource
└── resourceinfo.json
cobalt data image:
$ tree cobalt-shared/data-img
cobalt-shared/data-img
└── usr
└── palm
├── packages
│ └── cobalt.shared
└── resources
└── cobalt.shared.resource
├── content
│ ├── app
│ │ └── cobalt
│ │ ├── content
│ │ │ ├── fonts
│ │ │ │ ├── fonts.xml
│ │ │ │ ├── NotoSansSymbols-Regular-Subsetted2.woff2
│ │ │ │ ├── NotoSansSymbols-Regular-Subsetted.woff2
│ │ │ │ └── Roboto-Regular-Subsetted.woff2
│ │ │ ├── licenses
│ │ │ │ └── licenses_cobalt.txt
│ │ │ ├── ssl
│ │ │ │ └── certs
│ │ │ │ ├── 002c0b4f.0
│ │ │ │ ├── 02265526.0
│ │ │ │ ├── 03179a64.0
│ │ │ │ ├── 062cdee6.0
│ │ │ │ ├── 064e0aa9.0
│ │ │ │ ├── 06dc52d5.0
│ │ │ │ ├── 09789157.0
│ │ │ │ ├── 0a775a30.0
│ │ │ │ ├── 0b1b94ef.0
│ │ │ │ ├── 0b9bc432.0
│ │ │ │ ├── 0bf05006.0
│ │ │ │ ├── 0f5dc4f3.0
│ │ │ │ ├── 0f6fa695.0
│ │ │ │ ├── 1001acf7.0
│ │ │ │ ├── 106f3e4d.0
│ │ │ │ ├── 14bc7599.0
│ │ │ │ ├── 18856ac4.0
│ │ │ │ ├── 1d3472b9.0
│ │ │ │ ├── 1e08bfd1.0
│ │ │ │ ├── 1e09d511.0
│ │ │ │ ├── 244b5494.0
│ │ │ │ ├── 2923b3f9.0
│ │ │ │ ├── 2ae6433e.0
│ │ │ │ ├── 2b349938.0
│ │ │ │ ├── 32888f65.0
│ │ │ │ ├── 349f2832.0
│ │ │ │ ├── 3513523f.0
│ │ │ │ ├── 3bde41ac.0
│ │ │ │ ├── 3e44d2f7.0
│ │ │ │ ├── 3e45d192.0
│ │ │ │ ├── 3fb36b73.0
│ │ │ │ ├── 40193066.0
│ │ │ │ ├── 4042bcee.0
│ │ │ │ ├── 40547a79.0
│ │ │ │ ├── 406c9bb1.0
│ │ │ │ ├── 4304c5e5.0
│ │ │ │ ├── 48bec511.0
│ │ │ │ ├── 4b718d9b.0
│ │ │ │ ├── 4bfab552.0
│ │ │ │ ├── 4f316efb.0
│ │ │ │ ├── 5273a94c.0
│ │ │ │ ├── 5443e9e3.0
│ │ │ │ ├── 54657681.0
│ │ │ │ ├── 57bcb2da.0
│ │ │ │ ├── 5931b5bc.0
│ │ │ │ ├── 5a7722fb.0
│ │ │ │ ├── 5ad8a5d6.0
│ │ │ │ ├── 5cd81ad7.0
│ │ │ │ ├── 5d3033c5.0
│ │ │ │ ├── 5e98733a.0
│ │ │ │ ├── 5f15c80c.0
│ │ │ │ ├── 5f618aec.0
│ │ │ │ ├── 607986c7.0
│ │ │ │ ├── 626dceaf.0
│ │ │ │ ├── 653b494a.0
│ │ │ │ ├── 66445960.0
│ │ │ │ ├── 68dd7389.0
│ │ │ │ ├── 6b99d060.0
│ │ │ │ ├── 6d41d539.0
│ │ │ │ ├── 6fa5da56.0
│ │ │ │ ├── 706f604c.0
│ │ │ │ ├── 749e9e03.0
│ │ │ │ ├── 75d1b2ed.0
│ │ │ │ ├── 76faf6c0.0
│ │ │ │ ├── 7719f463.0
│ │ │ │ ├── 773e07ad.0
│ │ │ │ ├── 7a3adc42.0
│ │ │ │ ├── 7a780d93.0
│ │ │ │ ├── 7aaf71c0.0
│ │ │ │ ├── 7f3d5d1d.0
│ │ │ │ ├── 8160b96c.0
│ │ │ │ ├── 8508e720.0
│ │ │ │ ├── 8cb5ee0f.0
│ │ │ │ ├── 8d86cdd1.0
│ │ │ │ ├── 8d89cda1.0
│ │ │ │ ├── 8f103249.0
│ │ │ │ ├── 90c5a3c8.0
│ │ │ │ ├── 930ac5d2.0
│ │ │ │ ├── 93bc0acc.0
│ │ │ │ ├── 9482e63a.0
│ │ │ │ ├── 9846683b.0
│ │ │ │ ├── 988a38cb.0
│ │ │ │ ├── 9b5697b0.0
│ │ │ │ ├── 9c8dfbd4.0
│ │ │ │ ├── 9d04f354.0
│ │ │ │ ├── 9ef4a08a.0
│ │ │ │ ├── 9f727ac7.0
│ │ │ │ ├── a3418fda.0
│ │ │ │ ├── a94d09e5.0
│ │ │ │ ├── aee5f10d.0
│ │ │ │ ├── b0e59380.0
│ │ │ │ ├── b1159c4c.0
│ │ │ │ ├── b433981b.0
│ │ │ │ ├── b66938e9.0
│ │ │ │ ├── b727005e.0
│ │ │ │ ├── b7a5b843.0
│ │ │ │ ├── b81b93f0.0
│ │ │ │ ├── bf53fb88.0
│ │ │ │ ├── c01eb047.0
│ │ │ │ ├── c28a8a30.0
│ │ │ │ ├── ca6e4ad9.0
│ │ │ │ ├── cbf06781.0
│ │ │ │ ├── cc450945.0
│ │ │ │ ├── cd58d51e.0
│ │ │ │ ├── cd8c0d63.0
│ │ │ │ ├── ce5e74ef.0
│ │ │ │ ├── d4dae3dd.0
│ │ │ │ ├── d52c538d.0
│ │ │ │ ├── d6325660.0
│ │ │ │ ├── d7e8dc79.0
│ │ │ │ ├── d887a5bb.0
│ │ │ │ ├── dc4d6a89.0
│ │ │ │ ├── dd8e9d41.0
│ │ │ │ ├── de6d66f3.0
│ │ │ │ ├── e113c810.0
│ │ │ │ ├── e18bfb83.0
│ │ │ │ ├── e35234b1.0
│ │ │ │ ├── e36a6752.0
│ │ │ │ ├── e73d606e.0
│ │ │ │ ├── e868b802.0
│ │ │ │ ├── e8de2f56.0
│ │ │ │ ├── ecccd8db.0
│ │ │ │ ├── ed858448.0
│ │ │ │ ├── ee64a828.0
│ │ │ │ ├── eed8c118.0
│ │ │ │ ├── ef954a4e.0
│ │ │ │ ├── f081611a.0
│ │ │ │ ├── f0c70a8d.0
│ │ │ │ ├── f249de83.0
│ │ │ │ ├── f30dd6ad.0
│ │ │ │ ├── f3377b1b.0
│ │ │ │ ├── f387163d.0
│ │ │ │ ├── f39fc864.0
│ │ │ │ ├── f51bb24c.0
│ │ │ │ ├── fa5da96b.0
│ │ │ │ ├── fc5a8f99.0
│ │ │ │ ├── fd64f3fc.0
│ │ │ │ ├── fe8a2cd8.0
│ │ │ │ ├── feffd413.0
│ │ │ │ └── ff34af3f.0
│ │ │ └── web
│ │ │ ├── kids
│ │ │ │ └── splash.html
│ │ │ ├── tv
│ │ │ │ └── splash.html
│ │ │ └── youtube
│ │ │ └── splash.html
│ │ ├── lib
│ │ │ └── libcobalt.so
│ │ └── manifest.json
│ └── system_fonts
│ └── fonts.xml
└── storage
└── icu
└── icudt68l.dat
your youtube ipk:
$ tree 2023-10-19-youtube.leanback.v4-1.1.44/data
2023-10-19-youtube.leanback.v4-1.1.44/data
└── usr
└── palm
├── applications
│ └── youtube.leanback.v4
│ ├── 2018-new-splash-solid-grey-LG.png
│ ├── 31457796340988573_16977867_115x115.png
│ ├── 31457796355976094_16977867_192x192.png
│ ├── 9262051282473701_youtube_leanback_preview.png
│ ├── 9262051307371701_youtube_leanback_splash.png
│ ├── appinfo.json
│ ├── ic_add_youtube_channel.png
│ ├── resources
│ │ ├── ja
│ │ │ └── appinfo.json
│ │ └── ko
│ │ └── appinfo.json
│ ├── yt_lg_130x130.png
│ └── yt_lg_80x80.png
├── data
│ └── images
│ └── youtube.leanback.v4
│ └── data.img
└── packages
└── youtube.leanback.v4
└── packageinfo.json
-- your youtube ipk data image:
$ tree 2023-10-19-youtube.leanback.v4-1.1.44/data-img
2023-10-19-youtube.leanback.v4-1.1.44/data-img
└── usr
└── palm
└── applications
└── youtube.leanback.v4
├── build_info
├── cobalt
├── content
├── crashpad_handler
├── drm.nfz
├── switches
├── tmp
├── use_shared_package
└── webOSUserScripts
└── userScript.js
the ipk generated:
$ tree 2023-10-19-youtube.leanback.v4-1.1.44-patched/data
2023-10-19-youtube.leanback.v4-1.1.44-patched/data
└── usr
└── palm
├── applications
│ └── youtube.leanback.v4
│ ├── 2018-new-splash-solid-grey-LG.png
│ ├── 31457796340988573_16977867_115x115.png
│ ├── 31457796355976094_16977867_192x192.png
│ ├── 9262051282473701_youtube_leanback_preview.png
│ ├── 9262051307371701_youtube_leanback_splash.png
│ ├── appinfo.json
│ ├── build_info
│ ├── cobalt
│ ├── content
│ │ └── app
│ │ └── cobalt
│ │ ├── content
│ │ │ ├── fonts
│ │ │ │ └── fonts.xml
│ │ │ ├── icu
│ │ │ │ └── icudt68l.dat
│ │ │ ├── licenses
│ │ │ │ └── licenses_cobalt.txt
│ │ │ ├── ssl
│ │ │ │ └── certs
│ │ │ │ ├── 002c0b4f.0
│ │ │ │ ├── 02265526.0
│ │ │ │ ├── 062cdee6.0
│ │ │ │ ├── 064e0aa9.0
│ │ │ │ ├── 06dc52d5.0
│ │ │ │ ├── 09789157.0
│ │ │ │ ├── 0a775a30.0
│ │ │ │ ├── 0b1b94ef.0
│ │ │ │ ├── 0b9bc432.0
│ │ │ │ ├── 0bf05006.0
│ │ │ │ ├── 0f5dc4f3.0
│ │ │ │ ├── 0f6fa695.0
│ │ │ │ ├── 1001acf7.0
│ │ │ │ ├── 106f3e4d.0
│ │ │ │ ├── 14bc7599.0
│ │ │ │ ├── 18856ac4.0
│ │ │ │ ├── 1d3472b9.0
│ │ │ │ ├── 1e08bfd1.0
│ │ │ │ ├── 1e09d511.0
│ │ │ │ ├── 244b5494.0
│ │ │ │ ├── 2923b3f9.0
│ │ │ │ ├── 2ae6433e.0
│ │ │ │ ├── 2b349938.0
│ │ │ │ ├── 32888f65.0
│ │ │ │ ├── 349f2832.0
│ │ │ │ ├── 3513523f.0
│ │ │ │ ├── 3bde41ac.0
│ │ │ │ ├── 3e44d2f7.0
│ │ │ │ ├── 3e45d192.0
│ │ │ │ ├── 3fb36b73.0
│ │ │ │ ├── 40193066.0
│ │ │ │ ├── 4042bcee.0
│ │ │ │ ├── 40547a79.0
│ │ │ │ ├── 406c9bb1.0
│ │ │ │ ├── 4304c5e5.0
│ │ │ │ ├── 48bec511.0
│ │ │ │ ├── 4b718d9b.0
│ │ │ │ ├── 4bfab552.0
│ │ │ │ ├── 4f316efb.0
│ │ │ │ ├── 5443e9e3.0
│ │ │ │ ├── 54657681.0
│ │ │ │ ├── 57bcb2da.0
│ │ │ │ ├── 5931b5bc.0
│ │ │ │ ├── 5a7722fb.0
│ │ │ │ ├── 5ad8a5d6.0
│ │ │ │ ├── 5cd81ad7.0
│ │ │ │ ├── 5d3033c5.0
│ │ │ │ ├── 5e98733a.0
│ │ │ │ ├── 5f15c80c.0
│ │ │ │ ├── 5f618aec.0
│ │ │ │ ├── 607986c7.0
│ │ │ │ ├── 626dceaf.0
│ │ │ │ ├── 653b494a.0
│ │ │ │ ├── 66445960.0
│ │ │ │ ├── 68dd7389.0
│ │ │ │ ├── 6b99d060.0
│ │ │ │ ├── 6d41d539.0
│ │ │ │ ├── 6fa5da56.0
│ │ │ │ ├── 706f604c.0
│ │ │ │ ├── 749e9e03.0
│ │ │ │ ├── 75d1b2ed.0
│ │ │ │ ├── 76faf6c0.0
│ │ │ │ ├── 7719f463.0
│ │ │ │ ├── 773e07ad.0
│ │ │ │ ├── 7a3adc42.0
│ │ │ │ ├── 7a780d93.0
│ │ │ │ ├── 7aaf71c0.0
│ │ │ │ ├── 7f3d5d1d.0
│ │ │ │ ├── 8160b96c.0
│ │ │ │ ├── 8508e720.0
│ │ │ │ ├── 8cb5ee0f.0
│ │ │ │ ├── 8d86cdd1.0
│ │ │ │ ├── 8d89cda1.0
│ │ │ │ ├── 8f103249.0
│ │ │ │ ├── 90c5a3c8.0
│ │ │ │ ├── 930ac5d2.0
│ │ │ │ ├── 93bc0acc.0
│ │ │ │ ├── 9482e63a.0
│ │ │ │ ├── 9846683b.0
│ │ │ │ ├── 988a38cb.0
│ │ │ │ ├── 9b5697b0.0
│ │ │ │ ├── 9c8dfbd4.0
│ │ │ │ ├── 9d04f354.0
│ │ │ │ ├── 9ef4a08a.0
│ │ │ │ ├── 9f727ac7.0
│ │ │ │ ├── a3418fda.0
│ │ │ │ ├── a94d09e5.0
│ │ │ │ ├── aee5f10d.0
│ │ │ │ ├── b0e59380.0
│ │ │ │ ├── b1159c4c.0
│ │ │ │ ├── b433981b.0
│ │ │ │ ├── b66938e9.0
│ │ │ │ ├── b727005e.0
│ │ │ │ ├── b7a5b843.0
│ │ │ │ ├── b81b93f0.0
│ │ │ │ ├── bf53fb88.0
│ │ │ │ ├── c01eb047.0
│ │ │ │ ├── c28a8a30.0
│ │ │ │ ├── ca6e4ad9.0
│ │ │ │ ├── cbf06781.0
│ │ │ │ ├── cc450945.0
│ │ │ │ ├── cd58d51e.0
│ │ │ │ ├── cd8c0d63.0
│ │ │ │ ├── ce5e74ef.0
│ │ │ │ ├── d4dae3dd.0
│ │ │ │ ├── d52c538d.0
│ │ │ │ ├── d6325660.0
│ │ │ │ ├── d7e8dc79.0
│ │ │ │ ├── d887a5bb.0
│ │ │ │ ├── dc4d6a89.0
│ │ │ │ ├── dd8e9d41.0
│ │ │ │ ├── de6d66f3.0
│ │ │ │ ├── e113c810.0
│ │ │ │ ├── e18bfb83.0
│ │ │ │ ├── e35234b1.0
│ │ │ │ ├── e36a6752.0
│ │ │ │ ├── e73d606e.0
│ │ │ │ ├── e868b802.0
│ │ │ │ ├── e8de2f56.0
│ │ │ │ ├── ecccd8db.0
│ │ │ │ ├── ed858448.0
│ │ │ │ ├── ee64a828.0
│ │ │ │ ├── eed8c118.0
│ │ │ │ ├── ef954a4e.0
│ │ │ │ ├── f081611a.0
│ │ │ │ ├── f0c70a8d.0
│ │ │ │ ├── f249de83.0
│ │ │ │ ├── f30dd6ad.0
│ │ │ │ ├── f3377b1b.0
│ │ │ │ ├── f387163d.0
│ │ │ │ ├── f39fc864.0
│ │ │ │ ├── f51bb24c.0
│ │ │ │ ├── fa5da96b.0
│ │ │ │ ├── fc5a8f99.0
│ │ │ │ ├── fd64f3fc.0
│ │ │ │ ├── fe8a2cd8.0
│ │ │ │ ├── feffd413.0
│ │ │ │ └── ff34af3f.0
│ │ │ └── web
│ │ │ ├── adblock
│ │ │ │ ├── adblockMain.css
│ │ │ │ ├── adblockMain.js
│ │ │ │ ├── index.html
│ │ │ │ └── index.js
│ │ │ └── youtube
│ │ │ └── splash.html
│ │ └── lib
│ │ └── libcobalt.so
│ ├── crashpad_handler
│ ├── ic_add_youtube_channel.png
│ ├── resources
│ │ ├── ja
│ │ │ └── appinfo.json
│ │ └── ko
│ │ └── appinfo.json
│ ├── switches
│ ├── tmp
│ ├── webOSUserScripts
│ │ └── userScript.js
│ ├── yt_lg_130x130.png
│ └── yt_lg_80x80.png
└── packages
└── youtube.leanback.v4
└── packageinfo.json
These files are not present in the patched IPK:
│ │ └── manifest.json
│ └── system_fonts
│ └── fonts.xml
└── storage
└── icu
└── icudt68l.dat
I think you can try to add them manually into the ipk.
To do that:
Run a first time make PACKAGE=./ipks-official/2023-07-30-youtube.leanback.v4-1.1.7.ipk
It will create and fill the directory workdir/ipk
. This directory contains the files that will be added in the ipk at the location /usr/palm/applications/youtube.leanback.v4/
So, you can add any files in workdir/ipk
and then call make ares-package-docker
, it will create the new ipk in workdir/ipk-output
I made sure to delete this file
2023-10-19-youtube.leanback.v4-1.1.44/data-img/usr/palm/applications/youtube.leanback.v4/use_shared_package
I noticed that
cat 2023-10-19-youtube.leanback.v4-1.1.44/data/usr/palm/packages/youtube.leanback.v4/packageinfo.json
contains information telling to use cobalt.shared
$ jq < 2023-10-19-youtube.leanback.v4-1.1.44/data/usr/palm/packages/youtube.leanback.v4/packageinfo.json
{
"app": "youtube.leanback.v4",
"shared_package": true,
"id": "youtube.leanback.v4",
"version": "1.1.2",
"dependencies": {
"cobalt.shared": "1.0.0"
}
}
But the IPk generated doesn't have information like that:
$ jq < 2023-10-19-youtube.leanback.v4-1.1.44-patched/data/usr/palm/packages/youtube.leanback.v4/packageinfo.json
{
"id": "youtube.leanback.v4",
"version": "1.1.2",
"app": "youtube.leanback.v4"
}
I moved all IPKs here: https://github.com/GuillaumeSmaha/youtube-webos-cobalt-ipks/
Greetings. I downloaded the latest official version of youtube 1.1.44 (TV: OLED C2, web-os: 7.3.1-44), but when I try to patch it I get the error:
File "libcobalt.so" is not present in your IPK. This patch is not compatible with your IPK version. make: *** [Makefile:122: workdir/ipk/content/app/cobalt/content/web/adblock] Error 1
Using the ls-monitor command via SSH, I saw that the TV installs two ipk: youtube.leanback.v4 in the /media/cryptofs folder and cobalt.shared in the /media/system folder. I pulled out and attached both of these ipk. Will you be able to see why there is a problem with patching the new version of youtube? 2023-10-19-youtube.leanback.v4-1.1.44.zip cobalt.shared.zip