Comments (20)
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.
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.
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.
@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.
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.
You are right. I appreciate the review!
from microg-unofficial-installer.
Thank you, fixed it. It's going to be published in the next release.
from microg-unofficial-installer.
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.
- The only way that I know to set the configuration dynamically is to run from an adb shell:
- Send the zip to the device
- Send zip-install.sh to the device: https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/zip-install.sh
- Then open adb shell
- The run:
CI=true sh ./zip-install.sh ./zip-name.zip
(with CI=true it will skip all dynamic questions).
-
If it were executed from a normal shell it can be configured, but with sideload I don't think environment variables will be kept.
-
I don't know about TWRP variables, do you have any link for this?
-
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.
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.
@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.
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.
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.
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.
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.
Wow, this is awesome!
Great work, thank you!
from microg-unofficial-installer.
Everything is fixed now, it will be ported to the Google Sync add-on soon as well.
from microg-unofficial-installer.
Wow, this is awesome!
Great work, thank you!
from microg-unofficial-installer.
@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.
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)
- How could I uninstall it? HOT 3
- Update to version with fcm HOT 2
- Reproducible zip file order
- Support OTA zip installation in A/B (Seamless) devices HOT 8
- Setup automated testing of the installation phase HOT 1
- ZipSigner fixes HOT 1
- Set the same file modification time under all OSes
- Magisk Rooted Android 12 Stock - Can't install by manual script or flash zip from recovery HOT 2
- Add live setup to ARM devices
- Add live setup to x86 devices HOT 1
- Ensure that the addon.d backup/restore script is compatible with A/B devices
- [REGRESSION] zip-install.sh fails (version v1.2.0-beta) HOT 5
- Google Play Store keeps trying to update GmsCore in the background HOT 1
- TWRP installation failure: error 97 HOT 7
- Failed to copy custom-setup-a5k on latest crdroid HOT 9
- Volume keys are not being identified HOT 24
- Google messages app stuck in the login window and doesn't open , says " cannot login " HOT 1
- Failed to copy custom-setup-a5k on latest Lineage 20 HOT 3
- Imei number HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microg-unofficial-installer.