waydroid / waydroid

Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.
https://waydro.id
GNU General Public License v3.0
7.98k stars 332 forks source link

KonoSuba: Fantastic Days: LIAPP Alert: Api hooking, dl_notify_number. Debugging has been detected. #1060

Closed YogSottot closed 1 year ago

YogSottot commented 1 year ago

Describe the bug When I try to run KonoSuba: Fantastic Days, I get the following error: LIAPP Alert: Api hooking, dl_notify_number. Debugging has been detected.

Screenshots image

General information (please complete the following information):

Additional context Waydroid is not rooted. (no Magisk/Zygisk/Lucky Patcher/LSPosed/Game Guardian/etc) Developer mode disabled Stock Waydroid with GApps and Google Play Protect certification This game used to work without any problems. No suspicious apps installed, just a few games.

Logs (please upload as file)

sys.use_memfd=true
debug.stagefright.ccodec=0
ro.hardware.gralloc=gbm
ro.hardware.egl=mesa
ro.hardware.vulkan=intel
ro.hardware.camera=v4l2
ro.opengles.version=196609
waydroid.system_ota=https://ota.waydro.id/system/lineage/waydroid_x86_64/GAPPS.json
waydroid.vendor_ota=https://ota.waydro.id/vendor/waydroid_x86_64/MAINLINE.json
waydroid.tools_version=1.4.1
ro.vndk.lite=true
ro.product.cpu.abilist=x86_64,x86,armeabi-v7a,armeabi,arm64-v8a
ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi
ro.product.cpu.abilist64=x86_64,arm64-v8a
ro.dalvik.vm.native.bridge=libndk_translation.so
ro.enable.native.bridge.exec=1
ro.vendor.enable.native.bridge.exec=1
ro.vendor.enable.native.bridge.exec64=1
ro.ndk_translation.version=0.2.3
ro.dalvik.vm.isa.arm=x86
ro.dalvik.vm.isa.arm64=x86_64
waydroid.host.user=neko
waydroid.host.uid=1000
waydroid.host.gid=1000
waydroid.host_data_path=/home/neko/.local/share/waydroid/data
waydroid.xdg_runtime_dir=/run/user/1000
waydroid.pulse_runtime_path=/run/user/1000/pulse
waydroid.wayland_display=wayland-0
waydroid.background_start=false
waydroid.stub_sensors_hal=1

YogSottot commented 1 year ago

Ok. Fixed it by adding in /var/lib/waydroid/waydroid.cfg in the [properties] section, then run waydroid upgrade --offline to regenerate waydroid_base.prop with the new props

# fix root liapp
ro.product.brand=google
ro.product.manufacturer=Google
ro.system.build.product=redfin
ro.product.name=redfin
ro.product.device=redfin
ro.product.model=Pixel 5
ro.system.build.flavor=redfin-user
ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.tags=release-keys
ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.vendor.build.id=RQ3A.211001.001
ro.vendor.build.tags=release-keys
ro.vendor.build.type=user
ro.odm.build.tags=release-keys
Weroxig commented 1 year ago

Ok. Fixed it by adding in /var/lib/waydroid/waydroid_base.prop

# fix root liapp
ro.product.brand=google
ro.product.manufacturer=Google
ro.system.build.product=redfin
ro.product.name=redfin
ro.product.device=redfin
ro.product.model=Pixel 5
ro.system.build.flavor=redfin-user
ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.tags=release-keys
ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.vendor.build.id=RQ3A.211001.001
ro.vendor.build.tags=release-keys
ro.vendor.build.type=user
ro.odm.build.tags=release-keys

Did you get anything special to get the settings to stick? My waydroid.prop resets and removes the above settings whenever I run waydoid show-full-ui.

Just-Explode commented 1 year ago

Hold on, I don't understand. How would such a configuration work???

YogSottot commented 1 year ago

Hold on, I don't understand. How would such a configuration work???

Video proof https://mega.nz/file/7cYSVAhQ#xJENf-97WJMPzUSCV-BccbH1erVZmYNSWPHkwouty3A

Just-Explode commented 1 year ago

Hold on, I don't understand. How would such a configuration work???

Video proof https://mega.nz/file/7cYSVAhQ#xJENf-97WJMPzUSCV-BccbH1erVZmYNSWPHkwouty3A

I mean, yeah, it also works for me. But why? The only change I've seen is only that the phone name changed from "Waydroid x86-64" to "Pixel 5" yeah ofc, some apps that required non-rooted phones started to work

YogSottot commented 1 year ago

I mean, yeah, it also works for me. But why? The only change I've seen is only that the phone name changed from "Waydroid x86-64" to "Pixel 5" yeah ofc, some apps that required non-rooted phones started to work

userdebug/test-keys → user/release-keys

Because liapp thinks that if test-keys, the phone is rooted. In this config, test-keys has been changed to release-keys

dannroda commented 1 year ago

Ok. Fixed it by adding in /var/lib/waydroid/waydroid_base.prop

# fix root liapp
ro.product.brand=google
ro.product.manufacturer=Google
ro.system.build.product=redfin
ro.product.name=redfin
ro.product.device=redfin
ro.product.model=Pixel 5
ro.system.build.flavor=redfin-user
ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.tags=release-keys
ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.vendor.build.id=RQ3A.211001.001
ro.vendor.build.tags=release-keys
ro.vendor.build.type=user
ro.odm.build.tags=release-keys

Doesnt work for me

YogSottot commented 1 year ago

Doesnt work for me

If you are using VANILLA images, try switching to GAPPS.

dannroda commented 1 year ago

Doesnt work for me

If you are using VANILLA images, try switching to GAPPS.

I'm using GAPPS with libhoudini. I'll try a fresh install cuz I can't recall if I installed GAPPS or VANILLA and changed to GAPPS.

yms2772 commented 12 months ago

Ok. Fixed it by adding in /var/lib/waydroid/waydroid_base.prop

# fix root liapp
ro.product.brand=google
ro.product.manufacturer=Google
ro.system.build.product=redfin
ro.product.name=redfin
ro.product.device=redfin
ro.product.model=Pixel 5
ro.system.build.flavor=redfin-user
ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.tags=release-keys
ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.vendor.build.id=RQ3A.211001.001
ro.vendor.build.tags=release-keys
ro.vendor.build.type=user
ro.odm.build.tags=release-keys

image

Does not work for me. I installed gapps version and add that props to waydroid.cfg and checked changes, but LIAPP ALERT still pop up.

dannroda commented 12 months ago

Ok. Fixed it by adding in /var/lib/waydroid/waydroid_base.prop

# fix root liapp
ro.product.brand=google
ro.product.manufacturer=Google
ro.system.build.product=redfin
ro.product.name=redfin
ro.product.device=redfin
ro.product.model=Pixel 5
ro.system.build.flavor=redfin-user
ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.tags=release-keys
ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.vendor.build.id=RQ3A.211001.001
ro.vendor.build.tags=release-keys
ro.vendor.build.type=user
ro.odm.build.tags=release-keys

image

Does not work for me. I installed gapps version and add that props to waydroid.cfg and checked changes, but LIAPP ALERT still pop up.

You need to add the props to /var/lib/waydroid/waydroid_base.prop file, not waydroid.cfg And make sure that waydroid was installed with GAPPS and not converted from VANILLA!

yms2772 commented 12 months ago

Ok. Fixed it by adding in /var/lib/waydroid/waydroid_base.prop

# fix root liapp
ro.product.brand=google
ro.product.manufacturer=Google
ro.system.build.product=redfin
ro.product.name=redfin
ro.product.device=redfin
ro.product.model=Pixel 5
ro.system.build.flavor=redfin-user
ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.build.tags=release-keys
ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
ro.vendor.build.id=RQ3A.211001.001
ro.vendor.build.tags=release-keys
ro.vendor.build.type=user
ro.odm.build.tags=release-keys

image Does not work for me. I installed gapps version and add that props to waydroid.cfg and checked changes, but LIAPP ALERT still pop up.

You need to add the props to /var/lib/waydroid/waydroid_base.prop file, not waydroid.cfg And make sure that waydroid was installed with GAPPS and not converted from VANILLA!

image image

I definitely installed GAPPS. I also add that props to /var/lib/waydroid/waydroid_base.prop. But LIAPP still alert..

dannroda commented 12 months ago

I definitely installed GAPPS. I also add that props to /var/lib/waydroid/waydroid_base.prop. But LIAPP still alert..

Restarted the container after the changes?

yms2772 commented 12 months ago

@dannroda Yes sure. I guess your props can help avoiding root detection, but can't avoid virtual device detection.

dannroda commented 12 months ago

@yms2772 what's the app name?

yms2772 commented 12 months ago

@dannroda the app name is "blind".

dannroda commented 12 months ago

@yms2772 yeah, I can't even install it from the Play Store. You can try the magisk + frida combo

YogSottot commented 12 months ago

Instead the waydroid_base.prop props should be written to /var/lib/waydroid/waydroid.cfg, in the [properties] section, then run waydroid upgrade --offline to regenerate waydroid_base.prop with the new props

https://github.com/casualsnek/waydroid_script/issues/78

baptx commented 10 months ago

@YogSottot The changes mentioned in waydroid_base.prop are not enough to bypass root detection of some apps, maybe you have an idea: https://github.com/waydroid/waydroid/issues/935#issuecomment-1879857081

JonathanGithumbi commented 9 months ago

whatsapp detected root. This solved the issue. Thanks OP

Mindclaw commented 7 months ago

I'm getting the same "API Hooking, dl_notify_number. Debugging has been detected. App will be terminated. (Please contact customer center.)" error when trying to play "Immortal Rising". Have already tried editing the waydroid.cfg and adding the previously recommended lines, but no change. Any thoughts what else could be done to avoid the error?

YogSottot commented 7 months ago

@Mindclaw

Try adding

ro.adb.secure = 1
ro.debuggable = 0

I tried this game, it works for me.

dannroda commented 7 months ago

@Mindclaw are you using libndk or libhoudini? libndk triggers debugging liapp alert for me.

brokeDude2901 commented 4 months ago

anybody got ChatGPT to work, please share your configs :D

Antonino545 commented 4 weeks ago

anybody got apple music to work ?