Go Back   Android Forums > Android Phones > Casio G’zOne Commando

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old March 8th, 2012, 02:15 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2012
Posts: 32
 
Device(s): C771 Casio Commando m100
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Footmouth Learning Programming

I am getting into programming( i know it is not an over night learn, but i am willing to spend a lot of time on it). And i really want to get into Android programming and very interested in the software of Android. I want to learn completely how rooting and how to find exploits anyone know of a good tutorial to get me started in this LONG( yes i know long and hard) journey?

computergeek24 is offline  
Reply With Quote
sponsored links
Old March 8th, 2012, 03:32 PM   #2 (permalink)
Member
 
Spike G's Avatar
 
Join Date: Oct 2011
Location: CT
Posts: 271
 
Device(s): Casio Commando C771 Droid Razr Maxx ICS
Carrier: Not Provided

Thanks: 21
Thanked 26 Times in 23 Posts
Default

Welcome to the forum! i take it you have a commando? a good place to get familiar with some commando related technical-stuff is in the root forum for the commando
for learning programming, i'd suggest online tutorials, possibly even a book, on linux. I personally use a linux computer and that's how i've learned what i know so far, but i've taken 4 years of Java programming.

For more android related programming, head over to the XDA forums this is where most of the groundbreaking 3rd party android developments take place
__________________
☐☒☐ Casio Commando C771: 2.2.1 Froyo
☐☐☒ Rooted, Debloated, Recovery installed
☒☒☒ V6supercharger, 3GT, and KaK scripts installed
Fully tweaked custom theme/bootanimation ๏̯͡๏
Spike G is offline  
Reply With Quote
Old March 8th, 2012, 06:08 PM   #3 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

Quote:
Originally Posted by computergeek24 View Post
I am getting into programming( i know it is not an over night learn, but i am willing to spend a lot of time on it). And i really want to get into Android programming and very interested in the software of Android. I want to learn completely how rooting and how to find exploits anyone know of a good tutorial to get me started in this LONG( yes i know long and hard) journey?
Ok, so this really isn't my territory (I focus mainly on kernels and am branching into custom roms, while, on the other hand, exploits deal with a secure kernel/rom and finding holes) so i'll try and give you a few pointers

First off
1) run linux (must be 64bit if you're gonna try to build anything android from source).
I suggest ubuntu 10.04 (it's stable, a lot of tools for android are based (originally) in linux, and at it's base, android is just a highly customized version of linux (that means you need to get used to linux, (IMO))

2) download/build the android sdk
link for downloading sdk: http://developer.android.com/sdk/index.html
link for how-to build sdk from source: http://jindroid.com/2009/06/08/howto-build-sdk-from-android-source-code/

3) get used to the command adb logcat and lots of reading
my best guess (if you're working off the M100 build) is that the easiest exploit will be finding somethign that gets elevated in uuid to 1 (i.e. a system app that needs root priviledge for something)

4)If that doesn't work (purely speculation here) start reading lots and lots and lots of source code. linux (Android) is built in c/c++ then cross compiled to the ARM architecture
helpful links for linux exploits
http://en.wikibooks.org/wiki/Metasploit/WritingLinuxExploit (goes through a sample exploit)
http://cyberarms.wordpress.com/2010/10/14/how-to-find-program-vulnerabilities-and-create-an-exploit/ (talks about another exploit)
http://www.internetnews.com/dev-news/article.php/3831716/Finding+Linux+Bugs+Before+they+Become+Exploits.htm (interesting writeup about exploits
http://www.yolinux.com/TUTORIALS/LinuxSecurityTools.html (As the page says, security/audit/hacker tools for linux (i'm pretty sure the won't work on android tho, because they aren't cross compiled for it, but hopefully it'll give you some ideas)

5) What might be help is figuring out how to build the commando as an emulator on your computer so you can mess with it without screwing it up
(intro: http://developer.android.com/guide/developing/tools/emulator.html
actual use: http://developer.android.com/guide/developing/devices/emulator.html )

Pax
__________________
First Droid: Htc Aria (AT&T) (rooted, s-off, and i forget how many different roms on it)
Current Droid: Xperia Play R800x rooted by zergRush unlocked by Alejandrissimo, now running my own CM9 build (or build your own) and a slightly modded FXP kernel & lovin' it.
Casio Commando -- trying to build a custom kernel/Rom.
paxchristos is offline  
Last edited by paxchristos; March 9th, 2012 at 10:47 AM.
Reply With Quote
Old March 8th, 2012, 06:29 PM   #4 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2012
Posts: 32
 
Device(s): C771 Casio Commando m100
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks guys i've been reading the forum for about a month now
computergeek24 is offline  
Reply With Quote
Old March 8th, 2012, 08:59 PM   #5 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

added my $.02
paxchristos is offline  
Reply With Quote
Old March 8th, 2012, 09:08 PM   #6 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2012
Posts: 32
 
Device(s): C771 Casio Commando m100
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Laugh

so tell me what you do and how you find the exploits.
computergeek24 is offline  
Reply With Quote
Old March 8th, 2012, 11:53 PM   #7 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

Quote:
Originally Posted by computergeek24 View Post
so tell me what you do and how you find the exploits.
Me, I'm (currently) a computer science major at my local university, and finding exploits is like finding a needle in a haystack. You need to pay attention to logs and code. The logs well tell you when a process gets elevated permissions, whereas the code will let you see if there are any holes you can use to give yourself elevated permissions. It is a very time-intensive process, and I honestly don't have the time to do it.
I have a wife, a 9 month old son, I work, I goto college, I'm working with kernels (the ultimate root is in the ramdisk, (what's used to start up the kernel) there's an on/off switch that says whether or not a device is allowed to be rooted without an exploit) and porting Android, (vendor rils (radio interface layer (what allows the baseband and Android to interact)) are the point I'm currently stuck at) and in whatever free time I have left, I like to hop on my ps3 and get my game on

If I were to completely drop kernels, porting and gaming, I might be able to find an exploit in 3 or 4 months (if I got very lucky.) Right now that's not an option because I'm (currently) working on porting a newer version of Android to my phone (Xperia Play) (see vendor rils.)

if you want some pointers as to what to look at, which have about a 50/50 (it will or it won't) chance of working, check (disassemble/decompile) the innopath app. Root privileges are needed to reboot the phone, and my wag (wild a** guess) is that if you can break it down, strip out the part where it calls for for a reboot, put it back together, you might have a shell root you can turn into a device root. Once again, wag, that probably won't work, but an idea.
paxchristos is offline  
Reply With Quote
Old March 9th, 2012, 10:55 AM   #8 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2012
Posts: 32
 
Device(s): C771 Casio Commando m100
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

would my best bet be to start with C++?
computergeek24 is offline  
Last edited by computergeek24; March 9th, 2012 at 11:07 AM.
Reply With Quote
Old March 9th, 2012, 01:13 PM   #9 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

Quote:
Originally Posted by computergeek24 View Post
would my best bet be to start with C++?
Linux is based in C/C++, so yes, if you wanna start messing with programs in android, that's all Java based, but luckily there are only a few differences in C++/Java

(level of difficulty (top is least difficult to bottom ones have been known to drive lesser men mad) for programming)
Python
XML
HTML
Basic
Java
C++
C
Assembler
Machine Level
Binary
paxchristos is offline  
Reply With Quote
Old March 9th, 2012, 01:42 PM   #10 (permalink)
Member
 
Spike G's Avatar
 
Join Date: Oct 2011
Location: CT
Posts: 271
 
Device(s): Casio Commando C771 Droid Razr Maxx ICS
Carrier: Not Provided

Thanks: 21
Thanked 26 Times in 23 Posts
Default

https://developer.android.com/training/index.html
Spike G is offline  
Reply With Quote
sponsored links
Old March 9th, 2012, 02:20 PM   #11 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

Quote:
Originally Posted by Spike G View Post
The one reason I hate developer.Android.com is because it's geared toward app development, rather than Android systems
paxchristos is offline  
Reply With Quote
Old March 9th, 2012, 02:31 PM   #12 (permalink)
Member
 
Spike G's Avatar
 
Join Date: Oct 2011
Location: CT
Posts: 271
 
Device(s): Casio Commando C771 Droid Razr Maxx ICS
Carrier: Not Provided

Thanks: 21
Thanked 26 Times in 23 Posts
Default

Quote:
Originally Posted by paxchristos View Post
The one reason I hate developer.Android.com is because it's geared toward app development, rather than Android systems
I've noticed. it was a rebuttal towards windows who recently did the same thing to increase app development on their mobile platform. I figured since it's the official training tool from android, he could get some use out of it being a beginner
Spike G is offline  
Reply With Quote
Old March 9th, 2012, 02:47 PM   #13 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2012
Posts: 32
 
Device(s): C771 Casio Commando m100
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by paxchristos View Post
Linux is based in C/C++, so yes, if you wanna start messing with programs in android, that's all Java based, but luckily there are only a few differences in C++/Java

(level of difficulty (top is least difficult to bottom ones have been known to drive lesser men mad) for programming)
Python
XML
HTML
Basic
Java
C++
C
Assembler
Machine Level
Binary
I know HTML, CSS, and Javacript, I also have worked with some Java creating a few minor apps for personal use, just wondering if i should continue java( for Android or just plain java) or go with C/C++?
computergeek24 is offline  
Reply With Quote
Old March 9th, 2012, 03:09 PM   #14 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

Quote:
Originally Posted by computergeek24 View Post
I know HTML, CSS, and Javacript, I also have worked with some Java creating a few minor apps for personal use, just wondering if i should continue java( for Android or just plain java) or go with C/C++?
If you wanna work with the internals (actual Android system) c/c++. If you wanna work with apps, java.
paxchristos is offline  
Reply With Quote
Old March 9th, 2012, 06:33 PM   #15 (permalink)
Member
 
Join Date: Aug 2011
Posts: 455
 
Device(s): Verizon Xperia Play, Casio G'zone Commando
Carrier: Not Provided

Thanks: 12
Thanked 112 Times in 73 Posts
nielson.peter@gmail.com
Default

I have a java background as well, and transitioning from java to c/c++ is relatively easy (similar syntax, just a few changes here and there)
paxchristos is offline  
Reply With Quote
Old March 10th, 2012, 02:17 PM   #16 (permalink)
Junior Member
 
Join Date: Sep 2011
Posts: 28
 
Device(s): Casio Commando C771
Carrier: Not Provided

Thanks: 2
Thanked 1 Time in 1 Post
Default

Welcome dude. I, as you, have been trying to learn. My brother, who is only 14 has surpassed any learning curve i've seen.. Oh the younger generation. I am in no way that programming 'inclined' and to be honest, I am, like you willing to learn. I am not sure if you are in high school, college, or just learning for fun, but I can tell you when you get something, it is awesome! lol I am not a computer science major, I'm actually Organic Chem/Pre-med. So I rarely have the time to do anything. But I try. I bought a book for myself and sent one back home for my brother called Android Development for beginners. It cost like 12 bucks off amazon. But I've been poking around and have learned a lot about stuff on here and xda. But best of luck dude! You're in the right place!
MarkkInNj is offline  
Reply With Quote
Old March 27th, 2012, 10:54 AM   #17 (permalink)
 
Join Date: Feb 2012
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
Since you are determined, the best thing you can do is to reserve a bunch of consecutive days for a programming crash-course. Considering that you are a beginner, my best advice is to concentrate on learning only one of the many programming languages at first.
Do not bother yourself with any other language. The "here and there approach" will not work. You can easily fall in the never-ending online debate "What is the best programming language?". But this makes no sense. The truth is that every language is there for a purpose.
One thing that may help in learning your first language is to have an idea to build something specific. It is easier to learn when you have a well defined problem. This is like having a purpose and doing what it takes to achieve it.
My best advice is to learn from professional, like Shawn Arney's three-day IPhone and iPad programming course at Udemy.com. I learned a lot from him and I have already designed my first iPad application. The best thing in the course is that you can learn by example and whenever you have a problem, you can ask shawn for help.
androidsome is offline  
Reply With Quote
Old September 13th, 2012, 10:48 PM   #18 (permalink)
New Member
 
Join Date: Sep 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can read read and watch at: bescoursehub.com
Hope this course including everything you need
mrsduyen is offline  
Reply With Quote
Old January 9th, 2014, 09:34 AM   #19 (permalink)
New Member
 
Join Date: Jan 2014
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Books

I recomend everyone to buy this book: https://payhip.com/b/HUDS
You learn how to make games, and Java. I have made over 5000$ with what I learnd with this book
noaboa is offline  
Reply With Quote
Reply

Casio G'zOne Commando
Current Rating:
Rate this Phone:

The Casio G'zOne Commando is a rugged Android Phone that is far from fragile and perfect for field workers ranging from construction and transportation to business and healthcare. Not only can it take a beating -- it actually meets military sta... Read More

Tags
android, commando, programming, root


Go Back   Android Forums > Android Phones > Casio G’zOne Commando
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:25 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.