[APP][ROOT][11+][08/06] Classic Power Menu - Power Menu Replacement w/ Wallet, Controls on Android 11, 12, 13, 14+

Search This thread

rom4ster

Senior Member
Aug 31, 2021
55
7
That would also cause it. It doesn't just use the first database of that format as that would break for multiple accounts, which isn't acceptable for an app like this.

How many accounts do you have added? Perhaps it only gets filled if there's multiple.
i have /data/user/0 and /data/user/10 but besides a work profile i have no other users
 

rom4ster

Senior Member
Aug 31, 2021
55
7
That would also cause it. It doesn't just use the first database of that format as that would break for multiple accounts, which isn't acceptable for an app like this.
is there a way to detect the number of the currently logged in user. I assume /data/user has all the users in it.

I wonder if the path /data/user/<number>/<wallet_app_package_name>/databases would only contain the database for that user.

IF that is the case. Then you could scan that directory, provided you can get the number of the current user.
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,253
8,632
26
Salford, Greater Manchester, UK
quinny898.co.uk
i have /data/user/0 and /data/user/10 but besides a work profile i have no other users
I meant Google accounts, but instead I've just added some code to default to the first database & first valuables images folder if the account ID lookup fails. My theory is that the shared pref doesn't get filled if there's only one Google account in Wallet, and that since I always have multiple accounts signed in (personal + work), it's just never happened to me.

Pushing a new build with that + Android 14 fix now
 
  • Like
Reactions: Slim2none4u

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,253
8,632
26
Salford, Greater Manchester, UK
quinny898.co.uk
Version 1.6.1 now available
- Fixed crash on Android 14 Beta 1
- Improved logic around Loyalty Card lookup which may fix cards not showing up for some
- Updated translations
Download from GitHub releases as usual

Thanks to @rom4ster for your help in figuring out what was different and probably causing the Loyalty Cards issue
 

rom4ster

Senior Member
Aug 31, 2021
55
7
Version 1.6.1 now available

Download from GitHub releases as usual

Thanks to @rom4ster for your help in figuring out what was different and probably causing the Loyalty Cards issue
You missed a small thing that breaks it

you do

context.databaseList().firstOrNull {...

but that uses OUR application context which is empty

you need to do

googlePayContext.databaseList().firstOrNull...

around line 175

so that way it uses the google wallet context :)

It works for me after that change
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,253
8,632
26
Salford, Greater Manchester, UK
quinny898.co.uk
You missed a small thing that breaks it

you do

context.databaseList().firstOrNull {...

but that uses OUR application context which is empty

you need to do

googlePayContext.databaseList().firstOrNull...

around line 175

so that way it uses the google wallet context :)

It works for me after that change
Goddammit of course 😂

I'll fix it later
 

Bxperiaz3

Senior Member
May 19, 2015
264
110
Is there a way to show the loyalty cards in the space under the regular cards? Mine appear at the end of the row cards and I keep having to scroll to the end of the normal debit cards to get to it, if that makes any sense.
 

Swap_File

Senior Member
Apr 12, 2016
86
57
Samsung Galaxy J7
Google Pixel 2
I never tried using loyalty cards before, so I decided to give it a try.

I'm only seeing one Loyalty card show up in the app (1.6.2), and only one shows up in the "Rearrange and hide" screen.

Do I need to do something special to get all of them to show up?
 

Bxperiaz3

Senior Member
May 19, 2015
264
110

Attachments

  • Screenshot_20230420-161510.png
    Screenshot_20230420-161510.png
    701.2 KB · Views: 26

rom4ster

Senior Member
Aug 31, 2021
55
7
I never tried using loyalty cards before, so I decided to give it a try.

I'm only seeing one Loyalty card show up in the app (1.6.2), and only one shows up in the "Rearrange and hide" screen.

Do I need to do something special to get all of them to show up?
Do you have more than one in the wallet? When I first got this app I had to re-add Loyalty cards but things like covid cards will not work. Try using pass2pay to add a flight card as that helped with my problem too
 

Swap_File

Senior Member
Apr 12, 2016
86
57
Samsung Galaxy J7
Google Pixel 2
I tried removing my loyalty cards from Google Wallet one at a time. Whatever the "first" card in Google Wallet was the only card I'd see in Classic Power Menu.

After removing the last card in Google Wallet, it stayed around inside of Classic Power Menu. I tried clearing the cache and data in Classic but that last card stayed inside of Classic Power Menu.

Interesting note. Loyalty Card quick preview works for me, but Classic Power Menu seems like it cannot launch Google Wallet. Not sure why.

I tried adding them back, but the behavior persisted.

I think I'll just leave loyalty cards turned off for now.

Edit: Weird, it spontaneously started working again. I have no idea what specifically changed, but it's working for now. I'll keep an eye on it.
 

rom4ster

Senior Member
Aug 31, 2021
55
7
I tried removing my loyalty cards from Google Wallet one at a time. Whatever the "first" card in Google Wallet was the only card I'd see in Classic Power Menu.

After removing the last card in Google Wallet, it stayed around inside of Classic Power Menu. I tried clearing the cache and data in Classic but that last card stayed inside of Classic Power Menu.

Interesting note. Loyalty Card quick preview works for me, but Classic Power Menu seems like it cannot launch Google Wallet. Not sure why.

I tried adding them back, but the behavior persisted.

I think I'll just leave loyalty cards turned off for now.

Edit: Weird, it spontaneously started working again. I have no idea what specifically changed, but it's working for now. I'll keep an eye on it.


I just want to add that I (before this whole update thing we did) also noticed the same behavior. It may be because the db in the /data/data folder is updated periodically while the user folder version (where this app goes for images) is updated first.

This is just a hunch based on some... file moving... i did while researching this so this is 100% theory land
 
  • Like
Reactions: Swap_File

acwcanada

Senior Member
Mar 19, 2016
299
209
My Google Pixel 6 Pro is now on A14 Beta, features on the Classic Power Menu seems to be all working except the "Blur Payment Card Number when locked". I know it did say that "this may not work for all cards or Wallet providers", however I remember it was working fine when my phone was on A12 with the same cards and Google Wallet and I couldn't remember if it was working with A13. Can anyone confirm if this is a known issue.
 

BorjaJajas

Member
May 10, 2020
7
0
Hello, I have a Samsung Galaxy a52s and the app is working flawlessly but when I restart it stops working. Accesibility options are on but still doesnt show up when I long press power button
 

rom4ster

Senior Member
Aug 31, 2021
55
7
im glad its an option for those who want it but i got a question... who in their right mind would actually want to replace their assistant app with this.. its great and all but its not something that... you know answers questions, opens web pages... etc...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    DonYhMA.png


    Classic Power Menu is a Power Menu Replacement for Android 11+, with the main aim being restoring power menu options (Device Controls & Quick Access Wallet) on Android 12.

    Classic Power Menu Requires root access to function, it is not possible without root

    Please read the FAQ before downloading or replying with an issue


    Features​

    • Up to 10 power options in the Power Menu, including the non-stock options of Screenshot, Reboot Recovery, Reboot Bootloader and Restart SystemUI
      • Fully customisable, including rearranging and hiding buttons you don't use
    • Quick Access Wallet in the Power Menu, accessible while locked or unlocked
      • Optional blurring of card numbers while locked
      • Optional showing of loyalty cards, restoring a previous feature from Android 10 which was removed. Loyalty cards' codes can be shown while locked and without needing to open Google Pay, if you wish.
    • Device Controls in the Power Menu, accessible while locked or unlocked
      • Optional ability to interact with controls while locked, without requiring authentication
    • Material You inspired theme, using Monet colours and background blur on the Power Menu
    • Xposed is not required, interception of the power button is done via Accessibility Service, with only normal root required
      • An optional Xposed module is included, which can react quicker than the Accessibility Service

    Screenshots​




    Download​

    Download the latest release from the GitHub Releases page

    Changelog​

    1.7
    - Fixed crash on Android 14 Beta 3
    - Enabled predictive back
    - Added ability to open Power Menu as an assistant app - there's no UI for this so you'll need to set it as your default assistant yourself.

    1.6.2
    - Actually fixed Loyalty Card listing, thanks to rom4ster for your help figuring out the cause

    1.6.1
    - Fixed crash on Android 14 Beta 1
    - Improved logic around Loyalty Card lookup which may fix cards not showing up for some
    - Updated translations

    1.6
    - Google Pay -> Google Wallet
    - Fixed crash when using blurred card numbers on some Android versions
    - Increased blur for card numbers to make them even less readable
    - Added fastbootd and download mode options - these will only work on devices with that mode
    - Updated translations and added Crowdin support - Thanks andrii-bodnar
    - Fixed crashes

    1.5.1
    - Fixed crash on July security patch

    1.5
    - Support for Android 13 B3
    - Fixed Xposed module for Android 13
    - Merged translations, thanks Vladi69 and C0unt-zero
    - Allowed wallet to be shown for just loyalty cards if no regular cards are returned

    1.4.2
    Fixed Xposed module not working on some AOSP devices
    Thanks to hacker1024 on GitHub for the fix

    1.4.1
    - Fixed crash on 12L
    - Improved dialog blur on 12+
    - Added monochrome icon for Android 13

    1.4
    - Added support for Android 12L & 13 DP2
    - Added option to use a solid background on the power menu
    - Added option to restart SystemUI
    - Added app shortcut to launch power menu directly. You can also launch this using the Intent Uri classicpowermenu://menu

    1.3.1
    - Fixed crash on Android 13

    1.3
    - Fixed background blur on Android 12
    - Added toggles for auto rotation & full sensor rotation (including upside down). Rotation is enabled by default, full sensor is not.

    Content Creators​

    If you are making a video or article about Classic Power Menu, you will want to hide your card numbers. Enable the developer options in Classic Power Menu by triple tapping the "About" option, and enable Content Creator Mode. This will always blur your card numbers and will show a fake QR code for loyalty cards, keeping your data safe.
    6
    Version 1.5 released:

    - Support for Android 13 B3
    - Fixed Xposed module for Android 13
    - Merged translations, thanks Vladi69 and C0unt-zero
    - Allowed wallet to be shown for just loyalty cards if no regular cards are returned

    Download from GitHub releases as usual
    4
    New version available, 1.6:

    - Google Pay -> Google Wallet
    - Fixed crash when using blurred card numbers on some Android versions
    - Increased blur for card numbers to make them even less readable
    - Added fastbootd and download mode options - these will only work on devices with that mode
    - Updated translations and added Crowdin support - Thanks andrii-bodnar
    - Fixed crashes

    Download from GitHub releases as usual
    4
    Version 1.5.1 now available:

    Fixed crash on July security patch

    Download from GitHub releases as usual
    3
    New version 1.2:

    • Fixed reported crashes
    • Added support for Android 12 with the Xposed module
    • Merged in support for MIUI with the Xposed module (Thanks Ketal!)
    • Improved reboot action support
    • Better support for notches and punch holes
    • Allow full screen rotation on power menu
    Download on GitHub releases