ClassNotFoundException after class is loaded dynamically - Xposed General

Here is my code that doesn't seem to be working:
Code:
public class Test implements IXposedHookLoadPackage, IXposedHookZygoteInit {
@Override
public void initZygote(StartupParam startupParam) throws Throwable {
XposedBridge.log("ZYGOTE INIT");
}
@Override
public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
if(lpparam.packageName.equals("com.somerandomapp")) {
XposedHelpers.findAndHookMethod(Application.class, "attach", Context.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
XposedHelpers.findAndHookMethod("java.lang.Class", lpparam.classLoader,
"forName", String.class, boolean.class, ClassLoader.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param1) throws Throwable {
if(((String)param1.args[0]).equals("com.alibaba.wireless.security.mainplugin.SecurityGuardMainPlugin")) {
Class clazz = XposedHelpers.findClass("SecurityGuardMainPlugin", (ClassLoader)param1.args[2]);
XposedHelpers.findAndHookMethod("com.alibaba.wireless.security.a.l.a", (ClassLoader)param1.args[2], "a", clazz, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
XposedHelpers.findAndHookMethod("com.alibaba.wireless.security.a.l.a", lpparam.classLoader, "getSecurityToken", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
XposedBridge.log("Token: " + param.getResult());
}
});
}
});
}
}
});
}
});
}
}
}
The if statement gets executed correctly and tries to find the class that just got loaded, but no luck.

Can you somehow test if the class actually is loaded?
BTW: is it Tapatalk or aren't you using any intentions? The code is quite hard to read.
Gesendet von meinem Moto G 2014 LTE mit Tapatalk

gothicVI said:
Can you somehow test if the class actually is loaded?
BTW: is it Tapatalk or aren't you using any intentions? The code is quite hard to read.
Gesendet von meinem Moto G 2014 LTE mit Tapatalk
Click to expand...
Click to collapse
I think it must be tapatalk, the code is indented. Well I know that
Code:
Class.forName()
is called on the class and therefore I assume that it has been loaded.

Related

Google Nexus 4 discriminates against... goats?

Can anyone shed any light on this piece of code buried within the bowels of Jelly Bean?
http://www.stuff.tv/news/phone/news-nugget/google-nexus-4-discriminates-against-goats
"public boolean isUserAGoat ()
Used to determine whether the user making this call is subject to teleportations.
Returns whether the user making this call is a goat"
Just when you thought the Nexus 4 couldn't get any better...
MaskedMagi said:
Can anyone shed any light on this piece of code buried within the bowels of Jelly Bean?
http://www.stuff.tv/news/phone/news-nugget/google-nexus-4-discriminates-against-goats
"public boolean isUserAGoat ()
Used to determine whether the user making this call is subject to teleportations.
Returns whether the user making this call is a goat"
Just when you thought the Nexus 4 couldn't get any better...
Click to expand...
Click to collapse
Some engineer(s) having some fun I'd say? Busted! :victory:
G.O.A.T. = Greatest Of All Time
It's obviously referencing the Nexus 4
its for when people text 'bahahahahaha' instead of 'hahahahaha'
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
''Absolute power corrupts absolutely, but absolute powerlessness does the same''
MaskedMagi said:
Can anyone shed any light on this piece of code buried within the bowels of Jelly Bean?
http://www.stuff.tv/news/phone/news-nugget/google-nexus-4-discriminates-against-goats
"public boolean isUserAGoat ()
Used to determine whether the user making this call is subject to teleportations.
Returns whether the user making this call is a goat"
Just when you thought the Nexus 4 couldn't get any better...
Click to expand...
Click to collapse
Goat could be a second user or one with low level permissions, tablets have the ability to use have multi users. Just because it's there doesn't mean its being used.
Chromium has been teleporting goats for a while now.
http://code.google.com/p/chromium/issues/detail?id=31482
It's just an easter egg that worked it's way into the SDK. I have a feeling someone from the Chrome team may have moved to the Android team or something..
KidCarter93 said:
View attachment 1481858
''Absolute power corrupts absolutely, but absolute powerlessness does the same''
Click to expand...
Click to collapse
Hey!
You stole that pic!
Hickory, Dickory, Dox...Snowflake approves of my HOX....
Babydoll25 said:
Hey!
You stole that pic!
Hickory, Dickory, Dox...Snowflake approves of my HOX....
Click to expand...
Click to collapse
At least this use of it had perfect timing though
''Absolute power corrupts absolutely, but absolute powerlessness does the same''
There's another place in the SDK where there's a function for one app 'Like' and 'Poke' another.
I think sometimes the google devs get bored.
Edit: See also http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey()
KidCarter93 said:
At least this use of it had perfect timing though
''Absolute power corrupts absolutely, but absolute powerlessness does the same''
Click to expand...
Click to collapse
Snowflake begrudgingly approves your post.....for now.
Hickory, Dickory, Dox...Snowflake approves of my HOX....

ChameleonOS Theme Contest

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
General:
As the new kids on the block, ChameleonOS would like to invite everyone to join our theme contest! We are only as good as our users, and while we are bringing new innovations to AOSP, we would love to see you bring new innovations to the user interface! In the end, we want everyone to enjoy their experience using ChaOS, what better way to do so than having a little fun while handing out a few prizes.
Theme rules:
Theme must be submitted to [email protected] by August 15th 2013. Please ensure a download link is provided to the ChameleonOS staff with your submission.
Staff of ChameloenOS will not be eligible for this contest, this includes all developers, maintainers and current staffed themers.
Theme must be in a ChameleonOS format (see here).
Theme must be completely original. This means no ports, and no themes based on ports.
Theme must include, but not limited to:
framework-res.apk
SystemUI.apk
Phone.apk
Mms.apk
Contacts.apk
Wallpaper
ChaOSLauncher.apk
Composed icons (background, mask and foreground).
You also must have preview images already built into your theme before submission.
Prizes:
·First place:
$100.00 gift card to Google Play.
Default theme for all ChameleonOS builds.
Possible ChameleonOS team position.
·Second Place:
$25.00 gift card to Google Play.
·Third Place:
$10.00 gift card to Google Play.
Voting:
The top three themes selected by the ChameleonOS staff, will go to a mixed public/staff vote to determine the First place winner.
No theme will be made public pending completion of contest.
Disclaimer:
First place winner must agree ChameleonOS.org will retain all rights for theme distribution. This does NOT mean you cannot port the theme to other ROM’s or platforms, but it does mean ChameleonOS.org can and will use/change said theme as needed.
ameleonOS will not use any theme that isn’t deemed the First place winner, in any manner, shape or form.
ChameleonOS can change the rules of this contest at anytime.
Questions:
We have opened a new thread here that you can ask questions about the contest itself, or ask for assistance in creating your theme. You may also ask questions here if you like!
Reserved for any additional stuff that may come up...

Low resolution on mc5?

I don't know weather it's a problem with the game or device/chipset related but this just looks horrible low resolution :/
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
100% resolution tablet lags
the resolution changes in ModernCombat5.apk\res\raw\scaleprofile.json
"value": хх = resolution
Here is an example of what it looks like 100%
Code:
{
"DEFAULT": 100,
"AUTO":
{
"TYPE_1":
{
"conditions":
{
"minDII": 4.0,
"maxDII": 7.0,
"minWidth": 1920,
"minHeight": 1080
},
"value": 100
},
"TYPE_2":
{
"conditions":
{
"minDII": 4.0,
"maxDII": 8.0,
"minWidth": 1100,
"maxWidth": 1920,
"minHeight": 700,
"maxHeight": 1080
},
"value": 100
},
"TYPE_3":
{
"conditions":
{
"minDII": 8.0,
"maxDII": 8.9,
"minWidth": 1280,
"minHeight": 800
},
"value": 100
},
"TYPE_4":
{
"conditions":
{
"minDII": 8.9,
"minWidth": 1280,
"minHeight": 800
},
"value": 100
},
"TYPE_5":
{
"conditions":
{
"minDII": 9.0,
"minWidth": 1280,
"minHeight": 720
},
"value": 100
},
"TYPE_6":
{
"conditions":
{
"minDII": 7.0,
"minWidth": 2500,
"minHeight": 1000
},
"value": 100
},
"TYPE_7":
{
"conditions":
{
"minDII": 4.0,
"maxDII": 7.0,
"minWidth": 2500,
"minHeight": 1000
},
"value": 100
}
},
"SPECIFIC":
{
"gt-p5210|sc-06d|sc-05d|isw16sh|is12sh|lg-d950": 100,
"at10le-a": 100,
"sm-p600": 100,
"sm-t230|galaxy nexus": 100,
"sm-t210": 100
}
}
Alexey71 said:
100% resolution tablet lags
the resolution changes in ModernCombat5.apk\res\raw\scaleprofile.json
"value": хх = resolution
Here is an example of what it looks like 100%
Code:
{
"DEFAULT": 100,
"AUTO":
{
"TYPE_1":
{
"conditions":
{
"minDII": 4.0,
"maxDII": 7.0,
"minWidth": 1920,
"minHeight": 1080
},
"value": 100
},
"TYPE_2":
{
"conditions":
{
"minDII": 4.0,
"maxDII": 8.0,
"minWidth": 1100,
"maxWidth": 1920,
"minHeight": 700,
"maxHeight": 1080
},
"value": 100
},
"TYPE_3":
{
"conditions":
{
"minDII": 8.0,
"maxDII": 8.9,
"minWidth": 1280,
"minHeight": 800
},
"value": 100
},
"TYPE_4":
{
"conditions":
{
"minDII": 8.9,
"minWidth": 1280,
"minHeight": 800
},
"value": 100
},
"TYPE_5":
{
"conditions":
{
"minDII": 9.0,
"minWidth": 1280,
"minHeight": 720
},
"value": 100
},
"TYPE_6":
{
"conditions":
{
"minDII": 7.0,
"minWidth": 2500,
"minHeight": 1000
},
"value": 100
},
"TYPE_7":
{
"conditions":
{
"minDII": 4.0,
"maxDII": 7.0,
"minWidth": 2500,
"minHeight": 1000
},
"value": 100
}
},
"SPECIFIC":
{
"gt-p5210|sc-06d|sc-05d|isw16sh|is12sh|lg-d950": 100,
"at10le-a": 100,
"sm-p600": 100,
"sm-t230|galaxy nexus": 100,
"sm-t210": 100
}
}
Click to expand...
Click to collapse
Thanks a lot for your help first, however I run into the problem that after editing the file inside the apk it won't install anymore, I just got the the massage "app has not been installed".
IE-coRe said:
Thanks a lot for your help first, however I run into the problem that after editing the file inside the apk it won't install anymore, I just got the the massage "app has not been installed".
Click to expand...
Click to collapse
need to re-sign apk or disable signature verification Mod edit: app name removed as discussion of that app is not allowed on this site
Can anyone confirm that it lags full res on tab 8.4? I mean our snapdragon 800 should be able to run this fully...
Sent from my XT897 with Tapatalk 4
Default vs 100% resolution
Runs pretty smooth on full resolution for me on exynos. It only lags when aiming what I think Is a little weird, maybe because they use some kind of blurred effect there..
Is the battery life worse with full resolution?
Verstuurd vanaf mijn SM-T320 met Tapatalk 4
divie said:
Is the battery life worse with full resolution?
Verstuurd vanaf mijn SM-T320 met Tapatalk 4
Click to expand...
Click to collapse
Maybe by a little. But your battery is going to drain while gaming anyway, doesn't make that huge of a difference.

ReplaceMethod and XposedHelpers#ClassNotFoundError

Hi guys, could anyone tell me why this "simple" replacement keeps throwing ClassNotFoundErrror.
I have decompiled the Dialer.apk and i can see clearly that the class is there.
Code:
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
if (!"com.android.dialer".equals(lpparam.packageName)) {
return;
}
findAndHookMethod("com.android.dialer.calllog.DefaultVoicemailNotifier", lpparam.classLoader,
"updateNotification", Uri.class,
new XC_MethodReplacement() {
@Override
protected Object replaceHookedMethod(MethodHookParam param)
throws Throwable {
XposedBridge.log("replaced");
return null;
}
});
}
Thanks

[ICON PACK][Material design 2.0] Pix-Pie icon pack.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Pix-Pie Icon Pack is icon pack for launchers. Made in material design 2.0. These are round icons with rounded in new style icons inside.
- Md2 icons.
- Cloud Wallpapers.
- Option for icon reqest.
- Updating the application every week.
- Fulfillment of 100% of your requests for changing icons.
Free version (no updates): View attachment pix-p-v1.0.apk
Play Store Updates (paid): Pix-Pie
Google+ group: this
Updates.
04.09.2018
V 1.02 public beta 2.
- New play icons.
- Add 300+ icons.
06.09.2018
V 1.03 public beta 3.
- New icons options: Phonograph, Clock, Youtube, Whatsapp, Spotify, Sim.
- Dynamic calendar icon.
- I did not fulfill your requests, I will be ready with the next update.
19.09.2018
V1.1release
What new:
- Public release.
- New of many icons options.
- All your requests are fulfilled.
- Fixed icons inconsistencies.
- Added 600+ icons.
Nice pack
Nice icon pack =)
Today pulic release...
10.10.2018
Public realease 2.
Sir promo code please..??
amolgpatil said:
Sir promo code please..?
Click to expand...
Click to collapse
Send me email
This is the public release 3.
What new:
- Public release 3.
- Dynamic clock icon.
- New of many icons options.
- All your requests are fulfilled.
- Fixed icons inconsistencies.
- Added 400+ icons.
pashapuma said:
Send me email
Click to expand...
Click to collapse
[email protected]
promo code please.
[email protected]
Bought it and no regret.
Promo code please
[email protected]
Hello, it is very nice icon pack.
Could you give promo code for play store version.
[email protected][email]
The best icon pack on the play store!
P.S.: is promo code still valid? Anyway here it is my email address: [email protected]
Thank you for it Promo code to me as well?
Sent from my OnePlus 5T using XDA Labs
I'll give you a promotional code, but write me an email
pashapuma said:
I'll give you a promotional code, but write me an email
Click to expand...
Click to collapse
I like your icons. Hoping for your promotional code. Thanks!
[email protected]
The forever best icon pack in the market. I'm using it since it's launch. Please provide me the promotion code.
My email address is "[email protected]"
Thank you very much :fingers-crossed:
Update v 6.1

Categories

Resources