[Q] Extracting APK from AOSP branch? - Android Q&A, Help & Troubleshooting

Hi All,
I need to get APK from AOSP (a 4.2.2 Browser in particular), I have an Android SDK with synced 4.2 branch. Is there a way to extract just one APK or do I need to make a ROM?
Thanks in advance!

yes u can do so...
Summer Son said:
Hi All,
I need to get APK from AOSP (a 4.2.2 Browser in particular), I have an Android SDK with synced 4.2 branch. Is there a way to extract just one APK or do I need to make a ROM?
Thanks in advance!
Click to expand...
Click to collapse
u can extract apk code but if u try to build through ecllipse then it wont compile because of missing libraries that are only available in full source...
just look in Android.mk
and try to satisfy the needed libraries...

Related

[Q] Building ROM for Samsung Galaxy 5 (I5500)

Hey everyone,
Recently I installed the latest froyo_2.2 firmware for my samsung I5500..and tried to tweak it and started enjoyin it... So I decided to build Custom ROMS for this phone...I got a lot of info from cyanogen and from other posts...Now what I want to ask is that I have the source code for this phone, the android sdk(with gingerbread) and ellipse(with again the SDK and AVD), I want to compile the source code and do it all in windows based machine.. can i do it?? help would be greatly appreciated!! please!!
chaitanyakaul said:
Hey everyone,
Recently I installed the latest froyo_2.2 firmware for my samsung I5500..and tried to tweak it and started enjoyin it... So I decided to build Custom ROMS for this phone...I got a lot of info from cyanogen and from other posts...Now what I want to ask is that I have the source code for this phone, the android sdk(with gingerbread) and ellipse(with again the SDK and AVD), I want to compile the source code and do it all in windows based machine.. can i do it?? help would be greatly appreciated!! please!!
Click to expand...
Click to collapse
Haven't tried it, but all tutorials on the internet about compiling android are for linux. Probably because android is a linux based operation system. I don't think it's possible to compile on windows
Install linux or use the live CD...
well I guess I'll have to install Ubuntu then
Thanks... and any more suggestions would be greatly appreciated..
Where I can find the tutorial for compiling my rom?
hi
i have flashed my Samsung galaxy5 gt-i5503 to samung galaxy i5500L using firmware for usa ...samfirmware link....
now i have a perfectly working Froyo2.2 in my phone...
pls help me out for the best settings on cuptuner app....
alistassio said:
Where I can find the tutorial for compiling my rom?
Click to expand...
Click to collapse
Sorry, it's not quite as simple as that. First set up your Linux install, and all necessary tools (check the Android developers site), and then come back and ask where to begin!
any chance by making an htc sense ui custom rom for it?
Custom ROM
Can I also get the custom ROM for SG 551?
Thanks,
Disha
How to continue with built kernel
nprussell said:
Sorry, it's not quite as simple as that. First set up your Linux install, and all necessary tools (check the Android developers site), and then come back and ask where to begin!
Click to expand...
Click to collapse
nprussell,
I have installed all necessary tools, downloaded froyo from developer site, got I5500XXJPG_Froyo sources from SAMSUNG, compiled the kernel.
Now i have in path kernel/arch/arm/boot: Image, install.sh, Makefile, zImage
How to proceed?
Many thanks for any help!
thanx man real helpful

[Q] keep kitkat email app, no 5mb limit?

I like 4.4, and I like the brushed up email. I use it for My work exchange. At work, I often snap pics of samples etc, and email to colleagues. I cant do it anymore, the app limits me to 5mb, just 2 pics! Any workaround, or is 3rdP-app my only option?
Shameless bump. Really noone else out there using the default app and expiriencing this? Can I roll back the email-app to 4.2.2 version somehow?
kitkat email 5mb limit
Hello,
I modified "AttachmentInfo.java" and "AttachmentUtilities.java" from
android 4.4 source code, then I rebuild the "Email.apk" application.
The problem is that after all those source code modifications, the 5MB attachment restriction it is still there.
What other files need to be modified?
JohnRieser said:
Hello,
I modified "AttachmentInfo.java" and "AttachmentUtilities.java" from
android 4.4 source code, then I rebuild the "Email.apk" application.
The problem is that after all those source code modifications, the 5MB attachment restriction it is still there.
What other files need to be modified?
Click to expand...
Click to collapse
Do you have the email apk. is this 4.4.2 google/nexus email perhaps?
I did not want to decompile someone elses Email.apk because I wanted to be sure that it is malware clean (after all, I give it access to my email accounts), so I downloaded Android 4.4 source code (yes, 14GB of data downloaded only to compile my email app!)
So, the steps until today:
- Install all required software packages in my Debian linux partition to compile the WHOLE Android OS
- Download Android 4.4 source code (it has the Email app too in it)
- Modify Email app source code and make a lot of tests to see if the problem was solved
- Compile Email app and test the apk in my phone (it compiles and runs succesfull on my device)
- Still no success bypassing the 5MB limit...!!!
There are many places in Email source code wich refers to the message size limit, but I could not find the magic place wich is actually triggered.
The search continue...
JohnRieser said:
I did not want to decompile someone elses Email.apk because I wanted to be sure that it is malware clean (after all, I give it access to my email accounts), so I downloaded Android 4.4 source code (yes, 14GB of data downloaded only to compile my email app!)
So, the steps until today:
- Install all required software packages in my Debian linux partition to compile the WHOLE Android OS
- Download Android 4.4 source code (it has the Email app too in it)
- Modify Email app source code and make a lot of tests to see if the problem was solved
- Compile Email app and test the apk in my phone (it compiles and runs succesfull on my device)
- Still no success bypassing the 5MB limit...!!!
There are many places in Email source code wich refers to the message size limit, but I could not find the magic place wich is actually triggered.
The search continue...
Click to expand...
Click to collapse
can you attach it and post what you are using in this thread?
I attached both source codes:
- original Email source code from Google
- the above source code, but with my modification (unsuccesful. the file limit is still NOT BYPASSED).
I modified the following files mainly: AttachmentInfo.java, AttachmentUtilities.java and VendorPolicyLoader.java
Best regards.
JohnRieser said:
I attached both source codes:
- original Email source code from Google
- the above source code, but with my modification (unsuccesful. the file limit is still NOT BYPASSED).
I modified the following files mainly: AttachmentInfo.java, AttachmentUtilities.java and VendorPolicyLoader.java
Best regards.
Click to expand...
Click to collapse
I need them in .apk format please not the source code as i never compiled it, nor have even tried.
Thanks
Here I attached the apk build from the above posted original sources (not with my modification) Email app.
The Email is from Android version 4.4.2
JohnRieser said:
Here I attached the apk build from the above posted original sources (not with my modification) Email app.
The Email is from Android version 4.4.2
Click to expand...
Click to collapse
ok, i dont have the proper framework to deodex these files, and that is where wee need to be as i need the classes.dex file out of the deodex apk
Do you know how to deodex this file?
carm01 said:
ok, i dont have the proper framework to deodex these files, and that is where wee need to be as i need the classes.dex file out of the deodex apk
Do you know how to deodex this file?
Click to expand...
Click to collapse
i have same problem. You sorted this ?
bargyok said:
i have same problem. You sorted this ?
Click to expand...
Click to collapse
Actually as stated above i need this apk de-odexed. So someone needs to do that for me, b/c if i do it it will be for MY ROM ONLY as you need the SPECIFIC FRAMEWORK to de-odex from the rom your are using.
I am not going to be able to do anything until someone does this
Once that is done i can do this
Regards
I figured I would bump this... I hate the unreasonable and random 5MB limit...
I am more a network admin and have no experience compiling google code. I would be happy to do some legwork (I have plenty of spare vm's) if there were clear instructions on how to get what you want.
Richard
EDT: did some googling... does this help? http://forum.xda-developers.com/showthread.php?t=2507415

[Q] How can i change native browser of android open source

how can i replace the android native browser in android open source project , also how can add flash in it
Hey there, if I'm not wrong
mohittadhiyalcdn said:
how can i replace the android native browser in android open source project , also how can add flash in it
Click to expand...
Click to collapse
refer to"http://forum.xda-developers.com/showpost.php?p=57106070"
You need to replace browser.apk in your roms system/app folder and it should work.

[Q] Migration of a ROM 2.3 To 4. Where to begin?

Hi to all!
I am new in the Android world and I have a mutimidia car system with Android 2.3.4.
The problem i have is to install new applications available on the playstore like Viago.
This application requires at least Android. I have the Android 2.3.4 ROM soucecode and my doubt is if can i make a compilation of the ROM, to upgrada to Android 4 just modifying the sourcecode of the ROM i have.
Or if can i use any other V4 stock ROM, and add the kernel i have and cook it together.
Thanks in advance.
c_verri said:
Hi to all!
I am new in the Android world and I have a mutimidia car system with Android 2.3.4.
The problem i have is to install new applications available on the playstore like Viago.
This application requires at least Android. I have the Android 2.3.4 ROM soucecode and my doubt is if can i make a compilation of the ROM, to upgrada to Android 4 just modifying the sourcecode of the ROM i have.
Or if can i use any other V4 stock ROM, and add the kernel i have and cook it together.
Thanks in advance.
Click to expand...
Click to collapse
Well, what you could do is modify the AndroidManifest.xml in the apk file so that the minSdkVersion is set to API 10. so it would look like this:
minSdkVersion="resource_id:0x10"
Make sure that the app does not require any features that are not in Gingerbread. I hope this helps.
rcunningham said:
Well, what you could do is modify the AndroidManifest.xml in the apk file so that the minSdkVersion is set to API 10. so it would look like this:
minSdkVersion="resource_id:0x10"
Make sure that the app does not require any features that are not in Gingerbread. I hope this helps.
Click to expand...
Click to collapse
Thanks for your quick response. I have some trouble. When I decompile the apk, i am having some errors and dont know what to do. The apk is fully functional in my s4 mini With Android 4.2. this apk (garmin viago) and apktool are not good friends. Initially there are some errors with .9.png images, i've made the Changes in the AndroidManifest.xml and then a recompiled the apk. The result: More and more errors. The only i want to do is modify the min sdk to 10. I Dont know where to follow.
c_verri said:
Thanks for your quick response. I have some trouble. When I decompile the apk, i am having some errors and dont know what to do. The apk is fully functional in my s4 mini With Android 4.2. this apk (garmin viago) and apktool are not good friends. Initially there are some errors with .9.png images, i've made the Changes in the AndroidManifest.xml and then a recompiled the apk. The result: More and more errors. The only i want to do is modify the min sdk to 10. I Dont know where to follow.
Click to expand...
Click to collapse
Trying to get a apk file from Android 4.2 to work on Gingerbread is hard. Getting a apk from ICS to work on Gingerbread is much more simple. But if you only make changes to the AndroidManifest.xml everything should work. If you have more issues, message me on XDA and I could help you a bit more. I might get marked as spam if I post on this page to much.

[Q] Build APKs from Source in need of Help

So I really like google dialer and have a Samsung s5. Now the new lollipop dialer or the google dialer 2.0/2.1 won't install on a tw ROM as it would appear. So I was thinking if I could make my own build from the source I could have the dialer I want without losing the tw features. So I have successfully clone the source to my PC and imported it into android studio as a project. Every time I try to build or try to produce an apk I have 31 errors stating ”no resource...” in the style.XML. I have tried to find a guide that would help me to build an apk from source with no avail. So I am curious to what I'm missing? Some direction would be greatly appreciated.
Do you have the Android sdk installed? Even then it wont install. You have to have it as a system APP and then you will lose the TW features of the dialer.
zelendel said:
Do you have the Android sdk installed? Even then it wont install. You have to have it as a system APP and then you will lose the TW features of the dialer.
Click to expand...
Click to collapse
Well I do have SDK installed.
Ok and it is updated? I would track down the errors and just fix what is missing by comparing it to a pre-built apk

Categories

Resources