{"action":"created","issue":{"url":"https://api.github.com/repos/openthos/printer-analysis/issues/19","repository_url":"https://api.github.com/repos/openthos/printer-analysis","labels_url":"https://api.github.com/repos/openthos/printer-analysis/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/openthos/printer-analysis/issues/19/comments","events_url":"https://api.github.com/repos/openthos/printer-analysis/issues/19/events","html_url":"https://github.com/openthos/printer-analysis/issues/19","id":152907198,"number":19,"title":"HeXingPeng :: printer: Plan 2016503 -- 20160531","user":{"login":"chyyuu","id":2077445,"avatar_url":"https://avatars.githubusercontent.com/u/2077445?v=3","gravatar_id":"","url":"https://api.github.com/users/chyyuu","html_url":"https://github.com/chyyuu","followers_url":"https://api.github.com/users/chyyuu/followers","following_url":"https://api.github.com/users/chyyuu/following{/other_user}","gists_url":"https://api.github.com/users/chyyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/chyyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chyyuu/subscriptions","organizations_url":"https://api.github.com/users/chyyuu/orgs","repos_url":"https://api.github.com/users/chyyuu/repos","events_url":"https://api.github.com/users/chyyuu/events{/privacy}","received_events_url":"https://api.github.com/users/chyyuu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T00:49:48Z","updated_at":"2016-05-06T03:32:31Z","closed_at":null,"body":"何兴鹏\r\n5月3日 ~ 5月8日\t\t\t整合CUPS进android\r\n5月9日 ~ 5月15日                    编写CUPS交流接口 中 打印\r\n5月16日 ~ 5月22日                  与北大同学沟通，编写通知栏接口\r\n5月23日 ~ 5月29日\t\t         完善程序\r\n\r\n潜在困难：\r\n cups读写USB的权限问题，安卓不允应用直接读写usb设备。之前没有用cups时，通过接入android usb框架，在java层实现读写。而cups使用libusb库直接读写usb设备文件。安卓中有个usb用户组能直接读写，我在尝试修改程序权限，想让程序加入usb用户组，还在寻找方法。\r\n\r\n网络功能不知道CUPS移植后能不能用"},"comment":{"url":"https://api.github.com/repos/openthos/printer-analysis/issues/comments/217340287","html_url":"https://github.com/openthos/printer-analysis/issues/19#issuecomment-217340287","issue_url":"https://api.github.com/repos/openthos/printer-analysis/issues/19","id":217340287,"user":{"login":"HsingPeng","id":5902418,"avatar_url":"https://avatars.githubusercontent.com/u/5902418?v=3","gravatar_id":"","url":"https://api.github.com/users/HsingPeng","html_url":"https://github.com/HsingPeng","followers_url":"https://api.github.com/users/HsingPeng/followers","following_url":"https://api.github.com/users/HsingPeng/following{/other_user}","gists_url":"https://api.github.com/users/HsingPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/HsingPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HsingPeng/subscriptions","organizations_url":"https://api.github.com/users/HsingPeng/orgs","repos_url":"https://api.github.com/users/HsingPeng/repos","events_url":"https://api.github.com/users/HsingPeng/events{/privacy}","received_events_url":"https://api.github.com/users/HsingPeng/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T03:32:31Z","updated_at":"2016-05-06T03:32:31Z","body":"本周工作：\r\n\r\n已解决：\r\n修改frameworks/base/data/etc/platform.xml源码，加入自定义USB用户组权限。\r\n并且通过使用系统签名，使得程序成功加入USB用户组，获得usb读写的权限。已测试。\r\n测试杨茂静态编译的CUPS，可以添加删除打印机。\r\n修改cupsd.conf配置文件，解决CUPS控制权限问题。\r\n\r\n未解决：\r\nghostscript以及foo2zjs等部件还未集成进去，所以还不能打印。\r\n\r\n进度：\r\n已完成/完成80%\r\n还差把之前编译的gs等加入，实现打印。"}}