invalid package name ! - General Questions and Answers

Hello,
I have app on market which I made it before by using Andromo.com, and now I upgrade my app using Makemedroid.com.
but I can not upload new one in google play, because the package name is not the same with previous one.
I extracted apk file using apktoolmulti, I found androidmanifest.xml in binary format that's mean I can not read it.
then I decompiled this apk using apktoolmulti, and I can open androidmanifest.xml by editor and I changed Package name.
after that, I ziped the apk again and signed it and zipaligen too, but when I upload it to google market, it's says the header of androidmanifest.xml is too big and not accept it !!
I think because it was in text mode, I did not make it binary like as before in original one, so...
how to compile androidmanifest.xml ??
how can I make package name is "com.andromo.dev66345.app68755" ??
thank you,

Related

Easiest Way to Resign an .apk

All I want to do is open up a few .apk's and change the notification bar icons to look better on a black bar. I've accomplished this so far, but I keep getting errors after I zip them back to .apk's and try to install. After some research it seems I need to sign them. What is the easiest way to do this?
Much Thanks.
7zip
download 7zip, then you can open the .apk in archive drop in the icons and wont have to resign.
Emul8or said:
download 7zip, then you can open the .apk in archive drop in the icons and wont have to resign.
Click to expand...
Click to collapse
I have 7zip already, is there a certain way to open it in archive, or is it just the regular way. Just now I opened it in 7zip, dropped my new files into it, and then zipped it up again. Then on my phone I changed the extension from zip to apk, and I got the same parsing errror as usual.
Emul8or said:
download 7zip, then you can open the .apk in archive drop in the icons and wont have to resign.
Click to expand...
Click to collapse
That's stupid. If you change ANYTHING inside an APK, you have to resign. The signing method is the following for a new, freshly created apk:
- List all files into /META-INF/MANIFEST.MF, with their SHA1-digest checksum
- Place the public key to this folder too (to be used for verification)
- For all files, 'sign' their SHA1-digest with the private key-certificate and store it under /META-INF/CERT.SF
And when you install an app, it will check.
First, the SHA1-digest does not match the one in MANIFEST.MF. It get's overwritten temporarily, but when the system checks this DIGEST against the signed digest, it will fail and drop you back -> APK is useless.
Use testsign.jar to sign your files, google it, and you will find many tutorials!
Basic usage (command line):
java -classpath testsign.jar testsign [inputfile.apk] [*OPTIONAL*outputfile.apk]
If no outputfile is specified, output will overwrite input file!
So I guess the answer is there is no easy way to do this...
Man, I just told you the easy way...
Grab the testsign.jar, place it next to edited APK, and type what I wrote, and you are done! APK signed!
Or, you can use APK Manager, what has a built in signing tool
fonix232 said:
Man, I just told you the easy way...
Grab the testsign.jar, place it next to edited APK, and type what I wrote, and you are done! APK signed!
Or, you can use APK Manager, what has a built in signing tool
Click to expand...
Click to collapse
One more question. I have found two places that have a Google Voice apk. There is one in data/app and also in system/app. Which one should I edit? Then when I am done (if I can get it signed) do I need to put it back in the right spot, or can I just install it like a regular apk?
Turns out a really easy way to do this is with Ninja Morph.
easiest way to sign an apk is to download zipsigner from the market (free app)
Easy way
Before you say a method is stupid, try it first. I've modded my framework-res.apk many times with this method. Copy drawable-hdpi from your .apk and edit the .png's, then right click on the .apk and select 7zip>open archive and drop in the modded drawable-hdpi. Done, no need to resign.
fonix232 said:
That's stupid. If you change ANYTHING inside an APK, you have to resign. The signing method is the following for a new, freshly created apk:
- List all files into /META-INF/MANIFEST.MF, with their SHA1-digest checksum
- Place the public key to this folder too (to be used for verification)
- For all files, 'sign' their SHA1-digest with the private key-certificate and store it under /META-INF/CERT.SF
And when you install an app, it will check.
First, the SHA1-digest does not match the one in MANIFEST.MF. It get's overwritten temporarily, but when the system checks this DIGEST against the signed digest, it will fail and drop you back -> APK is useless.
Use testsign.jar to sign your files, google it, and you will find many tutorials!
Basic usage (command line):
java -classpath testsign.jar testsign [inputfile.apk] [*OPTIONAL*outputfile.apk]
If no outputfile is specified, output will overwrite input file!
Click to expand...
Click to collapse
Stericson made a batch file to sign easily (here) if you don't like the 7zip method
Another way is by using themes (morphs) with ZipThemer. Here's an example. ZipThemer signs patched files and then packages them in a signed update zip file that you flash to apply the changes.
Ken
I have a batch file that is invoked by right clicking on an apk and choosing "open with->sign apk", a new signed apk is created with "-signed.apk" appended to the name.
Initial setup takes a few minutes but later on signing takes < 3 seconds
note: /system apks dont need to be resigned.
attached, needs java.
To associate it with apk files right click on an apk, choose open with, browse and select "sign apk.bat", uncheck "make this the default action"

Apk package name

How can the package name of an apk be changed?
i tried changing it inside the manifest xml, it works but the apk doesn't install or FORCE.closes...I wanted to install two versions of the same app without upgrading
is it not possible?

[Q] What is the best way to change name and icon of android app?

I have been reading about this for awhile and found a lot of different apps out there but looking for the simplest way I can change the app name and app icon. I tried APK editor but it didn't work during save process. Just stated error happened during save process.
maddog75 said:
I have been reading about this for awhile and found a lot of different apps out there but looking for the simplest way I can change the app name and app icon. I tried APK editor but it didn't work during save process. Just stated error happened during save process.
Click to expand...
Click to collapse
Not sure about how to change name, but to change icons all you need is to replace the icons found in res/drawable folder. Anyways the icon's/image's names should be same though. You can do this by simply opening the apk using 7zip or any other zip based software, navigate to the folder and start replacing the files.
coolsandie said:
Not sure about how to change name, but to change icons all you need is to replace the icons found in res/drawable folder. Anyways the icon's/image's names should be same though. You can do this by simply opening the apk using 7zip or any other zip based software, navigate to the folder and start replacing the files.
Click to expand...
Click to collapse
So I am using the GUI based APK TOOK program to decompile it, then changed with notepad plus. Now I recompile it and they are in folder format how to turn back into apk format that is readable by the droid os or by using APK editor to verify the file.
maddog75 said:
So I am using the GUI based APK TOOK program to decompile it, then changed with notepad plus. Now I recompile it and they are in folder format how to turn back into apk format that is readable by the droid os or by using APK editor to verify the file.
Click to expand...
Click to collapse
To change icons, you don't need to decompile and recompile I'm afraid. Like I said before, just change the respective files by opening the apk using 7zip.
coolsandie said:
To change icons, you don't need to decompile and recompile I'm afraid. Like I said before, just change the respective files by opening the apk using 7zip.
Click to expand...
Click to collapse
Well What I am having trouble doing is changing the name, trying to use apktook gui edition but when put back together as a compressed zip file, then put on my phone. I use astro file manager to change the name to .apk keeps telling me having trouble parsing file not sure what I am doing wrong.
maddog75 said:
Well What I am having trouble doing is changing the name, trying to use apktook gui edition but when put back together as a compressed zip file, then put on my phone. I use astro file manager to change the name to .apk keeps telling me having trouble parsing file not sure what I am doing wrong.
Click to expand...
Click to collapse
Maybe the problem is with the signing issues, which you are getting "Error parsing file" error. Try referring this thread:
http://forum.xda-developers.com/showthread.php?t=2213985
And make sure you've done exactly the same way, as mentioned there.
maddog75 said:
...... .apk keeps telling me having trouble parsing file not sure what I am doing wrong.
Click to expand...
Click to collapse
A changed APK needs tot be signed.
Send from N7
NLBeev said:
A changed APK needs tot be signed.
Send from N7
Click to expand...
Click to collapse
What should I use to sign the apk?, is this correct after using apktool and recompiling then compressing folders to zip file, transfer to phone and use astro file manager to rename to apk. What program then should I use to resign it before installing.
maddog75 said:
What should I use to sign the apk?, is this correct after using apktool and recompiling then compressing folders to zip file, transfer to phone and use astro file manager to rename to apk. What program then should I use to resign it before installing.
Click to expand...
Click to collapse
So I will have to try it again didn't work even after signing still gave parsing error. I don't think the gui verision of apktool I used worked right.
maddog75 said:
So I will have to try it again didn't work even after signing still gave parsing error. I don't think the gui verision of apktool I used worked right.
Click to expand...
Click to collapse
are you compiling the .apk or just zipping it?? after decompiling the apk do your edits then recompile.
maddog75 said:
What should I use to sign the apk?, is this correct after using apktool and recompiling then compressing folders to zip file, transfer to phone and use astro file manager to rename to apk. What program then should I use to resign it before installing.
Click to expand...
Click to collapse
http://www.londatiga.net/general/how-to-sign-apk-zip-files/

Change the name of the package for Android application

Hello
I've just before dismantling Android application using apk tool, but I want a way to change the name of the package for later that I could put it in Google Play
Note: I tried to change the name of the package through the Maine Fast. XML, but the application did not work
igi man said:
Hello
I've just before dismantling Android application using apk tool, but I want a way to change the name of the package for later that I could put it in Google Play
Note: I tried to change the name of the package through the Maine Fast. XML, but the application did not work
Click to expand...
Click to collapse
No... You can't change the package name of the app if you didn't make it .. You need to have the full source of the app in order to properly modify the package name .. You can't just decompile it and edit it .. What app are you talking about ?
niranjan94 said:
No... You can't change the package name of the app if you didn't make it .. You need to have the full source of the app in order to properly modify the package name .. You can't just decompile it and edit it .. What app are you talking about ?
Click to expand...
Click to collapse
Thank you my friend
Do you have solutions for how to raise the game to Google Play?
re
Change install folder
Hi,
I'm mobile game distributor. I receive the apk file from the publisher which the package name is the same with the one they publish in other market. For example: com.aaa.bbb
Since they cannot provide me a different build with different package name. I use apktool to decompile and modify the AndroidManifest.xml. The second lind of that file, I change package="com.aaa.bbb" to "com.ccc.ddd".
Then I batch the folder, sign the apk, zipalign it.
Then the apk can be uploaded to Google Play. However, when the game download the extension files, it still find the old package folder which is com.aaa.bbb instead of com.ccc.ddd. Is there any way to force the game to install the extension files to com.ccc.ddd folder?
Thanks,
Giang Anh

Gboard size

Hello,
I find the google keyboard size too small , is there anyway to increase its size beyond the highest setting without root? via ADB perhaps?
Thank you
j1978 said:
Hello,
I find the google keyboard size too small , is there anyway to increase its size beyond the highest setting without root? via ADB perhaps?
Thank you
Click to expand...
Click to collapse
You can use Apktool to unsign and decompile your Gboard apk file then edit the size parameters then recompile and re-sign the apk file then install your newly modified apk.
Droidriven said:
You can use Apktool to unsign and decompile your Gboard apk file then edit the size parameters then recompile and re-sign the apk file then install your newly modified apk.
Click to expand...
Click to collapse
Hello,
Thank you for the reply. I have downloaded APKtool and the Gboard APK file.
Could you by any chance point me to a guide on how to do this?
Thank you very much
j1978 said:
Hello,
Thank you for the reply. I have downloaded APKtool and the Gboard APK file.
Could you by any chance point me to a guide on how to do this?
Thank you very much
Click to expand...
Click to collapse
Apktool for PC, not the APKtool app for android.
Open APKtool, select your apk file, find the option to un-sign the apk by removing its signature, then fimd the option to decompile/extract the apk file inside Apktool.
Then you are looking for the lines of code that set the parameters for the size of the keyboard. I don't have a clue which lines of code you're looking for or what to edit, you'll have to figure that out for yourself. I'm just giving you a general overview of what you need to do, you'll have to do some research on your own to understand each step I've described and which lines/values to edit.
After you've edited the parameters for its size, recompile the apk and re-sign the apk then install your new app.
You'll have to use trial and error until you figure it out and get it edited/installed correctly.
Droidriven said:
Apktool for PC, not the APKtool app for android.
Open APKtool, select your apk file, find the option to un-sign the apk by removing its signature, then fimd the option to decompile/extract the apk file inside Apktool.
Then you are looking for the lines of code that set the parameters for the size of the keyboard. I don't have a clue which lines of code you're looking for or what to edit, you'll have to figure that out for yourself. I'm just giving you a general overview of what you need to do, you'll have to do some research on your own to understand each step I've described and which lines/values to edit.
After you've edited the parameters for its size, recompile the apk and re-sign the apk then install your new app.
You'll have to use trail and error until you figure it out and get it edited/installed correctly.
Click to expand...
Click to collapse
Ok! thank you very much for all the info i will give it a try.

Categories

Resources