-
07-11-2012, 05:19 PM #1
Junior Member
- 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" android
addingRight="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" android
addingRight="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ôngView more random threads:
- có ai biết cách tìm hiểu clip đăng trên facebook bằng điện thoại nào được ko ?
- bác nào có cái talking tom cat 2 mod full tiền cho mk xin 1 cái
- Bắt tay vào làm giao diện Winmobile cho Android phone 2013 nào!
- Nóng phá băng thông mimax viettel ngày 17/3/2014 đây
- Kiểm tra thông tin máy samsung bằng IMEI number
- Sửa lỗi font chữ khi việt hóa app Android
- BÌnh chọn trình duyệt web tốt nhất cho Sky Vega
- Root Nokia X
- các pro bơi hết vào đây hộ em cái
- Tổng Hợp Các Phần Mềm Hay, Miễn Phí Cần Thiết Cho Android
-
07-11-2012, 05:27 PM #2
Junior Member
- Ngày tham gia
- Jul 2015
- Bài viết
- 1
hay đấy, lúc nào mình thử phát
-
07-11-2012, 05:59 PM #3
Junior Member
- 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
-
07-11-2012, 06:00 PM #4
Junior Member
- 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!
-
07-11-2012, 07:11 PM #5
Junior Member
- 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.
-
07-11-2012, 07:13 PM #6
Junior Member
- Ngày tham gia
- Jul 2015
- Bài viết
- 0
Gửi bởi nguyenthienvu
-
07-11-2012, 07:14 PM #7
Junior Member
- Ngày tham gia
- Jul 2015
- Bài viết
- 0
ok để mình thử xem,
-
07-11-2012, 07:44 PM #8
Junior Member
- 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Á
)
-
07-11-2012, 07:47 PM #9
Junior Member
- 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
-
07-11-2012, 07:52 PM #10
Junior Member
- Ngày tham gia
- Jul 2015
- Bài viết
- 0
Gửi bởi nguyenthienvu
Các Chủ đề tương tự
-
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 AndroidTrả lời: 0Bài viết cuối: 21-12-2013, 03:17 PM -
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 AndroidTrả lời: 4Bài viết cuối: 26-06-2013, 04:43 AM -
Handy Photo v1.1 APK
Bởi thiendung trong diễn đàn Ứng Dụng AndroidTrả lời: 0Bài viết cuối: 16-06-2013, 05:38 PM -
Photo Studio PRO
Bởi thanhhuong888 trong diễn đàn Ứng Dụng AndroidTrả lời: 0Bài viết cuối: 20-12-2012, 09:28 PM -
Photo Studio PRO v0.9.8
Bởi songdonggun trong diễn đàn Ứng Dụng AndroidTrả lời: 0Bài viết cuối: 06-11-2012, 09:17 AM
làm xinh xắn tặng o nhỏ hiện còn là xu hướng ấm hot xuể cạc chị em kín biệt quan hoài và giàu nhu cầu thực hành. Địa chỉ giải phẫu thẩm mỹ ở đâu tốt nhất? với Viola – Eva từng vào địa chỉ thẩm mỹ...
Địa chỉ thẩm mỹ vùng kín uy tín an...