This is a tool for Android that can convert public IDs when porting smali files.
-
Search all smali files on a smali directory for all IDs contained in smali files.
-
Convert all IDs within smali files to new IDs.
-
Implement guide port (for convert smali step).
-
Give storage permission.
-
This tool use OI File Manager as file picker, if device have problem with in-app install, please install this file manager normally.
For more about OI File Manager, visit http://www.openintents.org/filemanager/
-
Make sure you have enough free space memory on Internal Storage.
-
Get Source Public from guide port.
-
Decompile your apk that will be port.
-
Follow guide port, add resources, recompile, decompile again to get Port Public.
-
Parsing smali Directory from guide as SMALI DIR, do not use smali from your apk because it may be very big.
-
Enter Find IDs function and see the Log.
-
Compare Log with guide to make sure that will be correct.
-
Enter Convert function and checkout Log again .
-
Smali-NEW may be output to /sdcard/PublicIDConverter/$DATE-TIME/ but you can see full path in Log too.
-
If this tool convert more/less than you need, or incorrect, just go to Smali-NEW and fix normally.
-
Put Smali-NEW to apk smali directory and recompile, sign, done.
-
Source Public and smali Directory are enough to use Find IDs function.
-
If you want to create guide port (for convert smali step), just save and modify the Log after converted smali.