yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] czxczx:
ROM cannot be found, error 91

I am trying to install this onto a pocophone f1 with crdroid, using TWRP, but every time I try to install it there is an error saying that it can't find the ROM. This doesn't happen with other zips, but seems to happen with this one regardless of what I do. It's exactly the same even if there's no OS, which suggests it's an issue with the ROM.

Here's a transcript of the error:

ERROR: The ROM cannot be found

ERROR: Installation script failed with error 91

Updater process ended with ERROR: 91

Error installing zip file 'location of zip file'

Thanks for your help, I've been trying to solve this for ages
[Miscellaneous Android Development] 3to4:
Size question!

Hello,

I installed v 1.0.33 some time ago on my Galaxy Note 3 running rooted and deodexed stock Lollipop without any issue. I had always wanted to get rid of Google Play services, which was becoming bigger and bigger with each update. Thank you very much.

Now I think if one day some software starts complaining and saying that I need to update Google play services, I need to update microG.

My question is,

The installer size of v 1.0.33 was 31.4MB, whereas that of v 1.0.34 is 52.7MB.

How is it that v 1.0.34 is much bigger?

The purpose to use microG is, for me, to have a smaller footprint, among others. So, if the installation becomes much bigger, it doesn't really make sense for me.

Can some one explain?
[Miscellaneous Android Development] natsousa:
You don't have to flash the unofficial installer to update play services. You can use fdroid and simply install the updated core services like any app. Of course make a Twrp backup in case something goes

wrong
[Miscellaneous Android Development] e2vinay:
[MENTION=5627087]ale5000[/MENTION]

Same here with v1.0.34 beta on my poco

using official TWRP
[Miscellaneous Android Development] e2vinay:
Anyone?
[Miscellaneous Android Development] Oehrly:
Which android version?
[Miscellaneous Android Development] e2vinay:
Pie
[Miscellaneous Android Development] czxczx:
Doesn't matter for me. Pie, Q, no OS at all.

Update: Managed to get it working on an Android 9 version of HavocOS, still not sure what the issue was
[Miscellaneous Android Development] Oehrly:
I have had similar problems with Q on my Oneplus 3. I ended up modifying the zip to make it work. But I also don't know what the real cause is.

It was a somewhat dirty fix if you can even call it a fix.
[Miscellaneous Android Development] e2vinay:
well what did you modify?
[Miscellaneous Android Development] Oehrly:
Removed the check for where the OS is and just set it so it works on my system.
[Miscellaneous Android Development] e2vinay:
can you share modified file?

or explain how to do it in detail?

Thank you
[Miscellaneous Android Development] xerves78:
which lines do you removed ?
[Miscellaneous Android Development] Oehrly:
In the install.sh file SYS_ROOT_IMAGE and SYS_PATH ultimately need to be set correctly. If you know what is right for your system, you can just set them manually in the script instead oft having the script check it.

If it doesn't work for you currently, probably SYS_ROOT_IMAGE should be true and SYS_PATH should be /system/system

I won't post my modified file, because this is the official thread and the only versions in here should be official and universal for all devices IMO.
[Miscellaneous Android Development] xerves78:
you should post your modified file because it dosnt exist a new official version for Android Q and many people havent the skill to modify the install zip ;)
[Miscellaneous Android Development] bschtl:
[MENTION=5627087]ale5000[/MENTION]

Ok, it's looking good. Play Store is installed again and so far no self update. Logcat is attached.

Only thing now is that the list of installed apps is empty, but perhaps that changes after a reboot.
[Miscellaneous Android Development] marcdw:
On my first run(s) of Play Store that happens to me. I exit, clear it from Recents, and restart it. It would take two or three of those until it kicks in. After that all was good.

LG G3 D851, AOSPA-L ROM, Nebula Rev9.3 Kernel, microG (NoGapps), MultiROM, Tapatalk 4.9.5
[Miscellaneous Android Development] bschtl:
[MENTION=6046143]marcdw[/MENTION]

Thanks man, that worked, but also triggered self-update of Play Store. :eek:

[MENTION=5627087]ale5000[/MENTION]

I reproduced the situation and caputered logs.

There are two logs because in the first try I forgot to turn off the services. Hope they help.
[Miscellaneous Android Development] NoodleFox:
Didn't work, I've tired many things and solved it this way.

-Disable Play Store

-Reflash the Zip

-Enable Play Store

I've download some updates and new apps without any trouble, seems stable now :)
[Miscellaneous Android Development] dan.man:
Hey! I don't have much knowledge about microG so I wanted to ask if microG can sync all those things which the play services does (contacts, calender, gmail, people details, etc.)?

Also, I know its wrong asking for the ETA but I'm stuck with no contacts in my phone so, when can the selinux context problem be expected to resolve?
[Miscellaneous Android Development] NinjaFlood:
This is not the correct thread to ask this.

I'm going to answer you, tho.

You have two options to enable contacts and calendar sync:

1) the open source way by using DavDroid App.

2) Installing privative google apps.

You might find this thread useful:

https://github.com/microg/android_packages_apps_GmsCore/issues/222
[Miscellaneous Android Development] raptorddd:
tried the beta 9 and had same FC in app list and now even when i clicked on games it FC. i had to use newer version. sorry no log. just wanted to report.
[Miscellaneous Android Development] joelh:
Thanks for sharing the link, off-topic or otherwise. Helped this lurker learn a few more things :)

[MENTION=5627087]ale5000[/MENTION]: Can it be possible to upgrade gmscore through fdroid after installing a previous version with your zip? The newest version is up on fdroid but the signing keys don't match, so I'd need to remove and then install which I have to think would break at least the play store client.
[Miscellaneous Android Development] Brandon9231:
Would there be any issue flashing TBO's black Play Store (5.1.11) after uninstalling the one included with this zip since they're the same version? Im probably gonna do it before getting a response anyway, but what would be the issues, if any, that it might cause? It kind of bothers me that this is pretty much the only app that I can't theme in my ROM :silly:
[Miscellaneous Android Development] marcdw:
If the Play Store from the installer is in the normal place you won't have to uninstall it before flashing TBO version.

Since you know about TBO Black then you know there's also Clear and Theme Ready builds. The latter looks like the one you want. Flashable via their AROMA package. Of course they're newer than 5.1.11.

My three microG ROMs (Mahdi KK, ParanoidAndroid LP, crDroid N) are all using the latest Play Store. Didn't have to uninstall versions included with installers.

LG G3 D851, crDroid v2.0 N ROM, microG (NoGapps), MultiROM, Tapatalk 4.9.5
[Miscellaneous Android Development] Brandon9231:
Lol don't know how I forgot about the theme ready aroma zip, I just use it for the YouTube app. It was just easier hunting down the 5.1.11 black playstore in the updater app than it is to find the zip with the right release date.

You're actually using the latest TBO playstore with microG without issues? I read that newer versions than the one included in the zip cause alot of problems...did you install any paid apps?
[Miscellaneous Android Development] marcdw:
[MENTION=7258926]Brandon9231[/MENTION], yes sir. No problems whatsoever installing paid apps. Good thing too because without some of those apps I probably would've reconsidered going gappless.

I use the latest TBO Clear Play Store on KitKat. I think Theme Ready on the others.

Have a bad habit of archiving things. A bunch of the Theme Ready installers are on my SD card. I'll quickly check to see which of what I have has v5.x of Play Store.

LG G3 D851, crDroid v2.0 N ROM, microG (NoGapps), MultiROM, Tapatalk 4.9.5
[Miscellaneous Android Development] Brandon9231:
Thanks, kind of need it now since the black playstore crashes whenever I try downloading an app and going back to the original 5.1.11 just auto-updates and won't open without signing in to my google account and creating a couple hundred new ones in the process.

I'm just gonna try a clean install of my ROM again to see if the play store stops updating itself and go without any theming :rolleyes:
[Miscellaneous Android Development] ale5000:
[MENTION=5114941]dan.man[/MENTION]: I cannot reply yet since I was busy with my work and need time to research about the problem.

[MENTION=7660770]animeme[/MENTION]: Yes, you can update everything from F-Droid (except PlayStore, recognized as FakeStore).

I have tried myself updating GmsCore and it works (with framework.jar patched for signature spoofing, I don't know about Xposed).

[MENTION=7258926]Brandon9231[/MENTION]: If the zip that you flash will use the same path of the existing Play Store it will replace it without any problem.

On Android 5+ my zip put it at: /system/priv-app/Phonesky/Phonesky.apk
[Miscellaneous Android Development] joelh:
I'm on crDroid which includes sigspoofing natively like Omnirom, but fdroid told me the keys didn't match. Fdroid is not installed as a system app, fwiw.
[Miscellaneous Android Development] ale5000:
I have heard in other places about glitches on updates (but I think the are related to signature spoofing and F-Droid not really supporting it).

It shouldn't be related to my installer.
[Miscellaneous Android Development] ale5000:
[MENTION=4336485]alezardstar[/MENTION]: Yes, but the problem is that altering code that isn't open source isn't exactly "regular".
[Miscellaneous Android Development] ale5000:
For now, this app can be used to disable services of Play Store related to self-update.

[MENTION=4336485]alezardstar[/MENTION] [MENTION=5376816]bschtl[/MENTION]
[Miscellaneous Android Development] marcdw:
[MENTION=7258926]Brandon9231[/MENTION],

I went to the first Theme Ready aroma installer. Version 7 I think. It has Play Store 6.0.5. Anything earlier is in the non-aroma zips.

LG G3 D851, LiquidSmooth v4.1 LP ROM, Nebula v9.3 Kernel, MultiROM, Tapatalk 4.9.3
[Miscellaneous Android Development] Brandon9231:
So...that one won't crash? And TBO's playstores don't auto-update, right?

I'll try it later, I ended up flashing GApps just to update all my apps and back them up with TiBu... Plan on flashing a new ROM anyway :rolleyes:
[Miscellaneous Android Development] Oehrly:
That fix alone won't make it work on Q!
[Miscellaneous Android Development] djaynard:
i wasnt able to log in in fb, messenger and twitter what should I do?:confused:
[Miscellaneous Android Development] DrNinjaa:
I request to make the zip without newpipe. I understand it is your project and your wish but it is just a request from a member.

Thank you for helping us thousands to be degoogled
[Miscellaneous Android Development] Psk.It:
You can try one of magisk modules i did (read the notes)

https://androidfilehost.com/?w=search&s=microg-gapps

---------- Post added at 10:47 AM ---------- Previous post was at 10:43 AM ----------

Settings>Account>Google>"allow apps to retrieve your account"
[Miscellaneous Android Development] @kel@:
Guys, is there google sync for android 9?
[Miscellaneous Android Development] ainaz:
There is in first page G.syn.addon. i think it's still work on 9
[Miscellaneous Android Development] Psk.It:
the latest build "0.2.18.xxx" seems to allow google contact and calendar sync

View attachment 5304467

this is my module, I tested it only on crDroid

microG-Gapps-v0.2.18.204714.zip | by Psk.It for Utilities

magisk microG alternative based on

androidfilehost.com

as always, you need to locate the "gsf core app" in the system/app folder, install it as user app, add grants (as the picture below)

you can uninstall the user app, then the system all will continue working propertly

View attachment 5304459

the module contains ContactSync and CalendarSync services, you have to manualmy allow the missing grants

View attachment 5304461

the embedded version of PlayStore is old, but It Is needed in order to access PlayStore service the first run, you will see it self-updating in a minute after first access

On the first run, since i testored a backup made on a pixel rom, i had a lot of errors with clock, gboard, messages, tts, etc

After setup completed, reinstalled them from the play store (i also had ti revert some beta testing subsribtions) but all seems to be running quite well now

View attachment 5304463
[Miscellaneous Android Development] ale5000:
Hi, I'm still here, just a bit busy.

I will do some changes in the next few days.
[Miscellaneous Android Development] ale5000:
Edit: Message removed
[Miscellaneous Android Development] kurtn:
mounting error
[Miscellaneous Android Development] ale5000:
Hi,

when flashing please enable the Live setup and Debug log (you need to press volume up when asked).

Also write the model of the phone please.

Then post the log that is created near the zip.
[Miscellaneous Android Development] kurtn:
Hi,

it is a Samsung s5 klte with crDroid 8 (Andoid 12) and TWRP 3.5.2_9-0

EDIT: same result with android 11
[Miscellaneous Android Development] ale5000:
Could you please try this and post the new log?

Edit: attachment removed.
[Miscellaneous Android Development] kurtn:
Same
[Miscellaneous Android Development] kurtn:
That zip works with twrp 3.3.1 - but not with 3.5.2-9 or 3.6.0-9

Permissions are not set after installation, but can be enabled (android 11)

Clean flashed android 12 and installer in one go. Worked fine. Al self-check boxes checked, except "appear on top..."
[Miscellaneous Android Development] ale5000:
Thanks for the test, I have to rework the automount code.

Does it works if you flash it when the partition is already mounted?
[Miscellaneous Android Development] kurtn:
I installed twrp 3.6.0 , mounted system, flashed unofficial installer. Same error. After that, system is unmounted.
[Miscellaneous Android Development] ale5000:
Could you please restart in the recovery and when the phone is in the recovery, execute this from PC?

adb shell mount

I would like to see what it return on TWRP 3.6.0.

Then mount the system patition and run the command again.
[Miscellaneous Android Development] kurtn:
adb shell mount says

$ adb shell mount

rootfs on / type rootfs (rw,seclabel)

tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=850212k,nr_inodes=128658,mode=755)

devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,seclabel,relatime)

selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)

tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=850212k,nr_inodes=128658)

/dev/block/platform/msm_sdcc.1/by-name/userdata on /data type ext4 (rw,seclabel,relatime,data=ordered)

/dev/block/platform/msm_sdcc.1/by-name/userdata on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)

/dev/block/platform/msm_sdcc.1/by-name/cache on /cache type ext4 (rw,seclabel,relatime,data=ordered)

After mounting system it is

rootfs on / type rootfs (rw,seclabel)

tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=850212k,nr_inodes=128658,mode=755)

devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,seclabel,relatime)

selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)

tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=850212k,nr_inodes=128658)

/dev/block/platform/msm_sdcc.1/by-name/userdata on /data type ext4 (rw,seclabel,relatime,data=ordered)

/dev/block/platform/msm_sdcc.1/by-name/userdata on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)

/dev/block/platform/msm_sdcc.1/by-name/cache on /cache type ext4 (rw,seclabel,relatime,data=ordered)

/dev/block/platform/msm_sdcc.1/by-name/system on /system_root type ext4 (rw,seclabel,relatime)

/dev/block/platform/msm_sdcc.1/by-name/system on /system type ext4 (rw,seclabel,relatime)
[Miscellaneous Android Development] ale5000:
When system in mounted, could you please run these and post the result?

adb shell "stat /system_root/system/build.prop"

adb shell "stat /system_root/build.prop"
[Miscellaneous Android Development] kurtn:
$ adb shell "stat /system_root/system/build.prop"

File: '/system_root/system/build.prop'

Size: 9904 Blocks: 24 IO Block: 4096 regular file

Device: b317h/45847d Inode: 1087 Links: 1

Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)

Access: 1970-12-25 17:35:50.000000000

Modify: 2009-01-01 00:00:00.000000000

Change: 2009-01-01 00:00:00.000000000

$ adb shell "stat /system_root/build.prop"

stat: can't stat '/system_root/build.prop': No such file or directory
[Miscellaneous Android Development] kurtn:
Minmicrog @ShaneTheAwesome is working on a similar issue.

"Basically it seems to be a big enough problem that every 'large' android system mod felt the need to work around it instead of getting it fixed in the recoveries themselves"
[Miscellaneous Android Development] ale5000:
Released microG unofficial installer v1.1.0 beta.

Download: https://androidfilehost.com/?w=files&flid=141201

Changes:

- Added support for Android up to 13

- Improve system partition mounting

- Mount partitions only if they aren't already mounted

- Zip builds are now reproducible (tested on Linux and Windows with Java 17)

- You can now test the zip installation on PC using "gradlew installTest" (tested on Linux and Windows)

Full changelog will appear later

Note: It pass SafetyNet (only if your device was passing SafetyNet with GApps).
[Miscellaneous Android Development] ale5000:
Can you please try the latest version and tell me if it is fixed?

Can you please try the latest version and tell me if it is fixed?

Done.

The issue of system-as-root should be fixed.

About the permissions issue does it still happen with the latest version?
[Miscellaneous Android Development] ale5000:
The installer contains various versions of the components to be compatible with all devices / Android versions but it doesn't install everything, it just install the correct version needed for your phone.

So the zip size doesn't matter, the final used space will be much lower.
[Miscellaneous Android Development] ale5000:
Can you please try the latest version and tell me if it is fixed?

Can you please try the latest version and tell me if it is fixed?

It will be released soon.
[Miscellaneous Android Development] ale5000:
Can you please try the latest version and tell me if it is fixed?

Can you please try the latest version and tell me if it is fixed?
[Miscellaneous Android Development] ale5000:
I'm not going to add additional variants of the installer but you can easily do it yourself in this way:

- Download the latest version of the full repository;

- Or alternatively download a release from here (but you need to download the Source code and not the flashable zip);

- Extract it;

- Open zip-content/settings.conf and change from export INSTALL_NEWPIPE=1 to export INSTALL_NEWPIPE=0 (use a text editor that preserve line endings like Notepad++);

- On Windows double click on build.bat, on others OSes execute ./build.sh

- You will find the flashable zip in the output folder.
[Miscellaneous Android Development] Oehrly:
I haven't been doing any custom rom installation stuff any more since back when I reported this. Everything was stable enough that I just kept the system as it is, so I'm a bit rusty and can't just quickly test this right now 😂. I'll try to test it soon, though. A clean reinstall might actually be a good idea after this long 😅
[Miscellaneous Android Development] UltraMaks:
HI all

I have bought a China version of Motorola G51 phone (Andriod 11). Since there is a China version it lacks normal Google services (if you enable it in System - Advanced - Google Services) you only receive People details available in Account sync options

I cannot use Hey Google, cannot get contacts into the phone, cannot sync gmail

I wonder if I can install your services to enable it? Of course I can flash a global version of thу ROM but I do not want to do it (at least now since everything else is ok for me)

Any ideas are highly appreciated

PS my phone is non rooted
[Miscellaneous Android Development] kurtn:
I don't think microG will help you. But some Google services can speak with standard services. Like cardDAV for contacts or IMAP for email.
[Miscellaneous Android Development] ale5000:
You can get contact/calendar/gmail sync with microG but I'm not sure for Hey Google.

It doesn't need root, but it currently need a custom recovery to flash the zip and you also need to patch the ROM for signature spoofing (or alternatively flash a ROM that already include signature spoofing).
[Miscellaneous Android Development] UltraMaks:
Well, at least those functions. Can you tell me what apk are needed to enable at least all the Google sync?
[Miscellaneous Android Development] kurtn:
You should also be able to sync contacts with Google without proprietary apps or microG using the open-source CardDAV client DAVx5 (available on F-Droid or Play)

Go to Google Dashboard's app passwords page, and create an app password if you don't have one already

When logging in with DAVx5, Use "Login with URL and user name"

Base URL: https://www.google.com/calendar/dav/[your_gmail_id]@gmail.com/events

User name: [your_gmail_id]@gmail.com

Password: [your_app_password]

From https://github.com/FriendlyNeighborhoodShane/MinMicroG/blob/master/INSTALL.md#contact-sync
[Miscellaneous Android Development] UltraMaks:
Thanks for you idea about CardDAV client DAVx5. I have tried it but since I have my gmail in my own domain and use legacy edition of G Suite I cannot use neither 2 factor authentication nor add "App passwords" to my organization

So it seems that the only way for me is using proprietary apps (what exactly?) or MicroG

Just wonder what would be the best solution as I'd like to have all sync in place - MicroG? Any other gapps? As I see here in OP there is no Andriod 11 version mentioned. So what exactly apk do I need to download and install to use google services?
[Miscellaneous Android Development] EZ.:
Hello,

Sorry to have to post this, but I cannot get this package to install from script or by flashing from recovery or root terminal. After a lot of fruitless searching all the usual resources, here it is.

I'm on rooted stock D2S v12. Using this with Magisk / Riru /LSposed / whew-inc/FakeGApps. I have reset and flashed a clean ROM many times.

I'm sure I'm doing something bone-headed, but here are my results. Any guidance would be awesome.

d2s:/ $ su

d2s:/ #

d2s:/ # mount -o rw,remount /

d2s:/ #

d2s:/ # cd /storage/2C41-653F/Repo/micro5k

d2s:/storage/2C41-653F/Repo/micro5k # sh install.sh

install.sh[38]: .: /inc/common.sh: No such file or directory

Or:

d2s:/storage/2C41-653F/Repo/micro5k # sh ./install.sh

install.sh[38]: .: /inc/common.sh: No such file or directory

Or:

d2s:/storage/2C41-653F/Repo/micro5k # su -c sh ./install.sh

install.sh[38]: .: /inc/common.sh: No such file or directory

With ADB sideload or apply update from SD, I get:

<...>

E: Signature verification failed

E: error: 21

<...>

Installation aborted.

Flashing the zip with terminal from SD fails:

View attachment 5648979
[Miscellaneous Android Development] ale5000:
I have replied here: https://github.com/micro5k/microg-unofficial-installer/issues/34
[Miscellaneous Android Development] Oehrly:
I finally got around to wiping my phone and doing a clean install to test this. Everything worked perfectly, no problems whatsoever, no permission issues when installing apps afterwards. MicroG was working, all boxes checked immediately after first boot, without doing anything more.

Thanks a lot for fixing this.
[Miscellaneous Android Development] ale5000:
Thanks for testing, could you please specify your Android version so I can know where it works correctly or not?