Wrote sample xposed module, but logs are not generated, doesn't even function. - Xposed Framework Development

Hi,
I was planning to learn xposed development. I have created the same xposed module as that clock color change one(sample module provided). I am using redmi 3s Prime from Xiaomi. I have xposed framework installed in it and other modules are working quite good. But my module is not working and even the log file /data/data/de.robv.android.xposed.installer/log/debug.log is not present. I have attached my project here. Can anyone tell me if anything is wrong in it.

Related

[Q] Level of customization enabled without an unlocked bootloader

Hi,
I recently started getting into Android and all that comes by it, so in case I'm dead-wrong about something, please excuse me and let me know.
I'd like to ask, since I plan on buying the LG G3, and as far as I'm concerned it, as of now, does not have an unlocked bootloader,
What's the level of customization that could be achieved with root only? And what does an unlocked bootloader allows you to do, besides flashing a custom ROM.
A reference to any guide of such would be awesome.
Thanks!
An unlocked bootloader essentially means we can't flash recovery and thus can't install custom ROM's and kernels as of now. Which in terms of "level of customization" means that we can't flash ROMs based on AOSP builds like CM or PA etc.
So for now we're stuck with the stock LG ROM. But having said that, we have root and then Xposed framework. So we can then pretty much customize everything on the stock ROM. Using G3 Tweaksbox Xposed module you can theme about most of the SystemUI elements. That include statusbar icons, color, navigation bar icons and colors, Phone app, Messaging app, Settings, etc. There are tons of Xposed Modules out there to do pretty much almost anything you'll get on a custom ROM by default.
With the Tasker app you can automate almost every action, with Greenify you can hibernate automatically most apps that you run in the background & if you give it root access it can pretty much greenify useless System apps as well.
In short, while you can't *completely* customize everything and completely get rid of some of the crap that OEMs put in, with Xposed Framework & modules and with some really nifty build.prop tricks you can get pretty close to being satisfied with the customizability of your phone.
If you're new to Android though and have never tried custom ROMs you'll be amazed at the sort of stuff that even just root access can do and once we get the bootloader unlock, you'll get even more blown away with flashing new ROMs and checking them out.
Google a bit for something like "Best Root apps for Android" and you'll find that most well known Android blogs have listed the majorly used apps and what you can do with it. You'll get a pretty good idea
if4ct0r said:
An unlocked bootloader essentially means we can't flash recovery and thus can't install custom ROM's and kernels as of now. Which in terms of "level of customization" means that we can't flash ROMs based on AOSP builds like CM or PA etc.
So for now we're stuck with the stock LG ROM. But having said that, we have root and then Xposed framework. So we can then pretty much customize everything on the stock ROM. Using G3 Tweaksbox Xposed module you can theme about most of the SystemUI elements. That include statusbar icons, color, navigation bar icons and colors, Phone app, Messaging app, Settings, etc. There are tons of Xposed Modules out there to do pretty much almost anything you'll get on a custom ROM by default.
With the Tasker app you can automate almost every action, with Greenify you can hibernate automatically most apps that you run in the background & if you give it root access it can pretty much greenify useless System apps as well.
In short, while you can't *completely* customize everything and completely get rid of some of the crap that OEMs put in, with Xposed Framework & modules and with some really nifty build.prop tricks you can get pretty close to being satisfied with the customizability of your phone.
If you're new to Android though and have never tried custom ROMs you'll be amazed at the sort of stuff that even just root access can do and once we get the bootloader unlock, you'll get even more blown away with flashing new ROMs and checking them out.
Google a bit for something like "Best Root apps for Android" and you'll find that most well known Android blogs have listed the majorly used apps and what you can do with it. You'll get a pretty good idea
Click to expand...
Click to collapse
Thanks for the info!
Another question, what is exactly the xposed framework?
Ruttix said:
Thanks for the info!
Another question, what is exactly the xposed framework?
Click to expand...
Click to collapse
Taken from the Xposed website, I believe this explains it pretty nicely
Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: Multiple modules can do changes to the same part of the system or app. With modified APKs, you to decide for one. No way to combine them, unless the author builds multiple APKs with different combinations.
Click to expand...
Click to collapse
To clarify a bit more, you first root your phone, install Xposed Installer, install the Xposed framework from the Xposed installer and then download & install xposed modules. 'Modules' are essentially just like apps that you install and then enable from the Xposed Installer app. These modules hook into the Xposed framework and can do stuff like root apps can - UI modifications, extending capabilities of default apps like Phone, Messaging, etc.
http://repo.xposed.info/module/de.robv.android.xposed.installer
You can find the Xposed XDA subforum here - http://forum.xda-developers.com/xposed
Ruttix said:
Thanks for the info!
Another question, what is exactly the xposed framework?
Click to expand...
Click to collapse
xposed is an app that exposes the core of your operating system (it exposes them to modules made for xposed) to allow modifications that you normally can't do without custom roms.
if4ct0r said:
Taken from the Xposed website, I believe this explains it pretty nicely
To clarify a bit more, you first root your phone, install Xposed Installer, install the Xposed framework from the Xposed installer and then download & install xposed modules. 'Modules' are essentially just like apps that you install and then enable from the Xposed Installer app. These modules hook into the Xposed framework and can do stuff like root apps can - UI modifications, extending capabilities of default apps like Phone, Messaging, etc.
http://repo.xposed.info/module/de.robv.android.xposed.installer
You can find the Xposed XDA subforum here - http://forum.xda-developers.com/xposed
Click to expand...
Click to collapse
Thanks so much for the extra information. It does, however, leads me to a follow up question.
There's a tool posted here on the forum, called TweakBox, I think. My question is, are the customizations available there a derivative from the xposed framework?
Ruttix said:
Thanks so much for the extra information. It does, however, leads me to a follow up question.
There's a tool posted here on the forum, called TweakBox, I think. My question is, are the customizations available there a derivative from the xposed framework?
Click to expand...
Click to collapse
Yes. The G3 Tweaksbox is an Xposed Module like I mentioned. You can install the app from the play store or get the apk from the thread and install it manually. You'll need to have Xposed Framework installed before that though.
if4ct0r said:
Yes. The G3 Tweaksbox is an Xposed Module like I mentioned. You can install the app from the play store or get the apk from the thread and install it manually. You'll need to have Xposed Framework installed before that though.
Click to expand...
Click to collapse
One thing I can't seem to figure out here, those modules, do they come with the framework, or does it supplement tools for developing them?
Ruttix said:
One thing I can't seem to figure out here, those modules, do they come with the framework, or does it supplement tools for developing them?
Click to expand...
Click to collapse
The modules can be obtained independently from XDA threads or from the playstore. These are essentially Android apps which use the Xposed modules APIs to achieve there purpose.
Think of the Xposed Framework as a layer that allows apps(referred as modules) to do stuff by exposing some methods that they can use. (I'm trying my best to explain here without being too technical)
What you need to do is to install the Xposed Installer app, open the app and install the xposed framework from it. That will deploy the framework on the OS. You can then install the modules either by finding them on XDA or again by opening the Xposed installer app and going into the downloads section (you can access a whole repository of modules from thr Xposed installer itself. That being said, it's not the only place to find these modules.)
Once you download the modules and install them like you would any APK, you'll need to enable the module(again from the Xposed Installer app) and reboot your phone. The module would now be active and can be used like any Android app.
The best way to learn is to experiment. ☺ Xposed is quite safe and will not brick your device unless you do something really stupid.
if4ct0r said:
The modules can be obtained independently from XDA threads or from the playstore. These are essentially Android apps which use the Xposed modules APIs to achieve there purpose.
Think of the Xposed Framework as a layer that allows apps(referred as modules) to do stuff by exposing some methods that they can use. (I'm trying my best to explain here without being too technical)
What you need to do is to install the Xposed Installer app, open the app and install the xposed framework from it. That will deploy the framework on the OS. You can then install the modules either by finding them on XDA or again by opening the Xposed installer app and going into the downloads section (you can access a whole repository of modules from thr Xposed installer itself. That being said, it's not the only place to find these modules.)
Once you download the modules and install them like you would any APK, you'll need to enable the module(again from the Xposed Installer app) and reboot your phone. The module would now be active and can be used like any Android app.
The best way to learn is to experiment. ☺ Xposed is quite safe and will not brick your device unless you do something really stupid.
Click to expand...
Click to collapse
I actually do have some experience with linux and some with programming.. So basically the framework allows you to use APIs you otherwise wouldn't be able to use?
Ruttix said:
I actually do have some experience with linux and some with programming.. So basically the framework allows you to use APIs you otherwise wouldn't be able to use?
Click to expand...
Click to collapse
You meaning the module developer. Yes. Check out the Xposed XDA subforum, there used to be a module developer guide in there somewhere.
Say, is this framework for all android devices?
Or are these modules specific for each device?
The Xposed framework is generic. AFAIK it works on all rooted android phones.

redirect directly to the "Modules" page of Xposed Installer

Hi !
I'm trying to make my module detect if it's not enabled, and if not; redirect to the Modules activity of the xposed installer. (Like amplify; haha) however Xposed installer don't seem to have an activity for that and i think I've not enough skills to see it myself :c
Thanks in advance !
EDIT : I found a workaround,but there is no real activity for it.

Info - Call method

Hi, i am able to write java application for android.
I never created xposed module. I read tutorial.
I understood that xposed allow to two methods for every method called in a generic application.
One before and one after. But this allow only to intercept called normally.
I want to know if with xposed i can write a module that can call directly an onpressed method under systemui.
Other example: official tutorial say how to change clock color with hook for update clock method.
But, it is possible to call update clock method 2 or 3 times at minute from a xposed module?
ultrasound1991 said:
Hi, i am able to write java application for android.
I never created xposed module. I read tutorial.
I understood that xposed allow to two methods for every method called in a generic application.
One before and one after. But this allow only to intercept called normally.
I want to know if with xposed i can write a module that can call directly an onpressed method under systemui.
Other example: official tutorial say how to change clock color with hook for update clock method.
But, it is possible to call update clock method 2 or 3 times at minute from a xposed module?
Click to expand...
Click to collapse
Of course it is. Check Xposed API documentation, especially XposedHelpers class.
I want to develope following feature:
Change font_scale system with intent without reboot system.
I must evaluate how to develop it.
1) By creating Xposed Module
2) By modding Settings.apk

modules

Hi there, I rooted my phone and need someone to tell me about good modules and is there a module or something to modify white balance of screen?
And what is the module name to.get one plus recent apps overview?
Thanks in advance
To modify the screen variables you need another kernel, so you can find a KCAL supported kernel in ROMs and kernels section of this forum and then flash it onto your phone. To change the recent apps overview to OnePlus's just follow this thread: https://www.xda-developers.com/oneplus-launcher-recent-apps-interface-android-pie/
I also suggest using Pix3lify module which makes the phone have rounded corners and pixel sounds etc. I also use EmojiOne module on Magisk too if you don't like stock emojis. Also YouTube Vanced module is a must have whether you have Magisk or not.

10t ViPER4Android

anyone got ViPER4Android working on 10t? like someone said before, we are not fully rooted... we cant even modify the system files... i try to change something in build.prop and it corrupted the file and caused bootloop lol
Half working. Using Magisk module
I believe it still have a problem of files ownership/acess to sdcard, as cannot read presets imported and copied in the proper site...
But running
[MOD] viper4android + MIUI 12 + Magisk 21.1
Default viper4android Magisk module doesn't work for me with SELinux enforcing. "Brute force" fix is to set SELinux to permissive, but I don't like this approach. Viper4android module should patch selinux policies during installation, but it...
forum.xda-developers.com
Interested in any discover with this
Regarss

Categories

Resources