I am working on app where I required to change manifest file.
I saw long before to change package name at time of sign apk, but not able to find that also.
so is there any way to change Version Code, Package Name and Pnermission using code..
As said here the possible changes at runtime are very limited. At least for standard no-root-required software (Not sure though if root privileges really help for that matter). It's hard to guess what you're trying to accomplish but after all the manifest was made to fix such things as version code, package name and permissions before your app is compiled.
So please correct me if I'm wrong, but I think what you are trying to do is not possible.
Related
I am trying to sign an APK file, that is, add permission to change the system. In particular, the time change on android. I follow the example https://russianblogs.com/article/14971784004/. But I have this highlighted in red in the Manifest file - android:name="android.permission.SET_TIME". So I can't even set a signature. I didn't find any answers anywhere. Tell me, please, what should I do?
I think you are trying use
reverse engineering
First for that you must sign application with key , so please read about apk tool
So I messed up pretty hard and forgot my password key store password so I ended up having to make a new application and keystore. But when I tried uploading the new apk file it said I couldn't do that because I already had an application with the same package name. So what I'm wondering is is there any easy fix to this? Can I just change the applicationid in the gradle file?
EDIT: Surprisingly enough just changing the applicationid and resyncing it worked! Thanks for the help though.
You have to provide a unique packageName, which is defined in your AndroidManifest.xml.
Your best (and fastest) solution is to use the Refactor > Rename option - within Android Studio/Eclipse IDE's - to change your project package structure to something (slightly) different.
By doing this, the IDE should take care of changes to your AndroidManifest.xml file as well.
Good Luck!!!
On Android Studio:
On Eclipse:
you must need to change the main package name of your application which must be unique . unique means with same name no any application is uploaded on playstore then only your issue will get resolve
see your problem is you forgot password of your keystore certificate see why that certificate is uses in android is to update the application every time you need to pass password to that file but unfortunately you forgot it so you have no choice other than changing pakcage name also your application will consider as a new application on playstore your previous application and this current one will be seprate application
How can one check if an app is actually using the permissions it asked for in its manifest file.
Note: Source code of app will be provided.
According to me, we can manually solve this problem. But can't generalize it.
Any guidance to solve it will be appreciated.
You can use apkinspector. This will show you exactly in the code where permissions are used.
You could rebuild the apk and see when it crashes, using logcat to see what permission what requested.
I want to change my application package name at run time using some script or some other way. But I don't know whether it is feasible in android or not.
Can anybody help me out to achieve the same?
Thanks in advance.
You can't dynamically change the package name of your application. Your package name is basically the ID Android uses to identify your application. Also, it's pretty much "burned" into the APK, so the only way to change it would be to open up the APK and change it in there. However, that would probably require root.
I need to have both earlier and later versions of App I write in Eclipse.
What do I need to change (activity name?) to upload new version of the app to my phone without overwriting the old one? Any fast way to do it?
The package name in the manifest identifies the application (see here). So you also need to change the package name.
Change the app name in your manifest file.