Trang 1 của 3 123 CuốiCuối
Kết quả 1 đến 10 của 26
  1. #1
    Ngày tham gia
    Jul 2015
    Bài viết
    0

    Hướng dẫn Mod Phone.apk chỉnh size photo caller


    Bạn đang dùng android 2.x, bạn cảm thấy không ưng khi gọi điện hoặc nhận cuộc gọi mà cái photo caller bé tí ti trong khi không gian còn rất thoải mái. Sau đây mình xin hướng dẫn các bạn chỉnh kích cỡ hình cuộc gọi trong rom android 2.x. Mình lấy rom 2.3.5 của A820l làm vd. Để sửa được kích cỡ hình ảnh, bạn phải Decompiler file phone.apk trong rom ( Bạn dùng Root explore copy file Phone.apk ở system/app ra PC), để Decompiler bạn có thể dùng rất nhiều công cụ, tìm trong Google lúc nào cũng có như Apk manager, apk tool, Apk easy manager, ApkDisassembler. Sau khi Decompiler ta được các file trong phone.apk, bạn tìm trong
    es\layout thấy file call_card_person_info.xml , bạn mở file này bằng Notepad ++ thì sẽ đọc được code xml, vd:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:gravity="center_horizontal" androidrientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="wrap_content"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <RelativeLayout android:id="@id/photoLayout" android:layout_width="fill_parent" android:layout_height="189.0dip">
    <ImageView android:id="@id/photo" android:android:layout_width="180.0dip" android:layout_height="189.0dip" android:scaleType="fitCenter" android:layout_centerHorizontal="true" android:contentDescription="@string/contactPhoto" />
    <Button android:textAppearance="?android:textAppearanceMed ium" android:textColor="?android:textColorPrimary" android:id="@id/manageConferencePhotoButton" android:android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:text="@string/onscreenManageConferenceText" android:layout_centerHorizontal="true" />
    </RelativeLayout>
    <TextView android:textSize="35.0sp" android:textColor="#ff000000" android:gravity="center_horizontal" android:id="@id/name" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="24.0dip" android:singleLine="true" />
    <LinearLayout android:gravity="center_horizontal" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="8.0dip">
    <TextView android:textAppearance="?android:textAppearanceSma ll" android:textSize="18.0sp" android:textColor="?android:textColorSecondary" android:id="@id/label" androidaddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
    <TextView android:textSize="35.0sp" android:textColor="#ff353535" android:id="@id/phoneNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="2" />
    </LinearLayout>
    <TextView android:textSize="25.0sp" android:textStyle="bold" android:textColor="#ffe74700" android:gravity="center_horizontal" android:id="@id/elapsedTime" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" />
    <ListView android:id="@id/GroupCallListView" android:android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:listSelector="#00000000" android:cacheColorHint="#00000000" android:divider="@drawable/pcu_phone_list_divider" androidverScrollMode="never" />
    <TextView android:textSize="25.0sp" android:textColor="#ff000000" android:ellipsize="end" android:id="@id/callTypeLabel" androidaddingLeft="10.0dip" androidaddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32.0dip" android:maxLines="1" />
    <TextView android:textAppearance="?android:textAppearanceSma ll" android:textSize="16.0sp" android:textColor="?android:textColorSecondary" android:ellipsize="end" android:id="@id/socialStatus" androidaddingLeft="10.0dip" androidaddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="2" />
    </LinearLayout>
    Ta sẽ sửa những dòng có chữ màu đỏ, trong các bản Rom khác cũng có những dòng tương tự, trong code trên thì ta sẽ chỉnh kích cỡ ảnh ta mong muốn, VD
    <ImageView android:id="@id/photo" android:android:layout_width="300.0dip" android:layout_height="300.0dip" android:scaleType="fitCenter" android:layout_centerHorizontal="true" android:contentDescription="@string/contactPhoto" />
    Có thể chỉnh các giá trị ở dòng trên để phù hợp
    <RelativeLayout android:id="@id/photoLayout" android:layout_width="fill_parent" android:layout_height="300.0dip">
    Xong rồi ta save lại rồi compiler thành file phone.apk, dùng Root explore copy vào system/app (trước khi copy vào thì chuyển đt sang chế độ máy bay) set permissions thành rw r r roi khoi dong lai may.
    Chúc các bạn thành công

  2. #2
    Ngày tham gia
    Jul 2015
    Bài viết
    1
    hay đấy, lúc nào mình thử phát

  3. #3
    Ngày tham gia
    Jul 2015
    Bài viết
    0
    Mình thấy nếu file apk của các máy A820L đều giống nhau thì bạn làm 1 phát temp 1 file phone.apk với ảnh hiển thị lấp đầy hết phần màn hình trống . Chắc rơi vào khoảng 400x600. Như vậy thì những người ko am hiểu về chỉnh sửa file apk như mình cũng có được cái ảnh cuộc gọi đầy màn hình

  4. #4
    Ngày tham gia
    Jul 2015
    Bài viết
    0
    à ngày trước làm không được là do lúc chuyển vào không để chế độ máy bay.......... trời ơi!

  5. #5
    Ngày tham gia
    Jul 2015
    Bài viết
    0
    Phone không cho copy mới điên. Chỉnh lại permission của file apk gốc cũng ko được phép. Rốt cuộc bó tay.

  6. #6
    Ngày tham gia
    Jul 2015
    Bài viết
    0
    Trích dẫn Gửi bởi nguyenthienvu
    Phone không cho copy mới điên. Chỉnh lại permission của file apk gốc cũng ko được phép. Rốt cuộc bó tay.
    phía trên màn hình cua root explore có phần mount r/w bạn bấm vào đó thành r/o là ok

  7. #7
    Ngày tham gia
    Jul 2015
    Bài viết
    0
    ok để mình thử xem,

  8. #8
    Ngày tham gia
    Aug 2015
    Bài viết
    0
    SAU MỘT HỒI NGHỊCH KO RA KẾT QUẢ MÀ PHẢI RESET MẤY LẦN : KO NGHỊCH NỮA. MẤT CÔNG QUÁ )

  9. #9
    Ngày tham gia
    Aug 2015
    Bài viết
    0
    Copy vào xong có 2file phone.apk vs Phone.apk. Để nguyên thì nó hoạt động theo file Phone.apk. move file này ra chỗ khác bị FC. Cáu, move nó đi xong đổi tên phone.apk sang Phone.apk ) vẫn bị FC. thế là quay lại cái Phone.apk ban đầu

  10. #10
    Trích dẫn Gửi bởi nguyenthienvu
    Copy vào xong có 2file phone.apk vs Phone.apk. Để nguyên thì nó hoạt động theo file Phone.apk. move file này ra chỗ khác bị FC. Cáu, move nó đi xong đổi tên phone.apk sang Phone.apk ) vẫn bị FC. thế là quay lại cái Phone.apk ban đầu
    move thì phải để chế độ máy bay hoặc khởi động ljai máy nha bác

Các Chủ đề tương tự

  1. Bác nào có cái photo album cho e xin 1 cái
    Bởi dunghoang trong diễn đàn Thủ Thuật Android
    Trả lời: 0
    Bài viết cuối: 21-12-2013, 03:17 PM
  2. full-screen-caller-id-big-pro - Thay đổi màn hình cuộc gọi!
    Bởi seoergato trong diễn đàn Ứng Dụng Android
    Trả lời: 4
    Bài viết cuối: 26-06-2013, 04:43 AM
  3. Handy Photo v1.1 APK
    Bởi thiendung trong diễn đàn Ứng Dụng Android
    Trả lời: 0
    Bài viết cuối: 16-06-2013, 05:38 PM
  4. Photo Studio PRO
    Bởi thanhhuong888 trong diễn đàn Ứng Dụng Android
    Trả lời: 0
    Bài viết cuối: 20-12-2012, 09:28 PM
  5. Photo Studio PRO v0.9.8
    Bởi songdonggun trong diễn đàn Ứng Dụng Android
    Trả lời: 0
    Bài viết cuối: 06-11-2012, 09:17 AM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •