Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dk_zero-cool
Old
#1521  
dk_zero-cool's Avatar
Recognized Contributor
Thanks Meter 3428
Posts: 2,358
Join Date: Nov 2010
Location: Horsens
Is Xposed not able to interact with framework files? I keep getting the fallowing message

Code:
java.lang.NoSuchMethodError: com.android.internal.policy.impl.PhoneWindowManager#setInitialDisplaySize(android.view.Display,java.lang.Integer,java.lang.Integer,java.lang.Integer)#exact
The source of the CM 10.1 ROM looks like this

Code:
public void setInitialDisplaySize(Display display, int width, int height, int density) {
All I am trying to do, is change one single boolean property to test this thing. The rest of my class is just copied from the github example, and the clock example works fine
Device: Samsung GT-I9300
----------------------------------

Current Projects
Web Sites
 
Fiouz
Old
#1522  
Junior Member
Thanks Meter 2
Posts: 28
Join Date: Apr 2010
Quote:
Originally Posted by dk_zero-cool View Post
Code:
java.lang.NoSuchMethodError: com.android.internal.policy.impl.PhoneWindowManager#setInitialDisplaySize(android.view.Display,java.lang.Integer,java.lang.Integer,java.lang.Integer)#exact
The source of the CM 10.1 ROM looks like this

Code:
public void setInitialDisplaySize(Display display, int width, int height, int density) {
Does it work with the primitive type Integer.TYPE instead of the wrapper version?
 
rovo89
Old
#1523  
rovo89's Avatar
Recognized Developer - OP
Thanks Meter 1972
Posts: 719
Join Date: Jan 2012
Quote:
Originally Posted by Fiouz View Post
Thanks for the information, somehow I missed it when looking for that issue.
As for disabling Xposed for instrumented packages, I would not mind if all hooks get disabled as the purpose of the unit test is testing the package itself.
I had a quick look at the C++ part but don't have the necessary knowledge to achieve that.
It's not that simple actually to disable all further callbacks. Maybe I'll just skip the loadPackage hook when instrumentation is detected, that's much easier. I think the average users won't come across this anyway.

Quote:
Originally Posted by LegendM View Post
@rovo89

You just created cydia for android,which is awesome

And finally Android getting better with your help.

You should create an app like Cydia.We need this
Thanks for the nice words. To avoid confusion, Xposed is NOT Cydia Substrate for Android. Please try to discuss any questions related to Cydia outside of this thread to avoid that people mix up the two.

What do you mean with "an app like Cydia"? As far as I have seen, Cydia Substrate currently has no more features the Xposed and its installer. If you mean Cydia for iOS, which also has a download store: Yes, I'm working on that with high priority (actually framework autoupdate first, then modules).

Quote:
Originally Posted by Fiouz View Post
Does it work with the primitive type Integer.TYPE instead of the wrapper version?
That's probably the reason, yes. I personally prefer int.class for consistency with other class references, but Integer.TYPE is equivalent to that.
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 4 Users Say Thank You to rovo89 For This Useful Post: [ Click to Expand ]
 
killchain
Old
#1524  
killchain's Avatar
Senior Member
Thanks Meter 23
Posts: 139
Join Date: Oct 2012
Location: Varna

 
DONATE TO ME
What in this framework could be causing bootloops? How can I diagnose it?
Almost every time after installing the framework and rebooting (after a ROM update etc.), the device gets stuck on the boot animation.
Galaxy Nexus GSM, AOKP latest nightlies and it's the same with several different kernels - AOKP's built in lean, lean experimental, fancy, AK Rubik.
GT-i9250 AOKP nightlies
 
dk_zero-cool
Old
(Last edited by dk_zero-cool; Yesterday at 06:46 PM.)
#1525  
dk_zero-cool's Avatar
Recognized Contributor
Thanks Meter 3428
Posts: 2,358
Join Date: Nov 2010
Location: Horsens
Quote:
Originally Posted by Fiouz View Post
Does it work with the primitive type Integer.TYPE instead of the wrapper version?
Most do, no more errors. Actually no response at all.

I really need to read some more about Android's tools, not my strongest subject. Which package does com.android.internal.policy.impl.PhoneWindowManage r belong to? I tried to do some testing, and so far it seams to be accessible throe any android packages and Xposed does not redirect any com.android.internal.* named packages.

Also, how do I go about changing a private property, so far I have been able to get an error "Not a Primitive Type"


EDIT:

It does seam to load my hook now.

Code:
Field lHasNavigationBar = param.thisObject.getClass().getDeclaredField("mHasNavigationBar");
lHasNavigationBar.setAccessible(true);
lHasNavigationBar.set(param.thisObject, true);
This does work (Nothing changes in the UI, but that's a different issue, it does however change the property. But, setBooleanField from Xposed helper class does not work. It just gives me the "Not a Primitive Type" error.


EDIT 2:

I had Expanded Desktop enabled, which is why the UI did not seam to change. So manual reflection with Xposed is working great now, only issue is the helper method for changing Fields.
Device: Samsung GT-I9300
----------------------------------

Current Projects
Web Sites
 
spevil07
Old
(Last edited by spevil07; Yesterday at 07:30 PM.)
#1526  
spevil07's Avatar
Senior Member
Thanks Meter 87
Posts: 243
Join Date: Mar 2012
Location: Dortmund
edit: have found new version
 
LegendM
Old
#1527  
LegendM's Avatar
Senior Member
Thanks Meter 66
Posts: 372
Join Date: Jun 2012
Location: Sakarya
Quote:
Originally Posted by rovo89 View Post

Thanks for the nice words. To avoid confusion, Xposed is NOT Cydia Substrate for Android. Please try to discuss any questions related to Cydia outside of this thread to avoid that people mix up the two.

What do you mean with "an app like Cydia"? As far as I have seen, Cydia Substrate currently has no more features the Xposed and its installer. If you mean Cydia for iOS, which also has a download store: Yes, I'm working on that with high priority (actually framework autoupdate first, then modules).
Yep I mea cydia for ios,and nice to hear working on it


 
mynote@xda
Old
#1528  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Mar 2013
Quote:
Originally Posted by spevil07 View Post
edit: have found new version
I am using v 0.4 on my Note...
 
FruitBowlMafia
Old
#1529  
FruitBowlMafia's Avatar
Senior Member
Thanks Meter 23
Posts: 195
Join Date: Aug 2011
Location: 62893
Sign Signal bars vanishing with pristine signal

Is this a known Xposed issue? With my Galaxy Note II, running JellyBeans ROM v17, when you have pristine signal strength the indicator bars completely drop off.

-----=====^$$^=====-----
La Pastra de' Falcona
Get your piss on apple boot animation HERE
 
bedtime_with_the_bear
Old
#1530  
Senior Member
Thanks Meter 110
Posts: 160
Join Date: Mar 2011
Location: London, UK
Quote:
Originally Posted by FruitBowlMafia View Post
Is this a known Xposed issue? With my Galaxy Note II, running JellyBeans ROM v17, when you have pristine signal strength the indicator bars completely drop off.

It's true that some ROMs can have strange interactions with XPosed, but in general, it's more likely that a module is the culprit.

What modules do you have installed? Try disabling them all and rebooting. Is the problem still there? If not, enable a single module and and reboot. Repeat until the problem returns. When it comes back, you've either found the module causing the problem, or its some combination of the one just enabled and the previous modules.

Sent from my Nexus 4 using Tapatalk 2

 
Post Reply+
Tags
don't ask questions about modules here!!!, framework, xposed
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...