如何从命令行发送 byte[] 意图额外值?

How to send byte[] intent extra value from command line?

当我想通过 adb shell 发送带有额外字符串的 Intent 时,我可以这样做:

adb shell am broadcast -a <intentAction> -d <intentDataUri> -f 0x10 -es <extraName> <intentExtraString>

在我的应用程序中,我可以使用

阅读它
String myString = intent.getStringExtra("<extraName>");

记录了以下类型的对:

我需要一个带有 byte[] 额外的 Intent。我用getByteArrayExtra(...)可以得到它,但是我该如何设置呢?

我试过 --eba--eya--eta--eea。程序未知的一切。仅使用 --eia 也不起作用:那么 getByteArrayExtra(...) 的结果是 null.

编辑:Sending intent with bundle using console不是这个问题的副本。它涉及Bundles,没有字节数组。

好像没有字节数组extra的选项。

详情: https://developer.android.com/studio/command-line/adb#IntentSpec

你真的需要通过字节数组发送意图吗?如何通过 "integer array extra" 发送它并将其转换为字节?