[Unofficial] Gravitybox [S] Version

Search This thread

asaf400

Senior Member
Apr 15, 2010
69
35
can't install the one for A12.1
Do you have the official Android 11 GravityBox installed?

I had that error as well,
Since my build doesn't include the official signing keys, Android blocks the install,
it is required to uninstall the official app first, and then install my unsigned build..

Even though my version number is higher, the signatures don't match,
android security stuff so direct 'app update' is not possible..

Edits: typos
 
Last edited:

m0han

Senior Member
Apr 30, 2012
5,007
2,058
Do you have the official Android 11 GravityBox installed?... direct 'app update' is not possible..
I'm on A12.1 rom. How can i have Android 11 GravityBox installed? I was using A12 version by @ko_hi. I uninstalled that before attempting a fresh installation of your mod. See my screenshot.
 
Do you have the official Android 11 GravityBox installed?

I had that error as well,
Since my build doesn't include the official signing keys, Android blocks the install,
it is required to uninstall the official app first, and then install my unsigned build..

Even though my version number is higher, the signatures don't match,
android security stuff so direct 'app update' is not possible..

Edits: typos
Your keys are bad that's why it won't install. Maybe try resigning with test keys. Ex apk signer will do this on your android device
 

asaf400

Senior Member
Apr 15, 2010
69
35
I'm on A12.1 rom. How can i have Android 11 GravityBox installed? I was using A12 version by @ko_hi. I uninstalled that before attempting a fresh installation of your mod. See my screenshot.
I had GravityBox 11 installed on Android 12, it doesn't block the install, it just doesn't really work,
Just covering the bases if that was your case as well..

Your keys are bad that's why it won't install. Maybe try resigning with test keys. Ex apk signer will do this on your android device

Okay I'll try to build an apk with signing
 

asaf400

Senior Member
Apr 15, 2010
69
35
I'm on A12.1 rom. How can i have Android 11 GravityBox installed? I was using A12 version by @ko_hi. I uninstalled that before attempting a fresh installation of your mod. See my screenshot.

I updated the release, the old files are 'unsigned',
try installing the new signed files:


Edit: Also I just noticed that the old built debug apk is signed somehow, but the release one wasn't,
I installed the debug apk on my device, even though I do not debug anything at the moment..
if you tried using the unsigned release apk before, that might have been why you couldn't install..

I verified with
Code:
apksigner verify --verbose
 
Last edited:

shouk_1987

Senior Member
Jul 2, 2012
982
292
Xiaomi 11 Lite 5g NE
I have PixelOS custom rom (A12.1) and using Magisk with Zygisk ( not riru ) and LSposed
Will this unofficial mod work with me and which app scopes exactly to select in LSposed ?
I am mainly interested to have nav. bar features that i was using in A11 ( long hold of each button to launch a specific shortcut )

Thanks in advance for your support for sure
 

shouk_1987

Senior Member
Jul 2, 2012
982
292
Xiaomi 11 Lite 5g NE
I updated the release, the old files are 'unsigned',
try installing the new signed files:


Edit: Also I just noticed that the old built debug apk is signed somehow, but the release one wasn't,
I installed the debug apk on my device, even though I do not debug anything at the moment..
if you tried using the unsigned release apk before, that might have been why you couldn't install..

I verified with
Code:
apksigner verify --verbose

First time for me for installation for A12.1,
tried the signed released apk and it was installed , enabled it in LSPosed ( Zygisk ver ) and saw the recommended app scopes already selected and then rebooted
however GB does not see the framework installed and then exit itself

also tried to install the unsigned version before ( as a fresh installation ) and package installer could not unparse the apk
 

asaf400

Senior Member
Apr 15, 2010
69
35
First time for me for installation for A12.1,
tried the signed released apk and it was installed , enabled it in LSPosed ( Zygisk ver ) and saw the recommended app scopes already selected and then rebooted
however GB does not see the framework installed and then exit itself

also tried to install the unsigned version before ( as a fresh installation ) and package installer could not unparse the apk

Weird, GB closes itself with the framework not responding error when it recognizes the Android OS isn't what it needs..
You can see the check here: https://github.com/asaf400/GravityB...ava/com/ceco/r/gravitybox/GravityBox.java#L66

You are correct, Thanks for validating my build on Androids12.1,
on the 12.1 branch I didn't modify this value to SDK 32, Sorry rebuilding now

Edit:
Done. redownload the same release, files have been updated:
 

shouk_1987

Senior Member
Jul 2, 2012
982
292
Xiaomi 11 Lite 5g NE
I have tried the Ver for 12.1 from @ko_hi and it is now working on LSPosed ( Zygisk Ver )

Tried some mods that i was used to use in A11 ( did not try any other than these )
Here are the non-working vs working ones :

- Lockscreen Quick unlock after entering correct number of digits >> Not working
- Disable power menu on Lockscreen >> Not Working
- BT icon visibility when enabled >> Not working
- Nav bar custom key >> Not working
- Nav bar keys hold feature >> Not Working
- Fingerprint usage while screen is on >> Working ( and set it to launch GB App launcher )
 

shouk_1987

Senior Member
Jul 2, 2012
982
292
Xiaomi 11 Lite 5g NE
Weird, GB closes itself with the framework not responding error when it recognizes the Android OS isn't what it needs..
You can see the check here: https://github.com/asaf400/GravityB...ava/com/ceco/r/gravitybox/GravityBox.java#L66

You are correct, Thanks for validating my build on Androids12.1,
on the 12.1 branch I didn't modify this value to SDK 32, Sorry rebuilding now

Edit:
Done. redownload the same release, files have been updated:

Trying now and will post feedback
 
  • Like
Reactions: asaf400

asaf400

Senior Member
Apr 15, 2010
69
35
I have tried the Ver for 12.1 from @ko_hi and it is now working on LSPosed ( Zygisk Ver )

Tried some mods that i was used to use in A11 ( did not try any other than these )
Here are the non-working vs working ones :

- Lockscreen Quick unlock after entering correct number of digits >> Not working
- Disable power menu on Lockscreen >> Not Working
- BT icon visibility when enabled >> Not working
- Nav bar custom key >> Not working
- Nav bar keys hold feature >> Not Working
- Fingerprint usage while screen is on >> Working ( and set it to launch GB App launcher )

Glad it worked for you, can you maybe post the LSposed log file?
it contains some of the information I or @ko_hi need to attempt a fix..
 

asaf400

Senior Member
Apr 15, 2010
69
35
I have created an AVD with magisk zygisk and LSposed in order to test 12.1 and 12.0 functionality (using https://github.com/newbit1/rootAVD),
I see that the 12.1 build installs successfully now, but it has a lot of errors the 12.0 build did not have..

Seems google made more breaking changes to the 12.1 version..
I will try to see what I can do later today \ in the week, as this is just an hobby, and I already got GB working for my needs, but I know the pain of not having it, so I'll try and help..

Edit: Typo
 
Last edited:

asaf400

Senior Member
Apr 15, 2010
69
35
Hello, Checking in here to report that I have failed to understand why 12.1 is problematic,
it might just be the ADV environment as well, and it works on a real device, I cant test that..

I am attaching the lsposed log files here, if someone has an insight..

I've been also trying to debug GravityBox, but it proves more challenging to debug Xposed modules,
as they are part of the system processes, and debug hooks don't work too well, I attempted several ways including these modules:
of course in addition to setting debuggable=true on the build, and forcing Android to wait for a debugger to attach with: https://github.com/rovo89/XposedBridge/issues/138#issuecomment-437545564

when the debugger attempts to attach to GB, it just crashes the app,
the only way I was able to debug GB, is when I uninstalled it, and asked Android Studio to debug it,
forcing it to install & launch, but I presume that makes GB detached from the GB Xposed module, since it was uninstalled and installed on the same os runtime - no reboot..
A reboot at this stage gets me back to GB crashing on Debugger attachment phase, so.. yeah..

Tough luck, Sorry I couldn't help..



Edit:
I wanted to debug in order to see what happens on the errored line in the log file:
Code:
mSettingsObserver = new SettingsObserver((Handler) XposedHelpers.getObjectField(mStatusBar, "mHandler"));
mSettingsObserver.observe();
 
Last edited:

ko_hi

Senior Member
Mar 25, 2020
75
67
Hello, Checking in here to report that I have failed to understand why 12.1 is problematic,
it might just be the ADV environment as well, and it works on a real device, I cant test that..

I am attaching the lsposed log files here, if someone has an insight..

I've been also trying to debug GravityBox, but it proves more challenging to debug Xposed modules,
as they are part of the system processes, and debug hooks don't work too well, I attempted several ways including these modules:
of course in addition to setting debuggable=true on the build, and forcing Android to wait for a debugger to attach with: https://github.com/rovo89/XposedBridge/issues/138#issuecomment-437545564

when the debugger attempts to attach to GB, it just crashes the app,
the only way I was able to debug GB, is when I uninstalled it, and asked Android Studio to debug it,
forcing it to install & launch, but I presume that makes GB detached from the GB Xposed module, since it was uninstalled and installed on the same os runtime - no reboot..
A reboot at this stage gets me back to GB crashing on Debugger attachment phase, so.. yeah..

Tough luck, Sorry I couldn't help..



Edit:
I wanted to debug in order to see what happens on the errored line in the log file:
Code:
mSettingsObserver = new SettingsObserver((Handler) XposedHelpers.getObjectField(mStatusBar, "mHandler"));
mSettingsObserver.observe();
Rather then focus on 12.1 focus on 12 if you're having issues debugging 12.1

Things that'll be fixed in A12 will most likely to be working on A12.1

Assuming there's not too much broken stuff In 12.1

I have 5 weeks vacation so i can start looking into it next week
 

binarynoise

New member
May 10, 2020
1
0
S10e with LineageOS 19.1 here:
Nothing I tested seems to work (all related to systemUI), I also tried to add a home screen widget and it always fails because "This app is not installed" which is quite weird.
 

ko_hi

Senior Member
Mar 25, 2020
75
67
So it looks like classes have changed greatly from A11 to A12


I see many method class not found

Example:

[ 2022-07-13T19:00:29.145 10205: 3408: 3408 E/LSPosed-Bridge ] de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.systemui.globalactions.GlobalActionsDialog
at de.robv.android.xposed.XposedHelpers.findClass(Unknown Source:13)

So now it's start to digging into A12
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Thanks for this, OP. Not much dev candy for the pixel 6 so far. I'm trying out gravitybox on 12.1 pixel 6 pro. Instead of everyone posting random findings one at a time in this thread, would it make sense to set up a public google sheet to make a comprehensive list for what doesn't work? Just a thought.
    2
    android 12,lineage os 19, doesnt work
    1
    Instead of everyone posting random findings one at a time in this thread, would it make sense to set up a public google sheet to make a comprehensive list for what doesn't work? Just a thought.
    That's actually a good idea! 👍
    1
    android 12,lineage os 19, doesnt work
    Same here,
    OnePlus 9 Lemonade Android 12 lineageos 19.1
    magisk 25.2
    Zygisk enabled
    LSPosed installed and activated

    Error when trying to launch GavityBox, "framework not responding"

    Any help would be appreciated :giggle:
  • 17
    GravityBox - all-in-one tweak box - Xposed module for devices running Android 12
    Version 12.0.0S

    OP/REALME USERS ! USERS ON ANDROID 12! READ BOST 2 BEFORE USING THIS MOD! TO AVOID SYSTEM UI CRASH!

    READ THIS POST CAREFULLY BEFORE PROCEEDING ANY FURTHER! I DO NOT TAKE CREDITS FOR THIS WORK. THERE WAS ONLY ONE CHANGE TO MAKE GRAVITYBOX RUNNING ON A12! WHETHER IF EVERYTHING ISN'T WORKING OR NOT THAT'S OUR GOAL TO FIND OUT!


    Introduction
    The app utilizes Riru-EdXposed Magisk OR LSposed module which uses original Xposed Framework API created by rovo89.

    !!!!!! WARNING !!!!!!
    This module utilizes EdXposed Framework which is still in early development stage and may contain bugs or might not be fully compatible with the system of your Android device. I take no responsibility for any issues arising from using GravityBox with EdXposed and strongly recommend creating a full backup of your device before activating the module.

    Requirements
    - Magisk v21 or later
    - Riru v23 or later (Magisk module)
    - EdXposed Manager (Application)
    - Avoid using Resource hooking support if possible (Can be disabled in EdXposed Manager settings)

    -LSposed (highly recommended since it doesn't break safetynet)

    Installation
    This procedure assumes you have working Magisk installation.
    1) Install Riru module in Magisk Manager
    2) Install and run EdXposed Manager app and download Riru-EdXposed module v5.1.3.x or later (currently Alpha/Canary)
    3) Install downloaded Riru-EdXposed module in Magisk Manager
    5) Reboot and open EdXposed Manager app to check if EdXposed works and is active
    6) Install GravityBox and enable it in EdXposed Manager
    7) Reboot and profit

    Required whitelisted packages
    In case you use blacklist/whitelist functionality of EdXposed make sure all the following packages are whitelisted (not blacklisted respectively) for full GravityBox experience.
    - Android System (android)
    - System UI (com.android.systemui)
    - Call Management (com.android.server.telecom)
    - Download Manager (com.android.providers.downloads)
    - Phone (com.android.dialer or com.google.android.dialer)
    - Phone Services (com.android.phone)
    - Phone (com.android.incallui) (OxygenOS only)
    - Keyboard app (e.g. Gboard) in order to be able to use "Volume key cursor control" feature
    It is strongly recommended to use Whitelist functionality for better performance as EdXposed hooks only smaller amount of processes.
    In case of running multiple Xposed modules consult their whitelist requirements with the devs of module.


    Feature highlight
    --- Lockscreen tweaks
    --- QuickSettings tile management with additional tiles
    --- Statusbar tweaks
    --- Navigation bar tweaks
    --- Pie controls
    --- Power tweaks
    --- Display tweaks
    --- Phone tweaks
    --- Media tweaks
    --- Hardware/navigation key actions
    --- GravityBox Actions - interface for 3rd party apps
    --- Notification control (per-app notification LED/sounds/vibrations)
    --- Fingerprint launcher
    --- Advanced tuning of Framework and System UI parameters
    ... and many more

    GravityBox S has been designed for and tested on
    - Motorola edge 20 Pro A12
    -

    Reporting bugs
    Please don't post it on the git. this is just too see what's works and what doesnt. You can report bugs in here and see how many we find

    Source code
    GravityBox is opensource. Sources are available in my gihub: https://github.com/GravityBox/GravityBox/tree/r
    If you're a dev and have some ideas for additional features, feel free to fork it, work on it and send the pull requests.

    Copyright notice
    https://github.com/GravityBox/GravityBox/blob/r/NOTICE

    Support development
    Coding, maintaining and supporting this project costs me a lot of my precious time. If you find this project useful, you are more than welcome to support its development via donation. This form of support is meant to compensate for my time dedicated to the community + eventually, help me to afford newer device to keep up with AOSP evolution thus providing continuous support as Android evolves. Thanks!

    Info about premium features and PayPal transaction ID verification system
    1) Those who supported development via PayPal donation can use their PayPal transaction ID to unlock premium features.
    As of v2.9.5, there are three premium features:
    - Backup/restore of GB settings.
    - Ultimate notification control
    - Advanced Tuning

    2) If you contributed to the project by providing translations, code fragments, or by any other way
    you can apply for a free transaction ID by contacting me via PM.

    3) Be aware that there's a system that can identify potential transaction ID
    abuse. E.g. when one ID is being used by more users. Such IDs will get blocked automatically.
    In case you own more devices, you can use one transaction ID on up to 10 of them.

    4) If you are using your own custom builds of GB for personal use, you will get hash mismatch
    upon verifying your ID as verification system accepts requests only from official releases of GB.
    If you want to be able to verify IDs with your custom build, contact me via PM so I can setup
    a special hash for your build.
    If you are using a custom build that you provide for broader group of users (e.g. in a custom ROM),
    it is necessary to ask for new hash everytime your new custom version is released for public use.
    These rules are based on mutual trust so please, do not violate them.

    Credits
    -C3C0 For gravitybox releases in general. This is all his work so all credits to him! - RikkaW for creating and maintainng Riru Magisk module
    - solohsu & MlgmXyysd for creating and maintaining EdExposed Magisk module
    - @frank93 for donating Pixel 3a for development
    - @bgcngm for his code contributions to the project
    - @MohammadAG for Xperia specific contributions to the project
    - @rovo89 for his ultimate Xposed framework and "Volume keys to skip track" mod
    - @peptonib for starting me up with this project
    - @simmac for app icon
    - @romracer for Motorola specific code contributions
    - @firefds for Samsung specific code contributions
    - CyanogenMod project
    - ParanoidAndroid project
    - Slim, RootBox, AOKP, OmniROM projects
    - Sergey Margaritov for ColorPickerPreference
    - ArthurHub for Image cropping library
    - All those who provided translations for different languages (Mr.Premise, peptonib, kidmar, ch-vox, romashko, Indiant, lelemm, oicirbaf, unavix, LuHash, WedyDQ10, mp3comanche, awaaas, liveasx, samsonbear, Eric850130, xtrem007, benjoe1, asmb111, Fatih Firinci, ...)
    - and finally, all those who keep the project alive by supporting me via donations (you know who you are)

    Changelog
    Initial test release to find out what works and what doesn't
    10
    This week I'll be able to debug and check things on gravity box.

    I've wanted to look into it this week but the limit when you have children limits your time greatly.
    8
    So it looks like classes have changed greatly from A11 to A12


    I see many method class not found

    Example:

    [ 2022-07-13T19:00:29.145 10205: 3408: 3408 E/LSPosed-Bridge ] de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.systemui.globalactions.GlobalActionsDialog
    at de.robv.android.xposed.XposedHelpers.findClass(Unknown Source:13)

    So now it's start to digging into A12
    4
    Just asking but, is there going to be actual development of this GB fork? Where is this going? It seems like work to date has been to change the version flag so it can install on A12 and then ask about what is not working. I see several comments from previously non-supported devices and OS.
    I cannot guarantee it to be for now. I must first look into how android 12 and 12.1 is working. There seem to be some good changes inside it. Even so if i would work on it premium features well be locked for good since dev must generate a hash to be sent to Google from my signing keys. And i do not have any of my own yet.

    And even if i wouldn't there would still be a good list of bugs for developer to work on.

    I'm not saying i won't. I must really understand how this works first
    4
    I have created an AVD with magisk zygisk and LSposed in order to test 12.1 and 12.0 functionality (using https://github.com/newbit1/rootAVD),
    I see that the 12.1 build installs successfully now, but it has a lot of errors the 12.0 build did not have..

    Seems google made more breaking changes to the 12.1 version..
    I will try to see what I can do later today \ in the week, as this is just an hobby, and I already got GB working for my needs, but I know the pain of not having it, so I'll try and help..

    Edit: Typo