Posted by : Derry Adrian Minggu, 01 Juni 2014

Hey para opreaker....kali ini ane bkal bgi cara buat carrier logo di tengah....ini ane pake versi lain :D ane pke yang dari tutorial nya om chimot..langsung aj ya di simak

SS 



Bahan :
Gambar buat carrier nya

Tutorial:
1.Decompile SystemUI.apk
2.Ke res/layout/statusbar.xml
3.Taro script ini setelah 
     xmlns:android="http://schemas.android.com/apk/res/android">

Ini script nya

            <LinearLayout android:orientation="horizontal" android:background="@null" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="32.0" android:layout_weight="1.0">
                <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
                    <FrameLayout android:layout_gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                        <LinearLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                            <ImageView android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
                            <ImageView android:gravity="center" android:layout_gravity="center" android:id="@id/center" android:layout_width="0.5dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="5.0dip" android:src="#00000000" android:scaleType="fitXY" />
                            <ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/carrier" />
                            <ImageView android:gravity="center" android:layout_gravity="center" android:id="@id/center" android:layout_width="0.5dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="5.0dip" android:src="#00000000" android:scaleType="fitXY" />
                            <ImageView android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
                        </LinearLayout>
                    </FrameLayout>
                </FrameLayout>
            </LinearLayout>

4.Save..lalu ke res/values/ids.xml..tambahkan ini
    <item type="id" name="image">center</item>
    <item type="id" name="center">center</item>

5.Taro gambar kalian di drawable-ldpi dan rename gambar nya jadi "carrier"
6.Recompile systemui.apk


Ini udah ane test dan work :)

Thanx to:
Om Chimot @fb
Grup Kogayi @fb

{ 8 komentar... read them below or Comment }

  1. ini dia :v makasih mastah

    BalasHapus
  2. compile error

    E:\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:12: error: Error: No resource found that matches the given name (at 'id' with value '@id/center').
    E:\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:15: error: Error: No resource found that matches the given name (at 'id' with value '@id/center').

    BalasHapus
    Balasan
    1. id nya kurang om...coba di baca lgi ;)

      Hapus
    2. ids udah ane masukin sesuai tut gan
      tapi di situ di blg tidak ada sumber yg mnyatakan id/center

      padahal ini udah ane masukin
      center
      center

      Hapus
    3. yg id image udah? coba di liat lagi :v

      Hapus
    4. Udah mastah derry

      Ampe ane PM ente eh ternyata koneksi terputus :D

      Hapus
    5. error nya kaya mana lagi...kan itu cuma kurang id

      Hapus
  3. Gagal recom gan



    I: Smaling...
    I: Building resources...
    aapt: warning: string 'data_connection_datach_timeout_error_msg' has no default translation in /sdcard/apktool/SystemUI_src/res; found: de es fr in it ms pt ru th tr vi zh_TW
    aapt: warning: string 'dreams_dock_launcher' has no default translation in /sdcard/apktool/SystemUI_src/res; found: km_KH my_MM
    /sdcard/apktool/SystemUI_src/res/values/ids.xml:301: error: Resource entry image is already defined.
    /sdcard/apktool/SystemUI_src/res/values/ids.xml:12: Originally defined here.
    /sdcard/apktool/SystemUI_src/res/layout/status_bar.xml:4: error: Error parsing XML: not well-formed (invalid token)
    Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL3413106185016583432.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL3413106185016583432.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/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: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /data/data/per.pqy.apktool/APKTOOL3413106185016583432.tmp, -I, ?/apktool/framework/1.apk, -S, /sdcard/apktool/SystemUI_src/res, -M, /sdcard/apktool/SystemUI_src/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
    ... 6 more

    BalasHapus

Anda Pengunjung Ke

Diberdayakan oleh Blogger.

Yang Udah ane posting

Copyright © Oprekan Galaxy Young S5360 -Opreaker Samsung S5360- Powered by Blogger - Designed by Johanes Djogan