how to convert a piece of java code to smali code?

agh620

New User
Sep 6, 2018
1
hello everyone
i want to modding an android app but it obfuscated

i have this code:

/* renamed from: ˏ */
public void m332() {
Context context = this.f242;
int ˏ = hk.m2612(context, 1);
int ˏ2 = hc.m2545(context, 1);
if (ˏ != 1 || ˏ2 != 1) {
Toast.makeText(context, this.f242.getResources().getString(R.string.tamper_alert), 1).show();
this.f242.finish();


and now i want to remove end line

/* renamed from: ˏ */
public void m332() {
Context context = this.f242;
int ˏ = hk.m2612(context, 1);
int ˏ2 = hc.m2545(context, 1);
if (ˏ != 1 || ˏ2 != 1) {
Toast.makeText(context, this.f242.getResources().getString(R.string.tamper_alert), 1).show();


how can i convert edited java code to smali?

*i want to convert and then edit original app by "apk editor" and replace with original code

are there any way?
 

Mr Ikso

New User
Mar 14, 2018
29
Hi, I did not understand you a little. You wrote this part of the code yourself? Or converted to java from smali and you want to overtake smali again? So it will not work. Well, if you still want to convert java to smali, then there are plug-ins for Android Studio, you can shove the code into the application, and then extract the smali from it.
 
  • Like
Reactions: Dhyo_haw5