FORUMS
Remove All Ads from XDA

[HOW TO][GUIDE][MOD] Change Package Names of APKs

143 posts
Thanks Meter: 392
 
By Xtreme.Ornob, Senior Member on 23rd May 2014, 06:14 PM
Post Reply Email Thread
11th July 2016, 08:24 PM |#31  
Mattwmaster58's Avatar
Member
Flag Edmonton
Thanks Meter: 13
 
More
Good Job
 
 
13th July 2016, 05:05 AM |#32  
Mattwmaster58's Avatar
Member
Flag Edmonton
Thanks Meter: 13
 
More
Nice Work!
Good Job and thanks! There is a error in your Tut (i think)
1. you said find "Lcom.xx.xx" instead of "com.xx.xx'' This would easily confuse a lot of people
thanks again for your great work!
And a suggestion: edit ur tut to include instructions for changing the icons at \res\drawable-xxxx\ic_launcher.png
24th July 2016, 12:13 AM |#33  
Senior Member
Thanks Meter: 5
 
More
My apktool.yml looks different. . .

IN ADDITION
There are definitely lots of other places to change the package name. I got a bunch of these, the command prompt window was too small to fit them all !!!

Quote:

W: C:\apk\sa41410\res\layout-v17\special_grid_item.xml:10: error: No resource id
entifier found for attribute 'is_webimage_immediate_loading' in package 'old.package.name'

Attached Thumbnails
Click image for larger version

Name:	apkTool_yml.jpg
Views:	142
Size:	148.1 KB
ID:	3822152  
28th August 2016, 04:36 PM |#34  
Member
Thanks Meter: 18
 
More
Quote:
Originally Posted by GI0\/\NNI

You don't have to rename folders, they are created by apktool and not used when compiling the code into the classes.dex file. Also keep in mind that you have .so libraries which may point to the original smali locations. You can avoid it by adding some strings to intern() method in each smali.

Can you explain what you mean by "You can avoid it by adding some strings to intern() method in each smali."?

I was able to get the apk to install and run using the new package name without renaming the folders. The process name is changed in the list of running processes. But this app launches a service, and when it tries to do so, it fails and the app closes. Not seeing any errors in logcat. Could this be because I need to edit the intern() method?
16th December 2016, 07:36 PM |#35  
Senior Member
Thanks Meter: 712
 
More
Quote:
Originally Posted by drgkt

My apktool.yml looks different. . .

IN ADDITION
There are definitely lots of other places to change the package name. I got a bunch of these, the command prompt window was too small to fit them all !!!

@Xtreme.Ornob: First of all - great job! this is what I needed! Tried it recently for my own but forgot the Lcom stuff..

@drgkt: Mine too - Just change the apkFileName to yours and thats all in apktool.yml . Bisides this in AndroidManifest.xml are two locations to be changed:
package="com.old.name"
android:name="com.old.name.PackageActivity"

I just searched the whole apk folder for "com.old.name" and change what is quite obvious to be changed.... Works!

Sorry for reply to quite old questions but maybe usefull for new users... Was running into the same question first....

In addition search for this and change it also - Must be 2x in strings.xml
<string name="app_name">Old App Name</string>
Post Reply Subscribe to Thread

Tags
apks, apps, change, names, package

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes