Modify module to work for only one app?
I'm wondering how I could modify this module to make it so that it only works for one particular app (Last App Switcher). I like the idea of Android preventing third party apps from getting my recent app details, but I also miss using LAS.
I'm thinking that in the call to XposedBridge.hookAllMethods() I could replace the third argument XC_MethodReplacement.returnConstant(true) with a instance of XC_MethodHook that checks the calling app's package name and if it matches the package I want to target (com.abhi.lastappswitcher) then it would return true, otherwise it would call the standard Android isGetTasksAllowed function normally. I've never done any Xposed development though so I'm not sure I'm going about it the right way.