Injecting an Xposed into an APK file - Xposed General

I found this Xposed module (https://github.com/Frazew/VirtualSensor/releases/) which can emulate a gyroscope using data from the accelerometer and compass.The problem is that I cannot install Xposed / root since it will break apps which use CTS like Android Pay (systemless won't work too).So I need to inject the module into the APK by editing the code so it calls the modified modules.
Is there any tool like this or can you create one

Does anyone know how to edit tags for a post on XDA ?

Related

[Q] Remove low battery sound and popup?

Done a couple searches, all I've found is wanam isn't working on my note 4. Any other solutions?
Did you install the app Xposed Installer? You need that app for Wanam Xposed to work properly. Once you install Xposed Installer make sure you download the framework then go into modules and check Wanam.

Pre-install Xposed in a custom ROM ?

I am customizing a Amlogic TV Box ROM and I would like to install Xposed as well as a home-made module in it. I can't edit the Java source code directly because I don't have access to it, so the only solution I have is editing smali code (no thx) and Xposed.
I have access to the system partition content of the ROM, and nothing much more. My module will be installed as a system app, but I can't find a way to have the Xposed framework pre-installed. I tried to simply extract the ZIP in the system partition folder, but it doesn't work : the Xposed Installer says that the Framework is installed but not active. If I install the Framework using the Installer afterwards, it works fine. What am I doing wrong ? Is there some procedure to follow after unpacking the files ? Is it even possible to have it packaged with the system and not installed ?
I still need to enable the module once the framework is installed, how may I do that ? The modules list is located into /data, which is not packaged with the ROM (and is not factory-reset proof) what would be the most elegant way of having the module enabled by default ? I thought of writing to the modules list file at each boot with the Init.rc but I think there's a better solution.
Thanks for the help
I think what's theoretically happening is:
Imagine a PC - you install an app via the normal wizard, goes through and installs registry keys etc. which stores all file paths etc. and the app opens after the wizard finishes.
What's happening here is you're just taking the files and placing them onto the PC yourself, in this case, your box.
Remember this is a SYSTEM app, not something you can drag and drop on.
You haven't flashed anything in order for the System to know Xposed is installed, for it to point to this, point to that.
You're essentially running a broken, portable Xposed which'll say installed only because you placed it there.
I'd say you have to probably play about with that ROM on somewhere you can install Xposed via custom recovery then play about with nandroid backups and restore them on your box?
That's my only assumption. This is a difficult one.
That was my guess too, but I looked at the flashing script that Xposed Installer executes and I feel like it only checks for the version/api/abi and copies files, creating backups for uninstallation. All the files are present in the system partition in my packaged ROM files so I thought that they would just work out of the box if I copied them. Well, it doesn't, I must be missing something that the installer does.
In the meantime I've put a dirty installer in my launcher : it checks for the xposed.prop file each time it's opened (uuugh) and if it's not installed it'll just run the flash script and reboot. That's not elegant but it works.

[Request] Module for disable Playstore Selfupdate

Hi,
I'm looking for disable Playstore Selfupdate. I tried old method by disable in Playstore Smali but it doesn't working anymore on Playstore 8.x and change name code version to a very high one in apktool.yml breaks Google Play services because of Playstore signature check...
Does someone have an idea how to Disable by a Magisk module ?
If i'm not mistaken you can do it with any file manager that have root privilege...
Just go to root/data/app and look for com.android.vending-1...if you found it then make another folder called com.android.vending-2 and gave the same permissions the original folder...that should prevent google playstore to automatically update itself....
You can try this and see if its working...
Sent from my A0001 using Tapatalk

How to create a way to "route" files from /vendor?

Hello, I have a rooted smartwatch, Ticwatch Pro 4G, with a custom ROM. It has a NFC module, which I wanted to use with app called "NFC Card Emulator". It works on my phone, but NFC module on it broke, so I am forced to use it on my watch. That app tries to edit file
Code:
/vendor/etc/libnfc-hal-st.conf
but it has no RW permissions, app suggest reboot but it doesn't work. I cannot also manually mount /vendor.
So, here is where I need help:
I have no idea if this is possible, but how can I create a module, that will allow that app to edit that file? Is there a way that I can "route" it or something to a place where it can be edited by the app?
I have no experience with making magisk modules, or android programming.

[MODULE] [TEMPLATE] Custom App Systemizer

Since Magisk won't let me install terminal systemizer, i decided to make my own module template that'll install any apk of your choice as a system app. Instructions to customize it are in the zip file (i made them as easy as possible lol)
Just let me know if y'all have any problems with the module and I'll get back to you ASAP

Categories

Resources