[WIP] Hotword detection with screen off - Android Software/Hacking General [Developers Only]

Hello everyone,
This is a work in progress thread meant to gather info about how to add hotword detection support while the screen is off and the processor is in deep sleep. Ideally, this will work just like the Pixel devices by Google, so you'll be able to get to the assistant by saying "Ok Google" without turning on your device.
Let's start off with the first big question: Is the hardware that's required to do this in our devices?
Well, not every device. I have only looked into Qualcomm SoCs, but this is also possible with some Exynos processors through S Voice.
Qualcomm first added support for Hotword detection with the Snapdragon 800. The only device prior to that processor that had support for Hotwords was the first gen Moto X, which had its own Custom chip separate from the processor. However, my research indicates that all devices after the Snapdragon 800's launch use the processor's DSP for this job.
You can view the announcement of this feature for the Snapdragon 800 at this link:
https://www.qualcomm.com/news/onq/2...akes-mobile-world-snapdragon-voice-activation
In the blog post, the feature is mentioned as Qualcomm Voice Activation. I also found out that this was eventually also backported to the Snapdragon 600. However, looking elsewhere online reveals that this has other names as well, as it is part of Qualcomm Fluent PRO and All-Ways Aware. There are marketing videos for both online, and they all work with the Hey Snapdragon hotword. However, it seems that all of these features are part of the Hexagon DSP on the actual SoC and that they are compatible with v5 and up. So that means that technically all processors in the 600, 700 (in the future) and 800 line should be able to do this.
As far as I'm aware, the only device that uses the Hey Snapdragon wakeup command is the OnePlus One, which has a Snapdragon 801. On its default firmware, CyanogenMod 11S, you could go into the device's settings and train the device by saying Hey Snapdragon three times. Then, you could select the activity that would run every time you said it.
Someone on XDA updated this feature for newer firmware versions and looking at the flashable zip files it has one application file, a modified mediaserver, a modified audio library for its processor and some lib files for voice detection. I haven't attempted to Port this feature for any other device, but I doubt that it would work, even on devices with the same SoC.
I have also looked at Qualcomm's forums and found this thread which has a reply with links that could probably help us out here:
https://developer.qualcomm.com/foru...timedia-optimization-hexagon-sdk/speech/28153
This is source code from the Google Pixel and AOSP which might be the solution to making this work. I am not familiar with C and AOSP's code, so if someone with more experience could check this out, that would be great!
Lastly, I want to mention that I have a couple of devices that could help with testing including my daily driver Xiaomi Mi 5 (Snapdragon 820), a now retired LG G2 (Snapdragon 800) and a Galaxy S7 Exynos which should be able to use S Voice for this but I have not tested it yet. My friend @David_#27 also has a Redmi Note 4X (Snapdragon 625) and I could probably also borrow a Redmi 4X (Snapdragon 435) if we ever need it for testing.
Hopefully we can get some more info on this topic from people that have looked into this more than I have. Please reply to this topic with any info you may have, any help is very much appreciated! Making this work eventually on our devices would be incredible!
Thank you

XDA Labs bugged out and posted the thread twice. Could one of the two please be deleted or closed by the mods? Thanks.

Ok... Alternative F4??
---------- Post added at 18:56 ---------- Previous post was at 18:54 ----------
Pump...

Related

[Q] Did someone tried to add bands to the d820/821 with QPST?

Hello everybody,
Recently I noticed that there is an article featured on xda homepage that allow unlock bands on Qualcomm cpu's,As you all know our Nexus 5 CPU is from Qualcomm two,so I bet it will work but I don't really have the skill too maintain this job alone.
Here is the link:
http://www.xda-developers.com/android/add-frequency-bands-qualcomm/
What do you guys say?
it does not work on the nexus 5, period. many have tried no one succeeded.

is there anyway to have manual camera settings?

is this something only Motorola can do? cant we have a kernel or custom rom with the manual camera controls enabled?
Probably not. First the manufacturer of the camera sensor used in the Moto G3 (Sony) and the manufacturer of the image processing module on the SOC (Qualcomm) would have to provide Camera 2 API drivers which support manual settings.
Afaik the main problem at the moment is Qualcomm not providing this in their drivers.
Edit: and as Qualcomm SOC are not only used by Motorola but by many other companies, I think even if Motorola would request this from Qualcomm this would not happen. Anyway, at the moment very few people are complaining about this, so I guess neither Motorola nor Qualcomm see this as an issue which needs to be addressed.
u42671 said:
Probably not. First the manufacturer of the camera sensor used in the Moto G3 (Sony) and the manufacturer of the image processing module on the SOC (Qualcomm) would have to provide Camera 2 API drivers which support manual settings.
Afaik the main problem at the moment is Qualcomm not providing this in their drivers.
Click to expand...
Click to collapse
Sensor name: IMX214 (sony)
if you have cyanogenmod 12.1 or 13 you can download motorola camera with ladybug.
u42671 said:
Probably not. First the manufacturer of the camera sensor used in the Moto G3 (Sony) and the manufacturer of the image processing module on the SOC (Qualcomm) would have to provide Camera 2 API drivers which support manual settings.
Afaik the main problem at the moment is Qualcomm not providing this in their drivers.
Edit: and as Qualcomm SOC are not only used by Motorola but by many other companies, I think even if Motorola would request this from Qualcomm this would not happen. Anyway, at the moment very few people are complaining about this, so I guess neither Motorola nor Qualcomm see this as an issue which needs to be addressed.
Click to expand...
Click to collapse
That sucks. Back then in gingerbread/jellybean days android used to boast of being open source. They would say that users have full freedom of customizing their android phones. They would bash iOS for being closed source. But now things are totally opposite. iOS users now have more apis available. They enjoy better apps with more stable os.

A shortlist for my next phone, and two questions

Hey there,
I recently posted here about looking for a new phone on a budget. I'm happy to say that after a few weeks I've narrowed down my options to a shortlist of 10, using gsmarena to compare specs. I'm now at a point where I need to fill in the final gaps, but I'm unable to do so without an intimate knowledge of the devices, Android or the Android rooting scene, none of which I have, so so am at the mercy of the community for any further help.
I need to know whether each of the below phones satisfies two specific criteria.
These are the phones that I'm looking at:
- Honor 8
- Honor 8X
- Honor 9 Lite
- Honor 9
- Honor Play
- Huawei P20 Lite
- Motorola Moto G6
- Moto G6 Play
- Motorola Moto G5S
- Xiaomi Mi A2 Lite
For each of them, I'd like to know...
1. Whether it supports split-screen multitasking. Odd as it sounds, one of my biggest reasons for moving to Android is the ability to use YouTube while using other apps, so the phone I buy needs to support it. Based on my research, I have a feeling this is entirely independent of hardware, and that all of these phones should support a high enough Android version to use split-screen, but I'd like to confirm this.
2. The state of the modding/rooting community for the device; how much the phone supports modding and how active the community around it is. The other reason for moving to Android is the ability to customise things to my heart's content, based on the criteria outlined here. Does the phone in question support Magisk, TWRP, Treble, ElementalX? Are there any modding-related that I should know about it?
Once in again, thanks to anyone who's read through this properly and can answer these questions, it's much appreciated.
Thanks
If you want a rootable phone, drop all Huawei phones from your list

Where to buy "already" rooted phone?

Hi, I am just not getting it. Spent money on two phones to see if I can unlock and root them, and it is not my forte! Don't even know where to start because there is just too much information out there when I search online.
Is there anywhere I can just buy a rooted device, or pay someone to do it. Since every search on the Internet leads back to this site I thought I should ask it here. If I am in wrong section please let me know.
Thank you
As you want to root your phone, I'm assuming you know how a phone works and how to differentiate models and variants!
You can't buy an already rooted phone, as none come with it. If you want a phone that is easy to root but still good for a daily driver, you have to know the following criteria:
- Very popular brand (Samsung, Xiaomi, Oppo)
- Has to have a Snapdragon processor (mediatek phones are harder to root)
- The specific device should be popular on XDA (examples include Redmi Note 8 Pro, Poco X3 Pro, most samsung S devices that have Snapdragon processors)
- Samsung S (s22, s20, s8, etc) only have Snapdragon CPUs in countries like the USA and I think China
google pixel or oneplus are great
MirageSteezyBoi said:
google pixel or oneplus are great
Click to expand...
Click to collapse
yeah, but if you buy a oneplus don't get anything above the 8 lineup as they just get worse from there
and if you get a pixel 6 series i can't guarantee anything about that tensor chip being even bootloader unlockable
burned4l said:
Hi, I am just not getting it. Spent money on two phones to see if I can unlock and root them, and it is not my forte! Don't even know where to start because there is just too much information out there when I search online.
Is there anywhere I can just buy a rooted device, or pay someone to do it. Since every search on the Internet leads back to this site I thought I should ask it here. If I am in wrong section please let me know.
Thank you
Click to expand...
Click to collapse
Search for "rooted android phone" on Ebay. Do your research and make sure you know what your are buying, though. Also check the vendor ratings of the seller.
dcarvil said:
Search for "rooted android phone" on Ebay. Do your research and make sure you know what your are buying, though. Also check the vendor ratings of the seller.
Click to expand...
Click to collapse
recipy for DISASTER. don't buy a pre rooted phone, who knows what keyloggers and spyware can be put alongside that root? i wouldn't risk it at all, in fact i wouldn't buy any daily driver thing from ebay outside of like a phone case
Thank you for the replies. I will keep reading and researching. I bought a Motorola G Stylus (2021) just now, and gave up on the Samsung s10e. So far I have been able to get adb and fastboot working. Reading on XDA to figure the rest out.
Very popular brands (Samsung, Xiaomi, Oppo, Huawei, etc) tend to lock down their devices entirely. one can't just unlock bootloader from fastboot. beware of random guides, they often outdated or too broad.
before buying a device
- get confirmation that bootloader actually is unlockable (with regards to android version/carrier/branding etc)
- check community development is active (TWRP available? custom ROMs?)
you can do so by reading the proper section to device model on xda-developers
(if you can't find it, don't buy it)
Samsung Galaxy S10
Samsung's flagship for 2019, the Galaxy S10, is a 6.1" device, with a curved edge display, and a resolution of 1440x3040. It's powered by either the Exynos 9820 or Qualcomm Snapdragon 855 chipset, which is paired with 8GB of RAM and either 128GB or 512GB of storage. The main camera is comprised...
forum.xda-developers.com
Moto G Stylus (2021)
The Moto G Stylus is a 6.8" phone with a 1080x2400p resolution display. The Qualcomm SDM678 Snapdragon 678 chipset is paired with 4GB of RAM and 128GB of storage. The main camera is 48+8+2+2MP and the selfie camera is 16MP. The battery has a 4000mAh capacity.
forum.xda-developers.com
aIecxs said:
Very popular brands (Samsung, Xiaomi, Oppo, Huawei, etc) tend to lock down their devices entirely. one can't just unlock bootloader from fastboot. beware of random guides, they often outdated or too broad.
before buying a device
- get confirmation that bootloader actually is unlockable (with regards to android version/carrier/branding etc)
- check community development is active (TWRP available? custom ROMs?)
you can do so by reading the proper section to device model on xda-developers
(if you can't find it, don't buy it)
Samsung Galaxy S10
Samsung's flagship for 2019, the Galaxy S10, is a 6.1" device, with a curved edge display, and a resolution of 1440x3040. It's powered by either the Exynos 9820 or Qualcomm Snapdragon 855 chipset, which is paired with 8GB of RAM and either 128GB or 512GB of storage. The main camera is comprised...
forum.xda-developers.com
Moto G Stylus (2021)
The Moto G Stylus is a 6.8" phone with a 1080x2400p resolution display. The Qualcomm SDM678 Snapdragon 678 chipset is paired with 4GB of RAM and 128GB of storage. The main camera is 48+8+2+2MP and the selfie camera is 16MP. The battery has a 4000mAh capacity.
forum.xda-developers.com
Click to expand...
Click to collapse
about every phone is on xda, just that many don't have populated Roms and Kernels sections (ie: huaweis) so make sure it has 7-10.000 messages at least if you want a really good starting point
Nobody should buy an already rooted phone.
You should ever re-flash the full stock, format data and then, re-root the phone by YOURSELF.
151kmh said:
about every phone is on xda, just that many don't have populated Roms and Kernels sections (ie: huaweis) so make sure it has 7-10.000 messages at least if you want a really good starting point
Click to expand...
Click to collapse
Hi, do you have any specific model you can suggest? Considering the following:
I want to buy an android that I can root for sure, no matter how old it is as long as it runs Android 6 at least, I need it to be as cheap as possible, and I want to buy it in USA, compatible with T-Mobile carrier which is the one I use
I bought this https://www.amazon.com/dp/B0B3F9BRF9 and it was compatible with TMobile but there's no TWRP or info on how to root it, so I'm seeking for some old phone that actually works and is rooteable. I want to run some experiments but I need root access.
Thanks in advance!
Edit: I found several Samsung S7 on Ebay that could work, do you think it's a good match for rooting?
burned4l said:
Hi, I am just not getting it. Spent money on two phones to see if I can unlock and root them, and it is not my forte! Don't even know where to start because there is just too much information out there when I search online.
Is there anywhere I can just buy a rooted device, or pay someone to do it. Since every search on the Internet leads back to this site I thought I should ask it here. If I am in wrong section please let me know.
Thank you
Click to expand...
Click to collapse
Most easy to root phone ar
realme, samsung, oneplus
Buy one of this and follow the tutorial
From youtube make sure android version are matched with the tutorial
samsung what? lol read post #8
aIecxs said:
samsung what? lol read post #8
Click to expand...
Click to collapse
there is a method for samsung update androids works on 9|10|11|12|13
incase u dont know
samsujjamanrifat said:
there is a method for samsung update androids works on 9|10|11|12|13
incase u dont know
Click to expand...
Click to collapse
Do you mean the video "How To Root Any Samsung Phone Complete Guide Easy Method 2023"?
Have you tried with each of the 182 Samsung phones?
ze7zez said:
Do you mean the video "How To Root Any Samsung Phone Complete Guide Easy Method 2023"?
Have you tried with each of the 182 Samsung phones?
Click to expand...
Click to collapse
im a technician almost tried 40
even s22 ultra
the video is worthless
samsujjamanrifat said:
there is a method for samsung update androids works on 9|10|11|12|13
incase u dont know
Click to expand...
Click to collapse
No, I don't. I only know that OnePlus Oppo Realme devices belong to bbk and are hard to unlock with fastboot disabled.
https://forum.xda-
developers.com/t/decision-by-oppo-no-bootloader-fastboot-access-for-oppo-phones-starting-2016.3348114
https://forum.xda-developers.com/t/...ut-unlocking-fastboot-on-oppo-devices.4490041
Xiaomi devices are still unlockable, but you have to follow special procedure, and it doesn't work for blacklisted devices.
https://forum.xda-developers.com/t/which-tool-to-unlock-bootloader-poco-m5.4535015
what I have heared about Samsung, unlocking is not officially supported for US/Canada devices. also branded devices like cricket, verizon, etc aren't unlockable
aIecxs said:
"Verizon, for example, likes to prevent bootloader unlocking altogether, making it impossible to root your phone. Sometimes, though, people find unofficial workarounds, and we’ll let you know if any are found."
Click to expand...
Click to collapse
if you're willing to pay hundreds of dollars for unlocking, visit this thread
https://forum.xda-developers.com/t/...-unlock-for-samsung-us-canada-devices.4215101
@samsujjamanrifat But if you know how to unlock Samsung, you may help out this guy with unlocking
https://forum.xda-developers.com/t/samsung-a03s-roo-issues.4532585
ze7zez said:
Do you mean the video "How To Root Any Samsung Phone Complete Guide Easy Method 2023"?
Have you tried with each of the 182 Samsung phones?
Click to expand...
Click to collapse
download your phone firmware using same binaries
found it on download mode
extract on pc
copy the ap file to the phone u wanted to root
download magisk apk
click install magisk
select the ap file
wait
then there will be patched ap file
move it to the pc
flash it with odin
after flash install magisk
your phone now rooted
There are channels to buy pre-rooted phones, but I assume that we are not supposed to publish these things on XDA.

Hi Ya all. Please how can i sort this out

Cant create a work profile because a security policy prevents the creation of a work profile because of a custom OS installed on Samsung Galaxy Note 9
Hi @Code1804
Welcome to the xda family.
I am not a Sammy guy and I can not answer your question but, a quick search seems you might be in for a bit of a challenge.
I found an older thread that talks about using an alternate (second) user instead of profiles.
(Guide) Work Profile Alternative for Rooted/Knox Tripped
Does your workplace have a BYOD policy that enforces full device encryption? Have you already unlocked your bootloader and rooted your device, thus tripping Samsung Knox? Have you tried to use Android Work Profile only to find out that "Your...
forum.xda-developers.com
You might be better off asking your custom ROM developer about it.
Take a look and/or ask for help in the Note 9 thread(s).
Samsung Galaxy Note 9
The Galaxy Note 9 is a 6.4" phone with a 1440x2960p display. The processor comes in Snapdragon 845 and Exynos 9810 options. There is 6/8GB of RAM and 128/512GB storage. The main camera is 12+12MP and the selfie camera is 8MP. The battery has a 4000mAh capacity.
forum.xda-developers.com
Good luck in the Note 9 threads.
Cheers.

Categories

Resources