[Q] How do i decompile apks on my phone? (if i can) - Samsung Galaxy Gio GT-S5660

Please can anybody tell me how??
Thanks in Advance!!
*Derp*

Cant on your phone I think
Sent from my GT-S5660 using xda premium

I know it's possible to change the extension to .zip and open it that way, but I don't think it's a correct way lol
Sent from my HTC Sensation

sorry unpossible
unless you run ubuntu on phone
Sent from my GT-S5830 using xda premium

iok1 said:
I know it's possible to change the extension to .zip and open it that way, but I don't think it's a correct way lol
Sent from my HTC Sensation
Click to expand...
Click to collapse
In that way your unable to edit xmls
Sent from my GT-S5660 using xda premium

Method 1 : Alternatively, you can use a tool called dex2jar ,which is made by a chinese student. It will translate dex to jar file. For the next step, you can use jd-gui, the source code is quite readable as dex2jar makes some optimizations.
Method 2: Another Option is to use Smali It provides BAKSMALI which is a most excellent reverse-engineering tool for DEX files. The tool is made by JesusFreke, he’s famous for making popular ROMs for Android.
Method 4: Android comes with a dissambler called dexdump. The location of this tool is not intuitive, it runs on the Linux platform that hosts Android. Details here.
+ Use APKTool to Decompile, Edit, Translate and Recompile an APK
(Best Method)
Peace

Verbal_Hologram said:
Method 1 : Alternatively, you can use a tool called dex2jar ,which is made by a chinese student. It will translate dex to jar file. For the next step, you can use jd-gui, the source code is quite readable as dex2jar makes some optimizations.
Method 2: Another Option is to use Smali It provides BAKSMALI which is a most excellent reverse-engineering tool for DEX files. The tool is made by JesusFreke, he’s famous for making popular ROMs for Android.
Method 4: Android comes with a dissambler called dexdump. The location of this tool is not intuitive, it runs on the Linux platform that hosts Android. Details here.
+ Use APKTool to Decompile, Edit, Translate and Recompile an APK
(Best Method)
Peace
Click to expand...
Click to collapse
Hey Verbal!
This is your 4th post right?
Congrats
Finally you appeared after those alot of pms!
*Derp*

Yups , But The Problem is i must write 10 x post in "General,Themes & Apps" before i can post in The Devolper-Sector #Newbrules

Verbal_Hologram said:
Yups , But The Problem is i must write 10 x post in "General,Themes & Apps" before i can post in The Devolper-Sector #Newbrules
Click to expand...
Click to collapse
Yea that sucks, i did that too XD
*Derp*

Just some random posts on topics nobody reads »
Sent from my GT-S5660 using xda premium

voetbalremco said:
Just some random posts on topics nobody reads »
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
Hehe
*Derp*

You dont say?
Rip trololol
Sent from my GT-S5660 using xda premium

Related

[VIDEO GUIDE] Cooking a Custom Firmware for Samsung Galaxy S

[Video Guides] Create / Cook a Custom Firmware for Samsung Galaxy S
Part 1 - Requirements and Rom Extraction RFS
http://www.youtube.com/watch?v=2MBEBrO5OIE
Requirements:
1- A PC
2- A Base ROM that you want to Customize, (The ROM I'm using is JPJPA if you want to use it download it from here: http://www.ziddu.com/download/13084981/I9000JPJPA_CL618603_PDA_Kernel.tar.zip.html )
3- 7zip: http://www.7-zip.org/
4- MagicISO: http://www.magiciso.com/download.htm
5- A rooted Samsung Galaxy S
Part 2 - ROM Basis, Installing Apps, Kernel
http://www.youtube.com/watch?v=RDSX6eRSkAI
Download:
http://www.ziddu.com/download/13086652/ROMBasics.zip.html
You can change the zImage (Kernel) file with anyone you like
Part 3 - Boot Sound, Animation, Theme
http://www.youtube.com/watch?v=c7BM5SNtWVQ
Part 4 - Installing kitchen, cygwin for windows
http://www.youtube.com/watch?v=WDEpXECf1MI
Downloads:
http://www.ziddu.com/download/13095619/cygwin_packages.zip.html
http://www.ziddu.com/download/13095620/dsixda_Android_Kitchen_0.110.zip.html
Please Note that you must use the attached version of cygwin, else it won't work...
+
You Must Install JAVA before Installing cygwin
Part 5 - Finalizing and Packing ROM
http://www.youtube.com/watch?v=nWWojkrirek
I hope you enjoyed and learned from it,,,
Don't Forget to subscribe to receive the latest videos from me
http://www.youtube.com/Nokia7Vista
Doc are you seeing this school?
Sent from my GT-I9000 using XDA App
Thank you very much!
Sent from my GT-I9000 using XDA App
g00ndu said:
Thank you very much!
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Sticky material???
Can someone devedioise it & put it into simple terms?
Wow great work!
Though I wish the videos had higher quality (720p) so it would be clearer, but I wont complain since it seems that you put much effort in this
Interesting... is this what Doc, Darky, Webstar and other rom modders do ?
That's Awesome
Definitely worth a subscription!
Only 1 question: how to optimize png's??
Thanks for this Guide!!
lulu86 said:
Only 1 question: how to optimize png's??
Click to expand...
Click to collapse
http://psydk.org/PngOptimizer
I am using this one.. I find it best
Thanks for the awesome work.
With this materials available, one can start exploring and dissecting the rfs files.
Go ahead and try, it's Christmas anyway...
If I can, I will try to answer questions here. I'm no expert but I can try.
Sent from my GT-I9000 using XDA App
Need some info to create the meta-inf folder inside flashable package. Thx a lot man anyway
Sent from my GT-I9000 using XDA App
corgar said:
Need some info to create the meta-inf folder inside flashable package. Thx a lot man anyway
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
You can google how to make an update zip, they will teach you that.
Sent from my GT-I9000 using XDA App
leoon said:
Wow great work!
Though I wish the videos had higher quality (720p) so it would be clearer, but I wont complain since it seems that you put much effort in this
Click to expand...
Click to collapse
Only Part 1 You can't watch in HD,, but the rest you can
,,,,
Thanks All for your replies
ragin said:
Sticky material???
Can someone devedioise it & put it into simple terms?
Click to expand...
Click to collapse
i second that, becuase here youtube is blocked (china).
Thank you Nokia7Vista-this is GREAT present for Xmas
Merry Xmas and Happy New Year
very very thank bro hihi oh my god
Now my second try to point out an obvious mistake that obviously nobody else noticed: If you overwrite the whole META-INF folder with the one of a theme, you could upload the theme in the first place as this folder contains the updater-script.
@OP: Can you please upload your update.zip so that we can see if it works?
OT: It's very interesting that your posts get moved to a troll thread if you point out a mistake.

[Q] APK Decompiling

I can't find twframework.apk to finish decompiling. Where is this file located?
I thought tw was touch wiz ?
I know framework-res.apk is in system/framework.
Sent from my PC36100 using xda premium
Oh I didn't know that... I was reading a guide on how to decompile an apk and it said to extract it. I tried running apktool without it but I just get an error.
sivarticus85 said:
Oh I didn't know that... I was reading a guide on how to decompile an apk and it said to extract it. I tried running apktool without it but I just get an error.
Click to expand...
Click to collapse
I'm no dev by a long shot so I won't be much help there I've never used apktool I could never get it to work for me lol.
Sent from my PC36100 using xda premium
linsalata28 said:
I'm no dev by a long shot so I won't be much help there I've never used apktool I could never get it to work for me lol.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
Man I know that's right... I'm trying to figure all this stuff out on my own, but it's proving to be much more involved than I originally thought.
sivarticus85 said:
Man I know that's right... I'm trying to figure all this stuff out on my own, but it's proving to be much more involved than I originally thought.
Click to expand...
Click to collapse
Use a program called apk manager. It has the apktool already built in and it works flawlessly. Thats what I use for all my theming and editing of apks.
Papa Smurf151 said:
Use a program called apk manager. It has the apktool already built in and it works flawlessly. Thats what I use for all my theming and editing of apks.
Click to expand...
Click to collapse
I couldn't get it installed right on ubuntu for some reason but then again I'm a real noob when it comes to commands.
Sent from my PC36100 using xda premium
Papa Smurf151 said:
Use a program called apk manager. It has the apktool already built in and it works flawlessly. Thats what I use for all my theming and editing of apks.
Click to expand...
Click to collapse
Yeah I just found APK Manager on Google. I'm gonna give it a try. Thanks for the help.
sivarticus85 said:
Yeah I just found APK Manager on Google. I'm gonna give it a try. Thanks for the help.
Click to expand...
Click to collapse
There is a Guy who has taken over the development of apk manager and has come out with a newer version and renamed it. Its called apk multi tool now. Try that out as well
And if you're on ubuntu machine give Android utility a whirl
tapatalk signature here. lovely.
tommytomatoe said:
And if you're on ubuntu machine give Android utility a whirl
tapatalk signature here. lovely.
Click to expand...
Click to collapse
I started using ubuntu but I can't seem to get apk tool or manager to work do you know of a easy to follow noob guide on that stuff?
Sent from my PC36100 using XDA App
linsalata28 said:
I started using ubuntu but I can't seem to get apk tool or manager to work do you know of a easy to follow noob guide on that stuff?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Android utility is pretty noob-tastic. Lol
Also you can ask me questions.
tapatalk signature here. lovely.
tommytomatoe said:
Android utility is pretty noob-tastic. Lol
Also you can ask me questions.
tapatalk signature here. lovely.
Click to expand...
Click to collapse
Is that something like apk manager do I just install it on ubuntu do you have a link I could check out?
Sent from my PC36100 using XDA App
linsalata28 said:
Is that something like apk manager do I just install it on ubuntu do you have a link I could check out?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
It's apkmanager on crack. Hehe. Just kidding. Apkmanager was awesome but I felt it needed some extra features. I wrote this from scratch and it has more features than most people need...but its all there.
http://forum.xda-developers.com/showthread.php?t=1167623
tapatalk signature here. lovely.
You guys rock. Thanks again for all the help!
I'm having problems installing the android utility... I'm getting all kinds of directory does not exist and git errors... thoughts?
Edit: Nevermind I didn't have git installed. Didn't know I needed it.

[Q] ROM port

Okay I followed http://forum.xda-developers.com/showthread.php?t=1598713
Trying to port a ROM but since I am fairly new to this I need some help.
Where to find the kernel?
What to do to the updater-script
And what to do with the build.prop
Please post help instead of posting that I shouldn't try this, I want to learn and help the gio community.
(Frank) said:
Okay I followed http://forum.xda-developers.com/showthread.php?t=1598713
Trying to port a ROM but since I am fairly new to this I need some help.
Where to find the kernel?
What to do to the updater-script
And what to do with the build.prop
Please post help instead of posting that I shouldn't try this, I want to learn and help the gio community.
Click to expand...
Click to collapse
1. kernel. use the one from cm7 for a rom based on cm7, a custom kernel for stock roms for a stock based rom
2 build.prop edit any device names to gt-s5660 except the fingerprint parse release..... copy and paste that piece into the build.prop from a gio rom, its also in the guide
3 change updaterscripts asserts device checking, format and mount values and delete permissions that dont excist
4 dont do this if you dont know how to port.
5 never post any rom before testing yourself. we dont want devices getting bricked by stupid people that call themselve a developer
Sent from my GT-S5660 using xda premium
voetbalremco said:
4 dont do this if you dont know how to port.
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
The problem with this is, he was following a tutorial to learn how to port
Anyway, I think Voetbalremco covered everything. Try to start with port from ace or something, those are prolly the most easy to port.
Also, you can always port a rom which has been ported before. That way you can compare your own port with the working port and check if you're doing it right.
MerynGoesAndroid said:
The problem with this is, he was following a tutorial to learn how to port
Anyway, I think Voetbalremco covered everything. Try to start with port from ace or something, those are prolly the most easy to port.
Also, you can always port a rom which has been ported before. That way you can compare your own port with the working port and check if you're doing it right.
Click to expand...
Click to collapse
porting from ace is nothing, just copy some folders and editing a bit of "text" files..
Sent from my GT-S5660 using xda premium
voetbalremco said:
porting from ace is nothing, just copy some folders and editing a bit of "text" files..
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
Thats why its easy to start with
if that goes wrong already, you know you arent ready for porting yet
also, that whole tutorial is based on copying/pasting and editing "text"files
Yep, most important: test by yourself, and ask it when u don't understand something, that's how you learn the most
Sent from Samsung Galaxy s III baby
All ports need to be either edited framework to match your Device or replaced framework to match your Device.
When you have done this, you can call it a Pure Port.
Peteragent5 said:
All ports need to be either edited framework to match your Device or replaced framework to match your Device.
When you have done this, you can call it a Pure Port.
Click to expand...
Click to collapse
You dont need to edit framework -_-
You can jst port it as iit is
Sent from my GT-S5830 using xda premium

RLE collections

I'M NOT RESPONSIBLE FOR ANY BRICK I'M JUST SHARING
This RLE is for those who wants custom splash on their beloved ACE.
Enjoy! This file is made by me. Haven't tested, I don't dare repacking boot.img
Rename *whatever* (#) .rle to COOPER.rle and put onto root folder.
Credits:
DooMLoRD for rle converter
Flickr for this photo
Download:
Apple http://www.mediafire.com/?0aprqq7ju8hr5m8
Android robot-like text http://www.mediafire.com/download.php?g93zueta96istvf
At least please give some feedback.
EDIT: The Apple's got a white line on top, will fix later maybe because Flickr doesn't allow any copy-paste so I screenied it.
well, I gotta say that the Apple one is somewhat ironic
Renan Lazarotto said:
well, I gotta say that the Apple one is somewhat ironic
Click to expand...
Click to collapse
Thx! Does it works?
Sent from my GT-P7300B using xda app-developers app
I'm gonna test later, I think it is better to recompile the kernel with the RLE changed. You can try it using the dsixda's Kitchen -> http://forum.xda-developers.com/showthread.php?t=633246. Thanks!
can you make tutorial ??
gametv said:
can you make tutorial ??
Click to expand...
Click to collapse
For making or putting it into ace?
Making:
1.) Grab a png file.
2.) Use the converter by DoomLoRD.
3.)
Code:
adb push #.rle sdcard
adb shell
su
rm COOPER.RLE
cp sdcard/#.rle /
##COMMENT DON'T WRITE RENAME #.RLE TO COOPER.rle this exact name##
*rename binary I don't know what it is * #.rle COOPER.RLE
Sent from my HTC Desire using xda app-developers app
Renan Lazarotto said:
I'm gonna test later, I think it is better to recompile the kernel with the RLE changed. You can try it using the dsixda's Kitchen -> http://forum.xda-developers.com/showthread.php?t=633246. Thanks!
Click to expand...
Click to collapse
Cygwin dependencies file is corrupted
Sent from my HTC Desire using xda app-developers app
panpjp said:
Cygwin dependencies file is corrupted
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
Hm... Download cygwin from its site and try again! or use Linux in a Virtual Machine
Renan Lazarotto said:
Hm... Download cygwin from its site and try again! or use Linux in a Virtual Machine
Click to expand...
Click to collapse
It said "clear" is missing when I typed in ./menu . Can you provide clear for me? PLEASE I'M BEGGING YOU.
Sent from my HTC Desire using xda app-developers app
panpjp said:
It said "clear" is missing when I typed in ./menu . Can you provide clear for me? PLEASE I'M BEGGING YOU.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
Never heard of this "clear" before! Try installing cygwin again, and on the package selection window search for clear. Otherwise, I really don't know what is wrong.
Renan Lazarotto said:
Never heard of this "clear" before! Try installing cygwin again, and on the package selection window search for clear. Otherwise, I really don't know what is wrong.
Click to expand...
Click to collapse
Tried re-installing. Can't find clear :crying:
Got this when ./menu
Code:
Welcome to dsixda's Android Kitchen
Please wait .
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
PLEASE READ THE FAQ BEFORE ASKING QUESTIONS!
I've read the FAQ.
Try asking in the kitchen thread then, I think it is the best lead you can have.
Renan Lazarotto said:
Try asking in the kitchen thread then, I think it is the best lead you can have.
Click to expand...
Click to collapse
Migrating to my PC which has the uncorrupted file after killing 6 viruses (4 PUPS, 1 Trojan *I HATE U FUQ'IN VIRUS DEPLOYER FROM SOMEWHERE ON EARTH* and 1 Adware -.- )
panpjp said:
Migrating to my PC which has the uncorrupted file after killing 6 viruses (4 PUPS, 1 Trojan *I HATE U FUQ'IN VIRUS DEPLOYER FROM SOMEWHERE ON EARTH* and 1 Adware -.- )
Click to expand...
Click to collapse
Remember that you can always use a Virtual Machine with Linux. No problems on there.

[WIP][XPOSED]Trying to find a Lollipop FIX

Hi guys, like you know xposed for Android 5 on our device break some system app like LGCover and LGWeather. This because the new Xposed use some binary built from the AOSP source that don't work with the above apks that contain an encrypted classes.dex ( AES128-CBC ).
Since decrypt that classes is quite impossible i started a different approach. So i looked inside the dalvik-cache where all the dex built by the compiler are stored.
Theese classes contains also the original classes.dex code.
example: /data/dalvik-cache/arm/[email protected] @....dex
Structure:
USELESS CODE
CLASSES.DEX ( that start with the magic dex.035 )
USELESS CODE
Header of the classes.dex
Offset.............Size...........Description
0x0................8................'Magic' value: "dex\n009\0"
0x8................4................Checksum
0xC...............20...............SHA-1 Signature
0x20..............4................Length of file in bytes ( in Little endian and hex value )
....
Getting that class is quite simple when you know how the dex header is formatted so i cut off the useless code and got the original classes.dex that can be decompiled with baksmali and used inside the apk.
Unfortunately this method doesn't work for the dex that were encrypted. Or at least, I'm missing the last step because there's something wrong with the code in this extrapolated class since the SHA1 signature appears to be wrong and consecutively also the Checksum are incorrect.
So, from my point of view we have 2 possible scenario:
1- the length of the classes that we can find in the header is wrong; ( most probable for me )
2- the code of the dex has been changed by the system.
Wish you can suggest me some ideas.
@suljo94 @P_Toti pls check this and tell me what you think. Tnx.
Skin1980 said:
methode 1
Click to expand...
Click to collapse
could you check if an system service is activated when the lgcover apk is called(to decrypt), if not the key might be saved in the app source code (might be obfuscated)
suljo94 said:
could you check if an system service is activated when the lgcover apk is called(to decrypt), if not the key might be saved in the app source code (might be obfuscated)
Click to expand...
Click to collapse
Yes probably the code is obfuscated... might try with Ida pro and a dedicated plugin
Sent from my SM-N910F using XDA Free mobile app
Skin1980 said:
Yes probably the code is obfuscated... might try with Ida pro and a dedicated plugin
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
I am sorry that I can't help(ffor now), this week is an vacation and I as a poor student have to work to pay off those expensive books
ontopic: @jcase said he would look into it in the other thread, maybe he found something intressting in the meanwhile
suljo94 said:
I am sorry that I can't help(ffor now), this week is an vacation and I as a poor student have to work to pay off those expensive books
ontopic: @jcase said he would look into it in the other thread, maybe he found something intressting in the meanwhile
Click to expand...
Click to collapse
Well... with @jcase all is possible !
Sent from my SM-N910F using XDA Free mobile app
Skin1980 said:
Well... with @jcase all is possible !
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
so I found a system service that gets called when the lgsmartcover app crashes to many times. the system restarts it together with lgcover. it is part of lgcover so I am hopping lg was so stupid to save the key in the same file as the encrypted container
suljo94 said:
I am sorry that I can't help(ffor now), this week is an vacation and I as a poor student have to work to pay off those expensive books
ontopic: @jcase said he would look into it in the other thread, maybe he found something intressting in the meanwhile
Click to expand...
Click to collapse
Skin1980 said:
Well... with @jcase all is possible !
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
Its just encrypted, easiest route is to snag from the cache and deodex as someone said above, if yall really need something to decrypt it ill look at again when i have time
jcase said:
Its just encrypted, easiest route is to snag from the cache and deodex as someone said above, if yall really need something to decrypt it ill look at again when i have time
Click to expand...
Click to collapse
Would be great... tnx a lot!
Sent from my SM-N910F using XDA Free mobile app
jcase said:
Its just encrypted, easiest route is to snag from the cache and deodex as someone said above, if yall really need something to decrypt it ill look at again when i have time
Click to expand...
Click to collapse
Could you tell us why the SHA1 signature is incorrect?
suljo94 said:
Could you tell us why the SHA1 signature is incorrect?
Click to expand...
Click to collapse
incorrect? Which sha1? in the siguatre, or in the dex header?
jcase said:
incorrect? Which sha1? in the siguatre, or in the dex header?
Click to expand...
Click to collapse
Dex header(see op)
suljo94 said:
Dex header(see op)
Click to expand...
Click to collapse
meh who cares, the sha1 doesnt matter, just fix the alder32 checksum, or correct them both.
suljo94 said:
Dex header(see op)
Click to expand...
Click to collapse
Probably the sha1 is added before the obfuscation method.
Sent from my SM-N910F using XDA Free mobile app
Skin1980 said:
Probably the sha1 is added before the obfuscation method.
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
did you salvage th whole classes.dex or just partially?
and is recalculating the sha1 and alder32 an option (if you salavaged it completely)
can we use dexguard for deobfuscation?
how did you open the file? I can't dex2jar it because it keeps saying that it isn't a dex file.
so many questions......
suljo94 said:
did you salvage th whole classes.dex or just partially?
and is recalculating the sha1 and alder32 an option (if you salavaged it completely)
can we use dexguard for deobfuscation?
how did you open the file? I can't dex2jar it because it keeps saying that it isn't a dex file.
so many questions......
Click to expand...
Click to collapse
try to look into the classes dex with an hex editor, it's encrypted and that's why you can't use tool like that on the original dex.
If you want play, this is the dex i extracted from the dalvik-cache of the LGweather apk:
https://mega.co.nz/#!DsRHQaBL!YInp8fsaRpzZ3dbHogbNytWZfzedF9Le_PndvnmhSQs
The software i tryed fail to decompile it but maybe you are more lucky
Skin1980 said:
try to look into the classes dex with an hex editor, it's encrypted and that's why you can't use tool like that on the original dex.
If you want play, this is the dex i extracted from the dalvik-cache of the LGweather apk:
https://mega.co.nz/#!DsRHQaBL!YInp8fsaRpzZ3dbHogbNytWZfzedF9Le_PndvnmhSQs
The software i tryed fail to decompile it but maybe you are more lucky
Click to expand...
Click to collapse
some surfing aroud caused me to find which file decrypts lgcover it is the libgalmond.so file
the colprit it contains some interesting code "adler inflation"
@jcase it has been 2 months and I tried a few things but since you know more about this could you please tell me how to get the correct adler32 checksum? maybe for lets say 1 of those cheap wines you like
suljo94 said:
some surfing aroud caused me to find which file decrypts lgcover it is the libgalmond.so file
the colprit it contains some interesting code "adler inflation"
@jcase it has been 2 months and I tried a few things but since you know more about this could you please tell me how to get the correct adler32 checksum? maybe for lets say 1 of those cheap wines you like
Click to expand...
Click to collapse
Tim Strazzere and I may be talking about it at qualcom next week, wait and see if our slides cover it.
jcase said:
Tim Strazzere and I may be talking about it at qualcom next week, wait and see if our slides cover it.
Click to expand...
Click to collapse
so I got the slides and I am starting to think that the problem could be that xposed links app_process32 to app_process32_xposed and that the shared library gets injected into the wrong file (app_process32)

Categories

Resources