Merge lp://qastaging/~zhangew401/usensord/fix-lp-1433590 into lp://qastaging/usensord
Proposed by
Zhang Enwei
Status: | Merged |
---|---|
Approved by: | Bill Filler |
Approved revision: | 35 |
Merged at revision: | 26 |
Proposed branch: | lp://qastaging/~zhangew401/usensord/fix-lp-1433590 |
Merge into: | lp://qastaging/usensord |
Diff against target: |
260 lines (+172/-2) 3 files modified
debian/changelog (+12/-0) debian/control (+2/-0) haptic/haptic.go (+158/-2) |
To merge this branch: | bzr merge lp://qastaging/~zhangew401/usensord/fix-lp-1433590 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pat McGowan (community) | Approve | ||
Tyler Hicks | Approve | ||
Seth Arnold (community) | Approve | ||
Y.C Cheng | Pending | ||
John McAleely | Pending | ||
PS Jenkins bot | continuous-integration | Pending | |
Penk Chen | Pending | ||
Michael Sheldon | Pending | ||
James Henstridge | Pending | ||
Zsombor Egri | Pending | ||
Michael Frey | Pending | ||
Review via email: mp+299959@code.qastaging.launchpad.net |
Description of the change
Fix lp:1433590
1. Export OtherVibrate property from com.canonical.
2. The property is saved in file, $HOME/.
3. Identify OSK by its apparmor and /proc/ID/exe. if it is OSK, do vibration always. If not, check the OtherVibrate property, if it is 1, then do vibration. If it is 0, don't do vibration.
4. libapparmor is linked to call aa_is_enabled().
To post a comment you must log in.
/proc/PID/comm cannot be trusted for security related decisions. See inline comment.