Code Monkey home page Code Monkey logo

Comments (20)

amo13 avatar amo13 commented on May 25, 2024 1

Thank you for your answer.
Do you think there is a way to set the configuration dynamically? Like with an environment variable or some TWRP variable?
Otherwise, would I need to "build" the flashable zip with modified settings by myself? How would I create such a build or release as flashable zip?

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024 1

Amazing! Thank you a lot for the instructions and detailed ideas!
Looking forward to the next release including a timeout for the manual input.
Any chance you can publish the full version as an additional asset in the github releases? Programmatically scraping the xda forum for the link to the latest "full" release is sort of a pain.

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024 1

Amazing! This solution is so much more elegant than sending a configuration file, which I needed to do for nanodroid.

Is it possible to configure INSTALL_FDROIDPRIVEXT and INSTALL_NEWPIPE the same way? For example for skipping newpipe installation.

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024 1

@amo13
Some infos for better error handling:

setprop works only as root; TWRP that I know already start as root but who knows.

To be more sure you can run:
adb shell "whoami"
and then check that the result is root

adb shell does NOT properly forward the return value on old ROMs (maybe also on old recoveries) so you can check that the command is working with:
adb shell "setprop zip.microg-unofficial-installer.INSTALL_PLAYSTORE 1 2> /dev/null && echo OK || echo ERROR"
and then checking the output.

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024 1

The integration of your microG installer in my application is done. I've made your installer the default choice because it's more up-to-date than MinMicroG. But I'll wait for your next packaged release to release the update to my application because it downloads your installer automatically from the github releases page and it needs the new features from this issue.

Anyway, cheers... 🥂

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024 1

You are right. I appreciate the review!

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024 1

Thank you, fixed it. It's going to be published in the next release.

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

Hi,
currently the "fallback to manual input parsing" doesn't have a timeout, it will be fixed in a new version.
The sideload message is displayed later in the process, but it is only done to change the path of the debug log.

To disable the wait completely you can set LIVE_SETUP_TIMEOUT to 0.
In the repository the settings are in these files (it depends if it is the OSS version or the full version):
https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/settings-full.conf
https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/settings-oss.conf

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024
  1. The only way that I know to set the configuration dynamically is to run from an adb shell:
  1. If it were executed from a normal shell it can be configured, but with sideload I don't think environment variables will be kept.

  2. I don't know about TWRP variables, do you have any link for this?

  3. To build:

  • Download the entire repository from release section (choose Source code).
  • Set:
    export OPENSOURCE_ONLY='true'
    or
    export OPENSOURCE_ONLY='false'
  • and then on Windows:
    build.bat
    or on other OSes:
    ./build.sh

Alternatively you can use gradle as explained here: https://github.com/micro5k/microg-unofficial-installer/blob/main/docs/INSTRUCTIONS.rst

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

It isn't included here to prevent any possible problem, but the link on XDA is always the same.
(once there is a new version, then the old one is moved to the Archive subfolder.

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

@amo13
I have got an idea that may work, using getprop and setprop some settings can be configured (these settings will survive only until a reboot).
I will implement it when I have time.

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024

I have got an idea that may work, using getprop and setprop some settings can be configured (these settings will survive only until a reboot). I will implement it when I have time.

That sounds like a great idea!

And thanks for the permalink to androidfilehost. I'll try to use thatonce they resolve their Fatal error: Uncaught Error: Call to a member function execute() on null in /web/libs/classes/SqlCache.php:16 😆

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024

Can't download programmatically from androidfilehost. They have an api but you need a key for direct download of files and only developers with beta access get one right now... I will host the full version and the google sync adapters on my server and will let my application download them from there.

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

I have written the code to set LIVE_SETUP_TIMEOUT, but the new version of the zip isn't ready yet.

When it is released you will be able to set it with:
adb shell "setprop zip.microg-unofficial-installer.LIVE_SETUP_TIMEOUT 0"

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

Now it should work with all settings:

adb shell "setprop zip.microg-unofficial-installer.LIVE_SETUP_DEFAULT 0"
adb shell "setprop zip.microg-unofficial-installer.LIVE_SETUP_TIMEOUT 0"
adb shell "setprop zip.common.DEBUG_LOG 1"
adb shell "setprop zip.microg-unofficial-installer.INSTALL_FDROIDPRIVEXT 1"
adb shell "setprop zip.microg-unofficial-installer.INSTALL_AURORASERVICES 1"
adb shell "setprop zip.microg-unofficial-installer.INSTALL_NEWPIPE 1"
adb shell "setprop zip.microg-unofficial-installer.INSTALL_PLAYSTORE 1"
adb shell "setprop zip.microg-unofficial-installer.INSTALL_ANDROIDAUTO 1"

Setting to an empty value reset the setting to default:
adb shell "setprop zip.microg-unofficial-installer.INSTALL_FDROIDPRIVEXT ''"

Everything is resetted on restart.

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024

Wow, this is awesome!
Great work, thank you!

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

Everything is fixed now, it will be ported to the Google Sync add-on soon as well.

from microg-unofficial-installer.

amo13 avatar amo13 commented on May 25, 2024

Wow, this is awesome!
Great work, thank you!

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

@amo13
Hi,
I have released a new version of microG unofficial installer.

Looking at your code the full version is downloaded if Chk_gsync.Checked || Chk_playstore.Checked but the full version contains in addition just Play Store and Android Auto so it isn't related to gsync that is a separate add-on.

from microg-unofficial-installer.

ale5000-git avatar ale5000-git commented on May 25, 2024

There is another issue that I noticed now but it is just minor, here it seems to open the MinMicroG page for my installer.
If you need a page that show the content, then it is here: https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/CONTENTS.rst

Edit: There is also a mirror for the full version in case the main download fail.

from microg-unofficial-installer.

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.