Check 
this 
http://192.99.106.107:8080/xref/android-9.0.0_r1/xref/frameworks/base/core/res/res/values/config.xml#2578
 
just remove the line with '<item>power</item>' and check. If it doesn't 
work then you may have to do some changes in 
<aosp_root_dir>/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java.
 
Just check.

On Thursday, 25 July 2019 20:35:10 UTC+5:30, Mohammad Saleh Dehghanpour 
wrote:
>
> Hi guys
>
> Do you know how I can modify the dialog which is shown when the user holds 
> the power key?
>
> I want the user to just be able to reboot his device and not to poweroff.
>
> Where is related setting resides in AOSP?
>
> Thanks
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-porting/f511dcf2-4855-4029-9afb-1d000f0fafc6%40googlegroups.com.

Reply via email to