Comments (3)
Hey @GeorgeKitsopoulos , thank you for posting this issue.
Based on the error:
Injecting to another application requires INJECT_EVENTS permission
I found this issue on stack overflow: https://stackoverflow.com/questions/22163424/android-java-lang-securityexception-injecting-to-another-application-requires
One possible cause/solution is https://stackoverflow.com/a/32549724/1705096:
It's because your device is locked/any other open dialog box is open /anything preventing the test's ability to click on the button. Eg. if the phone is locked-when the test tries to click on the button it can't because the device is locked.
I was having troubles on the emulator because it always displayed "launcher has crashed". So whenever it tried to click the button, it couldn't because the alert dialog box was open.
In short, make sure your screen is unlocked and no message boxes are interfering with the test and it's ability to click on a button.
If the phone is locked with code, it won't work.
Also, please try with the latest code.
from bot.
I eventually found a solution but not in my primary device. Firstly I redownloaded the program, removed pin password from my device and triple checked if the required permisions were given. I checked the links you posted and finally run the program again. Unfortunately it didn't work. In the possible solution you mentioned, from what I understood the simplest solution was to root your device and modify a thing or two. However my daily driver (primary device) is somewhat newly purchased and I do not wish to void the warranty... just yet at least (although I really want to get rid of the Google framework). I believe that the problem lies in the way the miui devices are made, because of the strict and aggresive way miui works. So I simply reflashed lineage os on an old device of mine and it just worked without trouble. I am leaving the decision to close or not the thread to you since it might not actually be considered solved, due to the fact that the main device has the problem.
from bot.
Hey @GeorgeKitsopoulos , thanks for sharing how you managed to workaround it. It should not require rooting the phone in order the bot to work. I would need more information like the full log (crash .zip folder) to understand better what's going on.
Please, feel free to re-open the issue with full logs if you manage to reproduce it with the latest version.
Thank you!
from bot.
Related Issues (20)
- Comment Action Not Working For Feed Or Any Other Job HOT 1
- ERROR | Error type 3. Error: Activity class {AQH7N18104004686/com.instagram.mainactivity.MainActivity} does not exist. HOT 1
- Comment Action Not Working Because of Redesign on Instagram HOT 2
- Bot can't swich between profile in the same phone
- follower removal not working HOT 1
- how to share history_filters_users.json between multiple accounts HOT 1
- Recent tab not working! HOT 1
- Linux Android Emulator HOT 1
- allow-untested-ig-version not working HOT 4
- I TRY TO INSTALL AND CONNECT ADB DOESNT WORKS HOT 3
- Have to press ENTER for each session so cannot leave unattended HOT 2
- Emptylist HOT 1
- bot crashes after about 8 minoutes HOT 1
- Hashtag Likers not working anymore HOT 1
- Comment and PM not working. HOT 2
- Error type 3. Error: Activity class {com.instagram.android/com.instagram.mainactivity.MainActivity} does not exist. HOT 3
- gramaddict 3.26 error HOT 4
- Skip enter for new version. HOT 1
- [Raspberry] raise InvalidVersion(f"Invalid version: '{version}'")packaging.version.InvalidVersion: HOT 2
- confing.yml HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bot.