If all you are after are smali edits (seems to be in this case), you can just pull out the classes.dex from the apks themselves and get at them using baksmali/smali. In the spirit of sharing near exactly what I did - I have a windows machine (I tend to use CygWin for tinkering), so I end up using something like (note you will need to change file names and paths/directories as appropriate of course):
I know little really, but I think this is basically saying "hey java take this baksmali jar file and use it to decompile the 4.1.x classes.dex file and throw the results of that into this directory"
Then do the edits, and
Again, my interpretation is this is just saying "hey java using up to this much memory use this smali jar file and recompile the stuff in this directory into a 4.1.x classes.dex file"
The new classes.dex can get dropped back into the apk, then push/stick it in a flashable zip and all is well. I've done this for both SecSettings and SysScope on a T-Mobile T889 stock 4.1.2 base. Hope this helps
Also - have you found the methods that do the sysscope checking in BCService and SecSettings? Just curious - I can look for them as well but figured I would ask first to not redo work already done
Code:
java -jar baksmali-1.4.2.jar -a 16 -o /wherever/the/decompiled/stuff/should/go/outSysScope/ classes.dex
Then do the edits, and
Code:
java -Xmx1024M -jar smali-1.4.2.jar -a 16 /wherever/the/to/be/recompiled/stuff/is/outSysScope/ -o classes.dex
The new classes.dex can get dropped back into the apk, then push/stick it in a flashable zip and all is well. I've done this for both SecSettings and SysScope on a T-Mobile T889 stock 4.1.2 base. Hope this helps
Also - have you found the methods that do the sysscope checking in BCService and SecSettings? Just curious - I can look for them as well but figured I would ask first to not redo work already done