decompile apk - G1 Android Development

Hi,
Is there a way how to decompile apks??
Thx

Apk's can be opened using winrar.

they are just zip files.

If its open source, then just grab the source.
If its not then any kind of reverse engenering is illegal (i believe)

depends on what your purpose, if you want to just see the contents, then change the extension to .zip and open it (the for-dummies way) or just open it with 7z (the propper way). If you want to change the actual behavior or properties of the program, then google smali/baksmali. You get low-level decompiled code which you can modify, then re-compile, and add it back to the app.
Before people say anything, I do believe this does belong in development, I mean, if all those cheap-hack job hero roms belong in development, then sure as hell questions like these belong here too.

Start asking your questions in the right sub-forum (Q&A) (Theme) or even in (General), or simply search.......Final result will be a ban for you up too 3 days.
Thanks
Thread Trashed!!

Related

Changing and Editing Andriod OS.

I'm new to this and I've asked people for help but nobody seems to can BUT if you can show me how I can edit things like, change the folder to where you d/l a MMS or edit the size of the favorited person on FB.
There is no general answer to this question. You must reverse engineer an app and find a way, how to modify what you want.
Ok, I'm listening and willing to learn, but for the touted of such an open source OS like Android, I find it VERY difficult that I cant do things like save pics to a different folder other than "all downloads". There must be a way I can edit the strings or permission to the access of this folder only for downloads.

[Question] Naming Structure Idea Thought

You dev/themers/etc are simply amazing and I had an idea/request and by no means am trying to create any extra work for you. When you guys develop a rom/theme/mod whatever can you put that category in the actual name of the zip file?
Example AlteredBeastAlpha5.zip could be [ROM] AlteredBeastAlpha5.zip? I know it is becoming standard to name the threads like that but I think it would benefit the community if the files where also named this way.
Maybe its just my OCD but its just an idea and hopefully this makes sense or benefits the community. I searched and didn't see a request like this but if this has been asked or is not needed or everyone thinks I am full of poop Mods please delete.
Murd0ck
Spaces in file names that you intend to upload/host somewhere for download can create problems.

[Q] Translating .apk files

Is there a way to take a particular .apk file, pull out .xml language files, translate the words and put them all back in?
I think you'd need to decompile the APK then let it know the other language files are there (but I'm not 100% sure)
Max. (From my Galaxy 2)
Yep, there is
Decompile the apk
Open up the folder, and then find the file strings.xml - translate all strings in that file - recompile - n u r done
That's obviously assuming it was developed using standard development methods. It's possible that all the string values are hard-coded into the application, in which case you can't do it (easily).
.
Thread moved to Q&A due to it being a question. Would advise you to read forum rules and post in correct section.
Failure to comply with forum rules will result in an infraction and/or ban depending on severity of rule break.
The majority of developers don't code strings into code I could say in Android as the development environment warns you about them. So you can safely say that MOST of the strings that need to be translated are in strings.xml
Before Google Translate API was a paid service I was using a chrome plugin (not sure what it was called. and an eclipse plugin called androlate which creates the string.xml files for you.
But now you can't use any of them.

Decompiler wrappers and general modification tools.

I wanted to open up a little chat here about what decompilers themers and developers are using to crack this bad boy open. I have tried autoapktool, but that one is giving me errors left and right. I will continue to try new ones and post the ones I find work best, but I was curious as to see what other people have found / use / like / dislike.
Rather off track for a dev discussion.
Esp since the one you posted-auto apktool is a wrapper for apktool.
There are only two tools for decompiling-the original smali/baksmali and apktool. Wrappers arent important. I dont like any of them, and use a collection of my own scripts whenever I have to decompile.
As mentioned, there aren't many actual choices (but several wrappers.)
This is kind of borderline on if it's a dev discussion or not. My opinion is that the OP is somewhat off, but the result might be useful as a reference (and will also fuel my flame thrower if/when someone else posts a similar item without searching.)
I also can't think of a better section for this type of thing (at least until something called "XDA-U" shows up.)
The rules for this sub forum state that this section can be used for discussion of any kind of development. Themeing and modding pre existing roms may not be high level stuff, like porting cm or having issues with a custom kernel... but it is still development. That's why modded roms get posted in the development forum. If a mod feels that I am in the wrong, then please move this to somewhere that makes more sense.
Section Guidelines -- READ THIS FIRST
This area is currently experimental and was set up by the XDA Administrators for development discussion. The idea in this section is for developers (not only recognized developers, but all developers) to have a place for discussion threads to "talk shop."
Click to expand...
Click to collapse
In the mean time. Fine... then lets talk wrappers.
I have not had much luck with the latest auto apktool. But the 2.x variants seem to do quite well. Xultimate seems to work fairly well as well.
lickarock said:
The rules for this sub forum state....
Click to expand...
Click to collapse
Yes, I wrote that post. As I mentioned, this thread is kind of borderline. (While it's not noted on my title, I am a moderator of this section.) If you'd like to debate the finer points of the guidelines, I'd be happy to do so in PM's.
lickarock said:
In the mean time. Fine... then lets talk wrappers.
Click to expand...
Click to collapse
I'd prefer if we didn't. I don't see any issue with discussion of tools and how they relate to the NoteII (or even the exynos4 platform in general), but when you get into wrappers for those tools, things can get a bit far off focus, and solving the platform/device specific issues would have to be done at the base tool level, not the wrapper level. There are also, of course, threads in other sections for specific tools and even wrappers...
(Hopefully, the next paragraph will keep this on-topic AND show what I'm trying to get at.)
To that end, I HAVE been able to properly decompile most of the NoteII apk's I've tried with apktool. In that case, I wasn't able to to use an older version of apktool, and had to find one that was reengineered to work with ICS firmware. (So, for example, if a wrapper used an older version...) Updating the JDK can also solve some issues. Here's a link to the version of apktool I ended up using: http://forum.xda-developers.com/showpost.php?p=23886280&postcount=1
Take care
Gary
lickarock said:
The rules for this sub forum state that this section can be used for discussion of any kind of development. Themeing and modding pre existing roms may not be high level stuff, like porting cm or having issues with a custom kernel... but it is still development. That's why modded roms get posted in the development forum. If a mod feels that I am in the wrong, then please move this to somewhere that makes more sense.
In the mean time. Fine... then lets talk wrappers.
I have not had much luck with the latest auto apktool. But the 2.x variants seem to do quite well. Xultimate seems to work fairly well as well.
Click to expand...
Click to collapse
No offense, but please don't talk like Samsung does.
garyd9 said:
To that end, I HAVE been able to properly decompile most of the NoteII apk's I've tried with apktool. In that case, I wasn't able to to use an older version of apktool, and had to find one that was reengineered to work with ICS firmware. (So, for example, if a wrapper used an older version...) Updating the JDK can also solve some issues. Here's a link to the version of apktool I ended up using: http://forum.xda-developers.com/showpost.php?p=23886280&postcount=1
Take care
Gary
Click to expand...
Click to collapse
Thanks, I was having issues recompiling systemui.
As far as wrappers go, without a "digression" into wrapper UI or other such nonsense, I think it's valid. While most of us know our way around bash, conversation could lead into nice tools like T889 specific git sources or other useful tools.

[How To] [Kodi] [Kodi 17 -how to load Exodus plug-in now that it's discontinued ]

Hi Everyone !!!
I am creating this as a purely educational guide to accomplish what everyone told me was not possible.
<DISCLAIMER>
This is for educational purposes ONLY,
Neither Myself , Xda, Nor Team_Astr4y4L
Nor ANY FILE HOSTS
are responsible for your actions PERIOD, in some places it's illegal to stream digitally copyrighted materials . WE do not condone Stealing in any FORM!!!
<OK NOW THAT THAT'S OVER:>
So Just the other day my old laptop/linux-box/media-center Had a total meltdown. The Dual Core Died :crying:
Which Sucks , but hey it happens. So left with 3 board kids 2 board adults and a stinky-dog, and no good source of entertainment (Cut-Cable long ago) and only football on the t.v and the other-guys team too...
I said to Myself, "Well could be worse right ? I'll just swap the HDD over and run it on another box."
Well that would have been easy , except I was now at a shortage of 64bit P.C's
and the box I could use was 32 bits....
See 32 bit systems will boot fine on a board with 64bit processors, but 32bit processors make all kinds of weird beeps and noises and Refuse out-right to boot a 64bit system...
OK no problem, I'll install 32bit Ubuntu 16 on the box install Kodi on that AND THEN download my favorite plug-in again and install that. Back in business...
NOPE!!!
So it turns out for what-ever reason the devs of exodus abandoned it and moved on to a new plug-in called " Delorean " thats supposed to be all kinds of better too. OK KOOL!
NOPE.
followed all the on-line guides never could get it to let me just watch a movie.
or even install correctly.
So I ask around and i'm told that since the repo is gone now and everyone's switched over I'll never see the beloved Exodus again ... HOW SAD.
and some-one somewhere mentioned that if I still had the zip file from downloading the plugin I could install using Kodi's install from zip file option.
Well that got me thinking. I had always installed from the repo directly... so didn't have the zip file... So I'll ask around for the file.
NOPE !
No Body Had the Zip file.... I was very sad about it for like a second and then i realized , it's a zip file ...
this means all the parts of the plug-in just zipped in a zip file...
SO I set off to work getting the files,
I connected my old HDD to the computer here in the LAB and mounted it...
I dug through it until I found the Location of my add-ons and the files that make them up.
I zipped up the folders using 7zip but made sure not to encrypt them and that the file extension was ( .zip )
since I didn't have a handy thumb-drive on me , And the files were small in nature.
I just uploaded it to my file host....
Then I went back to the living room and Fired up the New media box.
opened the browser typed in
MOD Edit :- Links Removed
and hit enter, There they were my zipped up files....
so I downloaded everything in that folder (took a time or two to make sure I got all needed plug-ins to make it work) and moved it all to a folder on my desktop that I named Kodi-Stuff.
I then opened up the Kodi app and made sure unknown Sources were enabled in settings
went to file manager and choose add source
then i used the [ Browse] button to open the window to navigate to the folder on my desktop named Kodi-Stuff added the folder as a source exited back to Kodi's home screen and chose add-on's and install and install from zip
there they were my zipped files... well I started at the bottom of the list and started installing them one by one ... [ gotta start from bottom of list and work up for it too work]
To My Delighted Surprise They installed , every one of them worked...
HAHA, so now I have my favorite plug-in back.
but had to think that the best thing to do next is
DISABLE AUTO-UPDATES for these plugins...
because the repo's do not exist anymore BUT some malicious Butt-Hole out there may OWN the URL that the plug-in uses to update,
-------BIG SECURITY RISK--------
SO to mitigate that danger I go to all plug-in's in Kodi's menu and choose the plug-in {Exodus and Exodus Repo} for example and look down for the update setting toggle and just turn it OFF !!!
So now fairly confident that no one except Big-Brother was watching me.
I set-up my proxies again on the new machine and
in about an hour of Krap later My Family an I were watching our favorite Movies and Shows again and Had a nice not-bored week-end !!!
This Method works to retrieve other plug-ins too...
Once again this was for educational purposes ONLY
My team and I have chosen to leave the files in the folder I used at my file host up because it's proven useful for loading the
plugins to everything from windows -Kodi to Android-Kodi and Linux-Kodi I'm sharing this here so that You can learn how to do this with your favorite plug-in's too!!
I truly hope this saves some-one else from dieing from Kodi-withdrawal or Just Plain Boredom .
This thread will be open to anyone with questions or comments about zipping files and installing them to Kodi.
I Ask if you Download My Files linked in this thread more than once or if You feel this Saved your life.
MOD Edit :- Links Removed
We're H4Ck3Rz on a budget around our parts! LOL
THANKS,
Astr4y4L
Team_Astr4y4L
Thread closed.
9. Don't get us into trouble.
Don't post copyrighted materials or do other things which will obviously lead to legal trouble. If you wouldn't do it on your own homepage, you probably shouldn't do it here either. This does not mean that we agree with everything that the software piracy lobby try to impose on us. It simply means that you cannot break any laws here, since we'll end up dealing with the legal hassle caused by you. Please use common sense: respect the forum, its users and those that write great code.
Click to expand...
Click to collapse
6. Do not post or request warez.
If a piece of software requires you to pay to use it, then pay for it. We do not accept warez nor do we permit members to request, post, promote or describe ways in which warez, cracks, serial codes or other means of avoiding payment, can be obtained or used. This is a site of developers, i.e. the sort of people who create such software. When you cheat a software developer, you cheat us as a community
Click to expand...
Click to collapse
Thanks
XDA Staff.

Categories

Resources