Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] Detect added libraries to pirated Android app?

Posted on November 14, 2022

Solution 1 :

You can check if a class exists with a method as described over here: How to check if class exists somewhere in package?

However, they could also remove that check when recompiling the app. So it won’t be airtight. You can make it more difficult for the “pirates” by adding proper code obfuscation: https://developer.android.com/studio/build/shrink-code#obfuscate

Problem :

It appears from my crash reports that some people pirate my app and add advertisements to monetise it.

The stack trace from the crash report seems to show a bunch of calls to a library to show interstitials?

Is it possible for me to add code to detect the presence of the com.test.ylh or com.qq.e library?

android.view.WindowManager$BadTokenException: Unable to add window -- token [email protected] is not valid; is your activity running?
  at android.view.ViewRootImpl.setView(ViewRootImpl.java:1126)
  at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:439)
  at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95)
  at android.app.Dialog.show(Dialog.java:473)
  at com.qq.e.comm.plugin.intersitial2.e.a(A:315)
  at com.qq.e.comm.plugin.intersitial2.e.show(A:113)
  at com.qq.e.comm.plugin.intersitial2.e.show(A:107)
  at com.qq.e.comm.plugin.intersitial2.d.show(A:35)
  at com.qq.e.ads.interstitial2.UnifiedInterstitialAD.show(Unknown Source:4)
  at com.test.ylh.InterAd$2.run(InterAd.java:53)
  at android.app.Activity.runOnUiThread(Activity.java:6972)
  at com.test.ylh.InterAd.showAd(InterAd.java:50)
  at com.test.ylh.InterAd.onADReceive(InterAd.java:108)
  at com.qq.e.comm.plugin.intersitial2.a$1.run(A:169)
  at android.os.Handler.handleCallback(Handler.java:883)
  at android.os.Handler.dispatchMessage(Handler.java:100)
  at android.os.Looper.loop(Looper.java:237)
  at android.app.ActivityThread.main(ActivityThread.java:7860)
  at java.lang.reflect.Method.invoke(Method.java:-2)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
READ  [ANSWERED] Android studio and 'trust project' problem
Powered by Inline Related Posts

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress