【问题标题】:Try to decode random @Variant string from an android studio emulator尝试从 android studio 模拟器解码随机@Variant 字符串
【发布时间】:2022-12-15 11:48:00
【问题描述】:

只是一个简单的问题 ig。我目前正在尝试使用 android studio 的虚拟设备,我需要在其中一个模拟器文件中编辑一个参数。

此文件的路径通常为 {HomeDir}\.android\avd\name_of_virtual_device.avd\AVD.conf

该文件的内容如下所示:

[perAvd]
battery\charge_level=100
loc\latitude=37.422
virtualscene\posters=@Variant(\0\0\0\b\0\0\0\x2\0\0\0\b\0w\0\x61\0l\0l\0\0\0\n\0\0\0\xa0\0\x43\0:\0/\0U\0s\0\x65\0r\0s\0/\0M\0\x61\0x\0i\0m\0i\0l\0i\0\x61\0n\0\x42\0r\0\x61\0u\0n\0/\0P\0i\0\x63\0t\0u\0r\0\x65\0s\0/\0{\0\x36\0\x44\0\x37\0\x43\0\x30\0\x33\0\x37\0\x42\0-\0\x39\0\x34\0\x37\0\x43\0-\0\x34\0\x37\0\x33\0\x37\0-\0\x41\0\x44\0\x30\0\x41\0-\0\x45\0\x36\0\x41\0\x45\0\x43\0\x37\0\x37\0\x37\0\x43\0\x44\0\x34\0\x43\0}\0.\0p\0n\0g\0.\0j\0p\0g\0\0\0\n\0t\0\x61\0\x62\0l\0\x65\0\0\0\n\xff\xff\xff\xff)
virtualscene\tv_animation=false
loc\longitude=-122.084
loc\altitude=5
loc\velocity=0
loc\heading=0

如果您了解 android studio 和模拟设备的 avd 管理器,您应该很快注意到该文件包含一些您通常可以通过模拟设备的菜单设置的高级设置。现在我的问题是,因为我需要编辑 virtualscene\posters 参数,这就是编码。我的意思是它看起来像十六进制,但它不是。它还包含类似 png/jpg 的字符串末尾,看起来像这样 .\0p\0n\0g\0.\0j\0p\0g。但我不知道这是哪种编码

希望有人能帮忙

【问题讨论】:

    标签: android android-studio emulation avd avd-manager


    【解决方案1】:

    看起来它可能是一个 QSettings 配置文件。此类将程序的设置保存到 .conf 或 .ini 文件并像这样对数据进行编码。它允许它稍后使用QVariant读回数据

    【讨论】:

      猜你喜欢
      • 2011-08-02
      • 2021-11-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-03
      • 2018-06-04
      • 2013-03-09
      • 2011-09-07
      相关资源
      最近更新 更多