Hooking string resources - Xposed General

Is it possible to hook and change a of an app using xposed? For example if a string is unofficial can i hook the xml file containing it and change it to official

yeah, that's easy
check these two repos
GitHub - TheKeyDU/XposedDemo: a Xposed Moudle Demo ,hook a hello word application.just change a textview
a Xposed Moudle Demo ,hook a hello word application.just change a textview - GitHub - TheKeyDU/XposedDemo: a Xposed Moudle Demo ,hook a hello word application.just change a textview
github.com
and
GitHub - flysands/XposedDemo: Xposed插件代码
Xposed插件代码. Contribute to flysands/XposedDemo development by creating an account on GitHub.
github.com

and this

drakulaboy said:
and this
Click to expand...
Click to collapse
this might work. But setText(); takes in an argument but in XposedBridge.hookAllMethods(); he doesnt specify the params. Also did the same and it doesnt work

Related

how can i rebuild 'libhtcgeneric-ril.so'?

previous i posted about korean sms.. but no response.
So i can find a way rebuild '.so' file. but i couldnt..
i must add this code in libhtcgeneric-ril.so
msg = new String( inData, "KSC5601" );
'----------------------------------------------------------
void decode_cdma_sms(char *pdu, char *from, char *message, int *is_vm,int *msg_len) {
unsigned int i=1;
int code,length;
strcpy(from,"000000"); // in case something fails
strcpy(message,"UNKNOWN");
if (is_vm)
*is_vm = 0;
while(i*2<strlen(pdu)) {
get_code_and_length(pdu+i*2,&code,&length);
if(code==2) // from
decode_number(pdu+i*2+4,length,from);
if(code==8) // bearer_data
// probably code add. msg = new String( inData, "KSC5601" );
decode_bearer_data(pdu+i*2+4,length,message,is_vm,msg_len); i+=length+2;
}
}
please.. help me.
You need to have an Android source tree to rebuild any components. The xdandroid guide would be the quickest:
http://xdandroid.com/wiki/Getting_the_Source
Any rebuilds of the RIL need to be placed in /lib/froyo/ of the rootfs rather than /system/lib where Android puts it.
BTW htcgeneric-ril.so is C, while the line you want to add is Java. Are you sure thats the right place to patch it?
Thanks Tremere.
Tremere said:
You need to have an Android source tree to rebuild any components. The xdandroid guide would be the quickest:
http://xdandroid.com/wiki/Getting_the_Source
Any rebuilds of the RIL need to be placed in /lib/froyo/ of the rootfs rather than /system/lib where Android puts it.
BTW htcgeneric-ril.so is C, while the line you want to add is Java. Are you sure thats the right place to patch it?
Click to expand...
Click to collapse
i am newbie in C and java.
So i can not figure out this code is wrong.
i am sure that postion of code is right.
but just android source is download and make then compile is complete ?
must compile whole android source but only 'libhtcgeneric-ril.so' ?
that's too difficult to me. i am newbie at linux, C .
Sorry i am totally wrong.
thas is too difficult.
mmmmm......
I am give up..

Just published ---> DexPatcher: Modify APKs at source-level using Java

we interrupt your scheduled programming to announce... DexPatcher
it might interest...
apktool / baksmali / smali users: like said tools it lets you patch APKs, but coding in java instead of smali.
Xposed developers: like Xposed it lets you mod APKs using java, but ahead of runtime and producing a standalone APK.
just published now, visit the project here...
[TOOL] DexPatcher: Modify Android DEX/APK files at source-level using Java
http://forum.xda-developers.com/android/software/tool-dexpatcher-modify-android-dex-apk-t3060854
​
thanks for your time!
Public service announcement: DexPatcher grew in scope and now bundles Apktool and dex2jar...
THE ALL-NEW DEXPATCHER PREVIEW IS UP !!!
Come take a look !
​

Is there a magdisk file for root?

是否有用於根目錄的磁盤文件??
您能給我提供文件嗎?我需要根
最好將其下載到手機上...謝謝
手機型號:Redmi 4X穩定版
Please use English on XDA forum. (在XDA論壇請使用英文)
Magisk can be downloaded from Github.
Releases · topjohnwu/Magisk
The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.
github.com
Installation, if you can't read English, please use online translation. (安裝方法在這裡,如果看不懂請使用線上翻譯)

[Req] Magisk Detected On InstaPay

Hello
I have rooted my Xiaomi 10T Global by magisk and hidding by Shamico 0.5.0 & Univirsal SaetyNetFix 2.2.1
But this app detect the root : https://play.google.com/store/apps/details?id=com.egyptianbanks.instapay
I made disable for Flag Secure & LSBosed
can any one help in this
Thanks a lot for you
I have the same issue with this app too. Hope someone can fix it for us.
This is what they use : any ideas?
public static boolean isRooted(Context context) {
String str = Build.TAGS;
if ((!isEmulator && str != null && str.contains("test-keys")) || new File("/system/app/Superuser.apk").exists()) {
return true;
}
return !isEmulator && new File("/system/xbin/su").exists();
}
Itsme not working
Any suggestions on how to get the latest itsme working (identity from gouvernance BE). Magisk was renamed and the app is added on the denylist. For Keytrade bank I have to freeze magisk to get this app working.
forum.xda-developers.com
using this method here instapay is workings alongside root perfectly بريفكتو
I used the below module and it solved the instapay problem along with the latest myfawry update issue with root
Releases · LSPosed/LSPosed.github.io
Contribute to LSPosed/LSPosed.github.io development by creating an account on GitHub.
github.com
Only Install it and disable deny list
AhmadOkda said:
I used the below module and it solved the instapay problem along with the latest myfawry update issue with root
Releases · LSPosed/LSPosed.github.io
Contribute to LSPosed/LSPosed.github.io development by creating an account on GitHub.
github.com
Only Install it and disable deny list
Click to expand...
Click to collapse
I slove it by install Magisk Delta with old Magisk hide it can use the new hide and old
but there is new updates find both hidding

[MODULE TEMPLATE] MMT-Extended-Next

Hello everyone. I've modified the MMT-Extended Magisk Module template that Zackptg5 hasn't updated for a long time, adding a few nice features.
Now you can create and release Module Zip file with existing github files in just 1-2 minutes using Github Actions. For this, after making the necessary changes in your module files in the repo, it is enough to run the create&release workflow in the Actions section. You don't need to do anything else.
To start using the template, simply proceed from the "Use this template" option from the link below. I hope it will be of use to you.
GitHub - symbuzzer/MMT-Extended-Next: Magisk Module Template Extended with Create & Release feature
Magisk Module Template Extended with Create & Release feature - GitHub - symbuzzer/MMT-Extended-Next: Magisk Module Template Extended with Create & Release feature
github.com

Categories

Resources