[MOD][HELP] Modding framework-res on CM 10.0 - removing emergency call & carrier info

lovefallen

Member
Nov 22, 2012
27
1
0
[MOD][HELP] Modding framework-res on CM 10.0 - removing emergency call & carrier info

Hello everyone,

As per title, I'm trying to edit the xml in framework-res apk. Why? Because I'm turning my old Cappy into a music player, so I'm removing lots of stuff using Titanium Backup. I removed all phone-related functionality, therefore I don't need emergency call buttons, carrier info, and things like those :D .

I used apktool to unpack the framework.
Then I edited the relevant files(
Code:
res\layout\keyguard_screen_password_portrait
), setting 0.0dip in width and height to the buttons and the textview.
Then I recompiled, and installed the new framework from recovery with a custom zip file.

NB. I edited the password lockscreen because I need to use it for an app!

Installation and reboot work fine, but.. that damn button and carrier info won't go away. :(
There must be something wrong in what I do, ie maybe I'm editing the wrong xml, or something like that.

I've put the original and modded framework as attachments, so if anyone is willing to give a look into them and maybe help, there they are :)
 

Attachments

Last edited:

kennyTSV

Member
Dec 10, 2013
17
1
0
Hello everyone,

As per title, I'm trying to edit the xml in framework-res apk. Why? Because I'm turning my old Cappy into a music player, so I'm removing lots of stuff using Titanium Backup. I removed all phone-related functionality, therefore I don't need emergency call buttons, carrier info, and things like those :D .

I used apktool to unpack the framework.
Then I edited the relevant files(
Code:
res\layout\keyguard_screen_password_portrait
), setting 0.0dip in width and height to the buttons and the textview.
Then I recompiled, and installed the new framework from recovery with a custom zip file.

NB. I edited the password lockscreen because I need to use it for an app!

Installation and reboot work fine, but.. that damn button and carrier info won't go away. :(
There must be something wrong in what I do, ie maybe I'm editing the wrong xml, or something like that.

I've put the original and modded framework as attachments, so if anyone is willing to give a look into them and maybe help, there they are :)
I know that this is like 1 year after the original post. I finally went into that file with the name you mentioned.... in my ice cream sandwich framework-res.apk .... then put in these lines... (the replacement)...

android:id="@id/emergencyCallButton" android:paddingRight="16.0dip" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip"

Then recompiled the apk. And then I injected (using 7zip) the compiled ''keyguard_screen_password_portrait.xml" file from the newly compiled apk into the original apk. All I needed to then do was to use Root Explorer app to pop the 'mostly-original' framework-res.apk back into /system/framework

Then just restart the phone, or just put the phone into sleep mode or blank-screen mode for a bit, then allow it to come back on....then the emergency button was gone. I now know that the correct file to edit is 'keyguard_screen_password_portrait.xml', which is the one you mentioned. Somebody on the net was mentioning 'keyguard_screen_unlock_portrait.xml', but focusing on 'keyguard_screen_unlock_portrait.xml' is a total waste of time for ICS. The file to edit for ICS is 'keyguard_screen_password_portrait.xml'.
 
Last edited: