Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sleep after 10mins in setting not work. #802

Open
zhaojinzhou opened this issue Dec 26, 2024 · 3 comments
Open

sleep after 10mins in setting not work. #802

zhaojinzhou opened this issue Dec 26, 2024 · 3 comments

Comments

@zhaojinzhou
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

  1. as a remote access device, I set a password when lock screen. And I set put the devices into sleep after 10 mins, but this setting seems not working. Every time I adb connect the device, it's not sleeping. How should I put the device into sleep after may 10mins automatically. That's the simplest way to avoid unknown access.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@zhouziyang
Copy link
Member

Well, the default value is hardcoded indevice/redroid/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml

...
    <!-- Default for UI touch sounds enabled -->
    <bool name="def_sound_effects_enabled">false</bool>

    <bool name="def_lockscreen_disabled">true</bool>

    <!-- maximize the timeout to INT_MAX about 500+ hours -->
    <integer name="def_screen_off_timeout">2147483647</integer>

    <bool name="def_package_verifier_enable">false</bool>

@zhaojinzhou
Copy link
Author

zhaojinzhou commented Jan 6, 2025

Well, the default value is hardcoded indevice/redroid/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml

...
    <!-- Default for UI touch sounds enabled -->
    <bool name="def_sound_effects_enabled">false</bool>

    <bool name="def_lockscreen_disabled">true</bool>

    <!-- maximize the timeout to INT_MAX about 500+ hours -->
    <integer name="def_screen_off_timeout">2147483647</integer>

    <bool name="def_package_verifier_enable">false</bool>

Can this be changed after the docker runs? or It's a compile parameter? Can't be changed ?
It seems like a compile parameter. It's a pity.
Recompiling the whole image is a more complex thing.

I run it on the cloud, and expose port 5555 to the public, but anonymous access it , and run android p2p network sharing app T_T ! need a password protection.

@zhaojinzhou
Copy link
Author

If there is no client streaming (eg scrcpy), is there any CPU/memory usage benefit of having the device sleep?

Just for password protect, not for any CPU/memory usage benefit .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants