Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,404 Members 48,254 Now Online
XDA Developers Android and Mobile Development Forum

Xposed - Legacy thread. Don't panic, Xposed is still here.

Tip us?
 
egingell
Old
#9761  
egingell's Avatar
Senior Member
Thanks Meter 1,398
Posts: 3,525
Join Date: Apr 2012

 
DONATE TO ME
Quote:
Originally Posted by yanleites View Post
I am afraid!
Why? If you already have Xposed installed and working, at worst, you'll be right back to dalvik.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
The Following User Says Thank You to egingell For This Useful Post: [ Click to Expand ]
 
iphone4life4
Old
(Last edited by iphone4life4; 18th March 2014 at 06:23 PM.)
#9762  
iphone4life4's Avatar
Senior Member
Thanks Meter 75
Posts: 143
Join Date: Jul 2013
Question Get constructor for class.

How can you get the parms of a constructor
Code:
package com.manvir;

import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;
import android.view.View;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

public class App implements IXposedHookLoadPackage  {

	@Override
	public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
		if (!lpparam.packageName.equals("com.android.systemui"))
            return;
		
		
		findAndHookMethod("com.android.view.View", lpparam.classLoader, "View", new XC_MethodHook() {
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                // this will be called before the clock was updated by the original method
            }
            @Override
            protected void afterHookedMethod(MethodHookParam param) throws Throwable {
                XposedBridge.log("I ran after.");
            }
		});
	}
	
}{
That code does not work.
 
egingell
Old
#9763  
egingell's Avatar
Senior Member
Thanks Meter 1,398
Posts: 3,525
Join Date: Apr 2012

 
DONATE TO ME
Quote:
Originally Posted by iphone4life4 View Post
How can you get the parms of a constructor
Code:
package com.manvir;

import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;
import android.view.View;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

public class App implements IXposedHookLoadPackage  {

@Override
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
if (!lpparam.packageName.equals("com.android.systemui"))
            return;


findAndHookMethod("com.android.view.View", lpparam.classLoader, "View", new XC_MethodHook() {
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                // this will be called before the clock was updated by the original method
            }
            @Override
            protected void afterHookedMethod(MethodHookParam param) throws Throwable {
                XposedBridge.log("I ran after.");
            }
});
}

}{
That code does not work.
XposedBridge.hookAllConstructors()

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
 
murasaki.bb
Old
(Last edited by murasaki.bb; 18th March 2014 at 08:15 PM.)
#9764  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Feb 2011
Tried the latest beta. Still causing an bootloop on MTK6582. The keypress safe metod is great.

Edit : If i disable resource hook, it boots, but there is no point in doing that, because most of my modules wont`t work that way...
 
xodeus
Old
(Last edited by xodeus; 18th March 2014 at 09:08 PM.)
#9765  
xodeus's Avatar
Senior Member
Thanks Meter 46
Posts: 438
Join Date: Mar 2010
Location: Fredericia
Edit: working with latest beta
I can't the framework to start.

Here's a log
Code:
-----------------
18/03/2014 19.04.35 UTC
Loading Xposed v42 (for Zygote)...
Errors during Xposed initialization
java.lang.NoSuchMethodError: android.app.ResourcesManager#getTopLevelResources(java.lang.String,int,android.content.res.Configuration,android.content.res.CompatibilityInfo,android.os.IBinder)#exact
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:208)
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:155)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:167)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:179)
at de.robv.android.xposed.XposedBridge.initXbridgeZygote(XposedBridge.java:282)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:111)
at dalvik.system.NativeStart.main(Native Method)
-----------------
18/03/2014 19.04.57 UTC
Loading Xposed v42 (for com.android.commands.am.Am)...
-----------------
18/03/2014 19.14.15 UTC
Loading Xposed v42 (for Zygote)...
Errors during Xposed initialization
java.lang.NoSuchMethodError: android.app.ResourcesManager#getTopLevelResources(java.lang.String,int,android.content.res.Configuration,android.content.res.CompatibilityInfo,android.os.IBinder)#exact
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:208)
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:155)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:167)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:179)
at de.robv.android.xposed.XposedBridge.initXbridgeZygote(XposedBridge.java:282)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:111)
at dalvik.system.NativeStart.main(Native Method)
-----------------
18/03/2014 19.14.37 UTC
Loading Xposed v42 (for com.android.commands.am.Am)...
-----------------
18/03/2014 19.27.08 UTC
Loading Xposed v42 (for Zygote)...
Errors during Xposed initialization
java.lang.NoSuchMethodError: android.app.ResourcesManager#getTopLevelResources(java.lang.String,int,android.content.res.Configuration,android.content.res.CompatibilityInfo,android.os.IBinder)#exact
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:208)
at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:155)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:167)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:179)
at de.robv.android.xposed.XposedBridge.initXbridgeZygote(XposedBridge.java:282)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:111)
at dalvik.system.NativeStart.main(Native Method)
-----------------
18/03/2014 19.27.29 UTC
Loading Xposed v42 (for com.android.commands.am.Am)...
Loading modules from /data/app/hk.kennethso168.xposed.advancedrebootmenu-1.apk
  Loading class hk.kennethso168.xposed.advancedrebootmenu.Main
Loading modules from /data/app/com.mohammadag.xposedinstagramdownloader-1.apk
  Loading class com.mohammadag.xposedinstagramdownloader.InstagramDownloader
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
  Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/com.ceco.kitkat.gravitybox-1.apk
  Loading class com.ceco.kitkat.gravitybox.GravityBox
LG G2
CloudyPro II
Android 4.4.2

Edit: working with latest beta.



Sendt fra min LG-D802 med Tapatalk
 
egingell
Old
#9766  
egingell's Avatar
Senior Member
Thanks Meter 1,398
Posts: 3,525
Join Date: Apr 2012

 
DONATE TO ME
Quote:
Originally Posted by murasaki.bb View Post
Tried the latest beta. Still causing an bootloop on MTK6582. The keypress safe metod is great.

Edit : If i disable resource hook, it boots, but there is no point in doing that, because most of my modules wont`t work that way...
Then it's one of your modules, not the framework.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
* Phones: Samsung SGSII Epic 4G Touch; SGSIV
* ROM: Rooted Stock JB 4.1.2; Rooted Stock JB 4.2.2
* Kernel: Stock JB 4.1.2; Stock JB 4.2.2
* Enabled non-stock features: init.d, boot animations, boot splash; init.d, boot animations
* DPI: 200; 400



* UnToaster - Block Toasts by regular expressions.
* Downloads2SD - Redirect downloads.
* [TIPS][SCRIPTS][ROOT]egingell's scripts.
* My Droid Blog
* DropBox (2-18GB free).
The Following User Says Thank You to egingell For This Useful Post: [ Click to Expand ]
 
murasaki.bb
Old
#9767  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Feb 2011
Quote:
Originally Posted by egingell View Post
Then it's one of your modules, not the framework.
Ok. I just did a full wipe and installed just the xposed framewor, no modules. Still gives me a boot loop. Any idea of what should i try next?
 
Dovidhalevi
Old
#9768  
Senior Member
Thanks Meter 987
Posts: 2,039
Join Date: Jun 2012
Those getting bootloops in the beta -- does the hardware key escape method work?

Cannot try this since I am experimenting with Omni. No adb in bootloop and nigh-impossible to get back to recovery.
 
rovo89
Old
#9769  
rovo89's Avatar
Senior Recognized Developer - OP
Thanks Meter 14,105
Posts: 2,367
Join Date: Jan 2012
Quote:
Originally Posted by iphone4life4 View Post
Thanks, but I tried this and in logcat i cant see the log "caption_edit_text_vanilla_cap DONEEEEE" any where leading me to believe that the callback is not being called. So what else could I possibly do?

Wouldn't something like this work?
Code:
resparam.res.hookLayout("com.snapchat.android", "EditText", "caption_edit_text_vanilla_cap", new XC_LayoutInflated() {
Nah, that wouldn't work, you should get an error in the log with this because it's a "layout" resource. I guess I will have to try it myself. Where can I see this text field? I haven't used Snapchat before.

Quote:
Originally Posted by iamxeph View Post
A non-root installation would be great.
Well, the question is: Is there really a use-case for this? More than just a handful of people? I expect that if you have a custom recovery, you will usually also have root... I don't want to build this just because it might work.

Quote:
Originally Posted by dixan43 View Post
help, when i install xposed i get this error, "mksh directory not found":banghead::banghead:
Did you try the beta version? Can you post a screenshot of the error so I can see the context?

Quote:
Originally Posted by perpe View Post
I didn't saw more about xposed in the log, that's why I added only the part that belongs to xposed. The log was with 2.5 beta 2. The log with 2.4.1 contains more about xposed. I added both into the archive. On boot up adb starts twice, the logs tagged with first are from the frist adb start, they shouldn't be of interest, nevertheless I added them, too.
The archive contains also the part of the logs, which are displayed within the app. There shouldn't be something different, but may help you.

Many thanks.
Thanks. Looking back, I found this: http://forum.xda-developers.com/show...3#post46440353
Could you check if version 2.3.1 works? I made some bigger changes between 2.3.1 and 2.4. And does it work if you disable resource hooks in version 2.5? For analysis, the /system/lib/libdvm.so file could be helpful, could you attach it? Thanks again.
I also created a Github issue to keep track of it: https://github.com/rovo89/Xposed/issues/6

Quote:
Originally Posted by exodius48 View Post
@rovo89 I install xposed 2.5 beta 2, but it cause rare restart on my device. My device always restart when open xposed app via app drawer, I use CM11.0 kitkat 4.4.2 dalvik runtime.
Revert back v2.4.1 , working fine.
So it restarts right when you open the app, every time? Any active modules? Could you try it after uninstalling the framework? And is that a hard reboot or just a software restart?

Quote:
Originally Posted by Pkt_Lnt View Post
A few pages back, advanced search for "rovo89" and "beta".
Or just look at the first post.

Quote:
Originally Posted by murasaki.bb View Post
Tried the latest beta. Still causing an bootloop on MTK6582. The keypress safe metod is great.

Edit : If i disable resource hook, it boots, but there is no point in doing that, because most of my modules wont`t work that way...
That's actually helpful information. @Tungstwenty will be glad to hear that the safemode works. And it's good to know that the issue is related to resources. Could you do two things please? a) Try if it works on 2.3.1. b) Send me the content of /system/framework/ (if there are no *.odex files, then framework*.jar should be enough).

Quote:
Originally Posted by yanleites View Post
Guys, on Russian android sites people are writing that the new version works with ART!
any body tried it on xda?
It took me several dozen hours to get a super-experimental, barely tested and far-from-a-release version booting. I think I would have noticed if I accidently built support for ART into 2.5.
Tired of updating your mod for every new ROM release?
You want give users the possibility to combine different mods without creating tons of different files for all possible combinations?
Then have a look at my Xposed framework - modifications without APK changes!
The Following 13 Users Say Thank You to rovo89 For This Useful Post: [ Click to Expand ]
 
iphone4life4
Old
#9770  
iphone4life4's Avatar
Senior Member
Thanks Meter 75
Posts: 143
Join Date: Jul 2013
Quote:
Originally Posted by rovo89 View Post
Nah, that wouldn't work, you should get an error in the log with this because it's a "layout" resource. I guess I will have to try it myself. Where can I see this text field? I haven't used Snapchat before.
1. Install SnapChat: https://play.google.com/store/apps/d...apchat.android
2. Take a pic, press the round button at the bottom
3. Then a preview of the pic will show up, here you can edit the image and do other things with it.
4. You can add a caption by clicking the preview image anywhere on the screen.
5. This will bring up a text view witch lets you add a caption <- The text view is what I am trying to get a reference too so I can do
things like change the color of the text.

I have already decompiled the resources and layouts already. I have attached them for you if you want to take a look.
The layout I am trying to access is located at zipfile\res\layout\caption_edit_text_vanilla_cap.x ml
SnapChat resource attachment "res.zip"

Also you can find my Eclipse project as a attachment "test.zip"
Attached Files
File Type: zip test.zip - [Click for QR Code] (1.48 MB, 5 views)
File Type: zip res.zip - [Click for QR Code] (4.22 MB, 4 views)

Tags
don't ask questions about modules here!!!, framework, xposed
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes