[Q] Changing the package name for APK?? - Android Q&A, Help & Troubleshooting

hi all ....
i want to modify the package of the apk so i can install both the same apk and modded one , the apk i want to modify is whatsapp , i decompiled it using apktool i changed the res (some icons and strings ) and compiled it again then sign it using ZipSigner install it and all worked great , but when changing the package name in MANIFEST file and in the classes.dex and all other file & changed the appname & install it it says the "application not installed " (signature conflict ) , so please help me to modify original whatsapp package so i can create another whatsapp that can be installed with the original i mean what files to modify and not modify ?!
all regards .

any help ?!

Related

[Q] Help me! Modify CMParts.apk lead to FC!

When I modify the CMParts.apk's ../res/values-zh-rCN/strings.xml,
It lead to a bug, a CM setting option will Force Close;
CyanogenMod settings->Interface->Notification power widget->Widget buttons->Brightness modes,
Brightness modes will FC, can anyone help me?
These are my steps to modify the CMParts.apk:
1. install JRE;
2. download the apktool1.4.3 from code.google.com;
3. use "apktool d CMParts.apk" to decompile CMParts.apk;
4. modify ../res/values-zh-rCN/strings.xml, edit the string"警告:前面有怪兽!" to "警告!", in line 356;
5. use "apktool b CMParts CMParts1.apk" to compile modified files;
6. use CMParts1.apk's resources.arsc to replace CMParts.apk's resources.arsc;
7. copy CMParts.apk to /system/app, and grant it all permissions.
Any other CM settings work well;
the string"警告:前面有怪兽!" is be change to "警告!" succeed.
My OS is Win7(32bit), Used tools is apktool 1.4.3;
Sorry my English, My English is so poor;
Can anyone help me? Thx.^*(- -)*^
this ploblem is sloved, plz look 5th floor.
Nobody can help me? :-(
I've modded a few apks and im pretty sure you have to delete the new resources.arsc (the one from the project folder) before recompiling or it won't work, that could be why you get fc.
Also did you copy your modified XML to the new project folder too?
Sent from my HTC Legend using XDA App
but, when compile the modified xml,
the modified xml is not exist in CMParts1.apk,
and i replace the resources.asrc,
the string which i wanna modified is changed,
to puzzle me, the xml which lead to fc, is not the strings.xml,
In my opinion, it should be in /res/values/X.xml.
Sent from using XDA App
the cmparts.apk cant be decomplied by apktool or other tools,
if modify, should be modify the Source Code from CyanogenMod,
that's all.

howto de/compile systemui.apk without any error

Hello,
I wanted to de/compile the systemui.apk and got errors.
I installed framework-res.apk with apktool.
After installation I used apktool (Win7) and decompiled the systemui.apk.
But I got the same errors as many others have gotten them.
brut.blahblahblah..
So I tried other apktool.jar (apktoolICS.jar) and it worked fine!
I opened the new systemui folder and there are the following folders:
res and assets
no smali folder. is it right and normal?
Because the compiling with old apktool (not apktoolICS) didn't work, I compiled with the ICS file and it worked. I got the translation message (airplane_mode).. Not interesting for me atm.
When I look at the new built systemui.apk, I wondered about the file size.
The new file: 1.009kb
The old file: 1.338kb
I signed the new file. Now the file size is 1.044kb.
I edited only a xml file (styles.xml)..
The file didn't work on the sgs2..
Could someone tell me what I did wrong?
Please help me
Best regards
Marcus
*push* after moving to correct section
maybe no need to sign your new file,
try to drag the META-INF folder and the AndroidManifest.xml from the older file to the new file you build
BTW, is your old systemui file a deodex one?
if no deodex, the smali code wil include in the odex file~

How to add a new smali file in an apk

As the title says in using vts to edit an apk but i need to add a new smali if its possible

Help- Not able to sucessfully recompile samsungcamera apk

Hi.
I extracted samsungcamera from qsrom 4.4.2 i9300 nl1, and decompiled it using apktool.
then I modified smali files and replaced
"com.sec.android.gallery3d" to "com.alensw.PicFolder"
"com.sec.android.gallery3d.app.Gallery" to "com.alensw.PicFolder.GalleryActivity"
but after recompiling it with some error I got new modified class ,resourceses, and other xmls,
then I opened original samsungcamera.apk and replaced inside with new class, recources and xmls, and then pushed new samsungcamera.apk in system app gave proper permissions , installed quickpic and restarted,
after restart camera icon shows in app drawer but when opened it force-closes.
if someone with knowledge could could modify samsungcamera the it would be great help, ThankYou
files used
quickpic- http://forum.xda-developers.com/android/apps-games/app-quickpic-v4-5-2-classic-version-t3204543
samsung camera apk decompiled and modified - http://d-h.st/IdeC
samsungcamera original in attachment

Settings.apk not working after compile

Hi
I want to modify settings.apk in android 6.0.1
Custom Rom Resurrection Remix 5.7.4
Samsung Galaxy S Dous 2 with advanced apk tool
Install framework-res.apk & org.cyanogenmod.platform-res.apk
OK
After compiled this app & sign and copy this app to phone
Change permission to 644 and copy to systems/priv-app/settings
Don't working and disappears From the list
If you copy META-INF & AndroidManifest and copy this app to phone Parse error there was a problem while parsing the package

Categories

Resources