domoticz android app paid version on MicroG

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

domoticz android app paid version on MicroG

Post by AllesVanZelf »

I am researching the possibility to replace stock android of my phone with Lineageos. Then I want to install MicroG instead of Gapps.
But If I do that I will loose the apps that I have paid for. Like Domoticz premium.
Is there a way to activate my 'license' without googles store?
Anyone has experience with this?
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
hansaplast31
Posts: 31
Joined: Sunday 03 January 2016 0:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz android app paid version on MicroG

Post by hansaplast31 »

I had no issues on getting the unpaid version (Domoticz Lite) to run on a degoogled android phone. the paid version however crashes before it actually comes up with the wizard.
I tried a couple of things, such as giving all the permissions, installing google maps (without signing in) and finally hiding the root status with magisk, all without luck. the app still crashes.
User avatar
user4563
Posts: 109
Joined: Tuesday 19 October 2021 17:24
Target OS: Linux
Domoticz version: 2025.1
Contact:

Re: domoticz android app paid version on MicroG

Post by user4563 »

The app requires Google Play Services: https://github.com/domoticz/domoticz-android/issues/640

so I'm guessing the app isn't seeing something correctly even with MicroG which is just a best effort replacement for Google Play Services
ODroid H4+ / Ubuntu server 24.04 LTS
Aeotec Z-Stick Gen5+
ZWave-JS-UI / Mosquitto MQTT
Domoticz for Android
Domoticz Scenes add-on in Kodi
hansaplast31
Posts: 31
Joined: Sunday 03 January 2016 0:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz android app paid version on MicroG

Post by hansaplast31 »

You are probably right, but since the lite (unpaid) version is working, it must be something related to the paid features of the app.
such a shame. who wants to have a GMS phone these days. People that are smart enough to use domoticz instead of a crapy vulnerable off the shelf automation system should be security concious enough not to use GMS one would think:-)
User avatar
user4563
Posts: 109
Joined: Tuesday 19 October 2021 17:24
Target OS: Linux
Domoticz version: 2025.1
Contact:

Re: domoticz android app paid version on MicroG

Post by user4563 »

OP mentioned microG, but maybe using something different would work (Open GApps, Graphene, etc.)
ODroid H4+ / Ubuntu server 24.04 LTS
Aeotec Z-Stick Gen5+
ZWave-JS-UI / Mosquitto MQTT
Domoticz for Android
Domoticz Scenes add-on in Kodi
hansaplast31
Posts: 31
Joined: Sunday 03 January 2016 0:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz android app paid version on MicroG

Post by hansaplast31 »

I started to look at the log information to debug.
So far I see that the app is looking for the dynamite module. The original from Google isn't there and the dummy version from MicroG is used.
I then looks for getModuleVersion, which doesn ot seem to be there. and this seems to be the reason that the app crashes, as it wants to present something on the GUI (I think), called FloatingActionButton, probably with information (string) that should have been obtained with the earlier call of getModuleVersion.

Btw. it is strikes me that this app has some ads integration, not very nice for a paid app.


01-03 12:21:06.472 28149 28188 W ContextImpl: Failed to ensure /data/user/0/com.google.android.gms/shared_prefs: mkdir failed: EACCES (Permission denied)
01-03 12:21:06.473 28149 28188 W DynamiteModule: IDynamite loader version = 2, no high precision latency measurement.
01-03 12:21:06.473 28149 28188 W GmsDynamiteLoaderImpl: No such module known: com.google.android.gms.ads.dynamite
01-03 12:21:06.473 28149 28188 D GmsDynamiteLoaderImpl: unimplemented Method: getModuleVersion for com.google.android.gms.ads.dynamite
01-03 12:21:06.473 28149 28188 I DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:204890100 and remote module com.google.android.gms.ads.dynamite:0
01-03 12:21:06.473 28149 28188 I DynamiteModule: Selected local version of com.google.android.gms.ads.dynamite
01-03 12:21:06.474 28149 28188 W Ads : #007 Could not call remote method. @28
01-03 12:21:06.474 28149 28188 W Ads : com.google.android.gms.internal.ads.zzbap: com.google.android.gms.dynamite.DynamiteModule$LoadingException: Failed to instantiate module class: com.google.android.gms.ads.measurement.DynamiteMeasurementManager
01-03 12:21:06.474 28149 28188 W Ads : at com.google.android.gms.internal.ads.zzban.zza(com.google.android.gms:play-services-ads-lite@@19.8.0:3)
01-03 12:21:06.474 28149 28188 W Ads : at com.google.android.gms.internal.ads.zzanh.run(com.google.android.gms:play-services-ads-lite@@19.8.0:17)
01-03 12:21:06.474 28149 28188 W Ads : at java.lang.Thread.run(Thread.java:919)
01-03 12:21:06.474 28149 28188 W Ads : Caused by: com.google.android.gms.dynamite.DynamiteModule$LoadingException: Failed to instantiate module class: com.google.android.gms.ads.measurement.DynamiteMeasurementManager
01-03 12:21:06.474 28149 28188 W Ads : at com.google.android.gms.dynamite.DynamiteModule.instantiate(com.google.android.gms:play-services-basement@@17.5.0:318)
01-03 12:21:06.474 28149 28188 W Ads : at com.google.android.gms.internal.ads.zzban.zza(com.google.android.gms:play-services-ads-lite@@19.8.0:1)
01-03 12:21:06.474 28149 28188 W Ads : ... 2 more
01-03 12:21:06.474 28149 28188 W Ads : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.measurement.DynamiteMeasurementManager" on path: DexPathList[[zip file "/data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk"],nativeLibraryDirectories=[/data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/lib/arm64, /system/lib64, /product/lib64]]
01-03 12:21:06.474 28149 28188 W Ads : at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
01-03 12:21:06.474 28149 28188 W Ads : at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
01-03 12:21:06.474 28149 28188 W Ads : at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
01-03 12:21:06.474 28149 28188 W Ads : at com.google.android.gms.dynamite.DynamiteModule.instantiate(com.google.android.gms:play-services-basement@@17.5.0:315)
01-03 12:21:06.474 28149 28188 W Ads : ... 3 more
01-03 12:21:06.481 28149 28149 W omoticz.premiu: ClassLoaderContext classpath size mismatch. expected=0, found=3 (PCL[]{PCL[/system/framework/org.apache.http.legacy.jar*1038351580]} | PCL[/data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk*1295452594:/data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk!classes2.dex*940472887:/data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk!classes3.dex*928482813]{PCL[/system/framework/org.apache.http.legacy.jar*1038351580]})
01-03 12:21:06.482 28149 28149 W omoticz.premiu: Found duplicate classes, falling back to extracting from APK : /data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk
01-03 12:21:06.482 28149 28149 W omoticz.premiu: NOTE: This wastes RAM and hurts startup performance.
01-03 12:21:06.482 28149 28149 W omoticz.premiu: Found duplicated class when checking oat files: 'Landroid/support/customtabs/ICustomTabsCallback$Stub$Proxy;' in /data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk and /data/app/nl.hnogames.domoticz.premium-2rxfBIS82ahmsBbpV3Rb7A==/base.apk
01-03 12:21:06.482 28149 28149 W omoticz.premiu:
01-03 12:21:06.754 28149 28190 I FA : App measurement initialized, version: 42097
01-03 12:21:06.754 28149 28190 I FA : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
01-03 12:21:06.754 28149 28190 I FA : To enable faster debug mode event logging run:
01-03 12:21:06.754 28149 28190 I FA : adb shell setprop debug.firebase.analytics.app nl.hnogames.domoticz.premium
01-03 12:21:06.779 28149 28149 D AndroidRuntime: Shutting down VM
--------- beginning of crash
01-03 12:21:06.779 28149 28149 E AndroidRuntime: FATAL EXCEPTION: main
01-03 12:21:06.779 28149 28149 E AndroidRuntime: Process: nl.hnogames.domoticz.premium, PID: 28149
01-03 12:21:06.779 28149 28149 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.MainActivity}: android.view.InflateException: Binary XML file line #88 in nl.hnogames.domoticz.premium:layout/activity_newmain_paid: Binary XML file line #88 in nl.hnogames.domoticz.premium:layout/activity_newmain_paid: Error inflating class com.google.android.material.floatingactionbutton.FloatingActionButton
User avatar
user4563
Posts: 109
Joined: Tuesday 19 October 2021 17:24
Target OS: Linux
Domoticz version: 2025.1
Contact:

Re: domoticz android app paid version on MicroG

Post by user4563 »

@hansaplast31 nice work there

I've never seen the premium app try to pull ads in so maybe it's left there from the free version. FYI there are also some trackers but I just blocked everything:

Google AdMob
Google Analytics
Google Firebase Analytics
Google Tag Manager
Google CrashLytics
AltBeacon

It's a great app though
ODroid H4+ / Ubuntu server 24.04 LTS
Aeotec Z-Stick Gen5+
ZWave-JS-UI / Mosquitto MQTT
Domoticz for Android
Domoticz Scenes add-on in Kodi
Post Reply

Who is online

Users browsing this forum: swen and 1 guest