Supporting multiple app versions - Xposed General

My module has many callMethod calls, but there are many minor changes between versions of the app that I'm modding. Methods have either been moved to different classes, parameters have changed or methods do not exist in older versions of the app which causes NoSuchMethodErrors and the app crashes. At the moment I'm using nested try...catch blocks which attempts to call the method in different ways (different class/parameters) but this isn't a great solution and is messy.
What do you guys think is the best solution?
Sent from my Nexus 5 using XDA Free mobile app

Related

About 'kernal'

I've been I'm this forum long enough to know a lot about flashing and stuff but ppl have been saying stuff like 1.4 kernal or 1.2 and I have no idea what kernal is and what it does.. and I couldn't find any topic on it... so can anyone tell me what it is and what it does
Sent from my SAMSUNG-SGH-I897 using XDA App
This is my understanding but I may be wrong or over simplifying. The rom is your house, modem is your phone line/tv/internet, your kernel is the circuit breaker.
It controls the filing system and power allowances, I believe. Once again someone may read this and mock me
Sent from my SGH-I897 using XDA App
That sounds about right
From Wikipedia, the free encyclopedia
Jump to: navigation, search
A kernel connects the application software to the hardware of a computer.
In computing, the kernel is the central component of most computer operating systems; it is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).[1] Usually as a basic component of an operating system, a kernel can provide the lowest-level abstraction layer for the resources (especially processors and I/O devices) that application software must control to perform its function. It typically makes these facilities available to application processes through inter-process communication mechanisms and system calls.
Operating system tasks are done differently by different kernels, depending on their design and implementation. While monolithic kernels execute all the operating system code in the same address space to increase the performance of the system, microkernels run most of the operating system services in user space as servers, aiming to improve maintainability and modularity of the operating system.[2] A range of possibilities exists between these two extremes.
Thanks for the defenition.. but I still don't get what changes if you use a different kernal..
Sent from my SAMSUNG-SGH-I897 using XDA App
There are different kernels....more advanced ones are used to overclock your cpu....or reduce voltage....more basic ones allow you to run the voodoo lag fix which does not work with the stock kernel.
Currently in setting-about phone-kernal
I have the 2.6.32.9 setironkernal_1200_ver#147
Is that a good one?
Sent from my SAMSUNG-SGH-I897 using XDA App
bluemoon1221 said:
Currently in setting-about phone-kernal
I have the 2.6.32.9 setironkernal_1200_ver#147
Is that a good one?
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
What rom are you on
Do you know that you are overclocked, or if your lagfix is enabled
Sent from my SGH-I897 using XDA App
I'm on the assonance 5.2
Sent from my SAMSUNG-SGH-I897 using XDA App
The kernel is good as is the rom. I do not know if the lagfix is enabled by default
Sent from my SGH-I897 using XDA App
Thanks for the info. Now I get a little bit of what kernal is!
Sent from my SAMSUNG-SGH-I897 using XDA App
mcord11758 said:
This is my understanding but I may be wrong or over simplifying. The rom is your house, modem is your phone line/tv/internet, your kernel is the circuit breaker.
It controls the filing system and power allowances, I believe. Once again someone may read this and mock me
Sent from my SGH-I897 using XDA App
Click to expand...
Click to collapse
+1 to the way u put it.

User Agent logging tools for mobile devices

Hello fellow xda users!
Does anyone of you know a tool to log the ua strings AND to produce a list of the different devices?
It should produce a table with the models and count their log ins.
The tool should be updated regularly and it will be used in an ebanking environment.
So if you know some tools, please let me know!
Thanks in andvance
Sent from my Galaxy Nexus using xda app-developers app
Try this...
http://www.zytrax.com/tech/web/mobile_ids.html
One of the most powerful and complete "tools" (IIRR you're searching a script) is WURFL, and a more light one is Mobile_Detect.

I have some doubts about compatibility with flashable mods..

As the razr i has an x86 cpu, i read that some flashable mods didn't work on it. As an example i believe crossbreeder and viper audio aren't compatible with it as well as some apps like a nds emulator that isn't supported by this phone as well.
The question may be a little silly, but how do i know what apps are compatible and the ones who aren't ? Or i just have to ask to the developer?
When you try to open it, if it is a known app or it's supported or the dev usually put a custom message in the app saying that it is not compatible. When it's an unknown app it's probably incompatible.
Sent from my XT890 using XDA Premium 4 mobile app

[Q] What are the bennefits of rooting?

With nothing developed for this version at this time, what does rooting bring to the Note 3
Rooting allows you to make the phone tolerable to look at. You can install Xpsosed framework and Wannam to clean up the notification shade. App settings can change the DPI of different apps. There are plenty of reasons to root if you're on the fence about it.
Sent from my Nexus 4 using XDA Premium 4 mobile app
Also allows you to fully delete any 'bloatware' apps you do not want or use versus just disabling them and the files are still left on the phone.
Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
tweet614 said:
With nothing developed for this version at this time, what does rooting bring to the Note 3
Click to expand...
Click to collapse
AdAway.

[Q] Tasker with Nexus 6

Wondered if anyone else has problems getting some of the tasked stuff to work with lolipop. I personally can't get secure settings plugin to work now with the pattern lock disable and re enable. any ideas?
Same issue. It'll "fix" itself to the correct seeing after a reboot. Haven't worked on it to figure out why though.
Sent from my Nexus 6 using XDA Free mobile app
http://www.reddit.com/r/tasker/comments/2m8j0n/lollipop_breaks_secure_settings_system_helper/
Found this... Hasn't helped me yet but perhaps it'll work for you?
Sent from my Nexus 6 using XDA Free mobile app
I appreciate it but I think I will wait on a legit fix from the devs. I guess that's the price you pay when you have the newest of the new.
Sent from my Nexus 6 using Tapatalk
No worries. It seems like the device admin isn't sticking (as mentioned in one of the links) When I toggle it then it toggles the pin. Until it's officially fixed I've resorted to using location trusted places (hope they do a Wi-Fi trusted location soon).
Sent from my Nexus 6 using XDA Free mobile app
I actually removed some of the deeper system level tasks I've been using with securesettings in the past on my N6. I assumed many of them wouldn't work with the new OS and didn't feel like mucking around with them. If possible, the devs will figure it out eventually.
Thread revival!
Hey guys, I'm looking into buying a Nexus 6 and I was wondering if all of the tasker problems have been resolved by now?
Phionex25 said:
Thread revival!
Hey guys, I'm looking into buying a Nexus 6 and I was wondering if all of the tasker problems have been resolved by now?
Click to expand...
Click to collapse
I've not had any tasker issues at all, and I am very profile heavy.
danarama said:
I've not had any tasker issues at all, and I am very profile heavy.
Click to expand...
Click to collapse
Awesome. Thanks for the quick reply!
Anybody know why Tasker can't turn on WIFI tether through either the system or secure settings? I've tried this now on three different ROMs.
So I found a workaround---- visit the Tasker Groups at this post here.

Categories

Resources