{"action":"created","issue":{"url":"https://api.github.com/repos/IzzySoft/Adebar/issues/14","labels_url":"https://api.github.com/repos/IzzySoft/Adebar/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/IzzySoft/Adebar/issues/14/comments","events_url":"https://api.github.com/repos/IzzySoft/Adebar/issues/14/events","html_url":"https://github.com/IzzySoft/Adebar/issues/14","id":115944632,"number":14,"title":"Auto confirmation does not work if server is not startet or screen is locked.","user":{"login":"inktrap","id":1449471,"avatar_url":"https://avatars.githubusercontent.com/u/1449471?v=3","gravatar_id":"","url":"https://api.github.com/users/inktrap","html_url":"https://github.com/inktrap","followers_url":"https://api.github.com/users/inktrap/followers","following_url":"https://api.github.com/users/inktrap/following{/other_user}","gists_url":"https://api.github.com/users/inktrap/gists{/gist_id}","starred_url":"https://api.github.com/users/inktrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inktrap/subscriptions","organizations_url":"https://api.github.com/users/inktrap/orgs","repos_url":"https://api.github.com/users/inktrap/repos","events_url":"https://api.github.com/users/inktrap/events{/privacy}","received_events_url":"https://api.github.com/users/inktrap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T19:14:45Z","updated_at":"2015-11-10T12:56:45Z","closed_at":null,"body":" - If I do not start the server and show the connected devices with ``àdb devices``, the auto-confirmation will fail.\r\n - this also happens when the screen is locked.\r\n - Basically everything that delays the backup-operation will result in the right keypress being send in the wrong situation.\r\n - I am trying to fix this, but to cover all eventualities it would be necessary to ensure that the backup-dialog/screen is the currently active window and that nothing else (like a keyboard) is present. This is not possible via adb.\r\n - it should at least be documented that the device needs to be connected first and the server has to be running and the screen should be unlocked.\r\n\r\nJust keeping this here for future reference."},"comment":{"url":"https://api.github.com/repos/IzzySoft/Adebar/issues/comments/155413073","html_url":"https://github.com/IzzySoft/Adebar/issues/14#issuecomment-155413073","issue_url":"https://api.github.com/repos/IzzySoft/Adebar/issues/14","id":155413073,"user":{"login":"inktrap","id":1449471,"avatar_url":"https://avatars.githubusercontent.com/u/1449471?v=3","gravatar_id":"","url":"https://api.github.com/users/inktrap","html_url":"https://github.com/inktrap","followers_url":"https://api.github.com/users/inktrap/followers","following_url":"https://api.github.com/users/inktrap/following{/other_user}","gists_url":"https://api.github.com/users/inktrap/gists{/gist_id}","starred_url":"https://api.github.com/users/inktrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inktrap/subscriptions","organizations_url":"https://api.github.com/users/inktrap/orgs","repos_url":"https://api.github.com/users/inktrap/repos","events_url":"https://api.github.com/users/inktrap/events{/privacy}","received_events_url":"https://api.github.com/users/inktrap/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T12:56:45Z","updated_at":"2015-11-10T12:56:45Z","body":"\nI guess trying to solve these issues would require some kind of app.\nControlling the keyboard is not possible via adb, I am relatively sure\nabout this.\n\nI think that all these things are obvious, but should be mentioned in\nthe docs. Therefore bugs regarding this can be easily closed/won't\noccur. So, yes, add item 4 to item 2.\n\nGlad you liked my changes :) :clap:\n\nSmall excursion about device security:\n\n - Unlocking the screen (if no password is set) should be possible\n   ``adb shell input keyevent 82`` (did not test this)\n - You can get a shell if debugging is enabled and the device is locked\n - You can disable the set password via adb + root access if you change the\n   sqlite-db, c.f.:\n   <http://forum.xda-developers.com/showthread.php?t=1409304> (note, I\n   did not try this, but it should work like this or similarly)\n - so yes, if you enable debugging, your device is open to an attack from\n   an already authorized device, f.e. there is malware/PUA that tries\n   to do this.\n"}}