How can I enable the Hardware Button and Double Tap to Wake on a GSI ROM? - Xiaomi Mi Mix 3 Questions & Answers

I have the Resurrection Remix GSI installed and it's great for both features and battery life. However I am unable to get two things working.
1) The hardware button doesn't do anything when I press it and I don't see any options in the RR section of the Settings app.
- Is there a way that I can enable this for something like, opening a specific camera app (GCam, or maybe Google Assistant)?
2) It also doesn't have double tap to wait either
- Now, I remember there being a mod in some old Pixel Experience GSI thread in this forum to enable this feature. Sadly, but the mod itself has been removed since the developer ended up modding the feature into the ROM. So I was curious if anyone remembered how to enable this feature on a vanilla GSI.
Thank you to anyone who can help!

Related

AICP alternative

Hi everyone,
I am currently running AICP but for some reason my phone has been lagging since a few updates. I have the 16Gb version and am also missing space. That's why I am looking for a lighter ROM. I'd like to test Lineage, but:
AICP has an option to turn the proximity sensor off which seems to be missing in Lineage (this is highly important to me because the sensor detects even transparent covers so I cannot wake my phone with double tapping when it is in a bike/running bag)
I would not like to lose any data when switching ROM (tried several backup solutions in the past but always had issues when recovering-apps not working, settings f***** up etc)
So my questions are: can I deactivate the proximity sensor in Lineage, can I install it without losing my apps or making a backup, and is it really lighter than AICP ? Thanks in advance for your help !
as personal experience in aicp with a 16gb phone, what makes the phone slow is when you dont have free space in the phone
also, install brevent in the play store, will help you with ram management, to make it run every first time (when rebooting), just enable developer mode with adb over wifi enabled, open brevent and will just start running, you can then disable developer mode
to use brevent, just clean the recent apps that you dont want in ram
also in brevent you can select apps to disable the cleaning from ram and also can enable second plane syncing for some apps
hello
I did see an option in AICP extras which is called Sensor block per -package. However it seems hard to find the detail settings. Would you like to help me? Thanks

OnePlus Xbox Controller "B" Button

I've got an issue with OP6 regarding multiple ROMs:
Any controller I connect via Bluetooth has the issue that there is no scan code for the B Button.
It's not a mapping issue, there is no input registered in any Controller detection app.
Can you guys reproduce?
Is this prevelent in OOS?
Any advice would be great!
I testet: multiple Roms and Kernels.
I googled and found: don't find the post again but there was a similar issue on the OP5 where a custom kernel that only supports OOS based Roms fixed it for some
My specs: OP6 A6003, Havoc OS 2.9, Franko Kernel r22
Yup. Happened to me too, OOS & custom ROMs. The fingerprint driver for OP6 (I'm assuming, educated for because it would kinda have to be something in /vendor to be common across all ROMs & system versions like this) intercepts scancode 305 (which maps to gamepad button B) before passing it to the current activity.
Try assigning an action to "long-press fingerprint sensor" in a custom ROM or toggle on whatever the action is in OOS, then press B on a connected gamepad: it'll trigger that action.
I filed a bug report on the OnePlus website months ago, got exactly zero response. Boo.
Terminator.J said:
Try assigning an action to "long-press fingerprint sensor" in a custom ROM or toggle on whatever the action is in OOS, then press B on a connected gamepad: it'll trigger that action.
Click to expand...
Click to collapse
What a bummer, thanks for the info with fingerprint gesture, I'll try to programm an app that just calls the B button and see if I can call that from fingerprint gesture.
Will update here
Potential Fix for the problem
First: Current OOS doesen't has this problem, Controller working completly fine.
Hello, this is my alpha ver. 0.(insert endless zeros here)1 for the fix.
This app can be set as the gesture for the fingerprint sensor. Then it will just call the keycode 305 programmatically. ROOT is requiered. Right now this app may use lots of batterie and will ask for SU at each button press. I will update the app and fix the su request and batterie consumtion.
This is how I do it:
In Settings, go to Havoc Settings, Device, Gestures, Fingerprint gesture and select my app.
If you don't trust my app, wait for a full release (might take a while), because I will put the whole gradle project onto github or something.
Cant post link, see reason for edit
Complete Fix!!! YAY!
Terminator.J said:
Yup. Happened to me too, OOS & custom ROMs. The fingerprint driver for OP6 (I'm assuming, educated for because it would kinda have to be something in /vendor to be common across all ROMs & system versions like this) intercepts scancode 305 (which maps to gamepad button B) before passing it to the current activity.
Try assigning an action to "long-press fingerprint sensor" in a custom ROM or toggle on whatever the action is in OOS, then press B on a connected gamepad: it'll trigger that action.
I filed a bug report on the OnePlus website months ago, got exactly zero response. Boo.
Click to expand...
Click to collapse
I fixed it yay. (pm me for the files, will post files here directly when I can, still blocked for newbie account)
SOoooo The culprit as expected are the FP Gesture Functions. This is derived from omnirom. So I decompiled the apk and changed the scan codes from 305 to 905 - and the B Button is working like a charm
What you need to do:
Go to recovery, adb push DeviceParts.apk /system/system/priv-app/DeviceParts/DeviceParts.apk
Reboot and DONE!

How to fix ambient light sensor on a Treble GSI ROM?

Hi!
I have installed Resurrection Remix 8.6.4 GSI on my SM-T590.
After a few hours of testing, seems like all the functions I need are working except one, the automatic brightness setting. The sensor (CM3323E) is detected in sensor testing apps, also they can read the light value. Automatic brightness icon shows up next to the brightness slider, but it doesn't do anything, no new logcat messages are produced when I tap the icon.
Also, I have issues with WiFi and Bluetooth quick setting toggles. If the status bar icon shape is set to circular, and I tap one of them, SystemUI crashes because of a Resources$NotFound exception. I think this isn't related to the brightness sensor, more like a ROM bug, but who knows.
Where should I start debugging? I'm relatively new to Android development.
UDPSendToFailed said:
Hi!
I have installed Resurrection Remix 8.6.4 GSI on my SM-T590.
After a few hours of testing, seems like all the functions I need are working except one, the automatic brightness setting. The sensor (CM3323E) is detected in sensor testing apps, also they can read the light value. Automatic brightness icon shows up next to the brightness slider, but it doesn't do anything, no new logcat messages are produced when I tap the icon.
Also, I have issues with WiFi and Bluetooth quick setting toggles. If the status bar icon shape is set to circular, and I tap one of them, SystemUI crashes because of a Resources$NotFound exception. I think this isn't related to the brightness sensor, more like a ROM bug, but who knows.
Where should I start debugging? I'm relatively new to Android development.
Click to expand...
Click to collapse
How dit u get gsi's to work on the sm-t590?
Tab a 10.5 right?
Mikxx said:
How dit u get gsi's to work on the sm-t590?
Tab a 10.5 right?
Click to expand...
Click to collapse
Yea, I have Tab A 10.5 (2018), SM-T590.
Basically I installed TWRP from here: [RECOVERY][ROM][ROOT][UNOFFICAL] TWRP 3.3.1-0 + Lineage [SM-T590/SM-T595/SM-T597] | XDA Developers Forums (xda-developers.com)
Then I just downloaded some GSIs and flashed them to see which one works, with some changes to the original post. I may create an updated guide for installing GSI ROMs using MrHomebrew's TWRP without having to mess with SD cards, etc, but you can follow the original guide to have a mostly working system.
You can download ROMs from here: Generic System Image (GSI) list · phhusson/treble_experimentations Wiki · GitHub
I'm still not sure about how that A-only / AB thing works, if you have updated to Android 10 on stock system, AB ROMs with A64 binder will run.

[Android 12] - App or Magisk module to let me use any gesture to toggle flashlight on/off?

Hello all,
On rooted Android 11, I was using this magisk module which let me squeeze to toggle on/off the torchlight.
Unfortunately, it hasn't been updated yet and probably won't be for Android 12, so I'm asking you if you have any alternative?
I'm not restricted to any kind of gesture, can be anything like squeeze, short/long/multiple power button press(es) or volume up/down, etc...
Thank you in advance
im also looking for it, did u find it? ive noticed some custom roms have this feature inbuilt, but not the one im on (Descendant OS) this feature is sooo usefull and easy and just nice i dont understand why its not a default feature yet

CRDroid v316 GSI (Variant of AOSP-Phh-treble + CRDroid)

You're stuck on MIUI 12.5.4.0 and you cant flash a working custom recovery?
You're too lazy or too newbish to build your own?
Cant flash any Custom Rom?
Well you can just learn how to flash these TREBLE PHH Images, GSI-AOSP based images.
Here i show you how to flash CRDroid v316 . Its based on Android 11R
These images can be flashed with just fastbootd, and they work PERFECTLY, even better than many of the images i've tried here.
You wont have to face hardbricks ever again (specially when flashing MIUI), you can get rid of it once and for all, get rid of Xiaomi and all of its bloatware.
And you can always continue flashing these ROMS or other ROMS (If they're the same Android version or 1 version above). They have root by default most of them.
I made a guide showing how to flash this image.
Xiaomi Redmi 9A 9i 9AT 10A
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
Supported Devices: Xiaomi Redmi 9A 9i 9AT 10A​
To flash
Basically you just need:
Stock Recovery
Bootloader Unlocked
vbmeta.img (you can also use the one that comes with your MIUI IMAGE)
ADB/Fastboot
An " arm32_binder64 " image (Also called A64 image) that is compatible with your Android Version. (For example This image of CRDroid crdrom-v316-220330-a64-bvZ.img.xz is compatible for us, its the one being used in the tutorial).
Patience
What works?
Everything works, there are bugs in Display Brightness and Headphones
VOLTE (UNTESTED)
What doesn't Work?
In some images, of A10 - A13, for somer eason, RIL , the Radio Interface Layer is dead, so SIM doesn't work, we need to build Images or somehow work-around it, or try various images, to see which ones work.
So far RIL works perfectly, sim card works in eremitein Images, you will find a link to these images posted on the guide.,
RIL/SIM works in the the CRDroid image i used, it was built/published by eremitein.
All credits go to these people.
Fixes​*Improve Wifi - Disable Wifi Power Saving
Important fix " In many Android 11 custom roms the Wifi in this phone becomes weaker, Less txpower, refresh 3 times max every 2 mins, has sometimes latency, range issues, this will improve it by 10-15%
Open Terminal Emulator
Turn your wifi on like a big man, use:
su
iw dev wlan0 set power_save off
(to check that your wifi powersaving has been turned off, use)
iw dev wlan0 get power_save
exit
exit
(To make this persistent between reboots, use an apk to launch scripts on boot)
*Improve Wlan0 TxPower
(In the future i will add how to change TxPower, lets be patient, im learning too, it seems possible though, i need it for pentesting, i discovered a way to use our precious monitor mode, but its my secret only, if someone teaches me how to improve txpower i will teach them to use monitor mode, we can trade)
*Fix headphone issues, if present, execute these lines on any Terminal Emulator then reboot.
su
setprop persist.sys.overlay.devinputjack true
*Fix brightness/display adjustment,
setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)
Please Report if the CRDroid Image works for you. And if you have the Time/Internet available feel free to download other Images from different developers and report if other Images work perfectly or not.
I for my part will stick to this rom for a looooong time, and wait until android 14-16 has released, maybe then i will meditate upon using another phone/rom (because it just works very well for me).
More information can be found here:
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list/
Well, was stuck on MIUI 12.5.3.0 global, did not wanna test my luck flashing custom recoveries so tried this, so far good, only bug for my is bluetooth can t transmit data, connects ok but no data or music, so i use headphones and everything is ok, ,RIL is ok, don t use volte, auto brightness bug is more or less livable, haven t tested the fix in terminal yet, SOT more than 5hours in a no game scenario, more than 48 hours of charge from 100% to 13%, phone charges as expected, feels very snappy, using a Gcamgo and almost as good as miui cam, excellent work to eremitein.
cvmg333 said:
.... using a Gcamgo and almost as good as miui cam, excellent work to eremitein.
Click to expand...
Click to collapse
Thanks for this! Do you know if camera2 API is enabled in this ROM? By that, I mean do manual camera options like ISO, shutter speed options exist? You can check by installing camera apps like Open Camera.
Thanks.
MaverickNextDoor said:
Thanks for this! Do you know if camera2 API is enabled in this ROM? By that, I mean do manual camera options like ISO, shutter speed options exist? You can check by installing camera apps like Open Camera.
Thanks.
Click to expand...
Click to collapse
Hi, its not enabled by default, but it can be activated in crdroid settings, and yes Open Camera manual options are working.
cvmg333 said:
Hi, its not enabled by default, but it can be activated in crdroid settings, and yes Open Camera manual options are working.
Click to expand...
Click to collapse
Thanks so much!
Found glitch in this Rom, if i turn on lockscreen security by pattern, sudenly home key and recents key stop working, if i deactivate the lockscreen security feature, navbar buttons work as the should again.

Categories

Resources