[Q] Root Android Source Code Compile - C++ or Other Android Development Languages

i am beginner in android
i want to root my samsung galexy s 3 and access to /data/data folder
for security reason i want to compile su (super user) source code from http://forum.xda-developers.com/attachment.php?attachmentid=133677&d=1227954857
can any one help me to compile it step by step
so i download this tools
adt-bundle-windows-x86-20140321.zip or android sdk
android-ndk-r9d-windows-x86.zip or android-ndk-r9d
jdk-7u51-windows-i586.exe or java SE development kit 7
jre-7u51-windows-i586.exe or java runtime environment
and my system is windows xp sp3

ehsanirani20 said:
i am beginner in android
i want to root my samsung galexy s 3 and access to /data/data folder
for security reason i want to compile su (super user) source code from http://forum.xda-developers.com/attachment.php?attachmentid=133677&d=1227954857
can any one help me to compile it step by step
so i download this tools
adt-bundle-windows-x86-20140321.zip or android sdk
android-ndk-r9d-windows-x86.zip or android-ndk-r9d
jdk-7u51-windows-i586.exe or java SE development kit 7
jre-7u51-windows-i586.exe or java runtime environment
and my system is windows xp sp3
Click to expand...
Click to collapse
Mate, first off you should move from OS. I advice you to set all environment in a Linux distro, such as Arch or Debian. As soon you get it done, let me know and I gonna be able to help you in a better way.

ROM Customization
I want to compile android source code, can anyone help me.
Thanks,
Mohit Tadhiyal

Related

[Q] help me making an android app.

hello,
I am a student currently studying java programming
i have a java code that implements a program that i made using eclipse, and what i want to know is how to turn it into an android app. ?
the program takes a string input and returns another string using one main methods and many other methods they all process strings.
i have the android sdk and eclipse plugins but i have no idea where to put the code and how to sit the UI.
thanks.
i am sorry if my question is in the wrong place please tell me where should i post my question.
peace
You'll need basic knowledge about Android Development, search for tutorials, there are many of them, like this (I think that tutorial is all you need).
To can compile the code shown, basically you need:
Android SDK and ADT Plugin for Eclipse.
Open SDK Manager, located where you installed Android SDK. Download the packets of the platform which you desire as target (Android 2.2 or 2.3 is recomended, in order to achieve a high compatibility. Remember: Android is retrocompatible).
Now, you can start an Android project from Eclipse and compile that code. The Java methods that you already developed, should works fine on Android, don't worry about that
If you need more help, feel free to send me a MP, or post your question here. I'm not a developer, but I can understand the necessary things to achieve a basic Android app

Pure Python On a Android Dev Board

I want to install python and run my python code and its libs on an Android dev board like PandaBoard. I do not need to access devices through my python code so I don't think I would need android-scripting. (Correct me if I am wrong please)
I want to compile and run my python code and its used libs (like twisted) on the android device as a daemons so can I just install regular python on my device? If yes how (as there is no apt-get) and if no, and I have to install android-scripting, why is that the case. why do I have to do it that way?
I am a little lost in the difference between my Linux experience on ubuntu and my Linux experience on Android so sorry if I am not making sense!
Bump...
iCode said:
I want to install python and run my python code and its libs on an Android dev board like PandaBoard. I do not need to access devices through my python code so I don't think I would need android-scripting. (Correct me if I am wrong please)
I want to compile and run my python code and its used libs (like twisted) on the android device as a daemons so can I just install regular python on my device? If yes how (as there is no apt-get) and if no, and I have to install android-scripting, why is that the case. why do I have to do it that way?
I am a little lost in the difference between my Linux experience on ubuntu and my Linux experience on Android so sorry if I am not making sense!
Click to expand...
Click to collapse
try QPython

[Q] Any scope of development on Windows?

can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
 @Hnk1 help
T3snake said:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
Click to expand...
Click to collapse
As a beginner, I would suggest you start with windows/Linux mint. Linux/Ubuntu are for more advanced users and thus provide less friendly interface. There might be a dispute which OS is best. For Android, I would suggest LINUX.
Development requires large amount of disk space (up to 200-500gb); very fast PC (8 or more recommended) high end PC (icore 5 but icore7 recommended)
You might be able to start on windows for small projects with your PC but algorithms would take 6-12 hours rather than half an hour on a high end PC. I know many developers using minimal PC to work so it means more time for processes to finish.
For example
UBUNTU might be better because android is developed under linux with java base. So using Windows might need some adjustments while development. Also, Eclipse is preferred for all development for Android.(programme name)
As android is based on linux, using same base/framework is a key advantage. Ubuntu/Linux is that's why preferred so no more adjustments are made and thus its quicker to develop on Linux. This is because of same internal architecture used by Linux/ubuntu and Android.All Android applications use Linux as its base and java libraries for programming. Java and Linux both being open source can easily be synchronized. The simulation on Linux platform is also fast as compared to windows. You can even download some system files patches for Linux if there is any compatibility problem but it is not possible for windows.
Android/Java/Linux are all open sourced(libraries n API)and easier to debug.
Linux mint is more friendly than Ubuntu in comparision in my opinion.
Another advantage of Linux/ubuntu is booting time/quick interface as windows easily gets laggy after some time.
In the end it comes to user preference.It takes a variety of tools to make software, including drawing tools, so the OS is not that important but helpful to have both Linux and Win. You will need code editors and drawing tools.
Hnk1 said:
As a beginner, I would suggest you start with windows/Linux mint. Linux/Ubuntu are for more advanced users and thus provide less friendly interface. There might be a dispute which OS is best. For Android, I would suggest LINUX.
Development requires large amount of disk space (up to 200-500gb); very fast PC (8 or more recommended) high end PC (icore 5 but icore7 recommended)
You might be able to start on windows for small projects with your PC but algorithms would take 6-12 hours rather than half an hour on a high end PC. I know many developers using minimal PC to work so it means more time for processes to finish.
For example
UBUNTU might be better because android is developed under linux with java base. So using Windows might need some adjustments while development. Also, Eclipse is preferred for all development for Android.(programme name)
As android is based on linux, using same base/framework is a key advantage. Ubuntu/Linux is that's why preferred so no more adjustments are made and thus its quicker to develop on Linux. This is because of same internal architecture used by Linux/ubuntu and Android.All Android applications use Linux as its base and java libraries for programming. Java and Linux both being open source can easily be synchronized. The simulation on Linux platform is also fast as compared to windows. You can even download some system files patches for Linux if there is any compatibility problem but it is not possible for windows.
Android/Java/Linux are all open sourced(libraries n API)and easier to debug.
Linux mint is more friendly than Ubuntu in comparision in my opinion.
Another advantage of Linux/ubuntu is booting time/quick interface as windows easily gets laggy after some time.
In the end it comes to user preference.It takes a variety of tools to make software, including drawing tools, so the OS is not that important but helpful to have both Linux and Win. You will need code editors and drawing tools.
Click to expand...
Click to collapse
Yea the emulator for testing didnt even bootup till now
ill just have to postpone advanced development until i get a newer pc
My last Question....
does android kitchen support this device?
or partially supported? or anything close?
T3snake said:
Yea the emulator for testing didnt even bootup till now
ill just have to postpone advanced development until i get a newer pc
My last Question....
does android kitchen support this device?
or partially supported? or anything close?
Click to expand...
Click to collapse
I don't think android kitchen is supported
T3snake said:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
Click to expand...
Click to collapse
I hav ubuntu on my laptop... nd I really want cm on our device but my main problem is that my internet is really slow and cm11 source is around 10 gb which might take weeks on my pc...
T3snake said:
can some1 just tell me if developpment has any scope using windows os
can i build cm form source without linux or ubuntu
I have not started on tutorials since most of them advice to use linux or ubuntu
so if there is a way to development on windows can u all tell me, how it is possible
or a tutorial ?
Just so u know my computer has 2gb ram and intel hd graphics
so i cant run emulators
Thnx in advance
@Hnk1 help
Click to expand...
Click to collapse
for developing android apps.. windows works.. and a fair computer will do... unless you plan to develop something huge...
AVD's have problem with low specs on windows.... try emulating with GenyMotion
and unless you have a gpu.. the graphics won't really matter much..
and as far as building android/cm goes.. you need linux or mac os..
you could build on virtual box.. if you had whopping 16 gb of ram..
maybe cygwin works.. but i don;t know...
and it isn't hard to install ubuntu alongside windows.. all you need is a usb drive and a x64 live cd from their website.. and some patience..
ubuntu is just feels out of place for first time windows user... if you used Mac Os.. it' s easy.. the dock and the universal title bar are not hard to get.. after some time you will be more comfortable with ubuntu than windows.. or that was the case for me..
you need processing power of cpu for building... sure you can build on a p4.. but time is a great factor here.. i7 can compile faster than i5.. and it goes like that..
by the way.. i know a guy who built cm on a 4gb ram and intel core duo... took around 7 hours he said..
psych.half said:
i know a guy who built cm on a 4gb ram and intel core duo... took around 7 hours he said..
Click to expand...
Click to collapse
I hav 6gb ram and i7 processor but my internet download speed is jst 60 kbps...
Vortex99 said:
I hav 6gb ram and i7 processor but my internet download speed is jst 60 kbps...
Click to expand...
Click to collapse
buddy you don't need to download the whole 12gb of source code..
if you only plan to build for a specific device... you don't need the all platform codes for arm/ mips/ x86 or prebuilt binaries for mac os and x86 and x64..
you can select only required prebuilts and projects for your current device and current os by creating an xml file with some modifications in
.repo/local_manifests directory.. then you can reduce size of the source code...
and at 60kbps.. let's average that to 55 kb/ps... it would take around... 53 hours
but you can do continue syncing where you left off... kinda like pause and resume... so maybe in a week you will have the source code..
and just make source you sync the frameworks_base at last.. that one repository alone is over 1 gb.. O_O
psych.half said:
buddy you don't need to download the whole 12gb of source code..
if you only plan to build for a specific device... you don't need the all platform codes for arm/ mips/ x86 or prebuilt binaries for mac os and x86 and x64..
you can select only required prebuilts and projects for your current device and current os by creating an xml file with some modifications in
.repo/local_manifests directory.. then you can reduce size of the source code...
and at 60kbps.. let's average that to 55 kb/ps... it would take around... 53 hours
but you can do continue syncing where you left off... kinda like pause and resume... so maybe in a week you will have the source code..
and just make source you sync the frameworks_base at last.. that one repository alone is over 1 gb.. O_O
Click to expand...
Click to collapse
So ur sayin I can pause during the repo sync command... ??
How can I do that... ??
Now I am really getting interested... but I hav exams right now and my laptop hard disk has failed... btw can you give me detailed explanation about building cm from source or atleast post a link to guide. .. I hav seen many guides but all of them are confusing...
Vortex99 said:
So ur sayin I can pause during the repo sync command... ??
How can I do that... ??
Now I am really getting interested... but I hav exams right now and my laptop hard disk has failed... btw can you give me detailed explanation about building cm from source or atleast post a link to guide. .. I hav seen many guides but all of them are confusing...
Click to expand...
Click to collapse
well.. it's not pause.. it's like.. let's say you have already downloaded 16%.. and you stopped it that.. and turn off your pc..
next time you open pc and run repo sync.. it will check if sources have changed.. if not it will continue to sync from there..
it's just matter of copy and pasting commands to set up sources....it is not that hard..
hmmm... how about i set up the build environment for you on your laptop via ssh .. when your laptop is fixed.. pm me for your thoughts on this..
psych.half said:
well.. it's not pause.. it's like.. let's say you have already downloaded 16%.. and you stopped it that.. and turn off your pc..
next time you open pc and run repo sync.. it will check if sources have changed.. if not it will continue to sync from there..
it's just matter of copy and pasting commands to set up sources....it is not that hard..
hmmm... how about i set up the build environment for you on your laptop via ssh .. when your laptop is fixed.. pm me for your thoughts on this..
Click to expand...
Click to collapse
yea sure m gonna let you know about it...

Eclipse vs Studio

I'm taking an online course on writing Android apps and the instructor uses Eclipse with jre 6.
But the urls he sends us to downloads and installs jre 7.5 and Studio. The Studio interface is very different so for a novice like me it is very confusing.
Is Eclipse and jre 6 still available for download? Where?
Thank you.
Anderson2 said:
I'm taking an online course on writing Android apps and the instructor uses Eclipse with jre 6.
But the urls he sends us to downloads and installs jre 7.5 and Studio. The Studio interface is very different so for a novice like me it is very confusing.
Is Eclipse and jre 6 still available for download? Where?
Thank you.
Click to expand...
Click to collapse
Hi there,
Short answer:
I believe you could use either.
Longer answer:
As your instructor uses Eclipse - use Eclipse too. This way you will follow the course flawlessly. Eclipse is an open source project, well supported with huge community behind. You can download it from eclipse.org/downloads
Which version? I'd say the basic one is enough, e.g. Eclipse IDE for Java Developers, you'll need to install ADT (Android Dev. Tools) plugins, but I presume the instructor in the course made a topic on that. More discussion on that here: stackoverflow.com/questions/16657729/what-version-of-eclipse-do-i-use-for-android
As for JRE...
JRE (Java Runtime Environment) is required to run java programs on a machine. If you're developing programs, you'll need JDK - Java Development Kit. They're updated the same way any other programs are, hence you'll see different version numbers. Find them here: oracle.com/technetwork/java/javase/downloads/index.html
Good luck!
ps.
I'm not an Android developer, but did some java programming.

Emulate amd64 on aarch64

Hi there!
I would like to compile android apps and ROMs on my nexus 9, but to do so I would need to emulate a 64 bit system like amd64: I know I can use AIDE to create apps but I prefer using Android studio and I would also like to compile multirom for another device, and as far as I know there is no way to run an android build environment natively in android, so I was thinking of emulating an amd64 in my kali nethunter chroot using qemu. I installed qemu-user-static and executed the qemu-debootstrap command to create a basic ubuntu amd64 rootfs, but then the second stage gave me an error that basically meant that qemu couldn't emulate amd64.
Now my question is: does anybody know where can I find the qemu-system-amd64 binary for aarch64 (or how can I build it)?
Thanks in advance,
Daniil Gentili
The nexus 9 can't emulate AMD64
Well as far as I know
I believe there aren't any prebuilt binaries. AArch64 is relatively new in the Linux world.
It's possible, but will be really slow (I don't own a Nexus 9, using common sense and knowledge here)
Doing it won't be easy. You have two options:
- create a proper Linux chroot on your device, then install qemu in it
Previously I created a Gentoo armv7 chroot on a Tegra 3 device. It worked surprisingly well. Things compile, albeit very slowly.
- Compile QEMU directly on Android, however Android uses bionic libc, not glibc. You may need to port it yourself, AFAIK no one's done that.
Sent from my LG-H812 using Tapatalk

Categories

Resources