Related
Since I have gotten several requests to show people how to set up a dev environment, I thought I would write up a how to guide and just post it in a thread.I have had to set up a new dev environment a few times now, and each time I've had to look the information up piece by piece. All of the guides that I have found are out of date or don't work for what I want to accomplish, which is build a basic environment that I can decompress nandroid backup images in, build kernels, compile images, and just be ready for anything that is thrown my way that needs a Linux based setup to look at or test.
And just because I probably need to put this in here,
********I AM NOT RESPONSIBLE FOR ANY HARM THAT MAY COME TO YOUR COMPUTER, PHONE, OR ANYTHING ELSE THAT YOU MAY USE WHILE READING OR TRYING TO IMPLEMENT ANY OR ALL PARTS OF THIS GUIDE.*********
Guide Tips:
Read everything first. Then go to the websites listed and read it again. This will give you somewhat of an understanding of what you are going to be doing. This is what I use and it works for what I do. I do not use Eclipse, therefore I did not include it in this guide. While reading this guide, Linux and Ubuntu are one in the same so don’t get confused by terminology. Ubuntu is just a flavor of Linux. You may prefer a different flavor and that is fine. While working in Terminal, if I put something in italics, don’t type that part. Italics are meant as an extra bit of info. If the text went to a new line and there is a space before the next line starts, hit enter. If the text went to a new line and there is no space, it’s the same line of code.
Downloads:
Download Ubuntu 10.10 32-bit desktop edition from: http://www.ubuntu.com/desktop/get-ubuntu/download
Download and install VirtualBox from: http://www.virtualbox.org/wiki/Downloads
Install Ubuntu 10.10 on the VirtualBox like this: http://www.psychocats.net/ubuntu/virtualbox
VirtualBox Tips:
Use a 50GB (or bigger) Hard Drive size if you can afford the space.
Pick an easy password and log on automatically. This will make things easier later.
When you get set up, go to System, Settings, Screensaver, and uncheck Activate screensaver when computer is idle, and Lock screen when screensaver is active. It is not necessary on a VirtualBox anyway and will just become an annoyance.
I recommend downloading and installing the VirtualBox Guest Additions for Linux by clicking Devices, Install Guest Additions. This will make things easier if you need to resize your Linux desktop window, or cut and paste text from Windows to Linux.
If you need to move files easily from Windows to Linux, put them on a USB drive in Windows. Then in on the VirtualBox, click Devices, select USB Devices, find the USB drive that you are using and select it. The drive will then be accessible in Linux. To move something back to Windows, just uncheck the drive in the same manner. There is a common share folder you can set up, but I find it more of a hassle than just using a USB drive.
Inside Ubuntu:
Download and save the Android SDK for linux from: http://developer.android.com/sdk/index.html
Download and save unyaffs from: http://code.google.com/p/unyaffs/downloads/list
Go to Applications, Accessories, and Select Terminal
In Terminal type:
Go to Applications, Accessories, and Select Terminal
In Terminal type:
sudo passwd (it will ask you for a new password, just enter the password you used in setup)
(retype the same password)
mkdir ~/android
cd Downloads
sudo mv unyaffs /bin
tar –zxvf android-sdk_r08-linux_86.tgz
mv android-sdk-linux_86 ~/android
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
mkdir ~/bin
curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
cd ~/bin
sudo mv repo /bin
cd /bin
chmod 777 unyaffs
cd ~/android/android-sdk-linux_86/tools
. android (notice the period and space before “android”, this is a "run" command, the Android SDK and AVD Manager will open)
Select as many or as few packages from the available packages as you want. You need to have Android SDK Tools, revision 8, which should already be installed, and Android SDK Platform-tools, revision 1 at a minimum. Press Install Selected when you are ready. When finished, close the Manager.
Closing Notes:
At this point you will have the tools to decompress a nandroid backup image and work with those files to create a basic ROM, download repos, download source code from github, and be able to do other things that are used to develop for Android phones. This is by no means all inclusive. It is just a basic setup to get you ready to do some of the things possible. If people find this useful, I may write other guides to explain how to do other things, so give me feedback.
I was going to ask you if you could do a step by step. I jade downloaded all the stuff was having a few issues getting going.
THANKS.
Sent from my SCH-I500 using XDA App
All systems go.. LOL awaiting further instructions.
and again .. Thanks..
Wow, this is great....i will be setting this up as soon as i have a couple of hours to spare.
Thx
Sent from my SCH-I500 using Tapatalk
Some extra info..
Some other nice sites to mention if you're truley interested in getting into building your own ROMs and not just porting (but certainly porting as well) might be:
Samsung Open Source Release Center:
http://opensource.samsung.com/index.jsp
From the Samsung OSRC you can get the source files to compile the Linux kernel for the Samsung Mezmerize. You will have to sign up for an account (free) and the download speeds are throttled but whatever.. it's the source files right from the manufacturer.
After you learn how to compile the kernel from Samsung source, you might take a stab at compiling the Voodoo v5 lagfix kernel for the mezmerize yourself.
Project Voodoo:
http://project-voodoo.org/
Project Voodoo has some very nice documentation and their own IRC channel on freenode #project-voodoo if you have any questions. After you work through compiling a modified kernel, you should be on your way to working on building your own roms and possibly helping with development and porting work for the 2.2 and 2.3 versions of the Android Open Source Project.
Most of these efforts can be found on github using their nice search. Or, look at the 2.1[Alpha] ROM thread for links to the fascinate source:
http://forum.xda-developers.com/showthread.php?t=898231
On that note, GET FAMILIAR USING GIT. You should already have git on your linux distro if you followed the instructions above (or if you've ever issued a sudo apt-get install git command). git has a very nice tutorial and extensive man documentation which can be accessed using:
man 7 gittutorial
Why? Because:
http://android.git.kernel.org/
and:
http://source.android.com/source/git-repo.html
I hope this extra info helps. And for some positive reinforcement.. building a kernel and subsequently rom is not that difficult (assuming you're knowledgeable in Computer Science and have some enthusiasm for a project like this.. for someone without prior knowledge it's a different issue..). But it is a BIG task. With that in mind, it just requires a lot of persistance and A LOT of reading, checking, and double checking. If you're willing to take the time to read others' documentation and build upon what they've done you can do a lot!
Some further reading that may interest you:
What is Android?
http://developer.android.com/guide/basics/what-is-android.html
Dalvik Virtual Machine
http://sites.google.com/site/io/dalvik-vm-internals
http://www.usenix.org/events/vee05/full_papers/p153-yunhe.pdf
Odex? Deodex?
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/dexopt.html;hb=HEAD
^^great article read it!!
decompiling and recompiling the .odex class
http://code.google.com/p/smali/
Excellent info, thanks for this!
This is good too:
http://www.cmsgs.com/mediawiki/index.php?title=Build_CyanogenMod_for_Samsung_Fascinate
Sweet I'm gonna add this to my Mac and get on the path to actual development, not just flashing stuff. I'm glad to see that virtual box runs on OSX I was just gonna use this as another excuse to add another OS and make my wife even happier... Thanks for all the info guys, and any more guides that you find the time for would be appreciated greatly! I got lots of reading to do now, and now I have something to do besides scrape snow off my car.
droidzach said:
Sweet I'm gonna add this to my Mac and get on the path to actual development, not just flashing stuff. I'm glad to see that virtual box runs on OSX I was just gonna use this as another excuse to add another OS and make my wife even happier... Thanks for all the info guys, and any more guides that you find the time for would be appreciated greatly! I got lots of reading to do now, and now I have something to do besides scrape snow off my car.
Click to expand...
Click to collapse
Feel free to ask us any specific questions you may have. You can find us in #samsung-mesmerize on freenode.net irc.
Bump, this should be stickied.
Scotsman, Are you receiving all of our pm's? I sent a few today, not sure if you've had a chance to read them but someone else thought the same so I wonder if the forum is having issues sending them to you?
bdemartino said:
Bump, this should be stickied.
Scotsman, Are you receiving all of our pm's? I sent a few today, not sure if you've had a chance to read them but someone else thought the same so I wonder if the forum is having issues sending them to you?
Click to expand...
Click to collapse
He probably gets lot's of pm's every day.. I doubt he reads them. He hasn't read mine. Someone might try contacting the XDA admins and getting us a mod here who actually owns a Mesmerize. As far as I understand, TheScotsman is an HTC guy (well at least not Samsung)...
Edit: Not trying to sound hostile, just frank. I also hadn't seen this:
http://forum.xda-developers.com/showpost.php?p=10927527&postcount=6
Perhaps we just need to work with him to revamp the stickies here a bit. I agree we need some solid stickies so users aren't asking the same old over and over again. I'm sure we'll be able to work things out in time.
dcow90 said:
He probably gets lot's of pm's every day.. I doubt he reads them. He hasn't read mine. Someone might try contacting the XDA admins and getting us a mod here who actually owns a Mesmerize. As far as I understand, TheScotsman is an HTC guy (well at least not Samsung)...
Edit: Not trying to sound hostile, just frank. I also hadn't seen this:
http://forum.xda-developers.com/showpost.php?p=10927527&postcount=6
Perhaps we just need to work with him to revamp the stickies here a bit. I agree we need some solid stickies so users aren't asking the same old over and over again. I'm sure we'll be able to work things out in time.
Click to expand...
Click to collapse
Yea, I really don't think he's receiving all the pm's. He was very fast to notice and suggest a separate thread for my newb guide (to be stickied) but I sent a few more pm's requesting a few other threads be done as well but no response. The very odd thing is only my initial response to his pm shows in my "sent" messages, none of the others are so I am wondering if the forum limits the amount a user can send to a mod.
bdemartino said:
Bump, this should be stickied.
Click to expand...
Click to collapse
What he said.
Unbuntu 10.10 32bit vs 64bit
Hi Developers!
I've downloaded Unbuntu 10.10 32bit Desktop and burned the image onto a CD.
Just wondering about the which flavor we should be using for development work.
There is 32bit and 64bit. I know that 32bit has been around for way longer.
But, should we be looking at 64bit for development?
Thanks,
Kevin
For anything past 2.2 you will need 64bit Ubuntu. This is kinda odd but whatever. Definitely go 64bit, none of the 'new' sources will compile without it (= Now, if the dev site would just update their instructions to reflect the latest policies.. .. their primary instructions are still for 32bit and their 64bit instructions are 'experimental' (but they work fine).
dcow90 said:
For anything past 2.2 you will need 64bit Ubuntu. This is kinda odd but whatever. Definitely go 64bit, none of the 'new' sources will compile without it (= Now, if the dev site would just update their instructions to reflect the latest policies.. .. their primary instructions are still for 32bit and their 64bit instructions are 'experimental' (but they work fine).
Click to expand...
Click to collapse
Good to know! Thanks man!
Onebryteday said:
Good to know! Thanks man!
Click to expand...
Click to collapse
I get to this point and get this.
[email protected]:~/Downloads$ tar . android-sdk_r10-linex_x86.tgz
tar: invalid option -- '.'
Try `tar --help' or `tar --usage' for more information.
[email protected]:~/Downloads$
what am i doing wrong thanks for any help or info.
none of this ever works for me
im lucky I get to decompile apk's
oostah said:
I get to this point and get this.
[email protected]:~/Downloads$ tar . android-sdk_r10-linex_x86.tgz
tar: invalid option -- '.'
Try `tar --help' or `tar --usage' for more information.
[email protected]:~/Downloads$
what am i doing wrong thanks for any help or info.
Click to expand...
Click to collapse
Typo . android-sdk_r10-linex_x86.tgz should be
. android-sdk_r10-linux_x86.tgz
Also you cannot type all of the code word for word as some of the files you download have different names or are in different folders than where phidelt originally had them. Just read the filenames and make sure that you have the correct directories where files are located.
Well im done setting up, where do I go from here :/ by the way I "thanked you" XD
Apparently I just don't post enough or near to anything on XDA, to be allowed to post in the Sensation DEV forum.
So I have to post it here.
In follow up to graffixnyc's http://forum.xda-developers.com/showthread.php?t=1159306 post I redid his windows batchfile to run on OSX. I don't have the linux version of ADB otherwise it would work just as fine on that.
I also have 2 scripts I use for enabling and disabling services on my sensation: DisablePM.sh and EnablePM.sh. Feel free to edit and use those if you prefer a quick way of making you own list of packages to disable.
But none the less here it is the OSX version of graffixnyc's Perma-Temp root:
http://www.multiupload.com/JFXDBTPYX4
Once Downloaded, Unzip and run Run_ME_Fr3vo_ROOT.sh from terminal.
Update:
Thanks for the work to Eugene373 and graffixnyc for posting. Hope I got i right this time
ziggimon said:
Apparently I just don't post enough or near to anything on XDA, to be allowed to post in the Sensation DEV forum.
So I have to post it here.
In follow up to graffixnyc's http://forum.xda-developers.com/showthread.php?t=1159306 post I redid his windows batchfile to run on OSX. I don't have the linux version of ADB otherwise it would work just as fine on that.
I also have 2 scripts I use for enabling and disabling services on my sensation: DisablePM.sh and EnablePM.sh. Feel free to edit and use those if you prefer a quick way of making you own list of packages to disable.
But none the less here it is the OSX version of graffixnyc's Perma-Temp root:
http://www.multiupload.com/JFXDBTPYX4
Once Downloaded, Unzip and run Run_ME_Fr3vo_ROOT.sh from terminal.
Thanks for your work graffixnyc
Click to expand...
Click to collapse
The credit actually goes to Eugene373, He is the one who deved it. I just found the info and posted it
graffixnyc said:
The credit actually goes to Eugene373, He is the one who deved it. I just found the info and posted it
Click to expand...
Click to collapse
Exactly, now maybe the OP can change the title so the credit immediately goes to Eugene373.
command on mac
What is the exact command to run using mac terminal. dont know much on mac...Thanks.
instechgainza said:
What is the exact command to run using mac terminal. dont know much on mac...Thanks.
Click to expand...
Click to collapse
Whilst im on Win7 or Ubuntu, im pretty sure you just double click the .sh files provided
instechgainza said:
What is the exact command to run using mac terminal. dont know much on mac...Thanks.
Click to expand...
Click to collapse
doubleclick on the .sh or find terminal in spotlight and cd to the directory you unpacked, then type ./Run_ME_Fr3vo_ROOT.sh that should do the trick.
Hey guys,
About two years ago when the Droid X came out, I came out with a one click root app for it that was pretty popular. Since I have the Galaxy S3 now and wanted to root me phone, I decided to make it ridiculously easy for people.
Credit goes to this thread: http://forum.xda-developers.com/showthread.php?t=1875914
I simply packaged it up into a Qt app. I will be releasing it on Linux tomorrow and if I can somehow get a Mac (or someone has one) that wants to compile the Qt app for Mac, we can have it working on all 3 main operating systems.
Here's the download: http://www.mediafire.com/?g4mfv432lzk2pj0
And some screenshots to go along with it: http://imgur.com/a/7Eq48
Enjoy!!! I will update with the Linux version tomorrow
- Sil3ntKi11
Very nice!
Sent from my SCH-I535 using xda premium
Shouldn't this be in the dev section?
jellydroid13 said:
Shouldn't this be in the dev section?
Click to expand...
Click to collapse
It could be but here is the problem i see...
all current root methods that work for ics will no longer work for jellybean. so when the jb ota drops this will be kind of null and void. not saying you couldnt odin back to a ics build then root and upgrade back to jellybeans, but thats alot of extra steps. the best method imo is to odin mr.robinson's pre rooted stock j1 update.
droidstyle said:
It could be but here is the problem i see...
all current root methods that work for ics will no longer work for jellybean. so when the jb ota drops this will be kind of null and void. not saying you couldnt odin back to a ics build then root and upgrade back to jellybeans, but thats alot of extra steps. the best method imo is to odin mr.robinson's pre rooted stock j1 update.
Click to expand...
Click to collapse
Yeah, I know that. But within a few days a new method will be up and I will update it! If someone finds it useful, then great! When the 4.1 root method (non-odin) is out, then I will put that up!
But yeah, most people after updating won't need this
Will this raise the flash counter?
I can compile the qt app on Mac if you get me the source.
Sent from my SCH-I535 using xda app-developers app
alquimista said:
I can compile the qt app on Mac if you get me the source.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
Here's the source attached. Also, if you could send me a link to a copy of adb for mac (just the executable) that would be awesome!
ahfu25 said:
Will this raise the flash counter?
Click to expand...
Click to collapse
To be completely honest I am not sure. I have no triangle on my phone. If it does, you can use:
http://forum.xda-developers.com/showthread.php?t=1494114
To reset your counter I believe. Does someone else want to weigh in on this?
sil3ntki11 said:
Here's the source attached. Also, if you could send me a link to a copy of adb for mac (just the executable) that would be awesome!
Click to expand...
Click to collapse
Here are the most useful binaries from the Android SDK for Mac. Included in tarball:
aapt
adb
aidl
dexdump
dx
I'll try and get the Mac qt build up later tonight.
Ta,
ALQI
I'm having problems compiling on my laptop.
I keep getting the error that my version of OS X isn't supported. I'm on 10.7.4, should I be on 10.6 or something?
Anyway, I have an app built, but the bundle doesn't look right. It doesn't contain any of the root tools, and the main executable is way too small.
I don't want to post it here, cause I doubt its functional.
It looks nice though!
alquimista said:
I'm having problems compiling on my laptop.
I keep getting the error that my version of OS X isn't supported. I'm on 10.7.4, should I be on 10.6 or something?
Anyway, I have an app built, but the bundle doesn't look right. It doesn't contain any of the root tools, and the main executable is way too small.
I don't want to post it here, cause I doubt its functional.
It looks nice though!
Click to expand...
Click to collapse
Hey! Thanks for trying! So I used Qt version 4.8.3, the open source SDK. You need three libraries to run the app, QtCore4, QtGui4, and QtWebKit4. They have to be in the same folder as the executable if Qt isn't in your Path. The root tools are in there, "debugfs", "debugfsinput" and "su" and "Superuser.apk". I didn't include the Mac adb tool, as I couldn't get it. That should be named adbmac and be put in the tools/ folder of where the executable lies.
I have changed the source to make this customizable for anyone's root methods, if you look here:
http://forum.xda-developers.com/showthread.php?t=2000988
Here is cleaner source attached, basically the same. So, in order to get this work:
Build the code
Find the folder it was built into (please use release, not debug)
In that folder, find the executable. This is the main folder
Copy the /root, /tools, /html, /device folders that are in the zip into the main directory where the executable is.
Copy your OSX's adb into /tools and rename it adbmac
Make sure Qt is in the PATH variable, if not you need
QtCore4, QtGui4, and QtWebKit4 in the same folder as the executable
For others to use it, they need those libraries in there, or else they will need to have Qt installed
You can statically link the libraries if you so desire but I didn't want to deal with that.
sil3ntki11 said:
Hey! Thanks for trying! So I used Qt version 4.8.3, the open source SDK. You need three libraries to run the app, QtCore4, QtGui4, and QtWebKit4. They have to be in the same folder as the executable if Qt isn't in your Path. The root tools are in there, "debugfs", "debugfsinput" and "su" and "Superuser.apk". I didn't include the Mac adb tool, as I couldn't get it. That should be named adbmac and be put in the tools/ folder of where the executable lies.
I have changed the source to make this customizable for anyone's root methods, if you look here:
http://forum.xda-developers.com/showthread.php?t=2000988
Here is cleaner source attached, basically the same. So, in order to get this work:
[/LIST]
Click to expand...
Click to collapse
Ah, that's my problem. I'm still on Qt 4.7 cause the QtADB tool requires the 4.7 libraries. I can update to 4.8 , but it will take a while cause Macs are dumber than Linux.
Question, can't we roll the libraries into the app itself? I know Avid MediaComposer 6 and up have Qt pretty much rolled into the app to run all of the GUI, they even use some python to run some of the GUI for them (its crap for code but its better than FCP X). I'll look into it while I'm waiting for Qt 4.8 to download and install.
I'll keep you updated.
Ta,
ALQI
tplawi then
alquimista said:
Ah, that's my problem. I'm still on Qt 4.7 cause the QtADB tool requires the 4.7 libraries. I can update to 4.8 , but it will take a while cause Macs are dumber than Linux.
Question, can't we roll the libraries into the app itself? I know Avid MediaComposer 6 and up have Qt pretty much rolled into the app to run all of the GUI, they even use some python to run some of the GUI for them (its crap for code but its better than FCP X). I'll look into it while I'm waiting for Qt 4.8 to download and install.
I'll keep you updated.
Ta,
ALQI
Click to expand...
Click to collapse
Hey! Thanks for the effort. So I actually got a VMWare image of Mac OSX Lion going on my machine and got it to compile. What you are referring to is called static linking and can definitely be done, I just have to compile from source with the -static argument. I'm trying to decide if I should not use WebKit for my GUI as that is the only library that is quite large. I'm going to compile it statically and see how big it is. I might put this up on a private GitHub repo if you want to help work on it.
My idea is that this can be used by anyone to make other root packages. If you noticed in the other thread I sent you, I basically have a very simple custom batch language for them to create for the root method and the rest is taken care by the program. This way it won't discourage people and we can have a one click root truly. Let me know if you want to help me improve it!
Hey everyone. I am considering making a custom ROM, in particular, one that has a custom theme to it. I was thinking of maybe making a Star Wars themed AOSP one, maybe just 4.1.2 for stability for now. I was just wondering some things. The first problem is I have no clue about developing, so I'm sorry if my assumptions are stupid.
I was wondering if developing a ROM would be like either:
A. Taking an AOSP ROM (with permission from Devs), and tweaking system files, and then making it into a ZIP again
or
B. Would I need to compile something myself and tweak system files and things from there?
Thanks in advance for your answers
You would have to do the ROM from scratch. Try using android kitchen it would help you a lot.
Sent from my SCH-I535 using xda premium
Thanks for the quick answer . So my desktop is running Windows 7 HP, 6 AMD core processor clocked at 2.6 GHz with about 200 GB of free space. Would that work alright?
BlazingGlory53 said:
Thanks for the quick answer . So my desktop is running Windows 7 HP, 6 AMD core processor clocked at 2.6 GHz with about 200 GB of free space. Would that work alright?
Click to expand...
Click to collapse
that should be perfect.
Yes it would be more than enough by the way I would recommend using ubuntu because it feels easier but give me a few minutes and I will provide you links om using it on Windows
Sent from my SCH-I535 using xda premium
I'm currently downloading Cygwin to see how tough it is to bake something up on Windows, and worst case scenario, I'll try Ubuntu
If you come across any problems while creating it I'll be happy to assist you.
By the way I would recommend extracting a tar file of the 4.1 jelly bean ota.
Sent from my SCH-I535 using xda premium
Logicsupraboy1 said:
If you come across any problems while creating it I'll be happy to assist you.
By the way I would recommend extracting a tar file of the 4.1 jelly bean ota.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
There a way to make an AOSP rom with kitchen?
I don't think so but you will need ubuntu for aosp.
I'll send you a link right now.
Sent from my SCH-I535 using xda premium
Need some help now. Currently the kitchen is saying that there are no ROMs in the original_update folder, but i have the original OTA TAR file in, and I also extracted the boot, system, and cache files to put them in the folder too. it's not working D:
BlazingGlory53 said:
Need some help now. Currently the kitchen is saying that there are no ROMs in the original_update folder, but i have the original OTA TAR file in, and I also extracted the boot, system, and cache files to put them in the folder too. it's not working D:
Click to expand...
Click to collapse
Best suggestion trying Ubuntu as you can dual boot it with Windows.& the instructions are easier to follow.
Boy, I'm having a field day trying to get this working xD. I install linux, open terminal to install Java (ia32 libs), and I get this:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[email protected]:~
EDIT: Maybe because I'm downloading system updates is why the "other process is using it", but the problem came up before I started the update...
BlazingGlory53 said:
Boy, I'm having a field day trying to get this working xD. I install linux, open terminal to install Java (ia32 libs), and I get this:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[email protected]:~
Click to expand...
Click to collapse
Installing adb would and try googling how to install ia32 libs
If you are running a 64bit
---------- Post added at 06:36 AM ---------- Previous post was at 06:30 AM ----------
Also let the updates finish lol sorry I didn't see the edit.
Sent from my SCH-I535 using xda premium
making progress, but now Ubuntu won't grant me root. Here's the entire process I did:
[email protected]:~$ sudo apt-get install ia32-libs
[sudo] password for william:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
openjdk-6-jre-lib : Depends: openjdk-6-jre-headless (>= 6b17) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[email protected]:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
[email protected]:~$ su
Password:
su: Authentication failure
[email protected]:~$
EDIT: Never mind, I was confusing it with Linux Mint I think. It's sudo -s
EDIT 2: NVM, Java was there in the package thing
Wait are you using the guide I sent you? Because when I used it I had no problems what so ever.
Sent from my SCH-I535 using Xparent ICS Tapatalk 2
I had Ubuntu 12.10 loaded, I went to 12.04 and things are a heck of a lot smoother now
I'm making good progress now. I'm working on compiling AOSP, going to try CM10.1. I'm having a problem though. It won't let me download the repo. This is what happened:
[email protected]:~/Source$ repo init -u git://github.com/BeerGang/android.git -b cm-10.1
fatal: 'git' is not available
fatal: [Errno 2] No such file or directory
Please make sure git is installed and in your path.
Whoopsies! Missed a step, installing some packages I missed, will update and see if it works ;D
That is great I hope I was of some help.
Keep me up to date with your progress please as I would like to know how it is going.
Sent from my SCH-I535 using xda premium
Well right now I'm compiling "again". The first time I didn't set enough space in linux for the partition, so I ran out of space in the repo sync. I should be good now, but I think sometime I'm going to have to reinstall my old hard drive, or get a new one. Who knew a 1 TB drive could fill up so fast? xD
IGNORE THIS, NEWER VERSION(S) ARE HERE: http://forum.xda-developers.com/android/development/phone-s-battery-status-computer-screen-t3070549
I have made a program to display the percentage of your phone on your computer. Requirements:
Computer that can run bash
USB-to-phone cable
ADB enabled on phone
Has been tested on the following:
LG P716 Jelly bean stock- One Works the other doesn't
LG P716 KitKat - Works
LG P500 with CM11 and rooted- Works
Samsung S3 stock - Doesn't work
Your help is greatly appreciated to porting it to Windows/Mac and adding new devices.
wilk.gr76 said:
I have made a program to display the percentage of your phone on your computer. Requirements:
Computer that can run bash
USB-to-phone cable
ADB enabled on phone
Has been tested on the following:
LG P716 Jelly bean stock- One Works the other doesn't
LG P716 KitKat - Works
LG P500 with CM11 and rooted- Works
Samsung S3 stock - Doesn't work
Your help is greatly appreciated to porting it to Windows/Mac and adding new devices.
Click to expand...
Click to collapse
Don't get me wrong but do you really have a use for it or is it just about improving your development skills ?
LS.xD said:
Don't get me wrong but do you really have a use for it or is it just about improving your development skills ?
Click to expand...
Click to collapse
I do. If I plug my phone in, and then turn on the display to see how far it has charged, the battery percentage is DROPPING! So, I created this. If you want faster charging than your USB port, use ADB over WiFi. But this did help me hone my skills.
wilk.gr76 said:
I do. If I plug my phone in, and then turn on the display to see how far it has charged, the battery percentage is DROPPING! So, I created this. If you want faster charging than your USB port, use ADB over WiFi. But this did help me hone my skills.
Click to expand...
Click to collapse
Pretty cool for that specific purpose I just downloaded the zip and was just about starting my laptop to test it BUT the archive is damaged and i can't extract it May you please check the archive's integrity and upload it again?!
Sure!
LS.xD said:
Pretty cool for that specific purpose I just downloaded the zip and was just about starting my laptop to test it BUT the archive is damaged and i can't extract it May you please check the archive's integrity and upload it again?!
Click to expand...
Click to collapse
Did that! Just make sure you can run bash. Your computer'll need linux or mac os x (not sure about mac)
If it helps, please press thanks.
wilk.gr76 said:
Did that! Just make sure you can run bash. Your computer'll need linux or mac os x (not sure about mac)
Click to expand...
Click to collapse
BASH?! Never heard about it...
Manjaro Linux should be fine for it
LS.xD said:
Pretty cool for that specific purpose I just downloaded the zip and was just about starting my laptop to test it BUT the archive is damaged and i can't extract it May you please check the archive's integrity and upload it again?!
Click to expand...
Click to collapse
It is nice to get feedback so quicly! I expected to have no replies by Sunday, yet I get one in the first 5 mins! "Vielen Dank!" (I saw the german flag by your name...)
LS.xD said:
BASH?! Never heard about it...
Manjaro Linux should be fine for it
Click to expand...
Click to collapse
Open the terminal, and its most likely your using bash. Bourne-Again SHell.
Just wondering, what is the orange "OP" rectangle next to "Junior Member", to the left of my post?
wilk.gr76 said:
Open the terminal, and its most likely your using bash. Bourne-Again SHell.
Just wondering, what is the orange "OP" rectangle next to "Junior Member", to the left of my post?
Click to expand...
Click to collapse
OP = overpowered or may be "Original Poster"
Is it possible that your tool only runs on 32Bit systems? I use 64Bit OS with multilib and no chance to make it fly / run or whatever you like
LS.xD said:
OP = overpowered or may be "Original Poster"
Is it possible that your tool only runs on 32Bit systems? I use 64Bit OS with multilib and no chance to make it fly / run or whatever you like
Click to expand...
Click to collapse
Yes it is built for 32bit systems but you should be able to run it on 64 bit as well. You need to unzip everything of course and make adb and dialog (in the same folder as the script) executable. The command is chmod +x adb && chmod +x dialog
To change it to 64-bit, you'll need to replace the adb and dialog files with the 64-bit versions.
You might need ia32-libs or somthing like that.
Also, OP I think it overpowering. You shall port it to Windows. You shall thank me. LOL, don't have to do it.
wilk.gr76 said:
Yes it is built for 32bit systems but you should be able to run it on 64 bit as well. You need to unzip everything of course and make adb and dialog (in the same folder as the script) executable. The command is chmod +x adb && chmod +x dialog
To change it to 64-bit, you'll need to replace the adb and dialog files with the 64-bit versions.
You might need ia32-libs or somthing like that.
Also, OP I think it overpowering. You shall port it to Windows. You shall thank me. LOL, don't have to do it.
Click to expand...
Click to collapse
Im familiar with chmod Commandline version works well (see signature for phone's setups) while the guy version causes a never ending error output:
libgtk-3.so.0 shared libraries can't be found . All files are present in my Linux so I really have no clue, why i can't open it.
LS.xD said:
Im familiar with chmod Commandline version works well (see signature for phone's setups) while the guy version causes a never ending error output:
libgtk-3.so.0 shared libraries can't be found . All files are present in my Linux so I really have no clue, why i can't open it.
Click to expand...
Click to collapse
Are you using GNOME? You might need to install libgtk. But, like the readme file says, this is bit is still alpha (it's more beta than beta.. If that makes sense).
But if it helped, please press the " Thanks" button
wilk.gr76 said:
Are you using GNOME? You might need to install libgtk. But, like the readme file says, this is bit is still alpha (it's more beta than beta.. If that makes sense).
But if it helped, please press the " Thanks" button
Click to expand...
Click to collapse
Its really weird as the libs "missing" are all installed. I use KDE.
LS.xD said:
Its really weird as the libs "missing" are all installed. I use KDE.
Click to expand...
Click to collapse
It's pretty strange that it used "can't" instead of "cannot". Maybe try using gnome. I dunno, it works on mine.
I'm moving this to a DevDB now.
Has been moved to http://forum.xda-developers.com/and...ter-screen-t3070549/post59841376#post59841376