Closed JadenJSJ closed 1 year ago
Sometimes I get this error instead
Please enable Verbose Logging in Settings > Advanced, reboot, make a log when it's running a recognition and send that.
ADB LOGCAT https://drive.google.com/file/d/1ZvGVuEThGkeTWVuRzZxEUMt3GspGclxp/view?usp=sharing
Also after pressing the retry button multiple times it hanged on this animated loading screen
Also while my phone was locked and no music was playing it somehow detected by on demand even when nothing was playing
(When music that is not on the database is played nothing actually gets picked up, I think it somehow picked up noise?) *Oh yeah i also had to enable alternative encoding to get on device to work
6-05 18:55:38.310 10191 10191 I AudioBufferManager: Creating AudioRecord accessing DSP audio.
06-05 18:55:38.323 4854 11348 E AudioFlinger: createRecord() getInputForAttr return error -1
06-05 18:55:38.323 10191 10191 E AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1
06-05 18:55:38.324 10191 10191 E AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
06-05 18:55:38.324 10191 10191 E android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: Music recognition failed!
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.media.AudioRecord.startRecording(AudioRecord.java:1343)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at pwe.a(PG:7)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oyk.call(PG:3)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at pat.a(Unknown Source:2)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at ozx.run(PG:3)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at pau.run(Unknown Source:4)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oyy.execute(Unknown Source:0)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oys.<init>(PG:5)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oys.a(Unknown Source:2)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at pwh.a(PG:3)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oym.a(PG:20)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oxx.e(PG:2)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oxz.run(PG:9)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oyy.execute(Unknown Source:0)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oxv.q(PG:1)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oxv.d(PG:4)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at oxz.h(Unknown Source:12)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at pux.c(PG:5)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at qfv.a(Unknown Source:6)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at qfs.onGenericRecognitionEvent(PG:1)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.media.soundtrigger.SoundTriggerDetectionService$1$$ExternalSyntheticLambda2.accept(Unknown Source:14)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:327)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.os.Handler.handleCallback(Handler.java:938)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.os.Handler.dispatchMessage(Handler.java:99)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.os.Looper.loopOnce(Looper.java:226)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.os.Looper.loop(Looper.java:313)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at android.app.ActivityThread.main(ActivityThread.java:8751)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at java.lang.reflect.Method.invoke(Native Method)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
06-05 18:55:38.326 10191 11654 E AmbientMusicDetector: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Permission issue, -1
is PERMISSION_DENIED
: https://cs.android.com/android/platform/superproject/+/refs/heads/master:system/core/libutils/include/utils/Errors.h;l=52;drc=7346c436e5a11ce08f6a80dcfeb8ef941ca30176;bpv=1;bpt=1
Nothing I can do, sorry.
@KieronQuinn My device is rooted, is there something that could be doneby root? I don't know much about how this works but if it was a permission error can't it just be changed? Or is it like google app access a non-existent microphone?
It's already running as root. If it's not working currently, it never will.
The Google app (not apart of the ambient music mod) can do on demand sound search, that means that It can record audio just fine) On device recognition works just fine On demand/Online fails and returns:
If I just rebooted my phone and I do On demand/Online the first time, I get this:
Video: https://github.com/KieronQuinn/AmbientMusicMod/assets/44781632/ecf306ae-f41d-4d70-b35b-99822fc3ab4c
If any other additional information is needed please comment, thanks for reading.