[Q] Question on APK versions - G Tablet General

How can I determine the version of the class within an APK if the manifest does not have any version information?
This is odd for me being a Java developer - we always list the version information within our manifest in a JAR/WAR/EAR file... It seems in the android world its almost NEVER there..
Thanks

stanglx said:
How can I determine the version of the class within an APK if the manifest does not have any version information?
This is odd for me being a Java developer - we always list the version information within our manifest in a JAR/WAR/EAR file... It seems in the android world its almost NEVER there..
Thanks
Click to expand...
Click to collapse
the manifest HAS to have a version in order to be posted in the Market, and an updated version in order to be uploaded. If it's not been posted in the market that's a hard one.... just poor developers out there...
Eclipse won't let me build an app unless the version has been changed....

Its funny... I was so focused on a JAR/EAR/WAR manifest and forgot this was android!!! Haaa...
Just for anyone else asking the same question:
The manifest for APK is AndroidManifest.xml
And you can parse this using a utility called axml2xml.pl to obtain version number. OR better yet use apktool to decode the entire APK.
Thanks... Justs need someone to get the juices flowing...
jerdog said:
the manifest HAS to have a version in order to be posted in the Market, and an updated version in order to be uploaded. If it's not been posted in the market that's a hard one.... just poor developers out there...
Eclipse won't let me build an app unless the version has been changed....
Click to expand...
Click to collapse

Related

[UTIL][08.12.11] Apktool v1.4.3 - a tool for reverse engineering apk files

Brut.all said:
It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.
It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.
Features:
decoding resources to nearly original form
smali debugging: SmaliDebugging
helping with some repetitive tasks
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Oh this may well be excellent. I've got a 3rd-party Market app which desperately needs sensor orientation disabled (good ol' FC on rotate). Will check it out!
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
heh! cool man ... will look into this one! TY
~enom~
this.. could.. be.. godly..
I don't have time to try this right now, but I'm PUMPED.
Ok, now I see, that it still doesn't work for many apps. But you can try your luck ;-)
I've just released 0.9.1 version with wider apps support.
Subscribed! Thanks Brut.All! Will play around with this one
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Vaooo!!! Megathanx!
Use it first and then thank. Still I don't have any confirmation from anyone that it works :-/
Brut.all said:
Use it first and then thank. Still I don't have any confirmation from anyone that it works :-/
Click to expand...
Click to collapse
working for me under ubuntu karmic, great work as ever Brut.all
Had the chance to set this up and make my edit. Absolutely painless. Great work. Thanks!
Android 1.5 can also work?
itanczos said:
Android 1.5 can also work?
Click to expand...
Click to collapse
Why not? It just builds apps, not run them, so it's a question like: "Do smali can also work with Android 1.5?" ;-)
That "Android SDK installed with 2.1 platform" requirement doesn't mean, that it will build apps for 2.1 . It will just use 2.1 resources, but these are (must be) backward compatible.
Brut.all said:
Why not? It just builds apps, not run them, so it's a question like: "Do smali can also work with Android 1.5?" ;-)
That "Android SDK installed with 2.1 platform" requirement doesn't mean, that it will build apps for 2.1 . It will just use 2.1 resources, but these are (must be) backward compatible.
Click to expand...
Click to collapse
Okay, I'll try!
Another question: The framwork-res.apk could not be decrypted. It will be possible later on?
itanczos said:
Another question: The framwork-res.apk could not be decrypted. It will be possible later on?
Click to expand...
Click to collapse
Maybe much later :-/
Even if we will be able to decode it and rebuild, we'll have FC after FC. The point is: framework resources must have constant resName<->resID mappings (eg. @android:string/day must be a 0x01040298), because they are referenced by all apps and unfortunately aapt doesn't give us control over resIDs mappings. I think framework-res.apk and other system files are built using some Google's private tools.
We need to create aapt-like tool, that will use custom resIDs mappings - it should be possible and maybe not so hard, but currently I have other things to do.
want a windows version >.<
lolmensch said:
want a windows version >.<
Click to expand...
Click to collapse
I must buy one ;-)
For now you need VirtualBox (free) + Ubuntu (free) + ~5GB of space (nearly free) and you will be able to use it
could this be used to modify this skype .apk to allow use on other carriers?
http://forum.xda-developers.com/showthread.php?t=585211&highlight=skype
ekeefe41 said:
could this be used to modify this skype .apk to allow use on other carriers?
http://forum.xda-developers.com/showthread.php?t=585211&highlight=skype
Click to expand...
Click to collapse
I don't know, what are these "iskoot", "3 network" and other things - I don't use Skype. But if you need to change something in XML files, then you definitely want to try out apktool

exe to apk?

hello, please can any helpme,
i need convert a little windows program to apk
is this posible?
thanks
savylop said:
hello, please can any helpme,
i need convert a little windows program to apk
is this posible?
thanks
Click to expand...
Click to collapse
Pretty sure it isn't. An apk file is just a way of gathering up the files required to install an Android application. So for example it will have the compiled Java code. Your windows .exe is not a compiled Java application and certainly not compiled for Android! It's a non-starter.
Indeed no chance with that, now if you could tell us what language the source is in you might have hope, of cause java is quite easy to port and you can port C as well using the NDK.
Others you will likely have to rewrite the code, feel free to PM me for more help
Yes yes it's possible! Just tell Iris or Siri to do it
Seriously : what zac said. The code is written differently
Sent from my Ouya
If your little exe has a linux version available (or linux equivalent), you'll have a much easier time porting that. You could also try looking for similar open source projects that can be modified to add the features you need.
The answer is no. Though there could be a longer technical follow up to that.. Either way it's no...
With that said.. There are a lot of apps available for the Android.. Try to find one that does what you're looking for..
Sent from my SAMSUNG-SGH-I747 using xda premium
exe to apk
Its impossible, because there are two fully different operating system.
Not possible at all
you can create .apk file only with a compiler
there are .exe to .apk converters out there, you just need to do a lot of searching to find a link that downloads without having to do surveys. the software is titled Change My Software... so, to all of you that say its not possible to do this... youd be wrong, it is
Could anyone create an apk for downloading music. Just like Lacey for Windows. Its a small exe file 8 MB in size.

[Q] Compile apk

Hello. Can someone more experienced than me compile an apk from this github source?
Toggle Location Widget
I will remain in your debt. Thank you in advance.
andrei7radu said:
Hello. Can someone more experienced than me compile an apk from this github source?
Toggle Location Widget
I will remain in your debt. Thank you in advance.
Click to expand...
Click to collapse
get latest < apk changer > from XDA,
its up to date, working with ICS apps, and great indeed
decompiled and recompiled a whole rom lately with it,
goes like thunder...
success
asgardr said:
get latest < apk changer > from XDA
Click to expand...
Click to collapse
Yes mate, that's a great tool indeed. But it's only for decompiling first, not for source-only compiling.
You have to download the Android SDK + Eclipse from the Android development website, import the files and build the project. Follow the instructions to configure the environment, the import and build process is actually 3 mouse clicks
Sent from my HTC Desire S
amidabuddha said:
You have to download the Android SDK + Eclipse from the Android development website, import the files and build the project. Follow the instructions to configure the environment, the import and build process is actually 3 mouse clicks
Sent from my HTC Desire S
Click to expand...
Click to collapse
Yep, i read something 'bout Eclipse and SDK ... but i never used Eclipse and i was just wondering/kindly asking if anyone who made such thing before and has the necessary tools already on their PC can compile it ... Thanks

Netease Music - Unofficial English Translation

Ok, so Netease caught on to everything, and put a stop to all of our shenanigans. None of this would be a problem if they just released an english version. I doubt that will happen anytime soon though.
~~~EDIT~~~
Fildo.net is probably the best alternative. They have a decent android app, and it uses the music from Netease, I believe. Check it out!
But I mean, in the event that you are a stubborn bastard and refuse to quite Netease, there might be a way to get around their block. The following was taken from a comment on page 15 by ItsJono. Good luck!
-----------------
From what I understand, the NetEase translation development was forked into two different projects, the one here is for NON-ROOT people who do not have access to root/xposed installer. This uses a modified APK with modified files that NetEase has begun detection for tampering. The second version, is the one for ROOT/Xposed which i'm installing now. The Xposed version is better since it translates the file on the fly in memory versus having a pre-modified APK so that NetEase can update itself and not break translation.
Edit: Okay, the Xposed version of NetEase + Translation Xposed Module + English translation = Works again!
The link to follow is here: http://superdevs.weebly.com/netease-cloud-music.html
I didn't want to do this before because it looked confusing and hard, especially with so much of the information being in Spanish but it turned out to be quite easy. I'll give a quick overview of what I did to help those who want a clearer, native English description of how to do it. The first link was very helpful with it having been translated from Spanish, and while the English was good, it was clear it wasn't their first language and I want to help those who might be a little iffy as to what the process is:
[How to Install Xposed version of NetEase]
Q: Why install Xposed version of NetEase, versus the pre-translated APK located in this thread?
A: The pre-translated APK of NetEase offered by @omarchavez/XDA: omare.chavez is great for users who do NOT have root access on their device. However, it is prone to "breaking" from NetEase's hash check of APK from what my Android developer friend explains as a possibility. The Xposed version allows you to have the latest official NetEase APK installed without having to wait for an updated APK to show up. Xposed version also allows quick corrections in typos in the translation files, whereas it would require a rebuild of the translated APK, of which, the primary developers are Spanish and English translation is not their primary concern.
Q: I don't have root access, which version should I download?
A: The version you should download is the one offered by @omarchavez / XDA: omare.chavez. Download and install Telegram from Google Play Store and use your phone to visit this address: https://telegram.me/neteaseES , then subscribe to his channel so you can receive the latest developments and download the latest APK version of pre-translated NetEase.
-
Before Install: Have root access, and Xposed installed so you can install the Xposed module that translates the program, without breaking the functionality of NetEase
1.) Install AndroTraductor Xposed module, enable it in Xposed, reboot (?) /// Or follow instructions here: http://superdevs.weebly.com/androtraductor.html
2.) Install latest NetEase APK directly from NetEase, http://music.163.com/api/android/download/latest
3.) Download the translation files:
English - http://www.mediafire.com/download/c6...#91;b_1.0].zip
Spanish - https://mega.co.nz/#!GRlCVRID!vyQlET...smSTKzeDbQ5ncs
Spanish 2 - https://userscloud.com/8c66tzcqb8eh
...and then create a folder in your Android device's root directory named "dv_translate", and extract the contents of the translation zip file that you downloaded in your language so that the file structure looks like the images shown in the link.
http://superdevs.weebly.com/uploads/...62598_orig.png
Reboot device and load up NetEase, the app should have some text translated in your language that you downloaded. Images cannot be translated as they would require modification of the .APK contents and would fail the hash check when NetEase checks for modification.
[How to register for Weibo/NetEase account]
Q: Why should I register an account?
A: You can use NetEase as a Guest but miss out features by not having an account. Having an account allows you to have unlimited 320KB/s quality MP3 song downloads, save your favorite songs, create playlists, etc. I would definitely recommend it. It's also not very hard and is a very simple process.
-
1.) To register a NetEase account, go here: http://reg.163.com/reg/reg.jsp?product=music
2.) Use the follow image or Google translate to help you. http://superdevs.weebly.com/uploads/...png?1434101457
*Please note that the image here has a small mistake, the first red arrow on top where it says "Username" is supposed to be your email. I believe you'll be prompted later to choose a NetEase username handle.
3.)Log in NetEase using the information you put and enjoy!
[Credits]
Special thanks to the users OmarChavez / XDA: omare.chavez for making the translated APK and allow me to try NetEase, and nvincent for making this thread and giving this APK project visibility.
This information couldn't be done without the following sites:
http://superdevs.weebly.com/netease-cloud-music.html
http://www.htcmania.com/showthread.php?t=978407
Great, thanks for this. I look forward to future update.
I would like to merge my work with yours
Hi,
nice work! I have also started translating this app, and i would like to merge some fixes into your version.
Is there a github or something where i can contribute?
Cheers.
Wow man, thanks for your work, I'll try this app right now.
I constantly get a notification to update the app. I read somewhere that I should not take the update because it will revert back to Chinese. Is this correct?
UCLA1 said:
I constantly get a notification to update the app. I read somewhere that I should not take the update because it will revert back to Chinese. Is this correct?
Click to expand...
Click to collapse
Absolutely, the file (translated) will be replaced when updated
Scarotrhy said:
Absolutely, the file (translated) will be replaced when updated
Click to expand...
Click to collapse
Then I guess I will use this one as it prevents that notification. It looks like quite a few people are working on this app and I appreciate their hard work.
http://www.reddit.com/r/Android/comments/2wifav/what_are_your_favorite_offtheplaystore_apps/crfx6oa
UCLA1 said:
I constantly get a notification to update the app
Click to expand...
Click to collapse
Is it really everytime you reopen the app? Cause then it looks like I found a workaround for that, not sure yet but I didn't have a notification since 9+ hours
GerRudi said:
Is it really everytime you reopen the app? Cause then it looks like I found a workaround for that, not sure yet but I didn't have a notification since 9+ hours
Click to expand...
Click to collapse
Yes it was every time I opened the app. I am now using the one that is in the link I provided and I do not have that problem anymore. Hopefully this version gets that fixed as well.
UCLA1 said:
Yes it was every time I opened the app. I am now using the one that is in the link I provided and I do not have that problem anymore. Hopefully this version gets that fixed as well.
Click to expand...
Click to collapse
I recommend you to stay with this one as the translation is a lot better.
Right now, to FIX the update notification (might also be implemented by OP in the next version) you need a rooted device and a root browser app.
Goto data/data/com.netease.cloudmusic/shared_prefs/UpdateInfo.xml
I THINK the integer value versionCode is used for the update check (versionCode < serverVersion) - simply increase the value to a lot higher one, I used 99 - no update notification on startup.
With this, I didn't have a notification since 24h, I guess that's a fix for it.
EDIT: got an update notification after 48h.
Sent via HTC One M7 - ARHD Lollipop via XDA free
GerRudi said:
I recommend you to stay with this one as the translation is a lot better.
Right now, to FIX the update notification (might also be implemented by OP in the next version) you need a rooted device and a root browser app.
Goto data/data/com.netease.cloudmusic/shared_prefs/UpdateInfo.xml
I THINK the integer value versionCode is used for the update check (versionCode < serverVersion) - simply increase the value to a lot higher one, I used 99 - no update notification on startup.
With this, I didn't have a notification since 24h, I guess that's a fix for it.
EDIT: got an update notification after 48h.
Sent via HTC One M7 - ARHD Lollipop via XDA free
Click to expand...
Click to collapse
Haha. I was going to say, wow, that is a clever way of fixing it. I'll relay this info over to the guy working on it and see what we can do. No promises though.
Just a quick update - we are waiting for a new version of apktool to be released that apparently should fix the problem we are running into. Once this is released, we'll hopefully be able to update it.
Here's a link to a modded version of 2.5.4.
https://userscloud.com/99qmi15sjye7
The persistent update notification is removed, but the language is still native.
Cm security flagged this app as containing a Trojan virus. I'd highly recommend staying away from this app
Guitarboarder28 said:
Cm security flagged this app as containing a Trojan virus. I'd highly recommend staying away from this app
Click to expand...
Click to collapse
Antivirus programs are stupid. I guess CM security doesn't like the permissions that the app requires, but personally I don't think this contains a trojan, it's a really huge company in China.
(Allthough you can never be sure, in the past, there were several reports of highly popular smartphones on the chinese market that contained maleware by default)
We can translate the new version 2.6 with Xposed and one module. The oficial post of the translate in Spanish htcmania. com/showthread. php?t=978407 and the module post htcmania .com/ showthread .php?t=1015136 The links without blank spaces
both links in op are down , anyone have a working link ? looking for English version
ex-28 said:
both links in op are down , anyone have a working link ? looking for English version
Click to expand...
Click to collapse
Mega link is working fine.
thanks my man, this app is simply amazing
Alcarete96 said:
We can translate the new version 2.6 with Xposed and one module. The oficial post of the translate in Spanish htcmania. com/showthread. php?t=978407 and the module post htcmania .com/ showthread .php?t=1015136 The links without blank spaces
Click to expand...
Click to collapse
I like the idea, but I miss an english version
Edit: found this(xposed,english translations):
Http://superdevs.weebly.com/netease-cloud-music.html

(Removed)

(Removed)
Tried your guide to getting it to run, but again, I get the searchandreplace.dll error (I got this when I signed the RT 8.0 version too)
Qiangong2
This is with the new v4.0.30319
On the last line, it is pointing to runtime.cs on a user named mcafferym. I don't have a user named mcafferym... also it is pointing to the sharpdevelop source.
Qiangong2 said:
(Removed)
Click to expand...
Click to collapse
OnbekendV said:
Hi,
When did you get this error? Everything works fine here. Mcafferym? That's weird. Because that was the person who made the old version. I will found out what's going on.
Update: I used his (@chentiangemalc) source code, which means that this build is exactly the same as his build. Just found out I used his source code (Sorry for that!). That's the reason why you experience the same problem,
Regards,
OnbekendV
Click to expand...
Click to collapse
Okay, thanks could you modify the 4.4 source so VB.net coding is a possibility and it will work on RT?
Sent from my SGH-M919 using XDA Free mobile app
Qiangong2 said:
(Removed)
Click to expand...
Click to collapse
OnbekendV said:
Hi,
I will try, but you know what's weird? Every time the builder responds that the exe-file is not compatible with Windows RT 8.1. This means that compiles with VB.Net should work, but we only have to add ARM support. I don't know how to do it, but I will found out. Do you have Google Hangouts or something? If we work together, things will be easier to develop.
Regards,
OnbekendV
Click to expand...
Click to collapse
What about copying the execution exe from the .NET from the surface?
I have a wechat, if you want to pm me I can send you my wechat code.
Sent from my SGH-M919 using XDA Free mobile app
(Removed)
SharoDevekio,zip file in Downloads section gives 404. Did something happen to the file? (it looks like it was updated last week)
(Removed)
hey guys,when i try to build programs it get to me 2 errors:
The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644)
and:
Parameter "SearchPaths" has invalid value "{CandidateAssemblyFiles}%3b
%3b
{HintPathFromItem}%3b
{TargetFrameworkDirectory}%3b
{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}%3b
%3b
{GAC}%3b
{RawFileName}%3b
bin\Release\System.winmd". Caratteri non validi nel percorso. (MSB3248)
what i have to do?
roxas22 said:
hey guys,when i try to build programs it get to me 2 errors:
The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644)
and:
Parameter "SearchPaths" has invalid value "{CandidateAssemblyFiles}%3b
%3b
{HintPathFromItem}%3b
{TargetFrameworkDirectory}%3b
{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}%3b
%3b
{GAC}%3b
{RawFileName}%3b
bin\Release\System.winmd". Caratteri non validi nel percorso. (MSB3248)
what i have to do?
Click to expand...
Click to collapse
You haven't put the reference assemblied in the correct place then.
Sent from my Q5 using XDA Free mobile app

Categories

Resources