yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro General] sub69:
I've just bought myself a second-hand O2 XDA Exec. I've unlocked it (thanks Buzz!), and everything was looking ok. In fact I'm typing this via my 3G connection. WiFi works well and the signal strength is great.

Unfortunately I can't make or receive phone calls. And I can't send or receive text messages either. All data services work perfectly, ActiveSync connects with my exchange server for Push mail etc, and the internet works perfectly with all 'connected' programs and pIE, etc.

When I do try to make a phone call, the dialler app just says "Dialling..." for a few seconds and then "Call Ended" There's never a dial/ring tone and when attempting to send a text message, I just get the notification: "Your message could not be sent". If I try to make a Video Call, I get a message to say that "Call Bars are active" despite the fact that my SIM works for video calls on other phones.

Have I bought a dodgy phone? Is this how a nicked phone behaves, or is there something else wrong with it? What baffles me is that I can use the net and use e-mail as much as I want, but phone calls are impossible. My T-Mobile SIM works in my other 3G phones, so I'm confused....I've tried various ROM's but they all behave the same way. Oh, and every time I turn the phone on, the STK server throws up a "Message Sent" dialogue. (Which I'm sure my old JasJar never did)

Help! Have I failed to sim-unlock this exec properly, is it nicked, or is it just knackered? I'll be off to the shop for a replacement soon, if I can't get this sorted out...
[JASJAR, XDA Exec, MDA Pro General] 6680abhi:
The first thing I'd try would be a hard reset. Don't know if there's another solution. Hopefully someone else will have another solution!
[JASJAR, XDA Exec, MDA Pro General] sub69:
Tried that, and I've re-flashed with the latest Qtek and i-mate ROM's.

I think I'll have another go at "unlocking" the SIM cad, just to be sure, and I'll try another different ROM. But I think this'll end up being taken back for a refund unless anyone can give me some inspirational advice!
[JASJAR, XDA Exec, MDA Pro General] Pantaloonie:
Since you say you've tried various ROMS, advising you to hard reset is pretty pointless.

The call and text behaviour you are getting is typical of a phone which is lost/stolen and barred. I always assumed that a barred phone would also not be able to use gprs & 3G. The wifi would still work though.

Are you able to use T-Mobiles data connection? What happens if you call the phone?
[JASJAR, XDA Exec, MDA Pro General] fluffcat1:
Nope, 3g networks defo don't check the imei register when you log on. ( Shhhh, the operators don't want you to know)

Dunno about a GPRS connection but it sounds like the handset is barred.

Richard
[JASJAR, XDA Exec, MDA Pro General] sub69:
If I call the phone, a lady tells me that "calls are not being connected to this number at present". If I put the SIM into another phone, it instantly starts working again.

Tried a Vodafone SIM, same story. Also tried a Tesco mobile SIM (which piggybacks on the O2 network) and that's even worse, there's no recognition of any network at all when I put that one in.

I think this thing is going back to the shop at lunchtime...
[JASJAR, XDA Exec, MDA Pro General] sub69:
Well, CheckMEND says that my IMEI has NOT been reported as lost or stolen, but I assume that's just for people who register and use www.immobilise.com rather than the network operator themselves?

I may give O2 a call to see what they say before I go shouting at the store that sold it to me, but I think that the only answer is that it's been blocked somehow. Hmmm. You'd think there would be an obvious way of finding out for sure...

EDIT: OK, O2 wouldn't tell me anything, it's confidential you see...

Took the phone back to the shop and they reckon the previous owner probably didn't pay is phone bill, so O2 barred the phone, therefore it wouldn't have been reported as lost/stolen. Which makes sense.

At least I now have my money back, and now I know that barred phones are only barred for voice calls, not Data connections too...never knew that!

Off to find another Universal to buy now...
[Verizon HTC One (M7)] tombepa:
I am using AOKP right now but in all ROMs I have tried, my battery seems to drain very fast. I don't have a lot of apps or anything running. Brightness on auto and only use about 2 hours of screen time a day. Most of the time I have to charge it up some during the day to make it through. Which ROM do you think gives the best battery? Or what settings have you played with to get good battery life?
[Verizon HTC One (M7)] blestsol:
You in the wrong forum?

Sent from my HTCM8
[Verizon HTC One (M7)] tombepa:
You know what, I hit HTC One instead of Verizon HTC One. Thanks.
[Verizon HTC One (M7)] tombepa:
Mod please delete
[Verizon HTC One (M7)] tigerscorp21:
Running NuSense6 4.6

Running NuSense6 4.6 from santod and loving the battery life. I burn 3-4% per hour with light use and the Extreme Power Saver in Sense 6 can save you if you get stuck away from a charger, like I did in Vegas last week. It limits your phone to calls & texts, but better than carrying a weight in your pocket.
[Sony Xperia T, TL, TX, V] Nekris:
Hey.

This is my first thread so welcome all. If this issue was fixed or if there is similar thread please close it down.

I have Xperia T that was branded by Vodafone DE. I updated it once from the standard firmware (I think it was the 4.1.2 android) to 4.3 (9.2.A.0.295), everything was fine, except that on two occasions the screen just could not be forced to turn on. Everything was working, sound, calls etc. I just had to hard reset it to enable the screen. Once when I was receiving call I could not answer it, the screen was jumping, blinking and I could not do anything with it. Hard reset helped again. I thought that those were bugs from the 9.2.A.0.295 but now I'm not so sure.

I downloaded the newest version of flashtool and the UK 9.2.A.1.199 firmware from this site, not branded, not modified. I unlocked the phone using the instructions on the sony site but since i didn't wanted to root the phone I locked it again. I flashed the mentioned UK firmware without problems and then the phone started to randomly reset itself. Usually it is getting hot under the camera and it resets mainly after using facebook or basically internet. It mostly resets when my phone is in the pocked. I tried using pc companion's repair option, used the firmware from Italy, Greece and almost all 9.2.A.1.205 except the Bond release. I think it's not the firmware, I've reverted to the 9.2.A.0.295 to no success. There are from one to six resets a day at random hours. Did someone had this problem? Is it related to the firmware flashing or could be just a coincidence and my xperia is dying from motherboard\battery failure? I replaced my sim card with new one. It also happens with or without the sd card.
[Sony Xperia T, TL, TX, V] sebaa123:
Hi, the most common restart's are:

a) Sim card ( you change that)

b) Software ( you change that)

c) Very rare SD card ( try to do that) get the SD out end boot the phone. Edit .. you all ready do that.

d) End must common is the Battery ( first try de c) version ,then if fail , you need to buy a new battery end try.

e) motherboard (well new phone? )

This not exactly the order, but from i have read , point d , b ,a , are the order .

So Good Luck.:good:
[Sony Xperia T, TL, TX, V] Nekris:
I think it could be the battery or the board, since it happens on all firmwares. The thing I would like to know is that using flashtool for an example could somehow damage the phone or the battery? I never found any info on this.
[Sony Xperia T, TL, TX, V] WhiteNeo:
I have heard that upgrading to 4.3 could actually damage the battery. So yes, it is possible.

I don't know the reason tho
[Android Q&A, Help & Troubleshooting] soheil69:
Hi

I searched about Asus me 173 hd custom roms but I can't find any custom rom like cm, miui, Omni ... .

Some said that it's for media tech chips in this device

I want to know there are no effort to port custom roms for this devices??
[XDA-University] Aashuk Mehta:
Great
[XDA-University] mauam:
Excellent:cool:
[XDA-University] hamzahrmalik:
The next few tutorials are up,

1-Setting Up

2-Background Info on Xposed

3-Exploring Your Target

4-The Code
[XDA-University] hamzahrmalik:
The full tutorial is now at the top of this thread and all future tutorials will be added to that post. I will also post another post on this thread when i add one so subscribers will get a message
[XDA-University] hnkotnis:
Great guide! And Congratulations! You are on XDA Portal!

I was compiling this guide in MS Word, but you did it first!

Congrats again!
[XDA-University] dipesh1502:
Been waiting for this since so long

Congrats
[XDA-University] jikashow:
Nice, i was searching for this :D
[XDA-University] gautam360:
Excellent tut hoping to see more from you! Best of luck n congrats!
[XDA-University] KostasR:
Sweet tutorial :) Much appreciated!
[XDA-University] Android-xp:
Nice Tutorials, but this what you've posted until now is already published by a lot of peoples (also on the offical GitHub-Page).

It would be awesome if you show some other (non-public) Tutorials, e.g how to make a PreferenceMenu and use it ;)

#KeepItUp
[XDA-University] insomaniacdev:
Awesome tutorial... buddy.
[XDA-University] cleverior.ipul:
good guide bro !! thanks pressed :d
[XDA-University] DsvCdsSoftware:
Amazing!, I will start my Xposed learning by this, thanks man.
[XDA-University] beemerTPPC:
Thanks a lot.

Not only intereting but very well explained.
[XDA-University] hamzahrmalik:
In this tutorial i plan to explain every feature of Xposed thoroughly
[XDA-University] Android-xp:
Ok, very nice! I'm keepin up to date in here.
[XDA-University] hamzahrmalik:
Tutorial 5 is up
[XDA-University] hamzahrmalik:
Tutorial 6 is up, 7 will be tomorrow now
[XDA-University] wasim memon:
Great explanation...

Thanks man...
[XDA-University] samkpo:
Hi, thanks for the suggestions. I tried what you said but it didn't throw anything good.

This is the code:

try{
XposedBridge.log("Declaring class: " + param.method.getDeclaringClass().getSimpleName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}

try{
XposedBridge.log("Method name: " + param.method.getName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}

try{
XposedBridge.log("Class name: " + param.thisObject.getClass().getName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}

try{
XposedBridge.log("Declaring class name: " + param.thisObject.getClass().getDeclaringClass().getName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}

try{
XposedBridge.log("Class canonical name: " + param.thisObject.getClass().getCanonicalName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}

And this is the result, for every call it's the same:

The first two work, but they yield what I already know. The other three throw an exception.. :(
[XDA-University] adlx.xda:
Damn you're right, my mistake sorry I was wrong.

I think you need something like this:

StackTraceElement[] trace = Thread.currentThread().getStackTrace();

for (int i=6; i < trace.length; i++)

{

Log.i(TAG, trace[i].getClassName() + " " + trace[i].getMethodName());

}

Experiment with these and you might find the value of I that gives the values you expect.
[XDA-University] samkpo:
I'm gonna try it [emoji6]

Enviado desde mi Moto G mediante Tapatalk
[XDA-University] adlx.xda:
Any luck?
[XDA-University] Kewkpad:
Been asking everywhere.. Cant get the clock example to work on my Samsung S7 Edge, howcome?

My guess is different classname or something since the hooking function does not run.

If so, what to do?

Full explanation about my problem: http://stackoverflow.com/questions/...work-hooking-samsung-s7-edge-system-processes

Edit, sorry! Was because of other modules.

Can you write an updated guide for Android Studio? I'd be willing to donate for that, seriously. So hard to find information about xposed development.
[XDA-University] hamzahrmalik:
Been meaning to do so for so long. Its been like a year. Maybe over this weekend I'll just add the setup for Studio, since the actual programming is of course the same
[XDA-University] hamzahrmalik:
Update:

I'm adding a tutorial for Android Studio now

EDIT: done
[XDA-University] Kewkpad:
Thank you very much!
[XDA-University] BatedUrGonnaDie:
Not sure where else to post this but saw some similar questions in this thread and thought maybe someone could help.

I have an app that defines custom classes, and some methods take an array of these classes. I'm having issues hooking these methods because I can't get the correct parameters to pass to findAndHookMethod to find the method. I've tried using findClass to just use a reference to the class, Array.class, Object[].class, and a few others. Really hitting a wall with this and I can't seem to find the answer to this anywhere when I feel like it would be a common problem.
[XDA-University] hamzahrmalik:
Could you post a sample of some code
[XDA-University] BatedUrGonnaDie:
This is the methods signature:

private void a(ChatMessageBadge[] paramArrayOfChatMessageBadge, String paramString, StringBuilder paramStringBuilder)

As a temporary workaround I hooked all methods with the name "a" and have been sorting by the primitive types and the length of the args.
[XDA-University] hamzahrmalik:
How are you trying to hook it
[XDA-University] samkpo:
Nop, but to be fair I didn't put too much effort to make it work :-/

Enviado desde mi Moto G mediante Tapatalk
[XDA-University] awti:
issue with module loading

after installing the app and activating it..when I am rebooting my device its showing cannot load module in the logs

how will this issue be resolved?
[XDA-University] RyogoNA:
I have hooked to com.android.internal.policy.impl.PhoneWindowManager.interceptKeyBeforeQueueing().

I acquired storage dir path using Environment.getExternalStorageDirectory() and tried to do listFiles() but it returns null. Is there any way I can acquire files list?
[XDA-University] bharat.f4:
help.

please help me change an integer value in framework-res.apk

Im using the current method to change minimum and maximum brightness levels, but this is not working. What am i doing wrong.

import de.robv.android.xposed.IXposedHookInitPackageResources;

public class Main implements IXposedHookInitPackageResources {
public void handleInitPackageResources(XC_InitPackageResources.InitPackageResourcesParam resparam) {
if (!resparam.packageName.equals("android"))
return;
XResources.setSystemWideReplacement("android", "integer", "config_screenBrightnessSettingMinimum", 1);
XResources.setSystemWideReplacement("android", "integer", "config_screenBrightnessSettingMaximum", 200);
}
}

Please help.

If possible, please post the method code to change a simple res/values/integers.xml setting in framework-res.apk
[XDA-University] dape16:
Compile an abandoned module for a newer SDK

I use this module:

https://xdaforums.com/xposed/modules/mod-disable-desk-dock-t2526496

It was originally developed for Jelly bean, but another user compiled it for both Lollipop and Marshmallow.

Now I have been trying to compile it for Xposed SDK 24 and 25, but with no luck. I have some developer skills and I have spent a lot of time reading all the Xposed documentation and doing tutorials and modifying the module to work with Nougat.

Now my device is running 8.1 so an version that is working with SDK 27 would be the best.

I would be very thankful if someone could give me some directions or info on how to do this project.
[XDA-University] AndroidX:
Actually I like your Tutorial but when i make smile module myself my module not showing in xposed installer for the information i used android studio please help!!
[XDA-University] flamery:
can we hook applications that are obsuficated by proguard? I assume so since it must be deobsuficated when it loads into memory but how can we find the hooks required first?
[XDA-University] trmdi:
Hi, can xposed replace a sound raw asset?
[XDA-University] dmonium:
How to force setreplacement in MIUI 12?

I need help, I'm using MIUI 12 Chinese Beta 20.09.09 (non include the Spanish language) in Redmi Note 8 Pro and I'm programming a module to set transparent elements in MIUI 12, set background and change the strings resources, but it doesn't work with miui.apk, my code is

@Override
public void handleInitPackageResources(XC_InitPackageResources.InitPackageResourcesParam iprParam) throws Throwable {
switch (iprParam.packageName) {
case "com.miui.core":
iprParam.res.setReplacement("miui","color","list_item_bg_color_light", Color.TRANSPARENT);
iprParam.res.setReplacement("miui","color","list_menu_bg_color_dark", Color.TRANSPARENT);
iprParam.res.setReplacement("miui","color","list_menu_bg_color_light", Color.TRANSPARENT);
break;
}
}

It run without problems, I don't have errors, but it doesn't work the change the color, and the same issue gots with the strings resources

iprParam.res.setReplacement("miui", "string", "month_september", "Septiembre"); // changing the strings to spanish

How can force to replacement the resources?, there is any way to do it?
[XDA-University] beechwood45:
Is there any way to modify system framework files with xposed? The files I am interested in are the core system files textview.java and paint.java. In modern android these do not exist as separate jar files but are precompiled into native code and combined into a single file called boot.oat. The tutorials here all use the app package name to reference the code to be modified but the system files I refer to are not part of an app but are part of the core system so there is no package name to refer to. If these files can be modified by xposed, how do I reference their file locations?
[XDA-University] t61p:
really nice tutorial. thanks a lot.
[XDA-University] hamzahrmalik:
Tutorial 7 is up
[XDA-University] serajr:
Congrats buddy :good:
[XDA-University] cadarn07:
[MENTION=5290145]hamzahrmalik[/MENTION] strange, i don't see you credit all the people on other threads who answered all of your innocent-sounding questions that allowed you to write this tutorial. although at least you finally added credit to rovo89 after you originally claimed this was all your work. that was nice of you, i suppose.
[XDA-University] hamzahrmalik:
Who exactly do I need to credit?
[XDA-University] hamzahrmalik:
After reading over my last post I've realized it doesn't sound right. I don't mean to say I don't owe anyone credit I just need to know who so I can credit them
[XDA-University] :
Thanks for the excellent tutorial.

I would like to know when and where to use "XposedProjectAutoSetup 2.1.jar" file.

And where is the link to XposedBridge API jar.
[XDA-University] hamzahrmalik:
The project setup is an optional tool I made which basically does tutorial 1 for you. The xposed bridge api is on te official xposed thread I'm sure I put a link in the tutorial

http://xdaforums.com/showthread.php?t=1574401
[XDA-University] chinke:
Great

Great tutorial. Thank you.
[XDA-University] a.vandelay:
how did you know to use "com.android.systemui" here and not "com.android" or "com.android.systemui.statusbar", etc.?
[XDA-University] hamzahrmalik:
com.android.systemui is the package name for SystemUI.apk

Not sure what will happen if you use com.android.systemui.statusbar might work, never tried
[XDA-University] CNexus:
You can check the AndroidManifest.xml of an app to get it's package name

If you use anything but com.android.systemui, it won't catch it when the system loads that package (aka the SystemUI app)
[XDA-University] neXus PRIME:
i want to be ROM specific.

i have modified the res/layout/status_bar.xml

i have copied it in xposed project structure under res/layout.

It belongs to com.android.systemui.... and i want it to use my xml on runtime.

Can i simply replace it using initpackageresources and initzygote like we did for dimens??? its an xml file so im not sure.

Just let me know the function to achieve this. Thanks in advance
[XDA-University] hamzahrmalik:
If you want to be ROM specific, make a flash able zip. If you really want to use Xposed wait until tutorial 8 (later today) which covers modifying layouts
[XDA-University] neXus PRIME:
I want to be able to toggle it... and in case something goes wrong, easily recover.... and that needs xposed framework. Systemui crashing is a pain if it goes wrong.

ANyways, i have done the hard part and resolved all the ids/styles etc etc but in the end, there was some clash between replacement of systemui layout and at the same time changing dimens in android framework.

It wasnt accepting the dimens change witht he layout change of systemui.

I separated the code into two modules. one for layout and one for dimens. THey seem to work on their own, but not together.

One of them changes dimens correctly... other changes the layout correctly. When both modules run together,,, only layout module works.

Maybe my understanding of Zygote/Xposed/Java is flawed at some level.... hopefully ur new tutorial will help me clear my doubts.

Thanks
[XDA-University] hamzahrmalik:
If they work separately but not together then combine all code into ome module that should work
[XDA-University] neXus PRIME:
Even when code combined. It doesnt work. only layout works...

Please have a look at below:

---------- Post added at 11:59 PM ---------- Previous post was at 11:57 PM ----------

RED doesnt work

BLUE works

Single module. Separate modules. Both times, the red part doest seem to work....

However.... when ONLY the red part module is ALONE activated... it works.,
[XDA-University] hamzahrmalik:
Check the updated tutorial 6. Sorry it was my fault i made a mistake. Use this code

public class Meizuclock implements IXposedHookZygoteInit, IXposedHookInitPackageResources {
public static String MODULE_PATH = null;

@Override
public void initZygote(StartupParam startupParam) throws Throwable {
// TODO Auto-generated method stub
MODULE_PATH = startupParam.modulePath;
XResources.setSystemWideReplacement("android", "bool", "config_unplugTurnsOnScreen", false);
XResources.setSystemWideReplacement("android", "bool", "config_allowAllRotations", true);

XModuleResources modRes = XModuleResources.createInstance(MODULE_PATH, null);

}
@Override
public void handleInitPackageResources(InitPackageResourcesPar am resparam) throws Throwable {
if (!resparam.packageName.equals("com.android.systemu i"))
return;

XModuleResources modRes = XModuleResources.createInstance(MODULE_PATH, resparam.res);

resparam.res.setReplacement("com.android.systemui" , "layout", "status_bar", modRes.fwd(R.layout.status_bar));

resparam.res.setReplacement("android", "dimen", "navigation_bar_height", modRes.fwd(R.dimen.navbarh));
resparam.res.setReplacement("android", "dimen", "navigation_bar_height_landscape", modRes.fwd(R.dimen.navbarhl));
resparam.res.setReplacement("android", "dimen", "navigation_bar_width", modRes.fwd(R.dimen.navbarw));
}

}
[XDA-University] neXus PRIME:
Got it... Ill try again tonight. Thanks.
[XDA-University] neXus PRIME:
MODE_WORLD_READABLE is deprecated in 4.3 and 4.4 API.

How else can i share data between activities? I have done the main activity and the xposed module activity. Shared preferences are working for the launcher activity. Now i just need to pass the data to the xposed java class. Any help appreciated.

Regards

Yasir
[XDA-University] bkertz:
I second this. I am in the same spot and wondering the best way to handle this.
[XDA-University] neXus PRIME:
I thought about writing to file then reading, but seems too much.

Wonder how others are doing it
[XDA-University] hamzahrmalik:
I think you can use default instead of world readable and then when u read it use pref.setWorldReadable(). Never tried it though, check samples on GitHub
[XDA-University] neXus PRIME:
f****g hell the sharedpreferences is giving me a bloody time. I never thought it would be so tough, Would really appreciate hamza if u can get me out of this. I can PM you my code if want when u have some spare time.

Thanks

Yasir
[XDA-University] hamzahrmalik:
I told you, look at samples