Hey guys, i downloaded Gallery2.apk Source code from CM github.
How can i compile this myself and make changes to it? I already imported it into my Eclipse environment but it generates a million errors..
Thanks guys.
elesbb said:
Hey guys, i downloaded Gallery2.apk Source code from CM github.
How can i compile this myself and make changes to it? I already imported it into my Eclipse environment but it generates a million errors..
Thanks guys.
Click to expand...
Click to collapse
those system apps use lots of hidden API which is not available in android SDK (security reason i guess)..
maybe this blog can help u out http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/
Maybe you will need to add some external libraries like the supportv4 library.
dcsms said:
those system apps use lots of hidden API which is not available in android SDK (security reason i guess)..
maybe this blog can help u out http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/
Click to expand...
Click to collapse
Hmmm thanks for the link. I looked at it real quickly this morning and it may be what I need. once I get home I'll post the errors I'm getting.
But they mostly pertain to that link where some imported things cannot be found.
Sent from my SGH-T999 using Tapatalk 2
elesbb said:
Hmmm thanks for the link. I looked at it real quickly this morning and it may be what I need. once I get home I'll post the errors I'm getting.
But they mostly pertain to that link where some imported things cannot be found.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
u must follow all those 5 step to make all hidden API available in eclipse ... i've try it....
i can compile SystemUI with eclipse throught those guide...
dcsms said:
u must follow all those 5 step to make all hidden API available in eclipse ... i've try it....
i can compile SystemUI with eclipse throught those guide...
Click to expand...
Click to collapse
Thanks man!
I was able to use smali to do what I wanted and theo0so was able to help me sign it with CM keys to allow it to run
But there were a lot more things I wanted to mess around with, so when I get a day off I will follow all steps Thanks again!
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
Related
after all my hard work and no one helpong me i have done the update.zip to enable java on any phone most likely tried it on my HTC Desire with RCMix HD Rom that doesnt have the JAVA app in it
u can download from the attachments...
Sure guys u need RoOt
NOTE: DO Nandroid & Flash on your own Risk... but most important its working please test
Thanks too TheGhost1233 giving me one hint
if u like this just give me stars thanks
tnx bro ... that's amazing
JAVA is important
5 stars ..
l3zawi said:
tnx bro ... that's amazing
JAVA is important
5 stars ..
Click to expand...
Click to collapse
How is java important, android is based on java, an .apk is just a modified .jar and there are tools to change a .jar into an .apk so a jre or java vm isnt required
Nice. Can this use for website that require java applet security?
Sent from my HTC Desire using XDA App
java is very important for me thanks bro....
coolexe said:
java is very important for me thanks bro....
Click to expand...
Click to collapse
you r welcome
l3zawi said:
tnx bro ... that's amazing
JAVA is important
5 stars ..
Click to expand...
Click to collapse
AndroHero said:
How is java important, android is based on java, an .apk is just a modified .jar and there are tools to change a .jar into an .apk so a jre or java vm isnt required
Click to expand...
Click to collapse
this app can let u use any file that has a .jar or .jad ending and it has lots of usefull apps that u can u
najar360 said:
Nice. Can this use for website that require java applet security?
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
i dont knw about that give it a try and tell me
overall this app is to make it easy to use java files so have fun and plz report if there is anything wrong i can do
thanks for this
but it doesn't seem to integrate into the browser.. i flashed it and went to java.com and it couldn't confirm that i have java installed. not sure if this was your goal, but it would have been awesome
omniwolf said:
thanks for this
but it doesn't seem to integrate into the browser.. i flashed it and went to java.com and it couldn't confirm that i have java installed. not sure if this was your goal, but it would have been awesome
Click to expand...
Click to collapse
:s that is something else this app is just to let JAVA files or apps work on the phone
Why is there no java.apk in this zip file? Also, recovery throws up an error: Unable to find "system/customize/MNS/52099.xml" in Manifest file or something like that when tried to flash this zip..
I get an error for a missing file system/customize/MNS/52099.xml and then it says verification failed... anyone know how to fix this
ashkool said:
Why is there no java.apk in this zip file? Also, recovery throws up an error: Unable to find "system/customize/MNS/52099.xml" in Manifest file or something like that when tried to flash this zip..
Click to expand...
Click to collapse
There is ... in sdext and then app_s
New update
K so i made this updated Java update that should work on everyone else's thats giving the error that it gave me so test it out and always do nandroid backups!!
how exactly do i use that once flashed? i have a .jad file but it wont work...the only way i've got it work is with foundation profile midp installed, and that is very ugly. not even sure about security since i want to use it for m-banking?
works on CM RC2 ?
Sorry , Mistakenly Posted.
I'm just wondering if its possible, thanks.
Yea. Be more specific.
Sent from my GT-N7000 using Tapatalk 2
http://bit.ly/JgDTho
Jesse Jackson said:
Yea. Be more specific.
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Okay, i'll be more specific. I'm going to start developing soon so I am trying to find out whether if I create an app and then it can be opened and edited by someone else, for example...if someone decided to steal my code and use it for their apps.
apks are package code..
code is compile at compile time..ie ...you will see xml code and image assets and compile code...
the code is already in binary format so you cant edit it.
is not like javascript is more like java..in that see only .class files..
SealsNavie said:
I'm just wondering if its possible, thanks.
Click to expand...
Click to collapse
APK Edit 0.4
This thread is to assist porting of Android 4.1 (Jellybean) to ICS devices
A good base ROM for porting: http://forum.xda-developers.com/showthread.php?t=1737849
Ramdisk diff
This is a diff file for the Jellybean ramdisk from ICS. This is from the galaxy nexus and will have to be changed for your specific device. Some notes that are not shown in the diff are that /sbin/adbd and init changed -- These are both binaries so they need to be manually taken from the jb ramdisk.
http://pastebin.com/xwCLRrT0
Files changed in /system/
This is a list of files that have changed in JB... Please check /vendor/{device vendor}/{device name}/ and[/SIZE][/SIZE] /device/{device vendor}/{device name}/ in the CM source to make sure they don't overlap... If any do, just keep your cm9 versions.
/system/app/ - Basically every apk, don't even bother copying individual changed files
/system/bin/
adb.p dumpsys.p mksh.p sdptool.p
applypatch.p fsck_msdos.p mtpd.p sensorservice.p
app_process.p gzip.p ndc.p servicemanager.p
bluetoothd.p hciattach.p netcfg.p service.p
bootanimation.p hostapd.p netd.p setup_fs.p
brcm_patchram_plus.p installd.p pand.p smc_pa_ctrl.p
bugreport.p ip6tables.p ping.p surfaceflinger.p
dalvikvm.p ip.p pppd.p system_server.p
dbus-daemon.p iptables.p racoon.p tc.p
debuggerd.p keystore.p rild.p tf_daemon.p
dexopt.p linker.p run-as.p toolbox.p
dhcpcd.p logcat.p schedtest.p vdc.p
dnsmasq.p logwrapper.p screencap.p vold.p
drmserver.p make_ext4fs.p screenshot.p wpa_supplicant.p
dumpstate.p mediaserver.p sdcard.p
NEW
atrace content e2fsck mdnsd requestsync uiautomator
/system/xbin/
dexdump.p/system/etc/apns-conf.xml.p fallback_fonts.xml.p permissions
audio_effects.conf.p gps.conf.p ppp
dhcpcd media_profiles.xml.p security
event-log-tags.p NOTICE.html.gz.p system_fonts.xml.p
NEW
audio_policy.conf media_codecs.xml security
fallback_fonts-ja.xml preferred-apps
/system/media/ & /system/fonts/ - Just take it all from jb as pretty much none is device specific.
/system/framework/ - Everything
Very cool, and answers a few problems I was having. Great work man, really helpful
Sent from my Incredible S using xda premium
I think I might just start from scratch again and use this to make a new first version.I hope this can help me get a booting version for the Sensation, but I make no promises. What I have so far is just bootlooping. Thanks for your work and the post......
Edited: Nvm I got it. I'm dumb.
T-Macgnolia said:
I think I might just start from scratch again and use this to make a new first version.I hope this can help me get a booting version for the Sensation, but I make no promises. What I have so far is just bootlooping. Thanks for your work and the post......
Click to expand...
Click to collapse
Do you have gtalk? I might want some help porting to my device.
Sent from my SPH-D700 using Tapatalk 2
MДЯCЦSДИT said:
Do you have gtalk? I might want some help porting to my device.
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
Yeah I got it now lol, my user name is tmacgnolia on gtalk.
Edit: My mistake man it is Tony Roach.
anyone else having pastebin issues? site seems like its down D:
Same here! Lots of answers solved.
Anyone having any luck? Im porting it to the Droid Incredible and im getting the same errors in my logcats no matter what i do.
Albinoman said:
Anyone having any luck? Im porting it to the Droid Incredible and im getting the same errors in my logcats no matter what i do.
Click to expand...
Click to collapse
Have you edited the ramdisk?
Sent from my SPH-D700 using Tapatalk 2
MДЯCЦSДИT said:
Have you edited the ramdisk?
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
Thats what my friends doing right now.
What exactly do we edit in the ramdisk?
Can somebody explain a bit more?
Sent from my LG-E739 using Tapatalk 2
medicjunKie said:
What exactly do we edit in the ramdisk?
Can somebody explain a bit more?
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
Extract the boot.img using a kitchen on linux
Sent from my SPH-D700 using Tapatalk 2
MДЯCЦSДИT said:
Extract the boot.img using a kitchen on linux
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
I hate feeling like a Noob, and Having to ask, but once its extracted, and we have the kernel and the Ramdisk, what do we actually edit?
medicjunKie said:
What exactly do we edit in the ramdisk?
Can somebody explain a bit more?
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
budm said:
I hate feeling like a Noob, and Having to ask, but once its extracted, and we have the kernel and the Ramdisk, what do we actually edit?
Click to expand...
Click to collapse
The main thing you have to edit is the init.rc, but you may need to edit other things as well. I still have not found the right combinations of edits for my port to boot, Anyway use something like WinMerge to compare the files from the ramdisk of your base ROM with the ramdisk of the SDK. You can also edit the files while you have them in WinMerge.
Thank you so much, I will definitely try using that tool, and that gives me a direction to try towards.
cheers!
Ok guys i feel like im getting closer. The exact error im getting is,
Could not find method com.android.providers.settings.DatabaseHelper.setWriteAheadLoggingEnabled, referenced from method com.android.providers.settings.DatabaseHelper.<init>
Anyone have any ideas? I know that settings is crashing but i don't know what to do about it. Here is the full logcat http://paste.ubuntu.com/1065069/
Is the whole pastebin is to replace everything in init.rc? Or some of it?
DaXmax said:
Is the whole pastebin is to replace everything in init.rc? Or some of it?
Click to expand...
Click to collapse
It is a diff
Sent from my SPH-D700 using Tapatalk 2
Albinoman said:
Ok guys i feel like im getting closer. The exact error im getting is,
Could not find method com.android.providers.settings.DatabaseHelper.setWriteAheadLoggingEnabled, referenced from method com.android.providers.settings.DatabaseHelper.<init>
Anyone have any ideas? I know that settings is crashing but i don't know what to do about it. Here is the full logcat http://paste.ubuntu.com/1065069/
Click to expand...
Click to collapse
That means that it can not find com.android.providers.settings.DatabaseHelper.setWriteAheadLoggingEnabled that is referenced in the init of the ramdisk. So you need to look at the init of the ramdisk and see where it is looking for that file and then place that file where it is suppose to be.
Also I finally got my port booting but it does not get passed the bootanimation and I got the adb working, yay.
Hello guys
I was thinking to create a simple build.prop editor. someone can help me where should I start. it's a simple project so I want to work myself to get some experience in android app development. As I know I have to provide root permission in android manifest. Xml but how the activity can read build.prop file
Thank you
Sent from my GT-I9100 using Tapatalk 2
Deleted
Root commands need to be executed the command line way.
You can get the content of a file using
Code:
cat <filepath>
For executing these commands I recommend using the RootTools library.
First of all get basic Linux command line knowledge.
nikwen said:
Root commands need to be executed the command line way.
You can get the content of a file using
Code:
cat <filepath>
For executing these commands I recommend using the RootTools library.
First of all get basic Linux command line knowledge.
Click to expand...
Click to collapse
So it means I should use Ubuntu
Sent from my GT-I9100 using Tapatalk 2
saif kazi said:
So it means I should use Ubuntu
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
No, it does not mean that.
If you want to do anything which needs SU permission, you need to do it without the Android API. You run a command on the built-in command line on your phone from your app. Now in Java you are able to read the output of the command and parse it to get the required information.
There is no other way of doing it because Android was not designed to be rooted.
saif kazi said:
Hello guys
I was thinking to create a simple build.prop editor. someone can help me where should I start. it's a simple project so I want to work myself to get some experience in android app development. As I know I have to provide root permission in android manifest. Xml but how the activity can read build.prop file
Thank you
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
I used this repo as a base for mine, see if it can be any use to you and try altering it as much as you can so you can see what your able todo
https://github.com/nathanpc/Build.prop-Editor
Nx Biotic said:
I used this repo as a base for mine, see if it can be any use to you and try altering it as much as you can so you can see what your able todo
https://github.com/nathanpc/Build.prop-Editor
Click to expand...
Click to collapse
Looks like he has already forked it.
https://github.com/saifkazi/Build.prop-Editor
If you want to release your version, have a look at the original license: https://github.com/nathanpc/Build.prop-Editor/blob/master/LICENSE
Nx Biotic said:
I used this repo as a base for mine, see if it can be any use to you and try altering it as much as you can so you can see what your able todo
https://github.com/nathanpc/Build.prop-Editor
Click to expand...
Click to collapse
Haha, I was about to suggest my project when I saw the Google Alerts email, but looks like you already did.
Thanks very much!
nathanpc said:
Haha, I was about to suggest my project when I saw the Google Alerts email, but looks like you already did.
Thanks very much!
Click to expand...
Click to collapse
No problem man!
Hi I have 2 android projects in eclipse a subnet calculator and a data tester The problem is that they are in two different projects! I want to add the data tester one into the subnet calculator! The question is how do I do this?
I have tried almost everything I can think of!!
Please help!!
Thanks in advance!!
Rapsong11
That can be done only manually afaik. From where you want to move from one project to another you'll have manually create intents of fragment calls or whatever is needed. Copy-paste the needed classes to newly created packages etc, update your manifest, copy-paste layoutfiles etc etc. I know, quite some work but there is no automated process for this.
Zatta said:
That can be done only manually afaik. From where you want to move from one project to another you'll have manually create intents of fragment calls or whatever is needed. Copy-paste the needed classes to newly created packages etc, update your manifest, copy-paste layoutfiles etc etc. I know, quite some work but there is no automated process for this.
Click to expand...
Click to collapse
Thanks for the reply!! would you mind showing me how to do this? via team viewer?
please let me know
Rapsong11
rapsong11 said:
Thanks for the reply!! would you mind showing me how to do this? via team viewer?
please let me know
Rapsong11
Click to expand...
Click to collapse
He means copy the src of project1 to src of project2
res/ of project1 to res of project2
Donot overwrite
For files with same name copy the contents manually
Sent from my GT-S5302 using Tapatalk 2
rapsong11 said:
Thanks for the reply!! would you mind showing me how to do this? via team viewer?
please let me know
Rapsong11
Click to expand...
Click to collapse
I'm not in the situation I can do it. But also I don't want to do it and you shouldn't want to do that either.
I got everything over no errors and when you are at the main menu I have two buttons one that says subnet calculator and one that says network tester when you click the network tester button it works when you click the subnet calculator button the app crashes what am I doing wrong please let me know
Sent from my Nexus 4 using xda app-developers app
Nevermind I figured it out
Sent from my Nexus 4 using xda app-developers app
The best way to do this is to use maven projects instead standard android projects. Both projects can be children projects of superpom (maven parent project). Search for maven-android-plugins for more details.
Cheers
Sent from my SK17i using xda app-developers app