218

[Unofficial] Gravitybox [S] Version

 2 years ago
source link: https://forum.xda-developers.com/t/unofficial-gravitybox-s-version.4456047/page-3#post-87130543
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

[Unofficial] Gravitybox [S] Version

asaf400

Senior Member
Apr 15, 2010
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: Jun 27, 2022

m0han

Senior Member
Apr 30, 2012 4,928 1,998
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
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
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:
github.com

Release v12.1.0_s_v2 · asaf400/GravityBox

This release targets SDK version 32 - Android 12.1, for Android 12 use v12.0.x releases like v12.0.1_s. The app IS NOT TESTED AT ALL - I dont have an Android 12.1 device to test this on, but it was...
github.com

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: Jun 28, 2022
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
I updated the release, the old files are 'unsigned',
try installing the new signed files:
github.com

Release v12.1.0_s_v2 · asaf400/GravityBox

This release targets SDK version 32 - Android 12.1, for Android 12 use v12.0.x releases like v12.0.1_s. The app IS NOT TESTED AT ALL - I dont have an Android 12.1 device to test this on, but it was...
github.com

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
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:
github.com

Release v12.1.0_s_v2 · asaf400/GravityBox

This release targets SDK version 32 - Android 12.1, for Android 12 use v12.0.x releases like v12.0.1_s. The app IS NOT TESTED AT ALL - I dont have an Android 12.1 device to test this on, but it was...
github.com
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 )
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:
github.com

Release v12.1.0_s_v2 · asaf400/GravityBox

This release targets SDK version 32 - Android 12.1, for Android 12 use v12.0.x releases like v12.0.1_s. The app IS NOT TESTED AT ALL - I dont have an Android 12.1 device to test this on, but it was...
github.com
Trying now and will post feedback

Reactions: asaf400

asaf400

Senior Member
Apr 15, 2010
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..
Trying now and will post feedback

weird , GB launched before reboot normally
After reboot , it gives same error message about framework not responding
( it should be the oppoiste case )

asaf400

Senior Member
Apr 15, 2010
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: Jun 28, 2022

asaf400

Senior Member
Apr 15, 2010
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:

XAppDebug

Debug any application of your choice!
modules.lsposed.org
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..

verbose_2022-07-04T18_31_51.414 - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com

modules_2022-07-04T18_31_51.441 - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
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: Monday at 9:18 PM

ko_hi

Senior Member
Mar 25, 2020
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:

XAppDebug

Debug any application of your choice!
modules.lsposed.org
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..

verbose_2022-07-04T18_31_51.414 - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com

modules_2022-07-04T18_31_51.441 - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
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

ko_hi

Senior Member
Mar 25, 2020
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.

Top Liked Posts

  • 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
    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
    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

    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.
    Currently not working:
    -Advanced reboot options
    -Statusbar Brightness Slide
    -Quick Settings Management
    -Disabling alarm info on lock screen doesn't seem to work

    OnePlus OOS 12 Broken Features

    -if you move status bar clock to middle you will get constant systemui fc black screen can't get out unless you remove module via adb.
    -Date and day of week options do not work also.
    -Battery icon does not display on lock screen. Only in screen on
    -Expanded volume panel is broken on one plus

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK