{"push_id":536961109,"size":15,"distinct_size":15,"ref":"refs/heads/cm-12.0","head":"5eb734b9cc5279931bdd495598906e1e8faecdd3","before":"12f21fa80c7e5d0e36ed2ec5613812b388c44a9f","commits":[{"sha":"aa3815e2ee844449c7ee07f1a09b9fb68739c316","author":{"email":"ceefa3979afc794e6b71ade6024b71229933b204@htc.com","name":"tingna_sung"},"message":"Sync focus stack frame and layer with focus app.\n\nUpdate focus stack frame/layer when focus app is changed to avoid\nfocus stack/layer isn't updated synchronously with focus app, it's\ndue to performLayoutAndPlaceSurfacesLocked() is not necessarily\ncalled on focus app change; it will cause sending mismatching\nTAP_OUTSIDE_STACK message if there is effectual incoming pointer\nevent, hence may also result in focus stack is changed again,\ntherefore erroneous focus app is set by ActivityManager at final.\n\nChange-Id: Ia0ec9a543be887b51a3b29b3e62fdd471c15edf2\nSigned-off-by: tingna_sung <tingna_sung@htc.com>\n\n(cherry picked from commit 173ce498d77e1751b1914886ad19e51759afbb24)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/aa3815e2ee844449c7ee07f1a09b9fb68739c316"},{"sha":"750f7380417a47cd9fefac6898e6ff5bda1972f5","author":{"email":"ceefa3979afc794e6b71ade6024b71229933b204@htc.com","name":"tingna_sung"},"message":"Fix Presentation window is removed on stack change\n\nIf an activity show a Presentation window and this activity is moved\nto bottom or top, thus this Presentation window will be removed from\nits display window list, and no chance to be added back into window\ncontainer; It will cause the incorrect state that Presentation window\nis lost from secondary display window list(displayContent.mWindows),\nbut still exist in app token's window list(appWindowToken.allAppWindows);\nMoreover, once this activity resume again, Presentation window is not\nshown because it's lost.\n\nIn this way, don't remove non-target display app windows due to only\ntarget(or called default) display windows are removed temporarily and\nre-sorted then added back into window list later.\n\nChange-Id: I8960ce191f6c662455cba5a0a5e6a1ff9ef03ae1\nSigned-off-by: tingna_sung <tingna_sung@htc.com>\n\n(cherry picked from commit 58a494bda8244c476061dc918badd892f1e06a18)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/750f7380417a47cd9fefac6898e6ff5bda1972f5"},{"sha":"a85a27e706b03ecb3b92036e560b18fc3a40e8cb","author":{"email":"8785197c97cabbdc477dcc059c192ec40d8119e5@sonymobile.com","name":"Akira Numata"},"message":"Default icon is shown after uninstalling updated priv-app\n\nIf updated pre-installed app is moved from \"/system/app\" to\n\"/system/priv-app\" at FOTA, PackageManager does not update its\nresource path correctly. This patch fixes it.\n\nChange-Id: Iac793bcb8fd7c5bfbafd1876640b534c6da5dddf\n\n(cherry picked from commit 6d91b5080e2bdfe778b0a14f3bda1cb41e11fb3b)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/a85a27e706b03ecb3b92036e560b18fc3a40e8cb"},{"sha":"4da664681470cffceec262f4390c50b772170b81","author":{"email":"8785197c97cabbdc477dcc059c192ec40d8119e5@sonymobile.com","name":"Akira Numata"},"message":"APK still has privileged flag after being moved from \"/system/priv-app\"\n\nWhen an app is moved from \"/system/priv-app\" to another location\nduring OTA update, the privileged flag should be removed.\n\nChange-Id: I7713382db34697f7b68283dbbbd25a1349cbecdb\n\n(cherry picked from commit 7ad2d5309dace8b80c7091e15f3cb1c0f09daf92)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/4da664681470cffceec262f4390c50b772170b81"},{"sha":"ff854045d1101c885bf3eef075f13782fa54e267","author":{"email":"9d88304640143e2b90a12f53398b44b575b6cad8@intel.com","name":"Guobin Zhang"},"message":"ANR caused by incorrect cleanup in BroadcastQueue.\n\nTwo broadcasts could be sent to the same app simultaneously:\none foreground, one background. For example, LOCALE_CHANGED\nand PACKAGE_CHANGED are delievered to com.android.vending\nat the same time.\n1. AMS started new vending process to handle LOCALE_CHANGED.\n   And set app.curReceiver = LOCALE_CHANGED.\n2. Before LOCALE_CHANGED is handled by vending process,\n   PACKAGE_CHANGED was delievered to vending process too.\n   AMS set app.curReceiver = PACKAGE_CHANGED. Bad!\n3. Vending process finished handling LOCALE_CHANGED.\n   AMS clear app.curReceiver = NULL. Bad!\n   And Vending process  killed itself without handling\n   PACKAGE_CHANGED.\n4. AMS known vending process has died, but didn't know that\n   BgBroadcastQueue was still waiting for finish message\n   for PACKAGE_CHANGED.\nAt last, BgBroadcastQueue reported ANR for PACKAGE_CHANGED.\n\nThis patch adds protection before clearing app.curReceiver,\nonly set to NULL if the finishing receiver = app.curReceiver\nSo handleAppDied would know that PACKAGE_CHANGED was not\nfinished yet, it will abort the broadcast and continue.\n\nChange-Id: Ic4f31b35e21823d4a3c27712391ecbede213a494\nSigned-off-by: Guobin Zhang <guobin.zhang@intel.com>\n\n(cherry picked from commit 43505b66e2adcd2999a260844e1ce4f5ce4a3e77)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/ff854045d1101c885bf3eef075f13782fa54e267"},{"sha":"28753397a5687c0b8b709ee5502c6f735dff199f","author":{"email":"7fb1af48ad3f9a487e1291e1f9cb0d9f90b4f222@htc.com","name":"louis_chang"},"message":"[ActivityManager] Fix NPE when start activity\n\nSymptom:\nNPE occurs in line 1184 (resultStack.sendActivityResultLocked)\nbecause resultStack is null.\n\nRoot cause:\nWhen starting activity with FLAG_ACTIVITY_FORWARD_RESULT flag,\nthe resultRecord could be updated, but the resultStack is not\nupdated as well. In that case, the resultStack is still be\nnull. The exception will occurs if the activity is not\ngranted to launch due to permission denied.\n\nSolution:\nUpdate resultStack when resultRecord updates.\n\nChange-Id: I91634e4f713c2e8dbd1a71f358a8fd9beed83ec7\n\n(cherry picked from commit 0db4348158512508e31f5970b26bae9e853d6c43)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/28753397a5687c0b8b709ee5502c6f735dff199f"},{"sha":"f9856c4ed5acc06b42bee289e271df00e14ccf67","author":{"email":"ceefa3979afc794e6b71ade6024b71229933b204@htc.com","name":"tingna_sung"},"message":"Measure absolute value of pointer motion distance\n\nIf pointer is moving to the negative axis direction, pointer movement\ndistance will always less than pre-defined mMotionSlop, thus\nTAP_OUTSIDE_STACK will have chance to be sent, will cause unnecessary\nfocus stack switch.\n\nChange-Id: Ia4c066bebce250257c7361ef976907a0ca2c6461\nSigned-off-by: tingna_sung <tingna_sung@htc.com>\n\n(cherry picked from commit 14b72d8c9d974952a2b30a897bfefa977f25156f)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/f9856c4ed5acc06b42bee289e271df00e14ccf67"},{"sha":"ab79b8bf9899be85e9a9e4a736e13514ffa5f917","author":{"email":"ceefa3979afc794e6b71ade6024b71229933b204@htc.com","name":"tingna_sung"},"message":"Fix pointer index out of range exception\n\nAvoid pointer index out of range error if return value is -1 of\nfindPointerIndex() when there is no data available for that pointer\nidentifier.\n\nChange-Id: I2a08f04c678164e220852094baa124ba157e2e42\nSigned-off-by: tingna_sung <tingna_sung@htc.com>\n\n(cherry picked from commit 28546577baf88baf2153b6c657f3bc1faeb0f27b)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/ab79b8bf9899be85e9a9e4a736e13514ffa5f917"},{"sha":"16c2f9c2d73eca84599d0af36f80f712d44c7ed4","author":{"email":"ceefa3979afc794e6b71ade6024b71229933b204@htc.com","name":"tingna_sung"},"message":"Fix racing condition of mTouchExcludeRegion\n\nCopy region from DisplayContent.mTouchExcludeRegion instead of\ndirectly refer to the same object of DisplayContent, and able to\nprotect it by lock of self class, don't have to lock out mWindowMap\non every tap.\n\nThis fix is to avoid racing condition of mTouchExcludeRegion.\n\nChange-Id: I7401968167c2e539b4da2afe71e3020038fbfcbf\nSigned-off-by: tingna_sung <tingna_sung@htc.com>\n\n(cherry picked from commit 3a689185adb571e807e011251d1a99386bce63ff)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/16c2f9c2d73eca84599d0af36f80f712d44c7ed4"},{"sha":"45f7b1a629e9f787ec92b49e197bb2791de7d8b6","author":{"email":"7fb1af48ad3f9a487e1291e1f9cb0d9f90b4f222@htc.com","name":"louis_chang"},"message":"[ActivityManager] Fix race condition in pss collection\n\nSymptom:\nThere has a race condition that two threads are accessing\nthe mPendingPssProcesses simultaneously. One of the thread\nis collecting the process pss by looping the mPendingPssProcesses.\nThe other thread is requesting to collect pss of all processes,\nwhich clears mPendingPssProcesses and adding processes back.\n\nSolution:\nAvoid race condition by adding synchornized protection.\n\nChange-Id: Ifb090eda9c4a1b8e3fd980fe0171e9dd77773b46\n\n(cherry picked from commit ffb46c84bf5e44729c8f77ce9c19a50db80be07e)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/45f7b1a629e9f787ec92b49e197bb2791de7d8b6"},{"sha":"a13e2435aac56d85200643a813db9033197f03c9","author":{"email":"8d7c00a59e23996d0098b40888c88f907c3087c6@sonymobile.com","name":"Sergii Skorokhodov"},"message":"Correct check of is user running\n\nBefore the ActivityManagerService sends an intent or\nstarts an activity it checks if target user is in\nmStartedUsers array.\n\nWhen removing a non-owner user process the\nUserStartedState instance will still be in mStartedUsers\narray with mState STOPPING or SHUTDOWN.\n\nThis should be checked before sending an intent or start\nan activity.\n\nisUserRunningLocked(...) will interpret mState STOPPING\nand SHUTDOWN as a non running user.\n\nChange-Id: I1b51bcdb62bdd0f6dbe05dab4d529d4ad40d0d44\n\n(cherry picked from commit bcd744e622e49609ca3bf57bdab0e103b899e308)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/a13e2435aac56d85200643a813db9033197f03c9"},{"sha":"96cda65b7dc73a4e8fe4afff80a816b1d88ddb37","author":{"email":"b7a82f4a366e561905cdc83b7ae597d96aa7c308@sonymobile.com","name":"Kenji Sugimoto"},"message":"Prevent ANR when broadcast receiver is killed\n\nIf the process of a BroacastReceiver is dying at the same time\nas the system is trying to send an ordered broadcast to the\nreceiver, the system will try to start the process again. The\nBroadcastQueue will store the BroadcastRecord in mPendingBroadcast\nto be able to handle it again when the process is awake. A\ntimeout Message is posted to the handler of the BroadcastQueue.\n\nAs part of the shutdown sequence skipCurrentReceiver is called for\nthe ProcessRecord. This will check if there is a curReceiver set\nfor the application and make sure to finish the receiver.\n\nEach of the foreground and background BroadcastQueues have their\nown handler for managing broadcast timeouts. If the wrong\nBroadcastQueue finishes the receiver, the pending timeout Message\nwill never be cancelled, leading to an ANR report for a receiver\nthat has already been finished.\n\nChange-Id: I960c0d8f1a8b739b54a8f09f496b32a3498b9e9a\n\n(cherry picked from commit c3cc261d56a9f64ba86eacc2b14d7460269951d4)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/96cda65b7dc73a4e8fe4afff80a816b1d88ddb37"},{"sha":"d013de109b3534067d6be3924909e546dfe39df8","author":{"email":"73e1a9e63a1b1e8f5ba0733c82d5a73e74db88b2@htc.com","name":"Mark Lu"},"message":"[ActivityManager] fix NPE in ActivityStack.resetTargetTaskIfNeededLocked.\n\nSymptom:\nin .ActivityStack.resetTargetTaskIfNeededLocked,  \"allowTaskReparenting\" if case will call setTask\nto remove activities from task, that will caused numActivities in main for-loop not consist with task.mActivities size.\ncaused NPE will happend in finish activities for-loop due to get null object from activities when clearWhenTaskReset\" as true case.\n\nRoot Cause:\nwhen clearWhenTaskReset as true, will set \"end\" variable as numActivities -1, but if calling setTask to remove activities from task,\nend value will out of date & not same with task.mActivities size.\n\nSolution:\nuse activities.size() - 1 to assign end value.\n\nChange-Id: I5d7fe22e1df2fc61738db23402e7c42cf6d8c4cc\n\n(cherry picked from commit 865a7f839b1b9ba3442619bd00ed25090b0e31ed)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/d013de109b3534067d6be3924909e546dfe39df8"},{"sha":"560335576efbd22901b326994923caffcf1c9d52","author":{"email":"6b83a1e1785655638a42749a41f270fd4d63cd36@cerqueira.org","name":"Ricardo Cerqueira"},"message":"PackageManager: Restrict system packages to protected storage\n\nDon't allow packages signed with the platform key to be\ninstalled into user (or app) controlled storage\n\nChange-Id: I7390b3bdf5289411f7a335c69635bed9f74bbfb3\n\nPackageManager: Limit the platform-key protection to test-keys builds\n\nThis block (change I7390b3bdf5289411f7a335c69635bed9f74bbfb3) is intended\nto protect the system from abuse of well-known keys. That's not the case\nif the system is signed with dev or release keys.\n\nChange-Id: Ifb66f775dd28c577447634ae177442732a18b592\n\n(cherry picked from commit 89c10fbc4aa2058c63e6a59f59cc89d9e284aa30)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/560335576efbd22901b326994923caffcf1c9d52"},{"sha":"5eb734b9cc5279931bdd495598906e1e8faecdd3","author":{"email":"4ff6c4f0a68622c769e48271f4cae1c7352f42e3@verizon.net","name":"Joshua"},"message":"PowerManagerService: Fix arm64 build\n\nAdd static_cast<int64_t> for 64bit compatiblity\n\nChange-Id: I49e018773d8e54a30b57a05093bcfd692db9d2ca\n\n(cherry picked from commit d30a0e6c83a9adab7574222e44f6f4990771b074)","distinct":true,"url":"https://api.github.com/repos/cmRemiX/android_frameworks_base/commits/5eb734b9cc5279931bdd495598906e1e8faecdd3"}]}