henrichg / PhoneProfilesPlus

Profile manager for Android - event triggered
Apache License 2.0
389 stars 32 forks source link

Mode Airplane #89

Closed orlproi closed 2 years ago

orlproi commented 2 years ago

It seems that the aero mode is not working? Even if the assistant P.P.P. is activated. Samsung A6 Android 10

henrichg commented 2 years ago

PPP version? Airplane mode without assistant requires root. With assistant, requires set PPP as default assistant.

orlproi commented 2 years ago

PPP assistant is activated but 'Airplane mode' is deactivated. What can I check?

henrichg commented 2 years ago

How is configured profile? Write me configuration. Not working also manual profile activation?

And: test this beta version. Maybe this verison working: https://drive.google.com/file/d/1CR4y2u3V8PCwQK9sw1P88JrlpSdA2Ou4/view?usp=drivesdk

orlproi commented 2 years ago

I also tried this version but it doesn't work. I don't know from which version it started not working, after issue #79 it worked. Now in 'Profile'> 'Radio'> (R) 'Airplane mode' - Not allowed.

henrichg commented 2 years ago

OK, test this version: https://drive.google.com/file/d/1CR4y2u3V8PCwQK9sw1P88JrlpSdA2Ou4/view?usp=drivesdk

henrichg commented 2 years ago

Maybe this is problem:

   <!-- This service is required, when user needs to configure PPP as default assistant, for -->
    <!-- airplane mode switching without root. -->
    <!-- This service is required by Googe (e-mail from Google):
         "We recently uncovered a highly visible user-facing issue where your app (sk.henrichg.phoneprofilesplus)
         causes the Android RecognitionService to break, which is potentially affecting all of your users on
         Android 11 or earlier.
         Specifically, when a user on Android 11 or earlier sets your assistant application as the default
         assistant for the phone, it is expected to provide RecognitionService (speech to text) functionality
         to other applications on the same device as well. However, if another app requests the RecognitionService
         functionality and does not receive it from your assistant app, the requesting app will immediately crash.
         The Android RecognitionService functionality is a widely used service. To fix the issue as soon as
         possible, please review the below recommendation." -->
    <service android:name="sk.henrichg.phoneprofilesplus.PPRecognitionServiceTrampoline"
        android:label="RecognitionServiceTrampoline"
        android:exported="true"
        tools:ignore="ExportedService">
        <intent-filter>
            <action android:name="android.speech.RecognitionService" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </service>

Google e-mail me about this. I'm added this service by Google suggestions. Hm, hm.

orlproi commented 2 years ago

However, the new version unfortunately does not work.

henrichg commented 2 years ago

Maybe Microphone permission is not granted. It must be because of trampoline service added. PPP does not ask for this permission?

orlproi commented 2 years ago

I have given all the permissions.

henrichg commented 2 years ago

Also microphone? This is new permission, required for this trampoline service.

henrichg commented 2 years ago

In Pixel 6 it is "Music and audio".

henrichg commented 2 years ago

No not it is "Microphone permission". Sorry. And required is for Android 11-.

henrichg commented 2 years ago

Good, Fixed. Tested in my Pixel 6, Android 13 beta. https://drive.google.com/file/d/1CR4y2u3V8PCwQK9sw1P88JrlpSdA2Ou4/view?usp=drivesdk

Test it. ;-)

orlproi commented 2 years ago

On Samsung A6 and Android 10 it still doesn't work.

henrichg commented 2 years ago

Tested this version: https://drive.google.com/file/d/1CR4y2u3V8PCwQK9sw1P88JrlpSdA2Ou4/view?usp=drivesdk

orlproi commented 2 years ago

Perfect .... this works with the new 'On / Off with Assistant' options. Thank you

henrichg commented 2 years ago

Yes, this si change. Currently is possible to use assistant even when device is rooted. :-)

henrichg commented 1 year ago

MIcrophone permission is granted? Currently tested in Honor 7, Android 8 and working.

pi 5. 8. 2022 o 11:56 orlproi @.***> napísal(a):

On Samsung A6 and Android 10 it still doesn't work.

— Reply to this email directly, view it on GitHub https://github.com/henrichg/PhoneProfilesPlus/issues/89#issuecomment-1206268603, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA63YWXSXVLZSTBIY4DUAJLVXTQODANCNFSM55R32RVA . You are receiving this because you commented.Message ID: @.***>

--

          _     _
        o' |,=./ `o
           (o o)

-----------ooO--(_)--Ooo-----------

Henrich Gron

e-mail: work: @. mobile/home: @. GitHub: https://github.com/henrichg