• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root anyone good with apktool?

Lordvincent 90

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
im trying to make some changes to secsettings.apk an i keep getting some errors.

if i decompile and recompile without making any changes it builds fine.

but once i make the changes (trying to add an additional menu) i get this error
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL2329342052280133144.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -S, C:\users\admin\_working\SecSettings.apk\res, -M, C:\users\admin\_working\SecSettings.apk\AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
    at brut.androlib.Androlib.buildResources(Androlib.java:283)
    at brut.androlib.Androlib.build(Androlib.java:206)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL2329342052280133144.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -S, C:\users\admin\_working\SecSettings.apk\res, -M, C:\users\admin\_working\SecSettings.apk\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL2329342052280133144.tmp, -I, C:\Users\Admin\apktool\framework\1.apk, -S, C:\users\admin\_working\SecSettings.apk\res, -M, C:\users\admin\_working\SecSettings.apk\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
    ... 6 more
anyone have any insight?
this is the guide i followed, if that helps any
http://forum.xda-developers.com/showthread.php?t=2341389
 
So just for clarity, you followed the guide to a "t"?


Just trying to figure out what exactly you edited
 
So just for clarity, you followed the guide to a "t"?


Just trying to figure out what exactly you edited

I substituted the app in question for wireless tether for root users, but beyond that, yes. To a t.

And to clarify, I'm simply trying to add the app to the settings menu, not place it in a sub menu.
 
I just got finished talking to slayer about this topic the other day...
I had a couple of app I wanted to move to the settings menu, along with adding a second profile
These may help
suvu5ume.jpg


http://forum.xda-developers.com/showthread.php?t=2237753

http://mobility.forumsee.com/a/m/s/...ng-adding-applications-the-settings-menu.html
 
That first link is essentially the same steps i followed.

The second link has the added step of editing public.xml this might be the missing step. I'll try this when i get home tonight
 
Back
Top Bottom