This file is indexed.

/usr/share/miro/resources/devices/android.py is in miro-data 4.0.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
from miro import app
from miro import prefs
from miro.devices import DeviceInfo, MultipleDeviceInfo
from miro.gtcache import gettext as _

defaults = {
    'audio_conversion': 'mp3',
    'container_types': 'mp3 wav asf isom ogg mpeg avi'.split(),
    'audio_types': 'mp* wmav* aac pcm* vorbis'.split(),
    'video_types': 'theora h264 mpeg* wmv*'.split(),
    'mount_instructions': _("Your phone must be in 'USB storage mode' in "
                            "order for %(shortappname)s to sync files to it.\n"
                            "To mount your phone, select 'Turn on USB "
                            "storage' from the notifications.",
                            {'shortappname':
                                 app.config.get(prefs.SHORT_APP_NAME)}),
    'video_path': u'Miro',
    'audio_path': u'Miro'
    }

tablet_defaults = defaults.copy()
tablet_defaults['mount_instructions'] = _(
    "Your tablet must be in 'USB storage mode' in "
    "order for %(shortappname)s to sync files to it.\n"
    "To mount your phone, select 'Turn on USB "
    "storage' from the notifications.",
    {'shortappname':
         app.config.get(prefs.SHORT_APP_NAME)})

htc_hero = DeviceInfo(u'HTC Hero',
                      video_conversion='hero',
                      video_path=u'Video',
                      audio_path=u'Music')

htc_evo = DeviceInfo(u'HTC EVO',
                     video_conversion='epic',
                     video_path=u'Video',
                     audio_path=u'Music')

htc_evo_4g = DeviceInfo(u'HTC EVO 4G',
                        video_conversion='epic')

htc_legend = DeviceInfo(u'HTC Legend',
                        video_conversion='dreamg1',
                        video_path=u'/media/video',
                        audio_path=u'/media/audio')

tmobile_g1 = DeviceInfo(u'T-Mobile G1',
                        video_conversion='dreamg1')

tmobile_g2 = DeviceInfo(u'T-Mobile G2',
                        video_conversion='g2')

htc_vision = DeviceInfo(u'HTC Vision',
                        video_conversion='g2')

htc_desire_z = DeviceInfo(u'HTC Desire Z',
                        video_conversion='g2')

htc_incredible = DeviceInfo(u'HTC Droid Incredible',
                            video_conversion='epic')

htc_incredible_2 = DeviceInfo(u'HTC Droid Incredible 2',
                              video_conversion='epic')

htc_sensation = DeviceInfo(u'HTC Sensation',
                           video_conversion='epic')

htc_aria = DeviceInfo(u'HTC Aria',
                      video_conversion='hero')

generic_htc = DeviceInfo(_('Generic %(name)s Device', {'name': 'HTC'}),
                         video_conversion='hero')

htc_android_device = MultipleDeviceInfo(
    'HTC Android Phone', [htc_hero, htc_evo, htc_evo_4g, htc_legend,
                          tmobile_g1, tmobile_g2, htc_vision, htc_desire_z,
                          htc_incredible, htc_incredible_2, htc_sensation,
                          htc_aria,
                          generic_htc],
    vendor_id=0x0bb4,
    product_id=0x0ff9,
    **defaults)

htc_desire = DeviceInfo(u'HTC Desire',
                        vendor_id=0x0bb4,
                        product_id=0x0c87,
                        device_name='HTC Android Phone',
                        video_conversion='epic',
                        **defaults)

htc_desire_hd = DeviceInfo(u'HTC Desire HD',
                           vendor_id=0xbb4,
                           product_id=0x0ca2,
                           device_name='HTC Android Phone',
                           video_conversion='epic',
                           **defaults)

htc_thunderbolt = DeviceInfo(u'HTC Thunderbolt',
                             vendor_id=0x0bb4,
                             product_id=0x0ca4,
                             device_name='HTC Android Phone',
                             video_conversion='epic',
                             **defaults)

nexus_one = DeviceInfo(u'Nexus One',
                       vendor_id=0x18d1,
                       product_id=0x4e11,
                       device_name='Google, Inc.Nexus One',
                       video_conversion='nexusone',
                       **defaults)

# the Droid apparently can have two different USB IDs
motorola_droid_one = DeviceInfo(u'Motorola Droid',
                            vendor_id=0x22b8,
                            product_id=0x41db,
                            device_name='Motorola A855',
                            video_conversion='droid',
                            **defaults)

motorola_droid_two = DeviceInfo(u'Motorola Droid',
                                vendor_id=0x22b,
                                product_id=0x41d9,
                                device_name='Motorola A855',
                                video_conversion='droid',
                                **defaults)

motorola_droid2 = DeviceInfo(u'Motorola Droid 2',
                             vendor_id=0x22b8,
                             product_id=0x42a3,
                             device_name='Motorola A955',
                             video_conversion='droid',
                             **defaults)

motorola_droidx = DeviceInfo(u'Motorola Droid X',
                             vendor_id=0x22b8,
                             product_id=0x4285,
                             device_name='Motorola MB810',
                             video_conversion='droid',
                             **defaults)

motorola_xoom = DeviceInfo(u'Motorola Xoom',
                           vendor_id=0x18d1,
                           product_id=0x70a8,
                           device_name='Motorola MZ604',
                           video_conversion='xoom',
                           **tablet_defaults)

galaxy_s2 = DeviceInfo(u'Galaxy S2',
                       vendor_id=0x04e8,
                       product_id=0x685e,
                       device_name='Android UMS Composite',
                       video_conversion='epic',
                       **defaults)

galaxy_tab = DeviceInfo(u'Galaxy Tab',
                        vendor_id=0x04e8,
                        product_id=0x681d,
                        device_name='SAMSUNG SGH-T849',
                        video_conversion='galaxytab',
                        **tablet_defaults)

epic = DeviceInfo(u'Epic',
                  vendor_id=0x04e8,
                  product_id=0x6601,
                  device_name="SAMSUNG SPH-D700 Card",
                  video_conversion='epic',
                  **defaults)

lg_optimus_2x = DeviceInfo(u'Optimus 2x',
                           vendor_id=0x1004,
                           product_id=0x618e,
                           device_name='LGE P990',
                           video_conversion='epic',
                           **defaults)

lg_optimus_s = DeviceInfo(
    u'Optimus S',
    vendor_id=0x1004,
    product_id=0x618E,
    device_name='GOOGLE Mass storage',
    video_conversion='hero',
    audio_conversion='mp3',
    container_types='mp3 wav asf isom ogg mpeg avi'.split(),
    audio_types='mp* wmav* aac pcm* vorbis'.split(),
    video_types='theora h264 mpeg* wmv*'.split(),
    mount_instructions=_("Your phone must be in 'USB storage mode' in "
                            "order for %(shortappname)s to sync files to it.\n"
                            "To mount your phone, select 'Turn on USB "
                            "storage' from the notifications.",
                            {'shortappname':
                                 app.config.get(prefs.SHORT_APP_NAME)}),
    video_path=u'Media/Video',
    audio_path=u'Media/Audio')

nookcolor = DeviceInfo(
    name=u'MyNOOKColor',
    device_name='B&N Ebook Disk',
    vendor_id=0x2080,
    product_id=0x0002,
    # FIXME - the Nook Color has no way to play videos, so this should
    # really be disabled.
    video_conversion='copy',
    video_path=u'My Files/Video',
    audio_conversion='mp3',
    audio_path=u'My Files/Music',
    container_types=['mp3', 'isom'],
    audio_types=['mp*', 'aac'],
    video_types=[],
    mount_instructions=_('Your Nook Color must be connected to your computer '
                         'and in USB Mode to sync files to it.\n')
    )

toshiba_thrive = DeviceInfo(
    u'Toshiba Thrive',
    vendor_id=0x18d1,
    product_id=0x7102,
    device_name='AT100',
    video_conversion='xoom',
    audio_conversion='mp3',
    container_types='mp3 wav asf isom ogg mpeg avi'.split(),
    audio_types='mp* wmav* aac pcm* vorbis'.split(),
    video_types='theora h264 mpeg* wmv*'.split(),
    mount_instructions=_("Your tablet must be in 'USB storage mode' in "
                            "order for %(shortappname)s to sync files to it.\n"
                            "To mount your phone, select 'Turn on USB "
                            "storage' from the notifications.",
                            {'shortappname':
                                 app.config.get(prefs.SHORT_APP_NAME)}),
    video_path=u'Movies',
    audio_path=u'Music')

devices = [htc_android_device, htc_desire, htc_desire_hd, htc_thunderbolt,
           nexus_one,
           motorola_droid_one, motorola_droid_two, motorola_droid2,
           motorola_droidx, motorola_xoom, lg_optimus_2x, lg_optimus_s,
           galaxy_s2, galaxy_tab, epic, nookcolor, toshiba_thrive]