[Xposed for Android 5.1] Make ~95% of modules work. topic

SOCIALIZE IT ⇨


Note: This is a temporary solution until someone fixes this in Xposed. Also I use my module "SnapColors" as a example throughout this post but this fix should for work any module. I've tested it with other modules and it works.

TL;DR Version:
I found a temporary solution of getting modules to work on 5.1 for modules that worked on 5.0 but don't work on 5.1.

Non-TL;DR Version: Backstory and how I found his temporary solution
So a couple days ago I decided to start working on bring my module(s) to Xposed running on 5.1. In doing so what I noticed with a lot of the modules they seem to crash the app without throwing any kind of error whatsoever. Take for example one of my modules "SnapColors", if SnapColors was enabled in Xposed Installer SnapChat would always crash without throwing any error it wouldn't even say anything along the lines of "process has stopped unexpectedly" it would just close the app. So because of this behavior it led me to believe something was wrong with Xposed and not with my module(s). So I went thought what could be broken in Xposed thats causing this because 5.0 is just one up to 5.1 so the changes couldn't be that big. I went though the things that could cause this and came across "dalvik-cache" I remember reading somewhere Xposed makes some changes to the cache file (.dex) thats created during the creation of dalvik-cache files. So then I thought what if in 5.1 a small change was made to the process of making the dalvik cache files and thats what is causing the problem. So I decided to delete the dalvik cache file for SnapChat which is what my module was hooking into, then I tried opening SnapChat again but it crashed so I tried opening it again and what do you know it opened without any problems with my module fully working without any problems. The fix was kind of a guess too.

The fix/Solution
Note: If you reboot your device you have to do the fix again. Also you are deleting the dalvik cache so you won't benefit from it any more for the app(s) you delete it for. Unless you reboot then everything gets reverted.
What you have to do is delete the dalvik cache file for the app the module is for.
Example: SnapColors a module for SnapChat, so we have to delete the dalvik cache file for SnapChat.

What you need:
1) A file manager with root access, or terminal knowledge.
2) Package name example for SnapChat its "com.snapchat.android". How to get the package name look below theres a how to.
Steps for deleting the cache file:
Method 1) Via terminal command:

Code:


cd /data/dalvik-cache && rm data@app@"package name here without the quotes"*


Example command for SnapChat would be don't forget the "*" at the end:

Code:


cd /data/dalvik-cache && rm data@app@com.snapchat.android*


Method 2) Via file manager: Navigate to /data/dalvik-cache/ look for a file starting with the name data@app@"package name here without the quotes".apk delete this file and thats it.

Getting package name
Via terminal command:

Code:


ls /data/data/ | grep "the app name here without quotes"


Via app: Install https://play.google.com/store/apps/d...ctricsheep.asi
Open it-> Apps tab-> Tap the app-> look for "Package name:" should be the first thing.




xda-developers


  1. Modules to disable Power Button? topic
  2. [Q] xposed and modules not working on my device topic
  3. [Xposed for Android 5.1] Make ~95% of modules work. topic
  4. [Q] Xposed modules on stock-based LProms? topic
  5. AT&T OC3 modules topic
  6. Xposed and Modules Disable from Recovery topic
  7. {Discussion} Xposed Modules For 5.1 Lolipop topic
  8. [Q] Snapchat won't work on 3G topic
  9. Turn-by-turn mode doesn't work topic
  10. Tap and Go doesn't work right topic
  11. will 4g work in uk topic
  12. 128GB SD Cards known to work topic
  13. [Q] root "doesn't" work topic
  14. [Q] Will a Hong Kong Data Sim work? topic
  15. Does "Ok google" command work when screen off on M9? topic
  16. [Q] Questions about setting up the Nexus 6 to work completely by voice operation. topic
  17. Can a recovery version (mode) work with different Android versions? topic
  18. [Q] xposed for cm12 topic
  19. Xposed compatibility with ART ? topic
  20. TWRP and Xposed... topic

0 commentaires:

Enregistrer un commentaire