Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

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

OP rovo89

18th March 2014, 06:49 PM   |  #9761  
egingell's Avatar
Senior Member
Thanks Meter: 1,459
 
3,693 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by yanleites

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
The Following User Says Thank You to egingell For This Useful Post: [ View ]
18th March 2014, 07:18 PM   |  #9762  
Programming4life's Avatar
Senior Member
Thanks Meter: 81
 
161 posts
Join Date:Joined: Jul 2013
Donate to Me
More
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.
Last edited by Programming4life; 18th March 2014 at 07:23 PM.
18th March 2014, 07:40 PM   |  #9763  
egingell's Avatar
Senior Member
Thanks Meter: 1,459
 
3,693 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by iphone4life4

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
18th March 2014, 09:01 PM   |  #9764  
Junior Member
Thanks Meter: 0
 
8 posts
Join Date:Joined: 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...
Last edited by murasaki.bb; 18th March 2014 at 09:15 PM.
18th March 2014, 09:42 PM   |  #9765  
xodeus's Avatar
Senior Member
Flag Fredericia
Thanks Meter: 48
 
454 posts
Join Date:Joined: Mar 2010
More
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
Last edited by xodeus; 18th March 2014 at 10:08 PM.
18th March 2014, 09:45 PM   |  #9766  
egingell's Avatar
Senior Member
Thanks Meter: 1,459
 
3,693 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by murasaki.bb

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
The Following User Says Thank You to egingell For This Useful Post: [ View ]
18th March 2014, 10:06 PM   |  #9767  
Junior Member
Thanks Meter: 0
 
8 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by egingell

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?
18th March 2014, 11:00 PM   |  #9768  
Senior Member
Thanks Meter: 1,010
 
2,108 posts
Join Date:Joined: 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.
18th March 2014, 11:38 PM   |  #9769  
rovo89's Avatar
OP Senior Recognized Developer
Thanks Meter: 15,054
 
2,385 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by iphone4life4

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

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

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

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

@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

A few pages back, advanced search for "rovo89" and "beta".

Or just look at the first post.

Quote:
Originally Posted by murasaki.bb

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

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.
The Following 13 Users Say Thank You to rovo89 For This Useful Post: [ View ]
19th March 2014, 12:07 AM   |  #9770  
Programming4life's Avatar
Senior Member
Thanks Meter: 81
 
161 posts
Join Date:Joined: Jul 2013
Donate to Me
More
Quote:
Originally Posted by rovo89

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, 6 views)
File Type: zip res.zip - [Click for QR Code] (4.22 MB, 4 views)

Thread Closed Subscribe to Thread

Tags
don't ask questions about modules here!!!, framework, xposed
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes