Is it possible to open up an .apk file for editing? - Galaxy Note GT-N7000 General

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

Related

resize

how i need resize a launcher or other things
kaassaus said:
how i need resize a launcher or other things
Click to expand...
Click to collapse
Please use the 'search' tool..
Plus VigiDroid recently typed a guide for resizing .xml's.
A real dev should know what to do instead of opening these useless threads.
You shouldn't be too harsh to him. He was either unsure or confused on what to do.
XDeveloperX said:
You shouldn't be too harsh to him. He was either unsure or confused on what to do.
Click to expand...
Click to collapse
Look at the other threads he have opened. The answers to all his questions are just somewhere at XDA (I think he can imagine that) so the next step is using the 'search' tool.
I think everyone can do this.
Sent from my HTC Wildfire using Tapatalk
Resizing
Here's the link for the thread:
http://forum.xda-developers.com/showthread.php?t=1296554
mrweqa said:
Here's the link for the thread:
http://forum.xda-developers.com/showthread.php?t=1296554
Click to expand...
Click to collapse
I was traying resize rosie.apk but nothing i was in the values-mdpi file
Sent from my HTC Wildfire using XDA App
kaassaus said:
I was traying resize rosie.apk but nothing i was in the values-mdpi file
Sent from my HTC Wildfire using XDA App
Click to expand...
Click to collapse
Wait did you even read my guide...? Nothing about values-mdpi... If you read the guide correctly you would learn that to resize you have to edit the values in xml files in /res/layout or /res/layout-mdpi or /res/layout-port or /res/layout-land
And it doesn't just happen all correctly with one change of a file and majority of the time when you change something you notice nothing has changed, this happens to me all the time, it just takes patience to get it right!
VigiDroid said:
Wait did you even read my guide...? Nothing about values-mdpi... If you read the guide correctly you would learn that to resize you have to edit the values in xml files in /res/layout or /res/layout-mdpi or /res/layout-port or /res/layout-land
And it doesn't just happen all correctly with one change of a file and majority of the time when you change something you notice nothing has changed, this happens to me all the time, it just takes patience to get it right!
Click to expand...
Click to collapse
@VigiDroid
Sorry my friend but i must correct you the .xml files that you must edit are not in the res/layout or res/layout-mdpi folder they are indeed in the res/values and res/values-mdpi folders unless i'm mistaken but as i resized your lockscreen for SenseOnFire rom those were the .xml files i edited
stevie67 said:
@VigiDroid
Sorry my friend but i must correct you the .xml files that you must edit are not in the res/layout or res/layout-mdpi folder they are indeed in the res/values and res/values-mdpi folders unless i'm mistaken but as i resized your lockscreen for SenseOnFire rom those were the .xml files i edited
Click to expand...
Click to collapse
Are you questioning my experience? haha
Now you see it seems I have overlooked lockscreen (which is why I could not get it to resize) nearly every other app you have to modify the .xml files in the layout folder but as a general rule you should just go and look into every .xml file and try and note if anything might be related to a layout..
if have try apk manager but my java doing weard :S
kaassaus said:
if have try apk manager but my java doing weard :S
Click to expand...
Click to collapse
Try apktool, its better IMO, and whats wrong with java?
VigiDroid said:
Try apktool, its better IMO, and whats wrong with java?
Click to expand...
Click to collapse
Dont know little bit rear
and does it works on windows because when i open the file in winzip it only show a jar file
Sent from my HTC Wildfire using XDA App

Jellybean Porting Thread

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.

[Q] How to compile github java source?

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

Help needed in creating a simple build. prop editor

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!

Editing XML wierd characters

Hello!
I'm trying to edit one of the XML's of the S Health app so hopefully I can discover some way to hide some info from the widget. However opening the said XML file in Notepad++ gives me a bunch of weird characters.. How do I procede?
testmonkey1 said:
Hello!
I'm trying to edit one of the XML's of the S Health app so hopefully I can discover some way to hide some info from the widget. However opening the said XML file in Notepad++ gives me a bunch of weird characters.. How do I procede?
Click to expand...
Click to collapse
Hi,
You cannot just pull out the file and edit it. You need to learn to decompile it first and then edit. When done, recompile. Hope this helps ?
Sent from my Nexus 7 using xda app-developers app
Jishnu Sur™ said:
Hi,
You cannot just pull out the file and edit it. You need to learn to decompile it first and then edit. When done, recompile. Hope this helps ?
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Ahh I thought it was the same as when replacing images, just change the file in 7z and resign the app.
How would one go àbout the most easy/fast way to decompile? I am no developer, I just want to edit out some text that is displayed on a widget by removing a couple of ljnes in the XML (I guess), nothing fancy. I don't want to be installing SDKs and what not..
testmonkey1 said:
Ahh I thought it was the same as when replacing images, just change the file in 7z and resign the app.
How would one go àbout the most easy/fast way to decompile? I am no developer, I just want to edit out some text that is displayed on a widget by removing a couple of ljnes in the XML (I guess), nothing fancy. I don't want to be installing SDKs and what not..
Click to expand...
Click to collapse
The easiest way is this mate :
1. Download tickle my android.
2. Download java applet 6U25.
3. Framework.resapk and other abc-res.apk.
4. Run tickle my android and decompile.
Sent from my Nexus 7 using xda app-developers app
Jishnu Sur™ said:
The easiest way is this mate :
1. Download tickle my android.
2. Download java applet 6U25.
3. Framework.resapk and other abc-res.apk.
4. Run tickle my android and decompile.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Thanks a lot mate

Categories

Resources