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

My Preferences rests after every Reboot #18

Closed
cipherswami opened this issue May 16, 2021 · 5 comments
Closed

My Preferences rests after every Reboot #18

cipherswami opened this issue May 16, 2021 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cipherswami
Copy link

I added hid.keyboard to g1, after I reboot it is gone. I even tried with my g2, which has hid.keyboard and hid.mouse, it also disappears after reboot.

@tejado
Copy link
Owner

tejado commented May 17, 2021

Yes - there is no persistence yet. It would be great to get some help on this feature :)
Also it is not easy to implement it as you have to be careful not crashing your phone and so on....

@tejado tejado added enhancement New feature or request help wanted Extra attention is needed labels May 17, 2021
@cipherswami
Copy link
Author

Found out why it is happening, boot IMG checks for tampering on every boot, And restores it to default system IMG if found any. The only way you can have persistence is to compile a custom kernel with hid patch enabled.
Anyways tejado you have done great work bro !!!
Trust me when I say, compiling kernel that to the stock kernel is not an easy task.

@tejado
Copy link
Owner

tejado commented May 18, 2021

No, this is not the only way :)
I plan to implement an startup action into the app which sets the specified gadgets at device boot. Android is doing it the same with the initrc usb scripts.

@cipherswami
Copy link
Author

Oh Damn, that's awesome !!!
A small suggestion, don't integrate it inside the app, give us a switch option whether to start on bootup or not.
I particularly don't like app starting at bootup running in BG.
XD

@tejado
Copy link
Owner

tejado commented Oct 29, 2022

Added over #40

@tejado tejado closed this as completed Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants