Welcome to this mini guide of how to add items and change the layout of the Settings.apk
Each part of this guide will be rated on how hard it is for the general person. (Out of 5 stars, 5 being hardest)
So, without further ado, here we go:
Stuff You'll Need for the guide
Apktool (And therefore Java too)
A suitable Text Editor for your OS. For Windows, Notepad++ is best, for Linux I recommend Geany In this guide I will be using Geany on Ubuntu
Zipsigner on your device (for ease of use)
adb
NOTE: If you are using Linux, run everything, including apktool and your text editor/file manager as ROOT/SUDO
Do this first: Decompiling Settings.apk
Difficulty: ★★☆☆☆
1.) Open a command window in a suitable location, where apktool.jar is also located
1.) Pull your apk from your device
Code:
adb pull /system/app/Settings.apk
2.) Pull and install the framework from your device to apktool
Code:
adb pull /system/framework/framework-res.apk
Code:
java -jar apktool.jar if framework-res.apk
3.) Decompile your Settings.apk
Code:
java -jar apktool.jar d -s Settings.apk
(No source is needed)
Editing the Strings of your Settings apk
Difficulty: ★★☆☆☆
1.) Open a file manager and go to where the Settings has decompiled to
2.) Locate and open res/xml/settings_headers.xml in your text editor
3.) Now you can find the header you wish to edit. In this one we will change "Developer settings" to "Noobs keep out"
We need to change the string referenced in this code:
Code:
<header android:icon= [user=3944923]@drawab[/user]le/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
The android:title reference is what we need to change, so open your Strings.xml, for your language (if it's not in there, open the default one)
Find (use Ctrl+F) the string that we earlier found, so I would search for "development_settings_title"
Code:
<string name="development_settings_title">Developer options</string>
Change the bit between the > and the < to what you want:
Code:
<string name="development_settings_title">Noobs keep out</string>
4.) Save and proceed to recompiling
Editing the Settings option's icon
Difficulty: ★★★☆☆
1.) Open a file manager and go to where the Settings has decompiled to
2.) Locate and open res/xml/settings_headers.xml in your text editor
3.) Locate the header you wish to change. In this one we will edit the "Development Settings" to have the "ic_settings_advanced" icon (included in CM based ROMs only)
4.) Find the header you want to edit, we want to edit this one:
Code:
<header android:icon= [user=3944923]@drawab[/user]le/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
5.) Edit the android:icon location to the icon you wish to have. The icons are in res/drawable-hdpi, mdpi, ldpi and xhdpi (depending on ROM)
We want to change it to ic_settings_advanced, so ours will look like:
Code:
<header android:icon= [user=3944923]@drawab[/user]le/ic_settings_advanced" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
6.) If you don't want to add icons, proceed to recompiling
7.) Adding icons:
To get icons that fit, see this zip from Google: Download
i) Find the icon you wish to add, make sure it fits your screen's icon resolution (can be found with the dimension of current ic_settings icons in the apk)
ii) Copy it to the correct folder (hdpi, mdpi, xhdpi, ldpi)
iii) Name it something similar (ic_settings_<name>)
iv) Refer to it in the xml, using @drawable/ic_settings_<name>
8.) Proceed to recompiling
Adding options to the settings headers
Difficulty: ★★★★☆
Note: In adding settings you can open things such as GooManager for updates quickly and easily from the menu with "About phone" and "Developer settings" in it
1.) Open your decompiled settings_headers.xml
2.) Locate where you want to add an option, and add a new line:
Add this code:
Code:
<header android:icon= [user=3944923]@drawab[/user]le/ic_settings_name" android:id="@id/id" android:title="@string/title">
<intent android:targetPackage="pkgName" android:action="android.intent.action.MAIN" android:targetClass="pkgName.Activity" />
</header>
3.) What to change:
Change android:icon to the icon you want (for more info see "adding/changing icons")
Add a title to values/strings.xml and reference it in android:title
Change the android:targetPackage to the package name of the app you want to open. This can be found in the AndroidManifest of that particular app
Change the android:targetClass to the package name, followed by the activity you want to open, again found in that particular app's AndroidManifest
Change the android:id to an id that you can add in values/ids.xml (or delete it if you want)
4.) Proceed to recompiling
Adding dividers to settings
Difficulty: ★★★☆☆
Adding to the main settings screen:
1.) Open your settings_headers.xml
2.) Locate where you want to add a divider
3.) Add the following code:
Code:
<header android:id="@id/id" android:title="@string/title" />
Stuff to change:
Change the android:id to one that you added in values/ids.xml (or delete it if you want)
Change the android:title to your title in strings.xml
4.) If that's all you want, proceed to recompiling
Adding to the submenus:
1.) Open the submenu that you want to edit's xml (they're quite obvious of which one is which)
2.) Locate where you want to add a divider
3.) Add the following code:
At the start of where you want to have the divider
Code:
<PreferenceScreen android:title="@string/title" android:key="key">
Just before the next divider:
Code:
</PreferenceScreen>
Stuff to change:
Change the android:title to your title in strings.xml
Change the key to whatever you want
4.) Proceed to recompiling
Reordering Settings
Difficulty: ★★☆☆☆
1.) Open either the settings_headers.xml or a submenu, the process is the same
2.) Cut and paste the different options to your desired order
3.) That's all, proceed to recompiling
Adding items to submenus
Want to add a "Credits" option to your "About device" menu? This is what you need
Difficulty: ★★★☆☆
1.) Open your submenu xml you want (device_info_settings.xml is the about device submenu)
2.) Find your desired location of your new option and make a new line
3.) Paste the following code:
Code:
<Preference android:title="@string/title" android:key="key" android:summary="@string/summary" style="?android:preferenceInformationStyle" />
Stuff to change:
Change android:title to the title you added in values/strings.xml
Change android:key to whatever you want
Change android:summary to the longer text that you want that you added to values/strings.xml
4.) Proceed to recompiling
Bonus: Forcing "Developer settings" to be available by default on 4.2
Difficulty: ★★☆☆☆
1.) Open the settings_headers.xml
2.) Locate the following code:
Code:
<header android:icon= [user=3944923]@drawab[/user]le/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
3.) Change the id from development_settings to development_settings_force
Code:
<header android:icon= [user=3944923]@drawab[/user]le/ic_settings_development" android:id="@id/development_settings_force" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
4.) Open values/ids.xml
5.) Add the following line:
Code:
<item type="id" name="development_settings_force">false</item>
6.) Proceed to recompiling
Do this last: Recompiling
Difficulty: ★★☆☆☆
1.) Re-open the command window that you used to decompile, in the same location
2.) Run the following code:
Code:
java -jar apktool.jar b Settings
3.) Push the new, unsigned apk to your device:
Code:
adb push Settings/dist/Settings.apk /sdcard/
4.) On the device, open Zipsigner and select the Settings.apk using the in/out button
5.) On the dropdown, select "platform"
6.) Press sign
7.) When it's done, run the following codes in the command window on the PC:
(Note: Some people might need to run 'adb root' first)
Code:
adb remount
Code:
adb shell cp /system/app/Settings.apk /system/app/Settings.bak
Code:
adb shell cp /sdcard/Settings-signed.apk /system/app/Settings.apk
8.) Reboot your device, you are done
Troubleshooting:
My apk doesn't recomplile!
Look in the command window, it should tell you where the error is, and try to fix it. If you can't, post the error log here and I/someone else will try to help
My new settings doesn't appear!
Did you sign it properly? Try that again. Else, you're out of luck
Something else is wrong!!!!1111
Leave a reply and wait, don't spam, and someone (if not me) will try to help
Screenshots for inspiration:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What I did:
Added an option to update, opens GooManager, using ic_action_mark from the zip from Google
Added an option that opens SuperSU, icon from the newer Settings.apk in ParanoidAndroid
Changed the title and icon of Developer Settings, as well as forcing it to always be there
Reordered the developer settings, and added different dividers
Re: [GUIDE][4.0+] Add items to Settings.apk / Change Layout
Nice write up
TEAM MiK
MikROMs Since 3/13/11
What the heck does this mean?
Code:
Plays2s-iMac:Folder Plays2$ java -jar apktool.jar b Settings
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
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.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I'm on mac btw
Re: [GUIDE][4.0+] Add items to Settings.apk / Change Layout
Plays2 said:
What the heck does this mean?
Code:
Plays2s-iMac:Folder Plays2$ java -jar apktool.jar b Settings
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
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.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I'm on mac btw
Click to expand...
Click to collapse
It can't open the apk for some reason, check it's there and not corrupted
Sent from my ARCHOS 80G9 using Tapatalk HD
Re: [GUIDE][4.0+] Add items to Settings.apk / Change Layout
This is great! Thank you for this
Huge Wallpaper Collection
Hey I thought I would ask this here, i have extra options etc... in my AOSP settings. However, when I add the same strings to my HTC settings.apk, nothing ever shows up do you guys have any suggestions?
Thanks in advance.
Code:
C:\Users\Hakan\Desktop\android compile\esas>java -jar apktool.jar b Settings
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\Hakan\AppData\Local\Temp
\APKTOOL4787001507934327803.tmp, -0, arsc, -I, C:\Users\Hakan\apktool\framework\
1.apk, -S, C:\Users\Hakan\Desktop\android compile\esas\Settings\res, -M, C:\User
s\Hakan\Desktop\android compile\esas\Settings\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, 15, --target-sdk-version, 15, -F, C:
\Users\Hakan\AppData\Local\Temp\APKTOOL4787001507934327803.tmp, -0, arsc, -I, C:
\Users\Hakan\apktool\framework\1.apk, -S, C:\Users\Hakan\Desktop\android compile
\esas\Settings\res, -M, C:\Users\Hakan\Desktop\android compile\esas\Settings\And
roidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\Users\Hakan\AppData\Local\Temp\A
PKTOOL4787001507934327803.tmp, -0, arsc, -I, C:\Users\Hakan\apktool\framework\1.
apk, -S, C:\Users\Hakan\Desktop\android compile\esas\Settings\res, -M, C:\Users\
Hakan\Desktop\android compile\esas\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, [B]Sistem belirtilen dosyay? bulam?yor[/B]
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, [B]Sistem belirtilen dosyay?
bulam?yor[/B]
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
C:\Users\Hakan\Desktop\android compile\esas>
Means system cant find the file in English. What should I do?
forzaakill said:
Code:
C:\Users\Hakan\Desktop\android compile\esas>java -jar apktool.jar b Settings
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\Hakan\AppData\Local\Temp
\APKTOOL4787001507934327803.tmp, -0, arsc, -I, C:\Users\Hakan\apktool\framework\
1.apk, -S, C:\Users\Hakan\Desktop\android compile\esas\Settings\res, -M, C:\User
s\Hakan\Desktop\android compile\esas\Settings\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, 15, --target-sdk-version, 15, -F, C:
\Users\Hakan\AppData\Local\Temp\APKTOOL4787001507934327803.tmp, -0, arsc, -I, C:
\Users\Hakan\apktool\framework\1.apk, -S, C:\Users\Hakan\Desktop\android compile
\esas\Settings\res, -M, C:\Users\Hakan\Desktop\android compile\esas\Settings\And
roidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\Users\Hakan\AppData\Local\Temp\A
PKTOOL4787001507934327803.tmp, -0, arsc, -I, C:\Users\Hakan\apktool\framework\1.
apk, -S, C:\Users\Hakan\Desktop\android compile\esas\Settings\res, -M, C:\Users\
Hakan\Desktop\android compile\esas\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, [B]Sistem belirtilen dosyay? bulam?yor[/B]
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, [B]Sistem belirtilen dosyay?
bulam?yor[/B]
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
C:\Users\Hakan\Desktop\android compile\esas>
Means system cant find the file in English. What should I do?
Click to expand...
Click to collapse
I thought that's your aapt is error
@OP, here's what I've done
Anyway big thanks to you, sometimes pressing Thanks button it not enough
via XDA for Timescape™
Diaz1999 said:
@OP, here's what I've done
Anyway big thanks to you, sometimes pressing Thanks button it not enough
via XDA for Timescape™
Click to expand...
Click to collapse
Very nice
Sent from my Archos G9 using Tapatalk HD
Can this method be used to Remove the "Airplane Mode" Icon I have it under "Notification Drawer"
My phones new 4.1.1 ROM has annoying Airplane Mode button which I accidentially touch many times.
I have following buttons
WIFI, Bluetooth, GPS, Data Conn, Airplane
I have the root access as well as complete flash-able ROM provided by service center.
Any Help ?
ghpk said:
Can this method be used to Remove the "Airplane Mode" Icon I have it under "Notification Drawer"
My phones new 4.1.1 ROM has annoying Airplane Mode button which I accidentially touch many times.
I have following buttons
WIFI, Bluetooth, GPS, Data Conn, Airplane
I have the root access as well as complete flash-able ROM provided by service center.
Any Help ?
Click to expand...
Click to collapse
Yes you can
I signed the spk correct and added it to my rom, but after flashing the settings app does not appear! Sadly...
What can I do!
Diaz1999 said:
Yes you can
Click to expand...
Click to collapse
I decompiled the apk , opened up the settings_headers.xml but there is nothing as such as shown in this thread :/ . I am using notepad++ in windows and its showing something like this
Code:
Œ è ! *
( : D q t ‰ ’ » î > G { * Ç ð # Z „ ¼ ä N u Å ò id title fragment icon action breadCrumbTitle android **http://schemas.android.com/apk/res/android preference-headers header &&com.android.settings.wifi.WifiSettings 00com.android.settings.bluetooth.BluetoothSettings %%com.android.settings.DataUsageSummary %%com.android.settings.WirelessSettings intent 11com.android.settings.OPERATOR_APPLICATION_SETTING ""com.android.settings.SoundSettings $$com.android.settings.DisplaySettings &&com.android.settings.deviceinfo.Memory 00com.android.settings.fuelgauge.PowerUsageSummary 44com.android.settings.applications.ManageApplications ''com.android.settings.users.UserSettings 55com.android.settings.MANUFACTURER_APPLICATION_SETTING %%com.android.settings.LocationSettings %%com.android.settings.SecuritySettings ??com.android.settings.inputmethod.InputMethodAndLanguageSettings $$com.android.settings.PrivacySettings %%android.settings.ADD_ACCOUNT_SETTINGS %%com.android.settings.DateTimeSettings **com.android.settings.AccessibilitySettings ((com.android.settings.DevelopmentSettings ''com.android.settings.DeviceInfoSettings € Ð áã - ÿÿÿÿ $ ÿÿÿÿÿÿÿÿ L ÿÿÿÿÿÿÿÿ
ÿÿÿÿ Ø ÿÿÿÿ ÿÿÿÿÿÿÿÿ
t ÿÿÿÿÿÿÿÿ
ÿÿÿÿ s ÿÿÿÿ Ù ÿÿÿÿ Ó ÿÿÿÿÿÿÿÿ
t ! ÿÿÿÿÿÿÿÿ
ÿÿÿÿ b ÿÿÿÿ Ú ÿÿÿÿ j % ÿÿÿÿÿÿÿÿ
t ( ÿÿÿÿÿÿÿÿ
ÿÿÿÿ d ÿÿÿÿ Û ÿÿÿÿ 5
, ÿÿÿÿÿÿÿÿ
L / ÿÿÿÿÿÿÿÿ
ÿÿÿÿ Ü 8 2 ÿÿÿÿÿÿÿÿ 2 ÿÿÿÿÿÿÿÿ 3 ÿÿÿÿÿÿÿÿ
ˆ 6 ÿÿÿÿÿÿÿÿ
ÿÿÿÿ 1 ÿÿÿÿ Ý ÿÿÿÿ ï ÿÿÿÿ ð ; ÿÿÿÿÿÿÿÿ
L > ÿÿÿÿÿÿÿÿ
ÿÿÿÿ Þ ÿÿÿÿ ? ÿÿÿÿÿÿÿÿ
t B ÿÿÿÿÿÿÿÿ
ÿÿÿÿ n ÿÿÿÿ ß
The above code is taken when opened in notepad , as i cannot copy from notepad++ . Instead of the yyy , notepad++ is showing NUL , NUL , CAN , US codes .
Maybe something with the text formatting . I dont know XML . what to do ??
And where can i find strings.xml , or values.xml ??
[ Okay i am a noob here :/ ]
mimi_atmam said:
I decompiled the apk , opened up the settings_headers.xml but there is nothing as such as shown in this thread :/ . I am using notepad++ in windows and its showing something like this
Code:
Œ è ! *
( : D q t ‰ ’ » î > G { * Ç ð # Z „ ¼ ä N u Å ò id title fragment icon action breadCrumbTitle android **http://schemas.android.com/apk/res/android preference-headers header &&com.android.settings.wifi.WifiSettings 00com.android.settings.bluetooth.BluetoothSettings %%com.android.settings.DataUsageSummary %%com.android.settings.WirelessSettings intent 11com.android.settings.OPERATOR_APPLICATION_SETTING ""com.android.settings.SoundSettings $$com.android.settings.DisplaySettings &&com.android.settings.deviceinfo.Memory 00com.android.settings.fuelgauge.PowerUsageSummary 44com.android.settings.applications.ManageApplications ''com.android.settings.users.UserSettings 55com.android.settings.MANUFACTURER_APPLICATION_SETTING %%com.android.settings.LocationSettings %%com.android.settings.SecuritySettings ??com.android.settings.inputmethod.InputMethodAndLanguageSettings $$com.android.settings.PrivacySettings %%android.settings.ADD_ACCOUNT_SETTINGS %%com.android.settings.DateTimeSettings **com.android.settings.AccessibilitySettings ((com.android.settings.DevelopmentSettings ''com.android.settings.DeviceInfoSettings € Ð áã - ÿÿÿÿ $ ÿÿÿÿÿÿÿÿ L ÿÿÿÿÿÿÿÿ
ÿÿÿÿ Ø ÿÿÿÿ ÿÿÿÿÿÿÿÿ
t ÿÿÿÿÿÿÿÿ
ÿÿÿÿ s ÿÿÿÿ Ù ÿÿÿÿ Ó ÿÿÿÿÿÿÿÿ
t ! ÿÿÿÿÿÿÿÿ
ÿÿÿÿ b ÿÿÿÿ Ú ÿÿÿÿ j % ÿÿÿÿÿÿÿÿ
t ( ÿÿÿÿÿÿÿÿ
ÿÿÿÿ d ÿÿÿÿ Û ÿÿÿÿ 5
, ÿÿÿÿÿÿÿÿ
L / ÿÿÿÿÿÿÿÿ
ÿÿÿÿ Ü 8 2 ÿÿÿÿÿÿÿÿ 2 ÿÿÿÿÿÿÿÿ 3 ÿÿÿÿÿÿÿÿ
ˆ 6 ÿÿÿÿÿÿÿÿ
ÿÿÿÿ 1 ÿÿÿÿ Ý ÿÿÿÿ ï ÿÿÿÿ ð ; ÿÿÿÿÿÿÿÿ
L > ÿÿÿÿÿÿÿÿ
ÿÿÿÿ Þ ÿÿÿÿ ? ÿÿÿÿÿÿÿÿ
t B ÿÿÿÿÿÿÿÿ
ÿÿÿÿ n ÿÿÿÿ ß
The above code is taken when opened in notepad , as i cannot copy from notepad++ . Instead of the yyy , notepad++ is showing NUL , NUL , CAN , US codes .
Maybe something with the text formatting . I dont know XML . what to do ??
And where can i find strings.xml , or values.xml ??
[ Okay i am a noob here :/ ]
Click to expand...
Click to collapse
You didn't decompile, you extracted. Decompile it using apktool
Sent from my GALAXY NEXUS using Tapatalk 4 (VIP)
Quinny899 said:
You didn't decompile, you extracted. Decompile it using apktool
Sent from my GALAXY NEXUS using Tapatalk 4 (VIP)
Click to expand...
Click to collapse
Okay now i have decompiled , but it shows some java error , then i installed the framework too , but it shows error on recompilation :/ :/
what to do ?
mimi_atmam said:
Okay now i have decompiled , but it shows some java error , then i installed the framework too , but it shows error on recompilation :/ :/
what to do ?
Click to expand...
Click to collapse
Post the error please
Sent from my GALAXY NEXUS using Tapatalk 4 (VIP)
Can you make a video on how to Add options to the settings headers? I keep on getting SystemUI Crashes when i try to open up settings on my ROM. ._.
Remove "Background Data" Notification
I wish to permanently use the "Restrict background data" feature ( under settings->data usage ), but the problem is that when I enable that feature, I always get a notification, asking me to "touch to remove" that feature... But I just don't wish to do that, even by mistake!
I don't know what and where to change:
I used "apktool" to unpack the apk, but again - which file should I change ? what value/line should I delete ?
My rom is VJ's AOKP v2.2, so "Settings.apk" file is from that rom's version.
Any help would be great !:highfive:
hello, thanks for this great tuts ...
i want to ask something, currently i am using stock rom for Lenovo s890 using Android 4.1.1
in settings > developer options is only show 3 options (adb, stay awake, and allow mock location), can i add more of developer settings like force hw ui, animation speed, etc. i can't figure out where to find this. i am looking at development_prefs.xml and everything is there.
please anyone know how to add / show more options in developer setting ?
thanks,
jacknb1ack
Related
Hi!
I've been working on a Miui ROM for the Wildfire S. I am using MiCode Patchrom. I'm having some problems—can you help me?
Here's the log: (under Mac OS X Lion)
>>> Install framework resources for apktool...
install framework-miui-res.apk
/Users/Paul/patchrom/tools/apktool --quiet if /Users/Paul/patchrom/miui/system/framework/framework-miui-res.apk
unzip >/dev/null CM9_modpunk.zip "system/framework/*.apk" -d out
install out/system/framework//framework-res.apk
<<< install framework resources completed!
>>> build out/framework-res.apk...
add miui overlay resources
/Users/Paul/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/Users/Paul/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
(skipping hidden file '/Users/Paul/patchrom/marvel/out/framework-res/res/.DS_Store')
invalid resource directory name: /Users/Paul/patchrom/marvel/out/framework-res/res/drawable-xmdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL6605038754455243514.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL6605038754455243514.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/framework-res.apk] Error 1
So, what gives? I've tried changing the PATH, updating ApkTool, etc…, and most of the questions about this on forums aren't very helpful.
Thanks!
Also—I'm building Miui v4
SOLVED
ok i did it kinda
i deleted anything that had to do with these lines
in all the values folders (about 50)
<item type="drawable" name="ic_ab_back_holo_dark">false</item>
<item type="drawable" name="ic_ab_back_holo_light">false</item>
<item type="drawable" name="popup_inline_error">false</item>
<item type="drawable" name="popup_inline_error_above">false</item>
<item type="drawable" name="popup_inline_error_above_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_above_holo_light">false</item>
<item type="drawable" name="popup_inline_error_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_holo_light">false</item> @grgsiocl
in the values folders. and kept deleting any line that got in my way *apktoool gave me other new errors* , this is un usable *it wont boot your device* but it compiles and decompiles without problems, after your done, just transfer the
edited files to the original apk with winrar. and use "store" for compression method
i spent like 4 hours on that. thats sad, anyways,
heres the link http://d-h.st/1qE
ok i have the latest apktool and aapt for api 17
its the framework-res.apk deodexed
i get this error
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Work here\Compile\framework-res\res/drawable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F.....
heres the full thing
Code:
C:\Work here\Compile>apktool b "C:\Work here\Compile\framework-res"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Work here\Compile\framework-res\res/drawable
-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Tem
p\APKTOOL2695060268938746519.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framewo
rk-res\res, -M, C:\Work here\Compile\framework-res\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, 17, --target-sdk-version, 17, -F, C:
\Users\SALMAN\AppData\Local\Temp\APKTOOL2695060268938746519.tmp, -x, -0, arsc, -
S, C:\Work here\Compile\framework-res\res, -M, C:\Work here\Compile\framework-re
s\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Temp\
APKTOOL2695060268938746519.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framework
-res\res, -M, C:\Work here\Compile\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Work here\Compile>
@op copy the drawable-ldrtl-hdpi somewhere and delete the folder from decompile directory and then compile back. After compiling, again copy back that folder. Another solution is , push the framework2 as well and then try compiling back. Also plurals needs to be corrected! OR UPDATE the aapt file to the latest from the android sdk
edit: ideleted entire layout folder before decompiling and after compiling back, i again placed that folder in decompiled apk. I need to check whether it really it works or not by taking backup!
Take a look here http://forum.xda-developers.com/showthread.php?t=2259308
grgsiocl said:
@op copy the drawable-ldrtl-hdpi somewhere and delete the folder from decompile directory and then compile back. After compiling, again copy back that folder. Another solution is , push the framework2 as well and then try compiling back. Also plurals needs to be corrected!
Click to expand...
Click to collapse
ok thank you so much, its building now. but then i get this error after awhile. i had to also delete "values-ldrtl-hdpi" Folder
and that folder you mentioned. i googled that ldrtl-hdpi and it turns out there no such thing mentioned about it :silly:
thats weird all i found was this post right here. anyways this is the error
Code:
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_password_landscape
.xml:22: error: Error: No resource found that matches the given name (at 'layout
' with value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_password_portrait.
xml:22: error: Error: No resource found that matches the given name (at 'layout'
with value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_tab_unlock.xml:23:
error: Error: No resource found that matches the given name (at 'layout' with v
alue '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_tab_unlock_land.xm
l:17: error: Error: No resource found that matches the given name (at 'layout' w
ith value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_unlock_landscape.x
ml:18: error: Error: No resource found that matches the given name (at 'layout'
with value '@layout/keyguard_transport_control').
C:\Work here\Compile\framework-res\res\layout\keyguard_screen_unlock_portrait.xm
l:23: error: Error: No resource found that matches the given name (at 'layout' w
ith value '@layout/keyguard_transport_control').
aapt: warning: string 'default_audio_route_name_hdmi' has no default translation
in C:\Work here\Compile\framework-res\res; found: en_GB es
aapt: warning: string 'default_permission_group' has no default translation in C
:\Work here\Compile\framework-res\res; found: en_GB es
aapt: warning: string 'perms_hide' has no default translation in C:\Work here\Co
mpile\framework-res\res; found: en_GB es
aapt: warning: string 'perms_show_all' has no default translation in C:\Work her
e\Compile\framework-res\res; found: en_GB es
aapt: warning: string 'securekeypad_restrict' has no default translation in C:\W
ork here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg' has no default translation in
C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_all' has no default translation
in C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_applicationmanager' has no defa
ult translation in C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_more' has no default translatio
n in C:\Work here\Compile\framework-res\res; found: zh_CN
aapt: warning: string 'ss_clear_default_hint_msg_settings' has no default transl
ation in C:\Work here\Compile\framework-res\res; found: zh_CN
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Tem
p\APKTOOL7074233155691749137.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framewo
rk-res\res, -M, C:\Work here\Compile\framework-res\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, 17, --target-sdk-version, 17, -F, C:
\Users\SALMAN\AppData\Local\Temp\APKTOOL7074233155691749137.tmp, -x, -0, arsc, -
S, C:\Work here\Compile\framework-res\res, -M, C:\Work here\Compile\framework-re
s\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\SALMAN\AppData\Local\Temp\
APKTOOL7074233155691749137.tmp, -x, -0, arsc, -S, C:\Work here\Compile\framework
-res\res, -M, C:\Work here\Compile\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Work here\Compile>
@grgsiocl
@op i will check in a while on my computer as i see it is not finding the resources. I will get back to you!
the "values-ldrtl-hdpi" includes 1 file called "drawables.xml"
and inside it is
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="ic_ab_back_holo_dark">false</item>
<item type="drawable" name="ic_ab_back_holo_light">false</item>
<item type="drawable" name="popup_inline_error">false</item>
<item type="drawable" name="popup_inline_error_above">false</item>
<item type="drawable" name="popup_inline_error_above_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_above_holo_light">false</item>
<item type="drawable" name="popup_inline_error_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_holo_light">false</item>
</resources>
@grgsiocl
ok i did it kinda
i deleted anything that had to do with these lines
in all the values folders (about 50)
<item type="drawable" name="ic_ab_back_holo_dark">false</item>
<item type="drawable" name="ic_ab_back_holo_light">false</item>
<item type="drawable" name="popup_inline_error">false</item>
<item type="drawable" name="popup_inline_error_above">false</item>
<item type="drawable" name="popup_inline_error_above_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_above_holo_light">false</item>
<item type="drawable" name="popup_inline_error_holo_dark">false</item>
<item type="drawable" name="popup_inline_error_holo_light">false</item>
@grgsiocl
in the values folders. and kept deleting any line that got in my way *apktoool gave me other new errors* , this is un usable *it wont boot your device* but it compiles and decompiles without problems, after your done, just transfer the
edited files to the original apk with winrar. and use "store" for compression method
i spent like 4 hours on that. thats sad, anyways,
heres the link http://d-h.st/1qE
i can decompile and recompile systemui.apk
i can decompile framework-res.apk but i can't recompile framework-res
this log :
D:\android\APKTool\APKTool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\android\APKTool\APKTool\framework-res\res/dr
awable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\
APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\fra
mework-res\res, -M, D:\android\APKTool\APKTool\framework-res\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, 17, --target-sdk-version, 17, -F, C:
\Users\user\AppData\Local\Temp\APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S,
D:\android\APKTool\APKTool\framework-res\res, -M, D:\android\APKTool\APKTool\fr
amework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\AP
KTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\frame
work-res\res, -M, D:\android\APKTool\APKTool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
i think i wrong edit my framework-res.apk but i try decompile and no edit ,its same cannot recompile framework-res
sorry to my english
friend try this
hi friend i think there is ssomething error in the apktool
i have posted a link below
:cyclops: http://forum.xda-developers.com/showpost.php?p=43353411&postcount=54:cyclops:
download that version
unzip that file to a specific folder ther you open comand prompt by shift+right click
in that first type
step-1
apktool if framework-res.apk (here xxxxxx.apk is your desired apk file)
step-2(decompile)
apktool d xxxxxxx.apk
step-3(recompile)
apktool b -f -d xxxxxxx
you find the recompiled apk in xxxxxx/dist folder open it with winrar or 7zip .now open original apk file with 7zip or winrar and drag and drop
META-INF and resource files there give the compression level as (store) and sign it(important)
step-4(sign)
java -jar signapk.jar testkey.x509.pem testkey.pk8 xxxxxxx.apk xxxxxxx_signed.apk
step-5(zipalign)
zipalign -fv 4 xxxxxxxx.apk xxxxxxxx-new.apk
to zip align you must install android sdk software in that go to tools/ there you search for (draw9patch.bat) and (zipalign.exe)
copy that two files and paste in C:\windows\paste it
hit thanks if i helped
i have apktool and all software for apktool i do decompile framework-res.apk working perfectly but i m also recompile apk it's send this error
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'headset_pin_recognition' has no default translation in C:
\apktool\framework-res\res; found: zh_CN
C:\apktool\framework-res\res\layout\keyguard_screen_password_landscape.xml:21: e
rror: Error: No resource found that matches the given name (at 'layout' with val
ue '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_password_portrait.xml:21: er
ror: Error: No resource found that matches the given name (at 'layout' with valu
e '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock.xml:22: error: Er
ror: No resource found that matches the given name (at 'layout' with value '@lay
out/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock_land.xml:16: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_landscape.xml:18: err
or: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_portrait.xml:20: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\T
emp\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:
\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\VINODK~1\AppData\Local\Temp\APKTOOL5014567853137649274.tmp, -x, -S, C:\ap
ktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\Tem
p\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:\a
pktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
what should i do plz help
thanks in advanced
at first you have wrong posted,it shall be in Q/A section,now the second,did you install the framework res before?when not do it and it shall work than.
hey bro sorry because when i posting this i have only permission in this section Sorry i was always tried it but getting this error
Did you change any files in the APK package?? If you send me the framework, may be I will be able to help.
Problem Solved
thanks for helping me problem has solved i did add + in the error of xmls this is working greate
I wanna ask how to decompile LINE app.. There are lots of outdated steps which i had followed and not working.
I installed framework-res from my zenfone 5
I tried to decompile line apk and it returns:
Code:
D:\Louis' Backup\Project\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse>apktool d -f linemod.apk lin
emod
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:469)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:174)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
Please, help me with decompiling line