java to smali

Sbenny.com is trusted by 1,323,731 happy users since 2014.
Register

acelianova

Novice Lv1️⃣
Member for 3 years
is there any converty my .java file to a .smali file, is that possible? help
 

Daniel

Hunter of Sbennytopia
From the Hell
Verified 18+ user
The Cleaner 🧹
Member for 3 years
I don't know about any dedicated tool but here's what I do. I write my java code in a dedicated class of an app project in Android Studio then build an apk. Then I use apkeasytool to decompile the apk and check the smali
 

acelianova

Novice Lv1️⃣
Member for 3 years
this

package com.an.wallblur;

import android.app.WallpaperManager;
import android.content.Context;
import android.graphics.RenderEffect;
import android.graphics.Shader;
import android.util.AttributeSet;
import android.widget.ImageView;


public class com.an.wallblur extends ImageView {

Context contextM;

public com.an.wallblur(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
contextM = context;
setRenderEffect(RenderEffect.createBlurEffect(30, 30, Shader.TileMode.CLAMP));
}

public com.an.wallblur(Context context, AttributeSet attrs) {
super(context, attrs);
contextM = context;
setRenderEffect(RenderEffect.createBlurEffect(30, 30, Shader.TileMode.CLAMP));
}


public com.an.wallblur(Context context) {
super(context);
contextM = context;
setRenderEffect(RenderEffect.createBlurEffect(30, 30, Shader.TileMode.CLAMP));
}

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
WallpaperManager wallpaperManager = WallpaperManager.getInstance(contextM);
setImageDrawable(wallpaperManager.getDrawable());
}

}

can u help me compile it to smali?
 
Top