[Q] Compile apk - HTC Desire S

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

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

[DEV] apkTools - Optimize/Edit/Pack/Sign

A simple toolkit inspired by some others, primary goal is to provide a seamless solution for reliable apk editing/optimizing.
This tool uses aapt rather than 7zip for packing. That provides much better reliability and assurance of conformance to Android file standards, as the cost of slightly larger files.
Contains:
- 7zip
- roptipng
- aapt
- apktool
- zipalign
- signapk
I've also made sure all the libraries/binaries are up to date.
Reserved Post?
Does this work on a mac? Not at home to download it.
Sent from my PC36100 using XDA App
david279 said:
Does this work on a mac? Not at home to download it.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Windows only, sorry.
I can look and see about porting to Mac/Linux though, to my knowledge I should be able to get binaries/source for each exe used.
Cool thanks....
Sent from my PC36100 using XDA App
Appreciate the kit will thank you when I get near my laptop.
Swyped From Eva Running Myn's RLS4!
40 downloads and no feedback?
Anyways, I'd like to encourage everyone to use ddms from the android sdk to check your boot errors when optimizing.
It helps alot, any apk related errors should always be addressed even if they seemingly work flawless.
I like that you have compiled all these things together. Shouldn't there also be a draw9patch.bat also for those who have to fix the things that noobs did? It is getting better these days but there are still those out there trying to take the easy way out.
I'm also on a mac. I'll probably run it within VirtualBox
good stuff... im happy someone put together a package for everyone.
btw... which versions u using here?
i can check... but i think more people would like to know.
aamikam said:
btw... which versions u using here?
i can check... but i think more people would like to know.
Click to expand...
Click to collapse
7za - 9.20
roptipng - 0.6.3
aapt & zipalign - SDK v8
apktool - 1.3.2
signapk - NA
thanks! i'll be putting this through its paces sometime after weekend
i'll report back with any issues.
Can AndroidManifest.xml be edited with this?
epakrat75 said:
Can AndroidManifest.xml be edited with this?
Click to expand...
Click to collapse
I think so, but I'm not sure.
Optimize/Edit/Pack/Sign
Click to expand...
Click to collapse
I think Apps have to be signed in the AndroidManifest.xml...
Sent from my HTC Desire using XDA App
I like your concept. Good work. I'm only experiencing 1 issue though...
When unpacking Motonav.apk, everything seems to be unpacked, but when looking at the files, they're wrongfully created.
Instead of creating the file data.gro for instance, it creates a folder data_gro. Which therefore can't be recognized by GROConverter.
Am I doing something wrong?
epakrat75 said:
Can AndroidManifest.xml be edited with this?
Click to expand...
Click to collapse
its using apktool so if its set to decompile then you would edit the decompiled manifest with something like notebook ++
this would be greeeeaaaat for a mac.
Awesome tool... Would love for this to be able to handle draw9patch! Might there be an update to include that?
For some weird reason im getting errors. saying java isnt a command
This is great, thanks....

Arabic support on all Android devices > 2.2

Here is something I put together to enable arabic on any device without changing any linked library in /system/lib which means it'll work cross-devices. This means that your android will be able to connect arabic letters properly to enable read/writing. Note: this will enable shaping for all android menu's and for writing, this will not fix the browser's problem. for that, we need to compile individual libwebcore.so files for each ROM. so we're out of luck there. You can get Persian Browser or the new Firefox browser to fix this problem.
Requirements:
1. your rom has to be deodexed. (if you have /system/framework/framework.odex, this will NOT work).
2. you must be rooted !
3. your android must be version 2.2, 2.2.1 or 2.3 (not tested on 2.3 yet but should work).
Steps:
1. Pull framework.jar from your phone's /system/framework
1. Download the file from the following link:
http://blog.devasque.com/?page_id=11
2. Extract it somewhere
3. Put your phone's framework.jar inside of the extracted folder's framework folder.
4. Click on commands.exe and wait ! eventually you'll get a framework.jar inside subfolder "generated". copy that back to your phone in /system/framework and restart.
Note: if you get a bunch of FCs after restarting, you'll need to factory reset your device.
this should work. It was tested successfully on a bunch of deodexed roms for the samsung galaxy S, and two roms on the G2.
Credits:
I got the script files from iAndroid, a hebrew patching thread that does something very similar to what this does. so hats off to the great minds over there.
The arabic patching files were compiled from source from Y6b's github. So thanks to his great work as well.
Finally arabic is supported across all devices.
hi madmack ! thank a lot
this is a very useful thread.
i test it on deodexed galaxy s (wxJS5 rom) and it worked almost flawlessly.now i have some question. please help me. you are only guy i know to answer these questions.this patch (mod) has some problem to render persian/farsi characters correctly.i am a java programmer and can edit java files and fix this errors.the only problem i face is : how can i apply my modification and (re)compile the source again ? because this files (framework.jar) are in java , can i use eclipse IDE to compile ? i already made and developed some programs and aaps for android os using eclipse . please if you have any ( just any ) information , please help me . again i have no any source and reference to ask these question .this is not a first time for me to ask a guy this question but nobody yet give me useful answer .
hamedpc007 said:
hi madmack ! thank a lot
this is a very useful thread.
i test it on deodexed galaxy s (wxJS5 rom) and it worked almost flawlessly.now i have some question. please help me. you are only guy i know to answer these questions.this patch (mod) has some problem to render persian/farsi characters correctly.i am a java programmer and can edit java files and fix this errors.the only problem i face is : how can i apply my modification and (re)compile the source again ? because this files (framework.jar) are in java , can i use eclipse IDE to compile ? i already made and developed some programs and aaps for android os using eclipse . please if you have any ( just any ) information , please help me . again i have no any source and reference to ask these question .this is not a first time for me to ask a guy this question but nobody yet give me useful answer .
Click to expand...
Click to collapse
hey hamedpc. didn't think i would get any reply anytime soon here, lol.
you'll need to learn how to compile android from source, then apply patches etc.. this is not something i am willing or able to discuss on a reply post here so you got some research to do before you can attempt that.
anyways, if you want to know which files you should look into, simply look at the subfolder "files/froyo" and look at all the .smali files. Then, find the equivalent in the android source but they should be .java. These are the files that are patched.
sorry for not being more helpful
so if i have framework.odex should i just delete it and move on?
jaguar4002 said:
so if i have framework.odex should i just delete it and move on?
Click to expand...
Click to collapse
you can't do that. you'll need to get a deodexed ROM or google around for how to deodex it yourself.
I'm using the leaked 2.2 rom for the epic. Is there any rom. That u recommend?
Sent from my SPH-D700 using XDA App
jaguar4002 said:
I'm using the leaked 2.2 rom for the epic. Is there any rom. That u recommend?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
I use an I9000, so not sure what options you guys have for the Epic.
But I'm pretty sure that a lot of custom roms are out there that are (1) Froyo and (2) deodexed. Almost all custom roms are deodexed.
this isnt working on the epic. i did everything was suppose to be done.
i have arabic but the letters are disconnected. which is nothing new from froyo update.
am i doing anything wrong?
jaguar4002 said:
this isnt working on the epic. i did everything was suppose to be done.
i have arabic but the letters are disconnected. which is nothing new from froyo update.
am i doing anything wrong?
Click to expand...
Click to collapse
Yea, most likely you are.
It really should work with all 2.2 and 2.2.1 roms. specially the samsung ones. I tried it on JS3, Darky's, JS5 and Doc's ROM for the I9000 and it works.
Just make sure you got a deodexed rom. (no framework.odex file), and also verify that the generated framework.jar is actually bigger than the original framework.jar by about 1MB. (sometimes the process stalls for some reason, so you'll have to redo it if the size is not bigger by 1MB).
im using this rom . http://forum.xda-developers.com/showthread.php?t=963845
and it is deodexed.
it shows the letters but they arent connected. just like how i was before doing all this.
And yes the size was larger.
i would love if u can pm me ur yahoo or something so we can go over it.. if i get this thing working, my phone would be PERFECT!!
and thanks for ur quick responses!
bro nevermind!
i wasnt enabled root access for my file manager, thats y i wasnt able to paste the net .jar file.
it works great!! i love u to death.. no homo lol
but i noticed FB is kinda laggy when theres arabic letters.
just saying.. dont really care.
ZT-180
I am using the ZT-180 with 2.2 but this didn't work for me do you have any suggestion for me
vitonline said:
I am using the ZT-180 with 2.2 but this didn't work for me do you have any suggestion for me
Click to expand...
Click to collapse
if you know how to use logcat, post it here and I can have a look at it.
I am new at this if you can explean more
Thanks
vitonline said:
I am new at this if you can explean more
Thanks
Click to expand...
Click to collapse
this is probably why you couldn't get it working on your device.
this topic is a little advance, and i really don't recommend applying it if you're not familiar with rooting, replacing system files and recovery.
there are many steps you need to learn to be able to apply this patch, which is beyond the topic of this thread. sorry but I can't help you with that.
madmack said:
this is probably why you couldn't get it working on your device.
this topic is a little advance, and i really don't recommend applying it if you're not familiar with rooting, replacing system files and recovery.
there are many steps you need to learn to be able to apply this patch, which is beyond the topic of this thread. sorry but I can't help you with that.
Click to expand...
Click to collapse
I already rooted my ZT-180 and I apply the steps but still the Arabic
vitonline said:
I already rooted my ZT-180 and I apply the steps but still the Arabic
Click to expand...
Click to collapse
Read around.. its out there.
Its not too difficult.
Sent from my SPH-D700 using XDA App
@madmack
i tried your method on a rom for my htc hero and it worked just like you said, except for the web browser.. is there a way to patch libwebcore.so so that it could also support arabic?!
jaikat said:
@madmack
i tried your method on a rom for my htc hero and it worked just like you said, except for the web browser.. is there a way to patch libwebcore.so so that it could also support arabic?!
Click to expand...
Click to collapse
unfortunately not. these .so libraries require recompiling of the source code.
the patch for libwebcore is up on my github account (same nickname). If you get your hands on your source code for the webcore libraries. Then you can try the patch yourself
I've already patched libwebcore.so for a 2.2.1 ROM for the Galaxy S I9000. It worked pretty well.
that was quick
madmack said:
unfortunately not. these .so libraries require recompiling of the source code.
the patch for libwebcore is up on my github account (same nickname). If you get your hands on your source code for the webcore libraries. Then you can try the patch yourself
I've already patched libwebcore.so for a 2.2.1 ROM for the Galaxy S I9000. It worked pretty well.
Click to expand...
Click to collapse
i'll look into it, although i must say i don't have any experience on compiling from source, but i'm willing to learn...
great work anyway, and thank you.

[DISCUSSION] Eclipse users

This is a discussion thread for eclipse users
U can ask any question about this
Sent by typing by my fingers
Importing existing android project to eclipse
Navigate to Import section
Select ‘Existing Android project into workshop’ option under ‘Android’ section and click on ‘Next’ In the next screen browse and select the app folder, check the option ‘Copy project into workspace’.
App is imported successfully.
Sent by typing by my fingers
Just found this thread I am also using eclipse to build apks thanks for the info Im very new to it so any help is useful
I have an apk I built using some app builder website. The app runs fine but when I decompile it to grab the source code Eclipse shows some errors in the app and wont export to apk. How is there errors if the app runs fine?

[toolkit][tutorial][linux]apk munky-rench

APK MUNKY-RENCH
FOR LINUX​\
A minimal dependency toolkit​
WINDOWS IS TERRIBLE
Everybody knows it. Linux is a better platform for developers. No matter how much you themers hate it, it's true. You can't compile android from source in Adobe Photoshop. Linux Distros are built with developers in mind.
Well, what about those of us that aren't developers yet? Linux is hard, right?
Right!
Linux CAN be hard coming from Windows, where everything is all pretty and you just click away on your GUI. Setting up a build environment on Mint was a huge pain when I first made the switch. No install wizard, no tech support, no hope. While Linux can be very powerful, simple tasks like decompiling apps can be a killer. Gotta love that terminal.
Well, Apk munky-rench is here to help fix all that. As I was learning all these steps, I remember wishing that all the kits were a little more educational and the tutorials were a little more functional. So instead of just fighting my way through the learning process and leaving the rest of you to suffer, I have decided to build something that is part tool, part tutorial. Now you can enjoy a little functionality without having to fight with dependencies, and hopefully learn something along the way.
APK MUNKY-RENCH
SUPPORTS SAMSUNG DEVICES THROUGH ONBOARD HEIMDALL!!!
FEATURES​At initial release, apk munky-rench features the following:
Unzip Apk
Zip APK
Install Frameworks
Decompile Apk
Compile Apk
Sign Apk
Zipalign Apk
Compile System Apk
ADB Install
ADB Push/Pull
Fastboot Flash Recovery
Heimdall Flash Recovery
Flashable Zip Generator
Lollipop Compatibility
Brief Explanations of Features
Version 1.1 fixed broken menu option and updated to apktool 2.0 RC4
As time goes on, I will be adding more features and more tutorial functionality. Munky-rench is dependent only upon a proper installation of JAVA. All other tools are onboard.
INSTRUCTIONS
Download v1.1 from MEGA and extract, or visit my git to download a zip or clone (recommended, as I plan to add quite a bit of functionality). Run the munky-rench script. It should all be pretty straightforward from there. but post any questions here, and I will be happy to help. Also, feel free to suggest features or submit pull requests.
If you need a windows kit, markbencze has an updated one here.
​
CREDIT
Brut.all for apktool
The lovely folks over at signapk.jar
The zipalign team
Glass Echidna for Heimdall
markbencze for motivation
and absolutely anyone else who would like some credit.
The script is mine, the tools are not.
Remember to thank all the devs
And Google.
Heck, send Sergey a letter with your regards.​
mine
and why not take one more?
This is awesome buddy. Great job on it. You've worked very hard on this!
Top well!!!
markbencze said:
This is awesome buddy. Great job on it. You've worked very hard on this!
Top well!!!
Click to expand...
Click to collapse
Thanks man. I hope to turn it into something pretty cool.
Can I use this on my note 2? Or does it have to be executed on PC? I have an apk that I want to try and resign. I'm a total noon when it comes to all this compile, decompile, sign apk and all. Thanks
DCOCH13 said:
Can I use this on my note 2? Or does it have to be executed on PC? I have an apk that I want to try and resign. I'm a total noon when it comes to all this compile, decompile, sign apk and all. Thanks
Click to expand...
Click to collapse
Has to be run on linux PC. It is a bash script with included apktool, signapk, and zipalign. If they ever release an apktool that works natively on android, I will build a similar .sh script, but for now, as far as I know, PC is the only way to compile apks
Now supporting ADB Push/Pull, Fastboot Flash Recovery, Heimdall Flash Recovery, and a Flashable zip generator that generates a flashable zip to test system apps AND another zip to flash the original apps back if you bootloop -- and gives you the option to push them to your sd. I will be expanding the fastboot and heimdall features eventually, and adding some kitchen features if I find the time, as well as making it more functional as a tutorial for noobs.
Excellent
anttaz said:
Excellent
Click to expand...
Click to collapse
Thanks. If you have any feedback, let me know. I'm gonna try to make it a useful as I can.
Will be testing lots believe me. And yes Will
Much top kit for decompile of apps in linux machine! Everything works out of the box much well, with no install of extra software! Much thanks for well tool.:thumbup:
Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Rahul³™ said:
Much top kit for decompile of apps in linux machine! Everything works out of the box much well, with no install of extra software! Much thanks for well tool.:thumbup:
Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Click to expand...
Click to collapse
Thanks, I just wanted to automate some of the features that we need all the time for themes and mods, and I remember how much of a pain initial setup of environment can be with linux, so I wanted to eliminate alot of those dependencies and extra steps. With this kit, you just put it in your file system (I keep mine in my ~/android folder), and it works. No adding anythint to path or weird errors.
apktool for Android does Exist !!!
mike the inkman said:
Has to be run on linux PC. It is a bash script with included apktool, signapk, and zipalign. If they ever release an apktool that works natively on android, I will build a similar .sh script, but for now, as far as I know, PC is the only way to compile apks
Click to expand...
Click to collapse
APKTool.apk for ANDROID does Exist for years my friend
Wolf Tatoo said:
APKTool.apk for ANDROID does Exist for years my friend
Click to expand...
Click to collapse
I know apktool for exists. I have decompiled with it, but I have never been able to recompile successfully. If you recompile successfully, shoot me a pm. I would for sure appreciate knowing what I was doing wrong.
Yes, native apktool has exist for years, also not update for years. It top idea for mek, but it take 10 minutes to compile just so can see many errors. Decompile with pc much weller, and top fast!
Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Rahul³™ said:
Yes, native apktool has exist for years, also not update for years. It top idea for mek, but it take 10 minutes to compile just so can see many errors. Decompile with pc much weller, and top fast!
Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Click to expand...
Click to collapse
Yeah. It would be nice if I could get it to work. It would be convenient for minor smali and xml stuff.
Yes, but good for at least to have a top well kit for easy apk modding in linux OS. Much thanks for share with Xda community!
Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Rahul³™ said:
Yes, but good for at least to have a top well kit for easy apk modding in linux OS. Much thanks for share with Xda community!
Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Click to expand...
Click to collapse
Thanks man. I figure if I make something useful for myself, it isn't going to hurt me to add a couple more features I normally wouldn't use and share with the community. I have gotten a lot of help from these forums since my first android device, and it's just cool to give something back.
Great tool! There are so many for Windows and I had been searching a good Linux alternative for ages.
Just one query. Am I doing something wrong or 99 doesn't exit? It shows me the options for 11 instead
Keep up the good work

Categories

Resources