Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,438 Members 44,299 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to change Phone Defaults except build.prop?

Tip us?
 
coolsuper13
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 27
Join Date: Jun 2014
Default [Q] How to change Phone Defaults except build.prop?

I have installed a ROM.When i go to settings,it shows at the end 'Custom build by Rocky" This really sucks.
I tried to change it by build.prop but i couldn't do that as 'Custom build by Rocky';this text was even not present there. I searched a lot for this.Now can anyone tell me how to change this..I am sure this specific text is not present in build.prop,is there any other file to do that?
 
TheArc
Old
(Last edited by TheArc; 14th June 2014 at 04:31 PM.)
#2  
TheArc's Avatar
Recognized Themer
Thanks Meter 1726
Posts: 2,169
Join Date: Jan 2012
Location: Auckland City
I've had my fair share in rom development a year or so ago. And I can tell you that the name there is just a way of marking the rom.

But if you're really bothered by it, I can tell you how to find the string, edit it or completely remove it. To find the string - Custom build by Rocky, you can't just change it in build.prop. For this, you must go into /system/app and then copy Settings.apk file to your desktop. From there, go ahead and decompile Settings.apk with a preferred decompiler. When decompiled, head into the project, and navigate to the following folder - res/values and open strings.xml with a text editor. Search for Custom build by Rocky in the text file, once found. You may change it to whatever you wish. But if you want to remove it, you have to remember the ID of the string. For example, in - example text - which is the string, the text to the right. The ID is text the ID is found in the left hand side, it's after the word name . So remember that, now go back to the res directory and scroll down to the xml folder, open it and look for about.xml. In there search for text which is the ID. And remove the line completely. Also make sure to remove the header line too. As this will stop the layout from having an invisible section.

Now compile the Settings.apk and push it to your device - adb push desktop/path/to/Settings.apk /system/app or just copy Settings.apk to device and do it from there.

I do not encourage you to do this. And you can do this at your own risk. I will not take any responsibility if you mess up your phone.

Sent from my Nexus 5 using Tapatalk
iOS7 Kik Messenger | Svelte UI CM11 Theme | Active Launcher
 
coolsuper13
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 27
Join Date: Jun 2014
Quote:
Originally Posted by krishneelg3 View Post
I've had my fair share in rom development a year or so ago. And I can tell you that the name there is just a way of marking the rom.

But if you're really bothered by it, I can tell you how to find the string, edit it or completely remove it. To find the string - Custom build by Rocky, you can't just change it in build.prop. For this, you must go into /system/app and then copy Settings.apk file to your desktop. From there, go ahead and decompile Settings.apk with a preferred decompiler. When decompiled, head into the project, and navigate to the following folder - res/values and open strings.xml with a text editor. Search for Custom build by Rocky in the text file, once found. You may change it to whatever you wish. But if you want to remove it, you have to remember the ID of the string. For example, in - example text - which is the string, the text to the right. The ID is text the ID is found in the left hand side, it's after the word name . So remember that, now go back to the res directory and scroll down to the xml folder, open it and look for about.xml. In there search for text which is the ID. And remove the line completely. Also make sure to remove the header line too. As this will stop the layout from having an invisible section.

Now compile the Settings.apk and push it to your device - adb push desktop/path/to/Settings.apk /system/app or just copy Settings.apk to device and do it from there.

Sent from my Nexus 5 using Tapatalk


Can u suggest me some apk decompilers?
 
TheArc
Old
#4  
TheArc's Avatar
Recognized Themer
Thanks Meter 1726
Posts: 2,169
Join Date: Jan 2012
Location: Auckland City
Try "APKTool" just search for it on the search part of this site, it should come up.

Sent from my Nexus 5 using Tapatalk
iOS7 Kik Messenger | Svelte UI CM11 Theme | Active Launcher
 
coolsuper13
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 27
Join Date: Jun 2014
Quote:
Originally Posted by krishneelg3 View Post
Try "APKTool" just search for it on the search part of this site, it should come up.

Sent from my Nexus 5 using Tapatalk

Hey bro! This method worked..
But,now i am in a more big problem.
By the way that test was 'Custom build by Jatin' not Rocky.
The new settings.apk which i recompiled after editing that line successfully was not directly installing on my phone.
So,i replaced that new apk with the settings.apk in my ROM which contains 'Custom Build by Jatin' text..
Now,when i installed that ROM again,everthing went right ..but when i cheked the apps ...My settings option was no more..It was not installed during the ROM installation..I manually also tried to install that but nothing was achieved!
Now ,how to fix this? Hey bro,I am also attaching that settings.apk ,see if you can edit that line yourself and then again attach here for my use.Its line 176 in res/strings ,,just replace that line from 'Custom Build' only...
Please help me bro.
Attached Files
File Type: apk Settings.apk - [Click for QR Code] (4.29 MB, 2 views)
 
TheArc
Old
#6  
TheArc's Avatar
Recognized Themer
Thanks Meter 1726
Posts: 2,169
Join Date: Jan 2012
Location: Auckland City
This happens sometimes. Its best to push the .apk to your device rather than moving it

Sent from my Nexus 5 using Tapatalk
iOS7 Kik Messenger | Svelte UI CM11 Theme | Active Launcher
 
coolsuper13
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 27
Join Date: Jun 2014
Quote:
Originally Posted by krishneelg3 View Post
This happens sometimes. Its best to push the .apk to your device rather than moving it

Sent from my Nexus 5 using Tapatalk

Now,the settings.apk is crashing..Bro,there is somewhere error between the app..I have attached that apk in this forum before..Can't u yourself rename that line and attach here..Please bro
 
coolsuper13
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 27
Join Date: Jun 2014
Default Problem fixed

The unsigned settings.apk worked now....
 
TheArc
Old
#9  
TheArc's Avatar
Recognized Themer
Thanks Meter 1726
Posts: 2,169
Join Date: Jan 2012
Location: Auckland City
Sorry, I just saw your post. Oh and I'm glad it works now. With system apps, you mustn't sign them. They don't work properly.

Sent from my Nexus 5 using Tapatalk
iOS7 Kik Messenger | Svelte UI CM11 Theme | Active Launcher

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Secrecy Goes Open Source, Assures File Encryption

As some of you may remember, a while back we spoke about Secrecy, an effective file … more

[APK] Google News and Weather Gets Material Design Makeover, Minor Maps Updates

Although Google has somewhat gotten out of the habit of their … more

Software Build Automation with Jenkins – XDA Developer TV

Many members of the XDA community come to learn and begin in the exciting … more

Add Bits and Pieces of Honami to Your Current ROM

In the last few months, we’ve talked about quite a few Sony Honami-related projects. … more