Nice Guide My Brother!!
Many THANKS for this awesomeness :good:
Thank you mate.... I hope this is useful.
Nice Guide My Brother!!
Many THANKS for this awesomeness :good:
this guide work on Deodex apk file?
i try all the step go well but after install settings.apk via Cwm go well to but it show
http://imageshack.us/photo/my-images/69/settingsir.png/
from y ? i just edit some word only (not del) (device_info_settings.xml) i edit in this xml please help
Sure mate, .... This guide works on deodexed rom.. Make sure that you change, replace, or whatever it is .. that you do not miss a single word. you try to repeat again, perhaps there is a missing.. if you get still problem... please post the logcat or xml file that you edit
Hi, @chandarakk, step you are doing is correct, but I'm not sure..whether xml file which you change that makes settings.apk become FC, or this apktool makes settings.apk FC..
okay... try this one apktool,
Download :
http://code.google.com/p/android-apktool/downloads/list
- apktool1.5.2.tar.bz2
- apktool-install-windows-r05-ibot.tar.bz2 (if you use Window)
Extract and replace to apktool on this thread :..
- apktool.jar
- apktool.bat
- aapt.exe
feedback again......
@ibanez7,
I tried what u suggested, but its always bootloops .
1. tried different apk tools 1.5.2, same issue
2 tried with Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse.zip, same issue
3. tried APK-Multi-Tool-Stable-RELEASE, same issue.
steps iam doing: fix auto brightness / disable low battery warning
1. decompile framework-res.apk from 4.1.2 JB.
2. In the framework-res/res folder changing the xlm values of arrays(change brightness), integer xml for low battery warning.
3 compile framework-res folder.
4 copy the resource.arcs file from the compiled apk in step 3 to original framework-res.apk.
5. zipalign framework-res.apk
6. flash through cwm. zip
7. bootloops
8. restoring back the orginal framework-res.apk using cwm, still boot loops
anyhelp apperciated !
C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
apktool.bat b framework-res
zipalign.exe -f -v 4 <apk> <newapk>
thaks bro i do all as ur instruntion first post with ur new apktool 1.5.2 still same :crying:
Please mentioned what the name of your device, and what rom you use...
Mine is a jiayuG3, mediatek chipset 6577, with JB 4.1.2 deodexed, in the framework dir, i see mediatek-res.apk too. Do i need to install this 1st and then framework-res.apk ?
looks like mediatek-res.apk is not needed, its not loaded while decompiling !
C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat if mediatek-res.apk
I: Framework installed to: C:\Users\chirpy\apktool\framework\2.apk
C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat d framework-res.org.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\chirpy\Desktop\apktool_jb.4.2.2>apktool.bat b -f -d framework-res.org
W: Could not find sources
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); us
ing existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android);
using existing value in manifest.
I: Building apk file...
C:\Users\chirpy\Desktop\apktool_jb.4.2.2>
Sir, can you tell me how can I change claear notification button from cetner to the right? i add screenshot.
thanks
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
<LinearLayout android:id="@id/buttons_bar" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
</LinearLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
Edit
Thank youCode:<?xml version="1.0" encoding="utf-8"?> <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false" xmlns:android="http://schemas.android.com/apk/res/android"> <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" /> <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" /> <LinearLayout android:id="@id/buttons_bar" android:layout_width="wrap_content" android:layout_height="wrap_content"> <com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" /> <ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" /> </LinearLayout> <Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" /> <ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" /> </LinearLayout>
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" [COLOR="Red"]android:scaleType="right"[/COLOR] android:contentDescription="@string/accessibility_clear_all" />
hi, i have a problem in signing, when i put the code it has an error saying " ERROR: unable to acces jarfile signapk.jar"
pls help, thanks and more power
How to decompile and recompile framework-res.apk??
Need to install framework again?
In cmd : apktool if framework-res.apk? < needed?
or directly
apktool d framework-res.apk?
Thanks before Nice thread btw help a lot :good:
Okay, try to change this line :
Code:<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
To :
Code:<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" [COLOR="Red"]android:scaleType="right"[/COLOR] android:contentDescription="@string/accessibility_clear_all" />
if still same, just feedback..
No luck, when i chang center to right, save. i can't compale the SystemUI.apk
I get this error:
Any suggestions??:fingers-crossed:Code:C:\AndroiSDK\Android\projects\SystemUI.apk\res\layout\status_bar_expanded_header.xml:11: error: Error: String types not allowed (at 'scaleType' with value 'right'). 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\Dzepar\AppData\Local\Temp\APKTOOL1386489261202298075.tmp, -0, arsc, -I, C:\Users\Dzepar\apktool\framework\1.apk, -S, C:\AndroiSDK\Android\projects\SystemUI.apk\res, -M, C:\AndroiSDK\Android\projects\SystemUI.apk\AndroidManifest.xml] at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353) at brut.androlib.Androlib.buildResources(Androlib.java:281) at brut.androlib.Androlib.build(Androlib.java:209) at brut.androlib.Androlib.build(Androlib.java:177) at brut.apktool.Main.cmdBuild(Main.java:237) 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\Dzepar\AppData\Local\Temp\APKTOOL1386489261202298075.tmp, -0, arsc, -I, C:\Users\Dzepar\apktool\framework\1.apk, -S, C:\AndroiSDK\Android\projects\SystemUI.apk\res, -M, C:\AndroiSDK\Android\projects\SystemUI.apk\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:406) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334) ... 5 more Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Dzepar\AppData\Local\Temp\APKTOOL1386489261202298075.tmp, -0, arsc, -I, C:\Users\Dzepar\apktool\framework\1.apk, -S, C:\AndroiSDK\Android\projects\SystemUI.apk\res, -M, C:\AndroiSDK\Android\projects\SystemUI.apk\AndroidManifest.xml] at brut.util.OS.exec(OS.java:89) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:404) ... 6 more
maybe you edited the wrong ... but if this apktool its wrong.. you can try this method first:
- Install the framework (framework also 2 if needed)
- Decompile apk file you want to edit
- After decompile, don't edit anything.
- Recompile and push back into the system on your device...
and after that..you can see, FC or not...
Please mentioned what the name of your device, and what rom you use...
apktool if framework-res.apk
apktool d GreenRockers.apk
apktool if framework-res.apk
apktool if twframework-res.apk
apktool d Settings.apk
apktool b -f -d GreenRockers
apktool b -f -d Settings
java -jar SignApk.jar testkey.x509.pem testkey.pk8 GreenRockers.apk GreenRockers_signed.apk
zipalign -fv 4 GreenRockers.apk GreenRockers-new.apk
zipalign -fv 4 SystemUI.apk SystemUI-new.apk
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<color android:color="#ff212121" />
</item>
<item>
<color android:color="#ff161616" />
</item>
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" [COLOR="Red"]android:drawable="@drawable/qs_tile_background_pressed" />
<item android:drawable="@drawable/qs_tile_background_normal" />[/COLOR]
</selector>
<color name="holo_blue_light">#ff33b5e5</color>
<color name="holo_blue_light">[COLOR="Red"]#ff9cc912[/COLOR]</color>
<style name="TextAppearance.Holo.DialogWindowTitle" parent="@*android:style/TextAppearance.Holo">
<item name="android:textSize">22.0sp</item>
<item name="android:textColor">[COLOR="Red"]@color/holo_blue_light[/COLOR]</item>
</style>
<style name="TextAppearance.Holo.Light.DialogWindowTitle" parent="@*android:style/TextAppearance.Holo.Light">
<item name="android:textSize">22.0sp</item>
<item name="android:textColor">[COLOR="Red"]@color/holo_blue_light[/COLOR]</item>
</style>
<style name="TextAppearance.Holo.DialogWindowTitle" parent="@*android:style/TextAppearance.Holo">
<item name="android:textSize">22.0sp</item>
<item name="android:textColor">[COLOR="Red"]#ff9cc912[/COLOR]</item>
</style>
<style name="TextAppearance.Holo.Light.DialogWindowTitle" parent="@*android:style/TextAppearance.Holo.Light">
<item name="android:textSize">22.0sp</item>
<item name="android:textColor">[COLOR="Red"]#ff9cc912[/COLOR]</item>
</style>
<com.android.settings.FontSizeListPreference android:title="@string/font_size_title" android:key="font_size" android:summary="@string/font_size_title" />
<com.android.settings.FontSizeListPreference android:title="@string/font_size_title" [COLOR="Red"]android:textColor="#FFFFFF"[/COLOR] android:key="font_size" android:summary="@string/font_size_title" />
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="123.0dip">
<FrameLayout android:layout_width="123.0dip" android:layout_height="123.0dip" android:layout_centerHorizontal="true">
<ImageView android:id="@id/photo" android:layout_width="123.0dip" android:layout_height="123.0dip" />
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/birthPanel" android:background="#77000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="33.0dip">
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_birthday_icon2" />
<TextView android:textSize="20.0sp" android:textColor="@color/twcolor001" android:layout_gravity="center_vertical" android:id="@id/birthdayRemainedDays" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:text="@string/BirthDay_remainedDays0" android:singleLine="true" />
</LinearLayout>
</FrameLayout>
</RelativeLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="43.0dip" android:layout_marginTop="12.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/birthIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_birthday_icon" />
<TextView android:textSize="31.0sp" android:textColor="@color/twcolor001" android:gravity="center_vertical" android:id="@id/name" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="43.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="21.0sp" android:textColor="@color/phone_number" android:gravity="center_vertical" android:id="@id/phoneNumber" android:layout_width="wrap_content" android:layout_height="29.0dip" android:singleLine="true" />
<TextView android:textSize="20.0sp" android:textColor="@color/twcolor003" android:gravity="center_vertical" android:id="@id/cdnipNumber" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:text="@string/unknown" android:singleLine="true" />
</LinearLayout>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerHorizontal="true">
<ImageView android:orientation="vertical" android:id="@id/photo" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" />
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/birthPanel" android:background="#77000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="33.0dip">
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_birthday_icon2" />
<TextView android:textSize="20.0sp" android:textColor="@color/twcolor001" android:layout_gravity="center_vertical" android:id="@id/birthdayRemainedDays" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:text="@string/BirthDay_remainedDays0" android:singleLine="true" />
</LinearLayout>
</FrameLayout>
</RelativeLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="43.0dip" android:layout_marginTop="12.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/birthIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_birthday_icon" />
</LinearLayout>
</LinearLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:textColor="@color/twcolor001" android:gravity="center_horizontal" android:id="@id/name" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="48.0dip" android:layout_marginTop="88.0dip" android:lines="2" android:singleLine="false" android:shadowColor="#ff000000" android:shadowDx="2.0" android:shadowDy="2.0" android:shadowRadius="2.0" android:layout_centerHorizontal="true" />
<TextView android:textSize="16.0sp" android:textColor="@color/phone_number" android:gravity="center_horizontal" android:id="@id/phoneNumber" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="29.0dip" android:layout_marginTop="126.0dip" android:singleLine="false" android:shadowColor="#ff000000" android:shadowDx="2.0" android:shadowDy="2.0" android:shadowRadius="2.0" android:layout_centerHorizontal="true" />
<TextView android:textSize="16.0sp" android:textColor="@color/twcolor003" android:gravity="center_horizontal" android:id="@id/cdnipNumber" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/unknown" android:singleLine="true" />
</RelativeLayout>
</FrameLayout>
minSdkVersion: '[COLOR="Red"]16[/COLOR]'
targetSdkVersion: '17'
minSdkVersion: '[COLOR="Red"]14[/COLOR]'
targetSdkVersion: '17'