Last active
August 29, 2015 14:03
-
-
Save ganadist/a0cb00c4aac0d11571be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cmd; | |
/** | |
1. root your glass | |
2. put dalvik bytecode library to /data/locale_.jar | |
3. run like this | |
# env CLASSPATH=/data/locale_.jar /system/bin/app_process /data com.cmd.Locale | |
*/ | |
import android.app.ActivityManagerNative; | |
import android.app.IActivityManager; | |
import android.content.res.Configuration; | |
import android.os.RemoteException; | |
public class Locale { | |
public static void main(String[] args) { | |
try { | |
IActivityManager am = ActivityManagerNative.getDefault(); | |
Configuration config = am.getConfiguration(); | |
config.setLocale(java.util.Locale.KOREA); | |
am.updateConfiguration(config); | |
} catch (RemoteException e) { } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment