Giter VIP home page Giter VIP logo

Comments (11)

jwisniewski avatar jwisniewski commented on September 28, 2024

That's interesting. The fact is, in your case, the operating system delivers an empty view hierarchy. Normally it happens when the assist app has no access to the "text from screen". This is why it is advised to verify the assist app settings.

However, it's quite hard to answer, why it happens in your case.

Could you please share more information?:

  • What device do you use (model, android version)?
  • Did you try to inspect other apps? Does the "Screen data isn't available" appears always, for any inspected app, or only for a specific one?

from android-developer-assistant.

Galo223344 avatar Galo223344 commented on September 28, 2024

from android-developer-assistant.

jwisniewski avatar jwisniewski commented on September 28, 2024

The only possibility I see is the fact, the operating system has been modified by Magisk. I'm not familiar with this rooting solution, it is really hard for me to tell something more.

To be honest, I'm focused on support of not rooted devices. Plain devices have multiple constrains but also multiple well established functionalities, Developer Assistant is aligned to that. To work in this environment.

I must say, testing on rooted devices is not my priority. There is just too many cases to handle with official Android distributions.

In case you made any purchase in the app, please contact me via support(at)appsisle.com, sending your order ID, I will refund the purchase of course:)

from android-developer-assistant.

Galo223344 avatar Galo223344 commented on September 28, 2024

Although I don't think that the issue is being caused by Magisk I understand what you mean and I'd understand if you want to close this issue, however please take a look at what I found while checking the logcat. This appears the first time the app gets called using the home button
Screenshot_20200214-175747~2

from android-developer-assistant.

JohnholderStl avatar JohnholderStl commented on September 28, 2024

from android-developer-assistant.

Galo223344 avatar Galo223344 commented on September 28, 2024

Yep. Tried several times

from android-developer-assistant.

jwisniewski avatar jwisniewski commented on September 28, 2024

@Galo223344 Thanks for the report related to the requestLayout(), I will verify it. However this won't help with our issue in any way.

Basing on the input from @JohnholderStl (thanks for that!) I will update the screen, which additional suggestion to try to deactivate and activate the "Use text from screen" switcher to verify if it will help in case user sees it activated but still no views information delivered by the operating system.

@Galo223344 for you case, I would like to help, however it's hard to propose something useful, the app has a simple "if statement", if the operating system returned NO views, which could be analyzed by the app, then it shows the UI you have experienced. Normally, during my tests it happened only if user didn't activate the "Use text from screen". Even if the app wouldn't display this screen, we would still have the issue: no data to present on screens displayed instead.

If you would be interested, the exact API I'm mentioning is: https://developer.android.com/reference/android/app/assist/AssistStructure.html#getWindowNodeCount()

I believe, on your device, this method returns 0. Thus the app has no windows to iterate through to collect information on their views.

I will keep this issue open and try to reproduce the case somehow, but I wonder if I will be able to help.

from android-developer-assistant.

 avatar commented on September 28, 2024

The only possibility I see is the fact, the operating system has been modified by Magisk. I'm not familiar with this rooting solution, it is really hard for me to tell something more.

To be honest, I'm focused on support of not rooted devices. Plain devices have multiple constrains but also multiple well established functionalities, Developer Assistant is aligned to that. To work in this environment.

I must say, testing on rooted devices is not my priority. There is just too many cases to handle with official Android distributions.

In case you made any purchase in the app, please contact me via support(at)appsisle.com, sending your order ID, I will refund the purchase of course:)

It's 100% not magisk, Magisk is a systemless root binary so a Non-root app shouldn't even be effected unless he installed some sort of magisk module that effects the app directly; which is unlikely. Most likely it's just his ROM (MIUI) which is notorious for being a pain in the ass for developers because they don't like to stick to the standard.

Example : I have Magisk Root on my OnePlus 6T with Android 10 (OOS ROM) and can use your app just fine.

from android-developer-assistant.

 avatar commented on September 28, 2024

Although I don't think that the issue is being caused by Magisk I understand what you mean and I'd understand if you want to close this issue, however please take a look at what I found while checking the logcat. This appears the first time the app gets called using the home button
Screenshot_20200214-175747~2

Try disabling MIUI Optimization in developer settings.

from android-developer-assistant.

vellrya avatar vellrya commented on September 28, 2024

In my case the reason was SmaliPatcher Magisk module for bypassing secure flag.
I disabled the module, rebooted, then the application started working correctly.

from android-developer-assistant.

Galo223344 avatar Galo223344 commented on September 28, 2024

from android-developer-assistant.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.