{"action":"opened","number":53,"pull_request":{"url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/53","id":223898835,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzODk4ODM1","html_url":"https://github.com/LiquidRemix/android_frameworks_base/pull/53","diff_url":"https://github.com/LiquidRemix/android_frameworks_base/pull/53.diff","patch_url":"https://github.com/LiquidRemix/android_frameworks_base/pull/53.patch","issue_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues/53","number":53,"state":"open","locked":false,"title":"Camera: allow camera to use power key as shutter","user":{"login":"rrajesh011","id":7898970,"node_id":"MDQ6VXNlcjc4OTg5NzA=","avatar_url":"https://avatars1.githubusercontent.com/u/7898970?v=4","gravatar_id":"","url":"https://api.github.com/users/rrajesh011","html_url":"https://github.com/rrajesh011","followers_url":"https://api.github.com/users/rrajesh011/followers","following_url":"https://api.github.com/users/rrajesh011/following{/other_user}","gists_url":"https://api.github.com/users/rrajesh011/gists{/gist_id}","starred_url":"https://api.github.com/users/rrajesh011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrajesh011/subscriptions","organizations_url":"https://api.github.com/users/rrajesh011/orgs","repos_url":"https://api.github.com/users/rrajesh011/repos","events_url":"https://api.github.com/users/rrajesh011/events{/privacy}","received_events_url":"https://api.github.com/users/rrajesh011/received_events","type":"User","site_admin":false},"body":"Provides a way for an app to take control of the power key.\r\nUsed by the camera to make the power key control the shutter.\r\n\r\nChange-Id: I85a1e1761199f4604672be42a3a5005227f5451a\r\n(cherry picked from commit 15661444ae1faea831218f0c936b756de2f0698b)\r\n\r\nPrevent power key capture when screen is off\r\n\r\nThe ability for an activity to capture the power key, which was\r\nadded to support power key as shutter in the camera, should only\r\nallow the capture when the screen is on. Otherwise, if an activity\r\nthat captures the power key is to the front when the device turns\r\noff, the user will be unable to turn it back on.\r\n\r\nChange-Id: Ib119d6914ec72554b404c1cc17eef3a932d5d402\r\n\r\nPhoneWindowManager: add mTopFullscreenOpaqueWindowState null check to fix exception\r\n\r\nDiscovered through extensive testing with double press power for camera combined\r\nwith long press power for torch (though these features are not required to\r\ntrigger the issue), lack of null check here can occasionally result in either of:\r\n\r\n1) screen is off, power press will NOT turn the screen on (needs to be woken\r\n   via fingerprint, power cable connect or leave device for a minute or\r\n   so and it will eventually wake on power press again).\r\nOR\r\n2) screen is on, power press will not turn the screen off\r\n\r\nIt requires pressing power shortly after screen off or screen on at just\r\nthe right time to trigger.  Issue is reproducible on angler.\r\n\r\nE InputManager-JNI: An exception was thrown by callback 'interceptKeyBeforeQueueing'.\r\nE InputManager-JNI: java.lang.NullPointerException: Attempt to invoke interface method\r\n 'android.view.WindowManager$LayoutParams android.view.WindowManagerPolicy$WindowState.getAttrs()'\r\non a null object reference\r\nE InputManager-JNI:      at com.android.server.policy.PhoneWindowManager.interceptKeyBeforeQueueing(PhoneWindowManager.java:6647)\r\nE InputManager-JNI:      at com.android.server.wm.InputMonitor.interceptKeyBeforeQueueing(InputMonitor.java:399)\r\nE InputManager-JNI:      at com.android.server.input.InputManagerService.interceptKeyBeforeQueueing(InputManagerService.java:1979)\r\n\r\nChange-Id: I77d094130d58b152fdfa515f53661543976b33bf\r\n(cherry picked from commit dc0c974e6a904dc637b8c49ed67d34f17fea5532)\r\n\r\ncore: Update PREVENT_POWER_KEY permission for M\r\n\r\nChange-Id: Iac053a317314fad08545c8dc411ad44f977b8f3e\r\n\r\nWindowManager: Add clearPrivateFlags\r\n\r\nChange-Id: I0b51a52bf26f3566e74063e22f5c1b187c74b525","created_at":"2018-10-18T10:12:38Z","updated_at":"2018-10-18T10:12:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/53/commits","review_comments_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/53/comments","review_comment_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues/53/comments","statuses_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/statuses/7103890e5e4dc6eb76e5cebc49b188627f1dc069","head":{"label":"rrajesh011:pie","ref":"pie","sha":"7103890e5e4dc6eb76e5cebc49b188627f1dc069","user":{"login":"rrajesh011","id":7898970,"node_id":"MDQ6VXNlcjc4OTg5NzA=","avatar_url":"https://avatars1.githubusercontent.com/u/7898970?v=4","gravatar_id":"","url":"https://api.github.com/users/rrajesh011","html_url":"https://github.com/rrajesh011","followers_url":"https://api.github.com/users/rrajesh011/followers","following_url":"https://api.github.com/users/rrajesh011/following{/other_user}","gists_url":"https://api.github.com/users/rrajesh011/gists{/gist_id}","starred_url":"https://api.github.com/users/rrajesh011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrajesh011/subscriptions","organizations_url":"https://api.github.com/users/rrajesh011/orgs","repos_url":"https://api.github.com/users/rrajesh011/repos","events_url":"https://api.github.com/users/rrajesh011/events{/privacy}","received_events_url":"https://api.github.com/users/rrajesh011/received_events","type":"User","site_admin":false},"repo":{"id":153598655,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM1OTg2NTU=","name":"android_frameworks_base-1","full_name":"rrajesh011/android_frameworks_base-1","private":false,"owner":{"login":"rrajesh011","id":7898970,"node_id":"MDQ6VXNlcjc4OTg5NzA=","avatar_url":"https://avatars1.githubusercontent.com/u/7898970?v=4","gravatar_id":"","url":"https://api.github.com/users/rrajesh011","html_url":"https://github.com/rrajesh011","followers_url":"https://api.github.com/users/rrajesh011/followers","following_url":"https://api.github.com/users/rrajesh011/following{/other_user}","gists_url":"https://api.github.com/users/rrajesh011/gists{/gist_id}","starred_url":"https://api.github.com/users/rrajesh011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrajesh011/subscriptions","organizations_url":"https://api.github.com/users/rrajesh011/orgs","repos_url":"https://api.github.com/users/rrajesh011/repos","events_url":"https://api.github.com/users/rrajesh011/events{/privacy}","received_events_url":"https://api.github.com/users/rrajesh011/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rrajesh011/android_frameworks_base-1","description":null,"fork":true,"url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1","forks_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/forks","keys_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/teams","hooks_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/hooks","issue_events_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/issues/events{/number}","events_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/events","assignees_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/assignees{/user}","branches_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/branches{/branch}","tags_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/tags","blobs_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/statuses/{sha}","languages_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/languages","stargazers_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/stargazers","contributors_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/contributors","subscribers_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/subscribers","subscription_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/subscription","commits_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/contents/{+path}","compare_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/merges","archive_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/downloads","issues_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/issues{/number}","pulls_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/pulls{/number}","milestones_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/milestones{/number}","notifications_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/labels{/name}","releases_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/releases{/id}","deployments_url":"https://api.github.com/repos/rrajesh011/android_frameworks_base-1/deployments","created_at":"2018-10-18T09:29:42Z","updated_at":"2018-10-18T10:10:39Z","pushed_at":"2018-10-18T10:10:36Z","git_url":"git://github.com/rrajesh011/android_frameworks_base-1.git","ssh_url":"git@github.com:rrajesh011/android_frameworks_base-1.git","clone_url":"https://github.com/rrajesh011/android_frameworks_base-1.git","svn_url":"https://github.com/rrajesh011/android_frameworks_base-1","homepage":"","size":2369780,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"pie"}},"base":{"label":"LiquidRemix:pie","ref":"pie","sha":"8cea0ec7f2ed4fb8fc4770f3d615b4bbce7fec08","user":{"login":"LiquidRemix","id":32000156,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDAwMTU2","avatar_url":"https://avatars2.githubusercontent.com/u/32000156?v=4","gravatar_id":"","url":"https://api.github.com/users/LiquidRemix","html_url":"https://github.com/LiquidRemix","followers_url":"https://api.github.com/users/LiquidRemix/followers","following_url":"https://api.github.com/users/LiquidRemix/following{/other_user}","gists_url":"https://api.github.com/users/LiquidRemix/gists{/gist_id}","starred_url":"https://api.github.com/users/LiquidRemix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiquidRemix/subscriptions","organizations_url":"https://api.github.com/users/LiquidRemix/orgs","repos_url":"https://api.github.com/users/LiquidRemix/repos","events_url":"https://api.github.com/users/LiquidRemix/events{/privacy}","received_events_url":"https://api.github.com/users/LiquidRemix/received_events","type":"Organization","site_admin":false},"repo":{"id":103725737,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM3MjU3Mzc=","name":"android_frameworks_base","full_name":"LiquidRemix/android_frameworks_base","private":false,"owner":{"login":"LiquidRemix","id":32000156,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDAwMTU2","avatar_url":"https://avatars2.githubusercontent.com/u/32000156?v=4","gravatar_id":"","url":"https://api.github.com/users/LiquidRemix","html_url":"https://github.com/LiquidRemix","followers_url":"https://api.github.com/users/LiquidRemix/followers","following_url":"https://api.github.com/users/LiquidRemix/following{/other_user}","gists_url":"https://api.github.com/users/LiquidRemix/gists{/gist_id}","starred_url":"https://api.github.com/users/LiquidRemix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiquidRemix/subscriptions","organizations_url":"https://api.github.com/users/LiquidRemix/orgs","repos_url":"https://api.github.com/users/LiquidRemix/repos","events_url":"https://api.github.com/users/LiquidRemix/events{/privacy}","received_events_url":"https://api.github.com/users/LiquidRemix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LiquidRemix/android_frameworks_base","description":null,"fork":true,"url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base","forks_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/forks","keys_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/teams","hooks_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/hooks","issue_events_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues/events{/number}","events_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/events","assignees_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/assignees{/user}","branches_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/branches{/branch}","tags_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/tags","blobs_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/statuses/{sha}","languages_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/languages","stargazers_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/stargazers","contributors_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/contributors","subscribers_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/subscribers","subscription_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/subscription","commits_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/contents/{+path}","compare_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/merges","archive_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/downloads","issues_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues{/number}","pulls_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls{/number}","milestones_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/milestones{/number}","notifications_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/labels{/name}","releases_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/releases{/id}","deployments_url":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/deployments","created_at":"2017-09-16T04:50:46Z","updated_at":"2018-10-18T06:26:39Z","pushed_at":"2018-10-18T06:26:23Z","git_url":"git://github.com/LiquidRemix/android_frameworks_base.git","ssh_url":"git@github.com:LiquidRemix/android_frameworks_base.git","clone_url":"https://github.com/LiquidRemix/android_frameworks_base.git","svn_url":"https://github.com/LiquidRemix/android_frameworks_base","homepage":"","size":2369780,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":25,"open_issues":1,"watchers":4,"default_branch":"pie"}},"_links":{"self":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/53"},"html":{"href":"https://github.com/LiquidRemix/android_frameworks_base/pull/53"},"issue":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues/53"},"comments":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/LiquidRemix/android_frameworks_base/statuses/7103890e5e4dc6eb76e5cebc49b188627f1dc069"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":23,"deletions":1,"changed_files":4}}
{"actor":{"display_login":"rrajesh011"}}