[Q] how to compile only apk from source? - Android Q&A, Help & Troubleshooting

i want to compile only god mod.apk from omfgb source. But i don't know how to compile only apk from source. also i want to compile some other apps from source but i really don't know how. Plz someone help me plz plz

Look at the apps manifest.
Ex.
Settings.apk
make -j$(grep -c ^processor /proc/cpuinfo) Settings
Sent from my Nexus S 4G using xda premium

E.g.
If you wanna compile framework-res.apk
Code:
$ make framework-res
Herpderp Defy.

lithid-cm said:
Look at the apps manifest.
Ex.
Settings.apk
make -j$(grep -c ^processor /proc/cpuinfo) Settings
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
thanks i have full omfgb source but wheni compile rom god mod never compile in zip so i asked. thnks

hesoyam27 said:
thanks i have full omfgb source but wheni compile rom god mod never compile in zip so i asked. thnks
Click to expand...
Click to collapse
i think now you need to add [solved] tag i'm not sure but i see on other posts

Related

[Q] Porting Message apk and contacts apk of CM9 to CM7

I realy loved the message, contacts, dialer app in CM9.. now i want it to be like a normal apk.. Can someone help me out with porting this?? I thought of replacing apk's but still i think res files need to pasted.. Any idea??
not just res, u also need to consider framework. its not as simple as "replacing apk". if its that simple i would just using ics original launcher for my cm7 from day 1 it released.
Ya thanks for the reply.. So even frameworks need to be edited! Hmmm.. Big job.. .. Any other way of getting it?
nope, no easy route.
decompile apk, try to edit, trial and error.
or learn its code, modify the source, compile from source, trial and error.
an0nym0us_ said:
nope, no easy route.
decompile apk, try to edit, trial and error.
or learn its code, modify the source, compile from source, trial and error.
Click to expand...
Click to collapse
Ya Sure i ll try! Thanks buddy
Wait for some days dude, you will get a bug free ics for ace
Sent from my GT-S5830 using xda premium
cm9 dialer app port
prashanthme..please share that app if u have done
or how to do that port ??
thanx

Compiling android binary

Hello, i wanna compiling C code to android binary file, as deamon_virtuos_oc, but i havn't find some infromation for this, in my folder i had Android.mk and virtuos_oc.c and how make virtouos_oc file from it?
Sorry, i'm noob in this...
noonamer said:
Hello, i wanna compiling C code to android binary file, as deamon_virtuos_oc, but i havn't find some infromation for this, in my folder i had Android.mk and virtuos_oc.c and how make virtouos_oc file from it?
Sorry, i'm noob in this...
Click to expand...
Click to collapse
You need to compile against the android toolchain. Ill post more information when I get home.
Sent from my SGH-I777 using xda premium
lithid-cm said:
You need to compile against the android toolchain. Ill post more information when I get home.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
i try "make virtuous_oc" and i have this error
Code:
virtuous_oc.c -o
virtuous_oc
virtuous_oc.c:25:28: error: cutils/sockets.h: not found
Thread Close: i try using Crystax NDK that's all

[Error] Compiling cm7 from source?

I want to compiled cm from source
so I started with setting build environment and downloading sources
I also added vendor and device folder then
for building android I used these command
source build/envsetup.sh && brunch cyanogen_p500-eng
but after some seconds I got these error
http://pastebin.com/y27A551E
can anyone help me with solving these error
I really need help
aspee
bumping.
please I really started to feel helpless
aspee said:
bumping.
please I really started to feel helpless
Click to expand...
Click to collapse
Lol... sorry, but i cant help u here...
Ask arjen, lupohirp or adfad..
I asked bytecode he think that syncing is not correct so I deleted framework and sync again but still the same error
Sent from my LG-P500 using Tapatalk

(DEV) (wifi fix) 2.3.6 finally

okay here i go, sorry if this isnt the right place to post this but i need developers help so i find this the sweet spot.I know how to fix the damn wifi reconection problem that a lot of us where suffering when updating to 2.3.6 .As a result of my personal investigation this is apparently a google`s android bug.But here comes the most important thing i know how to fix but not how to do it so if any expert developer can help me it will be aprecciated it. .
So to be clear and specific the bug is on the file located on system/framework/ framework.jar. Some values must be edited there, which ones ? these http://review.cyanogenmod.com/#/c/6098/1/wifi/java/android/net/wifi/WifiStateTracker.java.Here is the original review http://review.cyanogenmod.com/#/c/6098/.So if somebody can please modify those lines in the framework.jar then a lot of users will be very thankfull.
DEVELOPERS HELP NEEDED
no one really??
diegonnc said:
no one really??
Click to expand...
Click to collapse
Try PM to squadzone ..
major java changes in CM are reviewed by him...
Pank789 said:
Try PM to squadzone ..
major java changes in CM are reviewed by him...
Click to expand...
Click to collapse
I cannot pm him, it says that its not allowed, maybe he blocked up his inbox?
These .java files are the source files . Do they exist in franework.jar ?
This was sent from a Galaxy Ace. Problem?
EmoBoiix3 said:
These .java files are the source files . Do they exist in franework.jar ?
This was sent from a Galaxy Ace. Problem?
Click to expand...
Click to collapse
they should be inside framework.jar->classes.dex, but dont know how to decompile classes.dex
diegonnc said:
they should be inside framework.jar->classes.dex, but dont know how to decompile classes.dex
Click to expand...
Click to collapse
I don't think you can
This was sent from a Galaxy Ace. Problem?
well smali files corresponding to those java will be there and the edits will need to be for smali not java directly..
and as i see the changes in commit it may not be easy task to do as i don't know anyone here in SGA has enough smali coding knowledge to make that much of changes
madman_amit said:
well smali files corresponding to those java will be there and the edits will need to be for smali not java directly..
and as i see the changes in commit it may not be easy task to do as i don't know anyone here in SGA has enough smali coding knowledge to make that much of changes
Click to expand...
Click to collapse
too bad, i thought it was easier
But, after some Googling I found a dex decompiler
Although I haven't tried decompiling a .dex file
Sent from my GT-S5830 using Tapatalk 2
KcLKcL said:
But, after some Googling I found a dex decompiler
Although I haven't tried decompiling a .dex file
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
can you pm me with it ? beacuse im still working out for a solution to this

[Q] How to decompile and re-compile settings.apk for KitKat 4.4?

Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Ill start with my story...I want to modify settings.apk and put a few of my own apps in and change the appearance a little bit. I decompile with apk manager and i get res, smali, and AndroidManifest.xml. I don't get apktool.yml, i dont have a problem with this with a jb 4.3 settings.apk. I try to re-compile after edits but I can't because of the missing yml file. Does settings.apk for 4.4 have dependencies I require? Im running slimkat 4.4 for the SGH-T889. I just began learning and find this new world very intresting. Any help, tips, and advice would be amazing! Thank you for time
Click to expand...
Click to collapse
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
hnkotnis said:
Have you installed framework-res.apk?
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
Click to expand...
Click to collapse
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
TheStart101 said:
I have place framework-res.apk in C:\Users\Droid\Desktop\APK-Multi-Tool\other folder. I took it out of the framework folder of the un zipped ROM. This seems to work with 4.3 without a problem. I'm stumped haha
Click to expand...
Click to collapse
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
hnkotnis said:
You need to install it before decompiling.
I suggest you to use "Android Multitool" (Do not confuse with APK Multitool).
It has nice GUI insterface.
Try with it.
There is menu to install framework.
Click to expand...
Click to collapse
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
TheStart101 said:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:244)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:240)
... 4 more
The system cannot find the file specified.
The system cannot find the file specified.
Click to expand...
Click to collapse
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See these are why tools like APKMulitool are not that friendly.. My suggestion to you is Google "apktool" find the Google developers site, download it.. Place all files in folder on C:\ and name it apktool..open cmd prompt at that destination..so it would be C:\apktool, then type in cmd prompt:
Code:
apktool if framework-res.apk
this installs the framework..
To decompile apk..place that apk in that folder then type in cmd prompt
Code:
apktool d settings.apk
to recompile..
Code:
apktool b settings
:thumbup:
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
TheStart101 said:
Sia, I have tried that to my friend. I wonder despite as badly as i wqant to learn if i should just surrender, and go back to useing cheat engine on facebook games :/
Click to expand...
Click to collapse
Post a screen shot of you installing framework.. What ROM are you decompiling this from?
The problem I think is resulting from framework not installing properly..
Sent from my SCH-I605 using xda app-developers app
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
TheStart101 said:
I have uploaded framework and setting apk, Maybe one of you can try to decompile it and if it works tell me what kind of environment you have have set up?
Click to expand...
Click to collapse
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but I'm curious if maybe i messed something up, i am far from dev lol. Any ways it was 1mb over the threshold lol
danm captcha ha
lacoursiere18 said:
That won't do you any good lol.. Then how will you recompile BC u won't be able too..just post the screenshot of your framework installing
Click to expand...
Click to collapse
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
TheStart101 said:
Your right, but i am very far from dev. I wonder if maybe somethings outdated or wrong although i've been at this for days and nights trying to make a breakthrew, It works for jb 4.3 i just havent tested the recompiled app yet. Anyhow heres your screenshot...
Click to expand...
Click to collapse
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Thanks..OK its the framework..whatever ROM u got that from is not going to work.. So I suggest using a cm11 framework res or another of your choice.. I have seen this problem on nightly builds..
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
TheStart101 said:
Thank you very much, though I'm kind of sad now haha. The slimkat is the best rom I've come across and there is very little I want to mod. Any how looks like I'm off to download CM I appericate the help so much!!! I've been up for two day trying to figure this out lol
Click to expand...
Click to collapse
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
See that's even funnier.. I ran across this guy that had the same issue as you and it was the same EXACT rom..slimkat.. Don't know what the issue with is.. Maybe he doesn't want you modding his framework lol..I would post in that thread and ask
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I don't know it says it's open source and gives you the link to all the code on github ;o who knows, but for now I want to try again and hope i get somewhere this time Maybe the next rom you install will be one I made Again I thank you very much
Hi there,
sorry for warming up this thread. I don't find the Settings.apk:
C:\Program Files\_Android\SDK\platform-tools>adb devices
List of devices attached
59973133 device
C:\Program Files\_Android\SDK\platform-tools>adb pull /system/app/Settings.apk
remote object '/system/app/Settings.apk' does not exist​
So the device (Kyocera KC-S701 unrooted) seems to be connected, but no Settings.apk. Also not when using "adb shell" with "cd system/app" + ls.
A bunch of files but no Settings.apk.
Any ideas?

Categories

Resources