{"action":"created","issue":{"url":"https://api.github.com/repos/mjdev/libaums/issues/30","repository_url":"https://api.github.com/repos/mjdev/libaums","labels_url":"https://api.github.com/repos/mjdev/libaums/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/mjdev/libaums/issues/30/comments","events_url":"https://api.github.com/repos/mjdev/libaums/issues/30/events","html_url":"https://github.com/mjdev/libaums/issues/30","id":155872675,"number":30,"title":"How to read hidden area of USB?","user":{"login":"norani","id":18207354,"avatar_url":"https://avatars.githubusercontent.com/u/18207354?v=3","gravatar_id":"","url":"https://api.github.com/users/norani","html_url":"https://github.com/norani","followers_url":"https://api.github.com/users/norani/followers","following_url":"https://api.github.com/users/norani/following{/other_user}","gists_url":"https://api.github.com/users/norani/gists{/gist_id}","starred_url":"https://api.github.com/users/norani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norani/subscriptions","organizations_url":"https://api.github.com/users/norani/orgs","repos_url":"https://api.github.com/users/norani/repos","events_url":"https://api.github.com/users/norani/events{/privacy}","received_events_url":"https://api.github.com/users/norani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T02:02:20Z","updated_at":"2016-05-21T05:00:13Z","closed_at":null,"body":"Hi,\r\n\r\nI use libaums to access private partition in usb mass storage.  Then I want to access hidden partition in usb mass storage. I have the vendor specific opcode to read and write hidden entry. Firstly, how to read the capacity of hidden area and the block size, also last block address? Is there something to do with `private static final int FLAG_HIDDEN = 0x02;` and \r\n`\r\nboolean isHidden() {\r\n\t\treturn isFlagSet(FLAG_HIDDEN);\r\n\t} \r\n` ? Or do I need to create new class like ScsiReadHidden like ScsiRead10 class?\r\n"},"comment":{"url":"https://api.github.com/repos/mjdev/libaums/issues/comments/220758772","html_url":"https://github.com/mjdev/libaums/issues/30#issuecomment-220758772","issue_url":"https://api.github.com/repos/mjdev/libaums/issues/30","id":220758772,"user":{"login":"norani","id":18207354,"avatar_url":"https://avatars.githubusercontent.com/u/18207354?v=3","gravatar_id":"","url":"https://api.github.com/users/norani","html_url":"https://github.com/norani","followers_url":"https://api.github.com/users/norani/followers","following_url":"https://api.github.com/users/norani/following{/other_user}","gists_url":"https://api.github.com/users/norani/gists{/gist_id}","starred_url":"https://api.github.com/users/norani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norani/subscriptions","organizations_url":"https://api.github.com/users/norani/orgs","repos_url":"https://api.github.com/users/norani/repos","events_url":"https://api.github.com/users/norani/events{/privacy}","received_events_url":"https://api.github.com/users/norani/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T05:00:13Z","updated_at":"2016-05-21T05:00:13Z","body":"I'm sorry, actually hidden is not a partition. I read hidden area of USB by hard code below \r\n` read hidden\r\n\t\t\t\tByteBuffer cbwBuffer = ByteBuffer.allocate(31); // send ReadHidden command\r\n\t\t\t\tbyte[] cswBuffer= new byte[512];// for Read data IN\r\n\t\t\t\tArrays.fill(cswBuffer, (char) 0);// put ALL 0 first\r\n\r\n\t\t\t\tcbwBuffer.put(0,(byte)0x55);\r\n\t\t\t\tcbwBuffer.put(1,(byte)0x53);\r\n\t\t\t\tcbwBuffer.put(2,(byte)0x42);\r\n\t\t\t\tcbwBuffer.put(3,(byte)0x43);\r\n\r\n\t\t\t\tcbwBuffer.put(4,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(5,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(6,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(7,(byte)0x0);\r\n\r\n\t\t\t\tcbwBuffer.put(8,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(9,(byte)0x02);\r\n\t\t\t\tcbwBuffer.put(10,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(11,(byte)0x0);\r\n\r\n\t\t\t\tcbwBuffer.put(12,(byte)0x80);\r\n\t\t\t\tcbwBuffer.put(13,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(14,(byte)0x10);\r\n\r\n\t\t\t\tcbwBuffer.put(15,(byte)XXXX); //vendor specific opcode to read hidden\r\n\r\n\t\t\t\tcbwBuffer.put(16,(byte)0x0);\r\n\r\n\t\t\t\tcbwBuffer.put(17,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(18,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(19,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(20,(byte)0x1); //request 1 sector\r\n\r\n\t\t\t\tcbwBuffer.put(21,(byte)0x0);\r\n\r\n\t\t\t\tcbwBuffer.put(22,(byte)0x0);\r\n\t\t\t\tcbwBuffer.put(23,(byte)0x1); //start sector number to be read\r\n\r\n\t\t\t\tint iRes = conn.bulkTransfer(epOUT, cbwBuffer.array() , 31, 2000);\r\n\t\t\t\tiRes = conn.bulkTransfer(epIN, cswBuffer, 512, 2000); //receive hidden area` Instead using this hard code, can I just change/modified certain code from libaums ? "}}
{"actor":{"display_login":"norani"}}