[Q] Ubuntu USB & NS - Nexus S General

what's the work around for getting my linux box to recognize the ns usb in ubuntu? i am wanting to play with aosp and my linux android build environment works fine for n1 but i can't get the ns usb to recognize my device.
kitchen is itchin'
hey mod... if there was a questions thread, i'd post there. move this where you want.

What have you currently done?
http://developer.android.com/sdk/installing.html

Michael.B. said:
What have you currently done?
http://developer.android.com/sdk/installing.html
Click to expand...
Click to collapse
sdk updated. also tried udev rule path update to samsung id. no go

lpasq said:
sdk updated. also tried udev rule path update to samsung id. no go
Click to expand...
Click to collapse
Have you made sure the udev rule is set to the correct Vendor ID? It's '18d1', not the normal Samsung ID.
The Rooting Nexus S on Ubuntu Guide might also be helpful.

BlackOtaku said:
Have you made sure the udev rule is set to the correct Vendor ID? It's '18d1', not the normal Samsung ID.
The Rooting Nexus S on Ubuntu Guide might also be helpful.
Click to expand...
Click to collapse
thanks...i will change vendor id as indicated. I have currently set the normal id. where would I have found out/learned that the id was not the same as the id listed on android sdk set up site?
Sent from my Nexus S using XDA App

lpasq said:
thanks...i will change vendor id as indicated. I have currently set the normal id. where would I have found out/learned that the id was not the same as the id listed on android sdk set up site?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Either by guessing it was the same as the N1 or checking the output of the lsusb command, I guess. I couldn't find any documentation from Google regarding it.

lpasq said:
thanks...i will change vendor id as indicated. I have currently set the normal id. where would I have found out/learned that the id was not the same as the id listed on android sdk set up site?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I used the samsung ID to setup my build env. have you edited your .bashrc to point to the sdk?
I finally got everything setup today, and I sync'd and built my second aosp build for nexus S today problem is, don't know how to create update-scripts yet so I can't make an update.zip for release on here..

This guide got me good to go:
http://forum.xda-developers.com/showthread.php?t=820122
after you make your edits in /udev/51-android.rules, sudo restart udev and run the installer he attached to his post. It works
But, stay away from the sudo nautilus command, I had major issues with user permissions and .ICEauthority after doing so. once you run the installer you should be fine.

Related

Market alternative

Hello everyone, I'm happy to say that I'm hosting a 'market' specifically for Sprint Hero root users. If anyone is interested in this, you can install it on your phone in a few steps.
First, download the market program and install it on your phone. It's at http://app2.bikcmp.com:4121/dl/Aptoide.apk
Once you install it, launch it and press no to add their default repository. Then, press menu>Manage repo>menu>New repository. The url to the repository should be EXACTLY:
http://app2.bikcmp.com:4121/repo/files/
After that, go back and you should be able to see the applications. If you're a developer and have a application you'd like to add, or have a question, feel free to email me: [email protected].
Yes, I know there aren't many applications in it right now.
Jason
Timeout can't connect
Sent from my HERO200 using Tapatalk
SimPup said:
Timeout can't connect
Sent from my HERO200 using Tapatalk
Click to expand...
Click to collapse
Oops, my mistake. It's app2, not apps2.
Is there a way to see what's availible in your market from the computer?
DevinXtreme said:
Is there a way to see what's availible in your market from the computer?
Click to expand...
Click to collapse
Depends: A pretty way? No. A basic way? Yes.
http://app2.bikcmp.com/repo/files/ has a directory listing of the apk's, and you can download them from there too.
bikcmp said:
Depends: A pretty way? No. A basic way? Yes.
http://app2.bikcmp.com/repo/files/ has a directory listing of the apk's, and you can download them from there too.
Click to expand...
Click to collapse
Thanks.
That's exactly what I wanted
Why that repo doesn't work for me?
Is it has been changed already?
Sent from my Samsung Galaxy S GT-I9000
d3885u said:
Why that repo doesn't work for me?
Is it has been changed already?
Sent from my Samsung Galaxy S GT-I9000
Click to expand...
Click to collapse
this thread is from may, im sure it's plenty outdated.
bike, why don't you get on making us a froyo sense based rom. your pancake rom was the **** back in the day.

[Q] Compiling and running Java in nook?

Is there any way to compile and run java in nook or any android device?
So far I've found Terminal IDE, it compiles it, but it doesn't run it.
Thanks for any help.
Have you tried the program "Eclipse"? That is a Java runtime tool that is used by the developers to run Java programs. There is also some videos you can watch on cyanogenMods wiki to show you how to use and run that program. The wiki for this tool can be found here. http://en.wikipedia.org/wiki/Eclipse_(software)
Here is the website for this tool. http://www.eclipse.org/
Yes, I use eclipse. Perhaps you misunderstood my question, I'm asking if there is any way to compile java choose and run in in my nook color. The question is because I'm always in the road, usually in the subway.
Thanks
Sent from my Incredible 2 using XDA
joanchoma said:
Yes, I use eclipse. Perhaps you misunderstood my question, I'm asking if there is any way to compile java choose and run in in my nook color. The question is because I'm always in the road, usually in the subway.
Click to expand...
Click to collapse
I haven't tried it, but it sounds like you want something like this to allow editing and compiling directly on your Android device.
You can use Botbrew. It has jamvm working pretty well in Anise.
It has the JRE and JDK in the Basil dpkg version, but I haven't played with that yet. But with jamvm you can write your code with something like droidedit or use the terminal.
I have used AIDE, but it seems to be made for a very specific thing. I am just more comfortable working out of a terminal. Maybe the more familar with IDEs would feel otherwise.
joanchoma said:
Is there any way to compile and run java in nook or any android device?
So far I've found Terminal IDE, it compiles it, but it doesn't run it.
Thanks for any help.
Click to expand...
Click to collapse
joanchoma said:
Yes, I use eclipse. Perhaps you misunderstood my question,
Click to expand...
Click to collapse
Nothing to misunderstand if you did not include that in your original question now is there? So obtuse.

[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!

[Q] Learning App Development.

So I would like to learn how to develop apps for the android OS. I'm not sure where I should put this (sorry if in wrong section). I would like to learn how to code and do all the steps in app development. I have absolutely ZERO experience in coding other then changing the dedicated RAM for Minecraft. If someone could tutor me maybe twice a week or link me to other forums that explain this sort of thing and provide support for people. I would be very happy for either if the two! Thank you guys!
Learning Java
Hi NamesBass
Android development is basically Java. I learned it from a while. The easiest way is to watch some YouTube videos. Also very helpful are the official tutorials and sample apps. You can find them here: developer.android.com/training (Sorry I haven't 10 posts yet so I can't post direct URLs). Then start coding and when you stuck somewhere use google and learn from it
~LoXeras
read book
read books, good books on programming - Android in 24 hours (loren Dersy( i ), Sheyn Kondor), and Android 2 ( Reto Mayer)
Thank you for the help.
Sent from my Nexus 5 using XDA Free mobile app
Thanks for your help. I'm going to start tonight.
Sent from my Nexus 5 using XDA Free mobile app
Java, java, java. Not JavaScript! Java, java, java!!!!
I'm having problems
LoXeras said:
Hi NamesBass
Android development is basically Java. I learned it from a while. The easiest way is to watch some YouTube videos. Also very helpful are the official tutorials and sample apps. You can find them here: developer.android.com/training (Sorry I haven't 10 posts yet so I can't post direct URLs). Then start coding and when you stuck somewhere use google and learn from it
~LoXeras
Click to expand...
Click to collapse
So I have run into trouble doing this lesson and I'm not sure why I didn't do it right. I thought I followed all the steps but my code lines and the ones on the website are different. Could you give your thoughts? Thanks!
gyazo.com(slash) febe01e0840369e9a4d6ebfc5c3abfea (ScreenShot)
NamesBass said:
So I have run into trouble doing this lesson and I'm not sure why I didn't do it right. I thought I followed all the steps but my code lines and the ones on the website are different. Could you give your thoughts? Thanks!
gyazo.com(slash) febe01e0840369e9a4d6ebfc5c3abfea (ScreenShot)
Click to expand...
Click to collapse
Use Android Studio download and work though the tutorials or android app development. loads of videos to follow. (Java)
uuugh
Just Call It said:
Use Android Studio download and work though the tutorials or android app development. loads of videos to follow. (Java)
Click to expand...
Click to collapse
okay so i downloaded that and tried to set it up but an error message came up saying I need to add an environment variable for JAVA_HOME. I did this and it went something like C: Program Files\Java\jre7\bin\Java and when I launched the program, it told me to direct it to JDK not jre7, but I dont have a JDK file. I did a system search and nothing came up.
NamesBass said:
okay so i downloaded that and tried to set it up but an error message came up saying I need to add an environment variable for JAVA_HOME. I did this and it went something like C: Program Files\Java\jre7\bin\Java and when I launched the program, it told me to direct it to JDK not jre7, but I dont have a JDK file. I did a system search and nothing came up.
Click to expand...
Click to collapse
You are pointing to the jre7 folder in Program Files/Java. You should change that to the jdk folder.
e.g. My JAVA_HOME variable is C:\Program Files\Java\jdk1.8.0_05
So I change jre7 to JDK(whatever)?
Sent from my Nexus 5 using XDA Free mobile app
how
hey please help me how to devlop own anrohd apps
Jogny said:
You are pointing to the jre7 folder in Program Files/Java. You should change that to the jdk folder.
e.g. My JAVA_HOME variable is C:\Program Files\Java\jdk1.8.0_05
Click to expand...
Click to collapse
Why are you using JDK 8 for Android? It's not officially supported by Android SDK. Do you see any improvements/problems in compare with JDK 7?

Categories

Resources