Hi Chris,

Thanks for the answer. I'm not sure if this is a change in the protocol in
the 9800 alone. I'm testing different phones and already saw the same
problem with bjavaloader in the 9900 model also.

The output in "javaloader -v dir" using the 9800 is:

----------------------------------------------------------------------
./bjavaloader -v dir
...
SocketZero::RawReceive: Endpoint 2
Received:
    00000000: 03 00 fc 07 00 03 00 06 00 09 00 0c 00 0f 00 12
 ................
    00000010: 00 15 00 18 00 1b 00 1e 00 21 00 24 00 27 00 2a
 .........!.$.'.*
    00000020: 00 2d 00 30 00 33 00 36 00 39 00 3c 00 3f 00 42
 .-.0.3.6.9.<.?.B
    00000030: 00 45 00 48 00 4b 00 5d 00 60 00 63 00 7b 00 7e
 .E.H.K.].`.c.{.~
    00000040: 00 81 00 9c 00 9f 00 a2 00 de 01 28 01 2b 01 2f
 ...........(.+./
    00000050: 01 33 01 36 01 39 01 3c 01 3f 01 42 01 45 01 48
 .3.6.9.<.?.B.E.H
    00000060: 01 4b 01 4e 01 51 01 54 01 57 01 5a 01 5d 01 60
 .K.N.Q.T.W.Z.].`
    00000070: 01 63 01 66 01 69 01 6c 01 6f 01 72 01 75 01 78
 .c.f.i.l.o.r.u.x
    00000080: 01 7b 01 7e 01 81 01 84 01 87 01 8a 01 8d 01 90
 .{.~............
    00000090: 01 93 01 96 01 99 01 9c 01 9f 01 a2 01 a5 01 a8
 ................
    000000a0: 01 ab 01 ae 01 b1 01 b4 01 b7 01 ba 01 bd 01 c0
 ................
    000000b0: 01 c3 01 c6 01 c9 01 cc 01 cf 01 d2 01 d5 01 d8
 ................
    000000c0: 01 db 01 de 01 e1 01 e4 01 e7 01 ea 01 ed 01 f0
 ................
    000000d0: 01 f3 01 f6 01 f9 01 fc 01 ff 02 00 02 03 02 06
 ................
    000000e0: 02 09 02 0f 02 12 02 15 02 18 02 1e 02 21 02 27
 .............!.'
    000000f0: 02 2a 02 30 02 33 02 39 02 3c 02 42 02 45 02 4b
 .*.0.3.9.<.B.E.K
    00000100: 02 4e 02 54 02 57 02 5d 02 72 02 75 02 79 02 7c
 .N.T.W.].r.u.y.|
    00000110: 02 7f 02 82 02 85 02 88 02 8b 02 8e 02 91 02 94
 ................
    00000120: 02 97 02 a0 02 a9 02 b2 02 dc 02 e0 02 e3 02 e6
 ................
    00000130: 02 e9 02 ec 02 ef 02 f2 02 f5 02 f8 02 fb 03 05
 ................
    00000140: 03 0b 03 14 03 23 03 44 03 48 03 4b 03 51 03 60
 .....#.D.H.K.Q.`
    00000150: 03 63 03 78 03 84 03 8b 03 8e 03 94 03 97 03 9d
 .c.x............
    00000160: 03 a0 03 a6 03 a9 03 af 03 b2 03 b8 03 bb 03 c1
 ................
    00000170: 03 c4 03 ca 03 cd 03 d3 03 d6 03 dc 03 df 03 e5
 ................
    00000180: 03 e8 03 ee 03 f1 03 f7 03 fa 04 04 04 0a 04 10
 ................
    00000190: 04 16 04 1c 04 22 04 28 04 2e 04 34 04 3a 04 40
 .....".(...4.:.@
    000001a0: 04 46 04 4c 04 52 04 58 04 5e 04 64 04 67 04 6a
 .F.L.R.X.^.d.g.j
    000001b0: 04 70 04 82 04 86 04 89 04 8c 04 8f 04 92 04 95
 .p..............
    000001c0: 04 98 04 9b 04 9e 04 a1 04 a4 04 a7 04 aa 04 ad
 ................
    000001d0: 04 b0 04 b3 04 b6 04 b9 04 bc 04 bf 04 c2 04 c5
 ................
    000001e0: 04 c8 04 ce 04 d1 04 d4 04 e0 04 e4 04 e7 04 ea
 ................
    000001f0: 04 ed 04 f0 04 f3 04 f6 04 f9 04 fc 04 ff 05 01
 ................
    00000200: 05 1c 05 1f 05 22 05 2b 05 34 05 37 05 3a 05 3d
 .....".+.4.7.:.=
    00000210: 05 40 05 52 05 55 05 58 05 67 05 6d 05 70 05 73
 .@.R.U.X.g.m.p.s
    00000220: 05 79 05 7c 05 7f 05 9d 05 a0 05 a6 05 b8 05 bb
 .y.|............
    00000230: 05 d0 05 d6 05 dc 05 df 05 e6 05 ec 05 f2 05 f8
 ................
    00000240: 05 fe 06 02 06 08 06 14 06 17 06 1a 06 1d 06 20
 ...............
    00000250: 06 23 06 26 06 29 06 2c 06 2f 06 32 06 35 06 38
 .#.&.).,./.2.5.8
    00000260: 06 3b 06 3e 06 41 06 44 06 47 06 4a 06 4d 06 50
 .;.>.A.D.G.J.M.P
    00000270: 06 53 06 56 06 59 06 5c 06 5f 06 62 06 65 06 68
 .S.V.Y.\._.b.e.h
    00000280: 06 6b 06 6e 06 71 06 74 06 77 06 7d 06 89 06 8c
 .k.n.q.t.w.}....
    00000290: 06 8f 06 92 06 95 06 98 06 9b 06 aa 06 b6 06 bc
 ................
    000002a0: 06 bf 06 c2 06 c5 06 ce 06 d1 06 d4 06 da 06 ef
 ................
    000002b0: 06 f2 06 f5 06 f8 06 fb 06 fe 07 18 07 a2 07 a8
 ................
    000002c0: 07 ab 07 b7 07 ba 07 bd 07 c0 07 c3 07 cf 07 d2
 ................
    000002d0: 07 d8 07 f3 07 f6 07 f9 07 fc 07 ff 08 04 08 49
 ...............I
    000002e0: 08 73 08 97 09 05 09 2f 09 32 09 56 09 71 0a 00
 .s...../.2.V.q..
    000002f0: 0a 03 0a 06 0a 09 0a 0c 0a 15 0a 18 0a 1b 0a 1e
 ................
    00000300: 0a 21 0a 24 0a 27 0a 2a 0a 2d 0a 36 0a 39 0a 3c
 .!.$.'.*.-.6.9.<
    00000310: 0a 3f 0a 45 0a 4b 0a 4e 0a 51 0a 54 0a 57 0a 5a
 .?.E.K.N.Q.T.W.Z
    00000320: 0a 5d 0a 60 0a 63 0a 78 0a 7b 0a 7e 0a 81 0a 84
 .].`.c.x.{.~....
    00000330: 0a 87 0a 8a 0a 8d 0a 90 0a 93 0a 96 0a 99 0a 9c
 ................
    00000340: 0a 9f 0a a2 0a a5 0a a8 0a ae 0a b1 0a b4 0a b7
 ................
    00000350: 0a bd 0a c0 0a c3 0a c6 0a d2 0a db 0a de 0a e7
 ................
    00000360: 0a ea 0a ed 0a f0 0b 91 0b 9a 0b 9d 0b a0 0b a3
 ................
    00000370: 0b a6 0b b2 0b b5 0b b8 0b bb 0b be 0b c1 0b c7
 ................
    00000380: 0b ca 0b cd 0b d0 0b df 0b e2 0b e5 0b e8 0b eb
 ................
    00000390: 0b ee 0b f1 0b f4 0b f7 0b fa 0b fd 10 06 10 0c
 ................
    000003a0: 10 0f 10 12 10 15 10 18 10 1b 10 27 10 33 10 36
 ...........'.3.6
    000003b0: 13 24 13 27 13 2a 13 2d 13 30 13 36 13 3c 13 48
 .$.'.*.-.0.6.<.H
    000003c0: 14 01 14 2b 14 2e 14 58 14 82 14 85 14 b2 14 b5
 ...+...X........
    000003d0: 14 df 14 e2 14 e5 14 e8 14 eb 14 ee 14 f1 14 f7
 ................
    000003e0: 14 fd 15 20 15 23 15 26 15 29 15 2c 15 50 15 53  ...
.#.&.).,.P.S
    000003f0: 15 7a 15 7d 15 a4 15 ce 15 d1 15 d4 15 fe 16 02
 .z.}............
    00000400: 16 05 16 14 16 17 16 1a 16 1d 16 20 16 23 16 26  ...........
.#.&
    00000410: 16 29 16 2c 16 2f 16 32 16 35 16 38 16 3b 16 3e
 .).,./.2.5.8.;.>
    00000420: 16 41 16 44 16 47 16 4a 16 4d 16 50 16 56 16 59
 .A.D.G.J.M.P.V.Y
    00000430: 16 5c 16 5f 16 62 16 65 16 69 16 8a 16 8d 16 90
 .\._.b.e.i......
    00000440: 16 93 16 96 16 99 16 9c 16 cf 16 d2 16 d5 16 fc
 ................
    00000450: 16 ff 17 00 17 03 17 06 17 09 17 0c 17 0f 17 12
 ................
    00000460: 17 15 17 18 17 1b 17 1e 17 21 17 24 17 27 17 2a
 .........!.$.'.*
    00000470: 17 2d 17 30 17 33 17 36 17 39 17 3c 17 3f 17 42
 .-.0.3.6.9.<.?.B
    00000480: 17 45 17 48 17 4b 17 4e 17 51 17 54 17 57 17 5a
 .E.H.K.N.Q.T.W.Z
    00000490: 17 5d 17 60 17 63 17 66 17 69 17 6c 17 6f 17 72
 .].`.c.f.i.l.o.r
    000004a0: 17 75 17 78 17 7b 17 7e 17 81 17 84 17 87 17 8a
 .u.x.{.~........
    000004b0: 17 8d 17 90 17 93 17 96 17 99 17 9c 17 9f 17 a2
 ................
    000004c0: 17 a5 17 a8 17 ab 17 ae 17 b1 17 b4 17 b7 17 ba
 ................
    000004d0: 17 bd 17 c0 17 c3 17 c6 17 c9 17 cc 17 cf 17 d2
 ................
    000004e0: 17 d5 17 d8 17 db 17 de 17 e1 17 e4 17 e7 17 ea
 ................
    000004f0: 17 ed 17 f0 17 f3 17 f6 17 f9 17 ff 18 02 18 05
 ................
    00000500: 18 08 18 0b 18 0e 18 11 18 14 18 17 18 1a 18 1d
 ................
    00000510: 18 20 18 23 18 26 18 29 18 2c 18 2f 18 32 18 35  .
.#.&.).,./.2.5
    00000520: 18 38 18 3b 18 3e 18 5f 18 62 18 65 18 69 18 6d
 .8.;.>._.b.e.i.m
    00000530: 18 70 18 73 18 76 18 79 18 7c 18 7f 18 82 18 85
 .p.s.v.y.|......
    00000540: 18 88 18 8b 18 8e 18 91 18 94 18 97 18 9a 18 9d
 ................
    00000550: 18 a0 18 a3 18 a6 18 a9 18 ac 18 af 18 b2 18 b5
 ................
    00000560: 18 b8 18 bb 18 be 18 c1 18 c4 18 c7 18 ca 18 cd
 ................
    00000570: 18 d0 18 d3 18 d6 18 d9 18 dc 18 df 18 e2 18 e5
 ................
    00000580: 18 e8 18 eb 18 ee 18 f1 18 f4 18 f7 18 fa 18 fd
 ................
    00000590: 19 02 19 17 19 1a 19 1e 19 2d 19 30 19 34 19 37
 .........-.0.4.7
    000005a0: 19 3a 19 49 19 4c 19 55 19 58 19 5c 19 6e 19 71
 .:.I.L.U.X.\.n.q
    000005b0: 19 75 19 93 19 98 19 9c 19 a0 19 a3 19 a9 19 ac
 .u..............
    000005c0: 19 b0 19 b3 19 b6 19 b9 19 bc 19 bf 19 c2 19 c5
 ................
    000005d0: 19 c8 19 cb 19 ce 19 d1 19 d4 19 d7 19 da 19 dd
 ................
    000005e0: 19 e0 19 e3 19 e6 19 e9 19 ec 19 ef 19 f2 19 f5
 ................
    000005f0: 19 f8 19 fc 19 ff 1a 02 1a 05 1a 08 1a 17 1a 1d
 ................
    00000600: 1a 21 1a 24 1a 27 1a 2a 1a 45 1a 48 1a 4b 1a 51
 .!.$.'.*.E.H.K.Q
    00000610: 1a 54 1a 58 1a 5b 1a 5e 1a 61 1a 67 1a 6a 1a 6d
 .T.X.[.^.a.g.j.m
    00000620: 1a 70 1a 74 1a 8c 1a 8f 1a 92 1a 95 1a 98 1a 9e
 .p.t............
    00000630: 1a a1 1a a5 1a a8 1a b7 1a ba 1a bd 1a c0 1a c6
 ................
    00000640: 1a c9 1a cd 1a d0 1a d3 1a d6 1a e2 1a e5 1a eb
 ................
    00000650: 1a ee 1a f3 1a f7 1a fe 1b 0e 1b 11 1b 17 1b 1a
 ................
    00000660: 1b 1e 1b 21 1b 24 1b 27 1b 3c 1b 3f 1b 45 1b 48
 ...!.$.'.<.?.E.H
    00000670: 1b 4c 1b 4f 1b 52 1b 55 1b 5e 1b 61 1b 67 1b 6a
 .L.O.R.U.^.a.g.j
    00000680: 1b 6e 1b 71 1b 74 1b 77 1b 7d 1b 80 1b 84 1b 8d
 .n.q.t.w.}......
    00000690: 1b 90 1b 93 1b ab 1b ae 1b b4 1b b7 1b bb 1b be
 ................
    000006a0: 1b c1 1b c4 1b ca 1b cd 1b d1 1b d7 1b da 1b dd
 ................
    000006b0: 1b f2 1b f5 1b fb 1b fe 1c 12 1c 15 1c 1b 1c 1e
 ................
    000006c0: 1c 22 1c 25 1c 28 1c 2b 1c 3d 1c 40 1c 46 1c 49
 .".%.(.+.=.@.F.I
    000006d0: 1c 4d 1c 50 1c 53 1c 56 1c 68 1c 6b 1c 71 1c 74
 .M.P.S.V.h.k.q.t
    000006e0: 1c 78 1c 7b 1c 8d 1c 90 1c 93 1c 96 1c 9c 1c 9f
 .x.{............
    000006f0: 1c a3 1c a6 1c a9 1c ac 1c b2 1c b5 1c b8 1c bb
 ................
    00000700: 1c bf 1c c2 1c c5 1c c8 1c dd 1c e0 1c e6 1c e9
 ................
    00000710: 1c ed 1c f3 1c f6 1c f9 1d 08 1d 0c 1d 10 1d 13
 ................
    00000720: 1d 1a 1d 1e 1d 22 1d 26 1d 2a 1d 2d 1d 30 1d 33
 .....".&.*.-.0.3
    00000730: 1d 36 1d 39 1d 3c 1d 3f 1d 42 1d 45 1d 48 1d 4b
 .6.9.<.?.B.E.H.K
    00000740: 1d 4e 1d 51 1d 54 1d 57 1d 5a 1d 5d 1d 60 1d 63
 .N.Q.T.W.Z.].`.c
    00000750: 1d 66 1d 69 1d 6c 1d 6f 1d 72 1d 76 1d 88 1d 8b
 .f.i.l.o.r.v....
    00000760: 1d 8e 1d 91 1d 94 1d 9a 1d 9d 1d a1 1d a4 1d a7
 ................
    00000770: 1d aa 1d b0 1d b3 1d b6 1d b9 1d bd 1d c0 1d c3
 ................
    00000780: 1d c6 1d c9 1d d8 1d e1 1d e4 1d e8 1d eb 1d ee
 ................
    00000790: 1d f1 1e 12 1e 16 1e 19 1e 1c 1e 1f 1e 49 1e 5e
 .............I.^
    000007a0: 1e 61 1e 64 1e 6a 1e 9b 1e a1 1e a5 1e a8 1e ac
 .a.d.j..........
    000007b0: 1e b3 1e b7 1e ba 1e bd 1e c0 1e c3 1e c6 1e c9
 ................
    000007c0: 1e cc 1e cf 1e d2 1e d5 1e d8 1e db 1e de 1e e1
 ................
    000007d0: 1e e4 1e e7 1e ea 1e ed 1e f0 1e f3 1e f6 1e f9
 ................
    000007e0: 1e fc 1e ff 20 21 20 24 20 28 20 2b 20 2e 20 31  .... ! $ ( +
. 1
    000007f0: 20 34 20 37 20 3a 20 3d 20 40 20 43               4 7 : = @ C

BulkWrite to endpoint 0x2:
    00000000: 00 00 08 00 0b 03 00 08                          ........

SocketZero::RawReceive: Endpoint 2
Received:
    00000000: 03 00 08 00 64 00 6c 02                          ....d.l.

Packet:
    00000000: 03 00 08 00 64 00 6c 02                          ....d.l.

usb_release_interface(0x1380c40, 0x0)
usb_close(0x1380c40)

Barry::Error caught: JavaLoader::GetDir: unexpected packet command code:
0x6e
----------------------------------------------------------------------


I applied also the patch and recompiled barry version 0.18.4. The result of
"bjavaloader dir" is:


----------------------------------------------------------------------
./bjavaloader dir
Packet:
    00000000: 03 00 70 02 20 46 20 49 20 4c 20 4f 20 52 20 55  ..p. F I L O
R U
    00000010: 20 58 20 5b 20 5e 20 61 20 64 20 67 20 6a 20 6d   X [ ^ a d g
j m
    00000020: 20 70 20 73 20 76 20 79 20 7c 20 7f 20 82 20 85   p s v y | .
. .
    00000030: 20 88 20 8b 20 8e 20 ac 21 01 21 07 21 0d 21 13   . . .
.!.!.!.!.
    00000040: 21 19 21 1f 21 25 21 2b 21 31 21 37 21 3d 21 43
 !.!.!%!+!1!7!=!C
    00000050: 21 49 21 4f 21 55 21 5b 21 61 21 67 21 6d 21 73
 !I!O!U![!a!g!m!s
    00000060: 21 79 21 7f 21 85 21 8b 21 8e 21 94 21 9a 21 a0
 !y!.!.!.!.!.!.!.
    00000070: 21 a6 21 a9 21 af 21 b5 21 b8 21 bb 21 c1 22 03
 !.!.!.!.!.!.!.".
    00000080: 22 18 22 2d 22 45 22 5a 22 6f 22 87 22 9c 22 b1
 "."-"E"Z"o".".".
    00000090: 22 b4 22 b8 22 bc 22 bf 22 c2 22 c5 22 cb 22 ce
 ".".".".".".".".
    000000a0: 22 d1 22 d4 22 da 22 dd 22 e3 22 e6 22 e9 22 ec
 ".".".".".".".".
    000000b0: 22 ef 22 f2 22 f5 22 f8 22 fb 22 fe 23 04 23 19
 ".".".".".".#.#.
    000000c0: 23 2e 23 43 23 58 23 6d 23 82 23 97 23 ac 23 c4
 #.#C#X#m#.#.#.#.
    000000d0: 23 d9 23 ee 24 04 24 08 24 0b 24 0e 24 11 24 14
 #.#.$.$.$.$.$.$.
    000000e0: 24 17 24 1a 24 1d 24 20 24 23 24 26 24 29 24 2c  $.$.$.$
$#$&$)$,
    000000f0: 24 2f 24 32 24 35 24 38 24 3b 24 3e 24 41 24 44
 $/$2$5$8$;$>$A$D
    00000100: 24 47 24 4a 24 4d 24 50 24 54 24 58 24 5b 24 5e
 $G$J$M$P$T$X$[$^
    00000110: 24 61 24 64 24 67 24 6a 24 6d 24 70 24 73 24 76
 $a$d$g$j$m$p$s$v
    00000120: 24 79 24 7c 24 7f 24 82 24 85 24 88 24 8b 24 8e
 $y$|$.$.$.$.$.$.
    00000130: 24 91 24 94 24 97 24 9a 24 9d 24 ac 24 c5 24 da
 $.$.$.$.$.$.$.$.
    00000140: 24 ef 25 24 25 27 25 2a 25 2d 25 30 25 3f 25 4b
 $.%$%'%*%-%0%?%K
    00000150: 25 4e 25 51 25 54 25 57 25 5d 25 60 25 63 25 66
 %N%Q%T%W%]%`%c%f
    00000160: 25 69 25 6c 25 6f 25 d5 25 d8 25 db 25 de 25 e1
 %i%l%o%.%.%.%.%.
    00000170: 25 e5 25 f2 26 01 26 07 26 0a 26 0d 26 10 26 16
 %.%.&.&.&.&.&.&.
    00000180: 26 19 26 1c 26 1f 26 22 26 25 26 28 26 2b 26 2e
 &.&.&.&"&%&(&+&.
    00000190: 26 31 26 34 26 37 26 3a 26 3d 26 40 26 43 26 49
 &1&4&7&:&=&@&C&I
    000001a0: 26 4c 26 4f 26 55 26 67 26 6a 26 6d 26 70 26 76
 &L&O&U&g&j&m&p&v
    000001b0: 26 79 26 7c 26 7f 26 82 26 8b 26 8e 26 91 27 01
 &y&|&.&.&.&.&.'.
    000001c0: 27 04 27 08 27 0b 27 0e 27 12 27 18 27 1b 27 1f
 '.'.'.'.'.'.'.'.
    000001d0: 27 22 27 25 27 29 27 2c 27 2f 27 33 27 37 27 3a
 '"'%')','/'3'7':
    000001e0: 27 3d 27 40 27 43 27 46 27 49 27 52 27 98 27 9b
 '='@'C'F'I'R'.'.
    000001f0: 27 a4 27 c8 27 cb 27 ce 27 da 27 dd 27 e0 27 e3
 '.'.'.'.'.'.'.'.
    00000200: 27 e6 27 e9 27 ec 27 f2 27 f5 27 f8 27 fb 27 fe
 '.'.'.'.'.'.'.'.
    00000210: 28 59 28 5c 28 5f 28 66 28 69 28 6c 28 70 28 73
 (Y(\(_(f(i(l(p(s
    00000220: 28 76 28 7a 28 7d 28 80 28 84 28 87 28 8a 28 8e
 (v(z(}(.(.(.(.(.
    00000230: 28 91 28 94 28 98 28 9b 28 9e 28 a2 28 a5 28 a8
 (.(.(.(.(.(.(.(.
    00000240: 28 ac 28 b2 28 b5 28 b9 28 bc 28 bf 28 c2 28 c5
 (.(.(.(.(.(.(.(.
    00000250: 28 c9 28 cc 28 cf 28 d3 28 d6 28 d9 28 dd 28 e0
 (.(.(.(.(.(.(.(.
    00000260: 28 e3 28 e7 28 ea 28 ed 28 f1 28 f4 28 f7 28 fe
 (.(.(.(.(.(.(.(.


Barry::Error caught: Non-sequence packet in Socket::SyncSend()
----------------------------------------------------------------------


Regards,






2013/5/16 Chris Frey <cdf...@foursquare.net>

> Hi Eddy,
>
> Thanks for sending the output.  It looks like Barry is expecting an ACK
> response, but is receiving the data right away instead.  Perhaps this
> is a change in the 9800 protocol behaviour.
>
> Could you post the tail end of a 'dir' command with verbose turned on
> with the -v option?
>
> If you feel like compiling (again?), you might try this patch to see if
> this makes any difference in how far it gets.
>
> Thanks,
> - Chris
>
>
> diff --git a/src/m_javaloader.cc b/src/m_javaloader.cc
> index ce354c8..df2439f 100644
> --- a/src/m_javaloader.cc
> +++ b/src/m_javaloader.cc
> @@ -596,20 +596,15 @@ void JavaLoader::GetDir(JLPacket &packet,
>                         bool include_subdirs)
>  {
>         m_socket->Packet(packet);
> -       if( packet.Command() != SB_COMMAND_JL_ACK ) {
> -               ThrowJLError("JavaLoader::GetDir", packet.Command());
> -       }
> -
> -       // ack response will contain length of module ID array in next
> packet
> -       unsigned int expect = packet.Size();
> +       Data &response = packet.GetReceive();
>
> -       if( expect > 0 ) {
> -               Data &response = packet.GetReceive();
> +       if( packet.Command() == SB_COMMAND_JL_ACK ) {
>                 m_socket->Receive(response);
> -               Protocol::CheckSize(response, 4);
> -               dir.ParseTable(Data(response.GetData() + 4,
> response.GetSize() - 4));
> -               GetDirectoryEntries(packet, entry_cmd, dir,
> include_subdirs);
>         }
> +
> +       Protocol::CheckSize(response, 4);
> +       dir.ParseTable(Data(response.GetData() + 4, response.GetSize() -
> 4));
> +       GetDirectoryEntries(packet, entry_cmd, dir, include_subdirs);
>  }
>
>  void JavaLoader::GetDirectory(JLDirectory &dir, bool include_subdirs)
>
>
>
>
> On Thu, May 16, 2013 at 11:27:54AM -0500, Eddy Castillo wrote:
> > Hi all,
> >
> > I'am trying to get the list of installed modules on a Blackberry 9800
> using
> > bjavaloader with the "dir" command, but the response I get from
> bjavaloader
> > is the following:
> >
> > =============================================================
> > Packet command: 110Expected: 100Packet:
> >     00000000: 03 00 08 00 64 00 6c 02                          ....d.l.
> >
> >
> > Barry::Error caught: JavaLoader::GetDir: unexpected packet command code:
> > 0x6e
> > =============================================================
> >
> > The phone model is 9800 with OS 6.0 Bundle 2949.
> >
> > I tried using barry 0.18.2 and barry 0.18.4 on Ubuntu 12.04.
> >
> > All other commands in javaloader seem to be working ok. I don't know if
> > this is a bug with barry or I am missing something here. Any comment will
> > be appreciated .
> >
> >
> > Best Regards,
> >
> >
> >
> >
> >
> > --
> > Eddy Castillo
> > Statistics, Process Reengineering and Sofware Development Consultant
> > Mobile:             +52 (899) 214 5631
>
> >
> ------------------------------------------------------------------------------
> > AlienVault Unified Security Management (USM) platform delivers complete
> > security visibility with the essential security capabilities. Easily and
> > efficiently configure, manage, and operate all of your security controls
> > from a single console and one unified framework. Download a free trial.
> > http://p.sf.net/sfu/alienvault_d2d
> > _______________________________________________
> > Barry-devel mailing list
> > Barry-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/barry-devel
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel
>



-- 
Eddy Castillo
Statistics, Process Reengineering and Sofware Development Consultant
Mobile:             +52 (899) 214 5631
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to