Giter Site home page Giter Site logo

Cannot use on Huawei without Google about sobriety HOT 14 OPEN

kiarc avatar kiarc commented on September 24, 2024
Cannot use on Huawei without Google

from sobriety.

Comments (14)

KiARC avatar KiARC commented on September 24, 2024 1

Looks like the licensing on com.google.android.material is Apache v2 so there's no legal issues. Shadowing might fix this which would be great.

from sobriety.

unbiaseduser avatar unbiaseduser commented on September 24, 2024 1

I'm 100% percent sure that Google material library, or any library not depending on Google services, will run on any Android variant. If you don't believe me then at least hear this out: I've been a dev for some 6 months or so, common sense tells me that the thing you're suspecting is not true. Android is Android, Google-less or not.
Furthermore, if the system does not support some runtime dependencies, the app will crash at runtime, not throw a 'incompatible' error when installing.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

There's probably a Google library somewhere, I'll see if I can remove it.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

Looks like FloatingActionButtons are from a Google library... Still looking though.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

I've made a branch for this but I think this will end up being a long term goal

from sobriety.

 avatar commented on September 24, 2024

Thanks for your hard work ! I would like to try your "Sobriety" someday. :D

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

Yeah the issue is the use of components from com.google.android.material which isn't available on Huawei devices. It could be removed but it would present some design challenges. I'm curious as to whether ShadowJar could help here, it's possible that packing that library into the app (or at least the portions the app uses) could solve it, but I would need to look into the license on the library as well.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

For now HarmonyOS (a modified version of Android which Huawei devices run) should be considered unsupported, but I'm working on it.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

The one issue is I can't figure out how to properly shadow classes/packages in an APK.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

Unfortunately this is somewhat difficult and might not happen :/

from sobriety.

unbiaseduser avatar unbiaseduser commented on September 24, 2024

I would like to chime in a bit.
So, I researched the phone Huawei P40 Lite E and I can see that it launched with Android 9 (and maybe has been updated to Android 10).
Looking at the app's commit history, I came across a commit on Sep 14 that decreases the minimum Android version from Android 11 to Android 8.
So, I came to the conclusion that when the issue was created (March 26), the app required Android 11 or later to run. That's why the author could not install the app.

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

from sobriety.

KiARC avatar KiARC commented on September 24, 2024

Could anyone with a Huawei device test Sobriety and lmk if it works? The Java version was bumped down a lot since this was opened.

from sobriety.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.