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
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
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!
I've noticed a lot of people having issues getting ROMs to boot, Wifi probelms, etc. So I've decided, since I don't have much time to maintain a ROM, I would make a Tips and Tricks thread for users to be able to look at and solve things on their own.
This thread will be a compilation of noob level fixes to harder, more knowledgable fixes.
This will constantly be updated, so if you have anything you would like to add, post it up and i'll add it to the OP.
Redpoint also has an AWESOME resource compilation of anything and everything located in this specific EVITA forum.
That's located HERE
Boot Issues
Shelld causing ROM not to boot
This happens more commonly with MIUI. During the porting process one of the most tricky files needed is the shelld located in /system/xbin.
If your MIUI build or ROM download isn't booting up, and your logcat saying something to the effect of "trying to initialize shell service"... It's a shell problem.
To fix this, you'll need the following:
any form of Android Kitchen, I use dsixda's kitchen found in the main development section of the forums.
a text editor, I use Text Editor that comes with Ubuntu 12.04LTS
Steps:
take the ROM
unpack the boot.img into the kernel and ramdisk with your android kitchen
open the ramdisk folder
open you INIT.RC file in a text editor
at the very bottom insert these lines:
Code:
service shelld /system/xbin/shelld
class main
Click to expand...
Click to collapse
WiFi Issues?
Credit for this one is given to flar2. A lot of users were having trouble with WiFi when running the Sense 5 port by ImagioX1 along with the latest ElementalX kernel.
Two ways to do this. One is from your phone, the other is from your computer.
#1, Phone
What you'll need:
a root file exlplorer
a working HTC OneX(Evita)
ElementalX kernel installed
Steps:
After rom has booted navigate to /system/etc and open init.qcom.post_boot.sh. with a text editor.
Scroll to the very bottom and paste this there.( Make sure it is the last line )
Code:
insmod /system/lib/modules/prima_wlan.ko
Save and exit the file and then do a full reboot. When the phone comes back on wifi should be working.
#2, Computer
What you'll need:
a text editor, I use Text Editor that comes with Ubuntu 12.04LTS
Steps:
navigate to /ROMfolder/system/etc
open, in a text editor, init.qcom.post_boot.sh
at the very bottom, type
Code:
insmod /system/lib/modules/prima_wlan.ko
save, exit, profit.
Click to expand...
Click to collapse
ADB and Fastboot
While gunnyman has a sticky thread for this, I decided I would go ahead and add it in to my thread as well.
This is for any LINUX distro.
if you're running a linux distro and are having trouble getting ADB started, this is what you do to solve this issue...
Download my ADB/Fastboot .zip I have linked HERE
extract to a folder on your desktop
open terminal
cd to that folder you have extracted to binaries to
type:
Code:
sudo adb kill-server
sudo adb start-server
BOTH AS SEPARATE COMMANDS
ADB is now initialized on your linux distro of choice
Click to expand...
Click to collapse
I'll add an apktool guide in a little bit, this one is a tricky tool. I'll also and a smali/baksmali guide for you people who want to, or are in the process of learning how to port.
I'll also make another thread and lock this. This one is not organized one bit and there is a maximum character limit per post... -,-
More to be added, these are the first to come to mind.
This will help a lot of the new people out there just flashing away. Good start, like to see how this evolves.
With regards to linux distros you should be able to install from repos using the package manager which will set up the paths for you as well, eliminating the need to be in a specific folder. Pretty simple too. May be a good idea to just add the distribution specific install from repo commands.
For ubuntu for example:
Sudo apt-get update
Sudo apt-get install android-tools-adb
Sudo apt-get install android-tools-fastboot
Sent from my HTC One X using xda app-developers app
exad said:
With regards to linux distros you should be able to install from repos using the package manager which will set up the paths for you as well, eliminating the need to be in a specific folder. Pretty simple too. May be a good idea to just add the distribution specific install from repo commands.
For ubuntu for example:
Sudo apt-get update
Sudo apt-get install android-tools-adb
Sudo apt-get install android-tools-fastboot
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Fair enough, I'll add this to the OP in due time. I'm still trying to write up an apktool guide as well as a smali/baksmali guide. The one I wrote up in my How to Port a ROM thread isn't as detailed as it needs to be.
Thanks.
You're taking on too much!! Slow down
Sent from my HTC One X using xda app-developers app
exad said:
You're taking on too much!! Slow down
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Since I don't have much time to maintain a ROM anymore, I want people to be able to have the resources to do it for themselves.
Myrder said:
Since I don't have much time to maintain a ROM anymore, I want people to be able to have the resources to do it for themselves.
Click to expand...
Click to collapse
Good attitude man. None of the roms we have really were exactly what I was looking for. Viper was very close but there were a few things about it too. I don't mean any disrespect to any dev (now that I'm one I see how hard they worked). Now that I know enough I can get make my own roms and get them just right. Glad to see you helping out.
Sent from my HTC Evita running Sense 5 RX ALPHA
Hey everyone,
I'm going to compile my own ROM from cm. I'm following the guide, but it just says I need a "reasonable amount" of ram and storage. They link to an android instruction page, which states:
"Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree."
I don't want to download source for every device, just d2vzw. How much should I set aside in my VM? I've already given it 3 GB of RAM and 2 of my 4 cores at 100%.
I've installed Ubuntu and updated everything, going to install the SDK next and adjust my VM size as necessary.
Thank you.
Why use virtual machine to run Ubuntu? Set aside a partition with like 100gigs and install Ubuntu on that. Then you can boot into Linux or windows whenever you want.
Sent from my SCH-I535 using xda app-developers app
well the only thing about that is it can be a pain in the butt to get grub off sometimes if he dosnt want to use ubuntu longterm id go with the virtualbox route and u only need about 30gigs for ubuntu and 3gigs of ram is more than enough.
damnyouwaffles said:
Why use virtual machine to run Ubuntu? Set aside a partition with like 100gigs and install Ubuntu on that. Then you can boot into Linux or windows whenever you want.
Click to expand...
Click to collapse
Bierce22 said:
well the only thing about that is it can be a pain in the butt to get grub off sometimes if he dosnt want to use ubuntu longterm id go with the virtualbox route and u only need about 30gigs for ubuntu and 3gigs of ram is more than enough.
Click to expand...
Click to collapse
NAIL ON THE HEAD. The grub thing is a pain. I've dual booted before, have tried out Ubuntu 9 and 10 in the past...
Anyway, I went ahead and figured out the VM stuff (VM is something I've been wanting to learn about anyway).
Now I'm stuck at the part in the guide where I'll be extracting the proprietary blobs. When I try to run an adb command, it gives me an error. I'm pretty sure I have all the USB filter stuff installed/enabled correctly... Currently updating everything in Ubuntu update manager. Hopefully I can get it going soon. I'm excited to build!
rockingondrums said:
NAIL ON THE HEAD. The grub thing is a pain. I've dual booted before, have tried out Ubuntu 9 and 10 in the past...
Anyway, I went ahead and figured out the VM stuff (VM is something I've been wanting to learn about anyway).
Now I'm stuck at the part in the guide where I'll be extracting the proprietary blobs. When I try to run an adb command, it gives me an error. I'm pretty sure I have all the USB filter stuff installed/enabled correctly... Currently updating everything in Ubuntu update manager. Hopefully I can get it going soon. I'm excited to build!
Click to expand...
Click to collapse
Add https://github.com/TheMuppets/proprietary_vendor_samsung to your roomservice.xml
Sent from my SCH-I535 using xda app-developers app
Is that a place to pull blobs? I actually managed to extract, but ty!
I successfully built, now trying to learn to modify.
Also, am I right to assume that the build guide pulls from the stable code base? How do I set it up to pull from the nightly code case? That Google voice hack is a deal making feature.
rockingondrums said:
Is that a place to pull blobs? I actually managed to extract, but ty!
I successfully built, now trying to learn to modify.
Also, am I right to assume that the build guide pulls from the stable code base? How do I set it up to pull from the nightly code case? That Google voice hack is a deal making feature.
Click to expand...
Click to collapse
Depends what branch you setup... Probably cm10.1 which will be the latest
Sent from my SCH-I535 using xda app-developers app
Hello Xda, i own a ZTE midnight and just a few hours ago rooted it and would like to help port CWM to my device, i was looking at this https://www.facebook.com/ClockworkMod/posts/480999728601013 and wanted to start from there but i dont know how to extract the stock recovery, any help? like i said its already rooted and i think that All ZTE devices have unlocked bootloaders so this is possible. yes i have googled it please dont bark at me.
Hi trozzul,
I too want to port it to cwm but am also not able to extract my stock recovery.
Have you tried flashify? There is an option for backup boot.img and recovery.img . I tried it but doesn't seems to work.
It does create a 0 byte file named recovery.img . Maybe it isn't working on my phone.You try it on yours.
Thankx
Yuvraj
Sent from my iris 406Q using XDA Free mobile app
coder32 said:
Hi trozzul,
I too want to port it to cwm but am also not able to extract my stock recovery.
Have you tried flashify? There is an option for backup boot.img and recovery.img . I tried it but doesn't seems to work.
It does create a 0 byte file named recovery.img . Maybe it isn't working on my phone.You try it on yours.
Thankx
Yuvraj
Sent from my iris 406Q using XDA Free mobile app
Click to expand...
Click to collapse
i sorta found out myself with playing around in a terminal emulator. would you happen to know what partition your phone is? BML or MTD? i dont know what todo if your device is BML but if you think its MTD you can try in the terminal emulator app (from play market) type in
Code:
cat /proc/mtd
enter this in and you will see around 20 MTD files. find the MTD file with "Recovery" at the end, type this in for instance (DO NOT use this code, its what my device showed the Recovery MTD for.)
Code:
dd if=/dev/mtd/mtd12 of=/sdcard/recovery.img
and it will push your recovery to your SD card (in .img format), Pretty much say your recovery was MTD9 just put in that code but replace mtd12 with MTD9 mine was about 5MB i didn't know they were that small.
Trozzul said:
Hello Xda, i own a ZTE midnight and just a few hours ago rooted it and would like to help port CWM to my device, i was looking at this https://www.facebook.com/ClockworkMod/posts/480999728601013 and wanted to start from there but i dont know how to extract the stock recovery, any help? like i said its already rooted and i think that All ZTE devices have unlocked bootloaders so this is possible. yes i have googled it please dont bark at me.
Click to expand...
Click to collapse
To extract your stock recovery what you can do is the following to determine which partition is the recovery partition. From terminal emulator or adb shell, go to the /cache/recovery directory and look for a file called log or last_log if you cd into the /cache/recovery directory you can read the log file with the cat command: cat last_log. In the log file you will see a list of the partitions on your device. One of these will be your recovery partition, remember which partition block is your recovery partition and then run the command:
Code:
cat /dev/block/yourrecoveryblock > /mnt/sdcard/recovery.img
Let me know if you still have questions.
I had already tried it .it's BML :/
Congrates to you
Sent from my iris 406Q using XDA Free mobile app
shimp208 said:
To extract your stock recovery what you can do is the following to determine which partition is the recovery partition. From terminal emulator or adb shell, go to the /cache/recovery directory and look for a file called log or last_log if you cd into the /cache/recovery directory you can read the log file with the cat command: cat last_log. In the log file you will see a list of the partitions on your device. One of these will be your recovery partition, remember which partition block is your recovery partition and then run the command:
Code:
cat /dev/block/yourrecoveryblock > /mnt/sdcard/recovery.img
Let me know if you still have questions.
Click to expand...
Click to collapse
thanks for the info! i got the Recovery.img but would you happen to know if this site is not in use anymore? http://builder.clockworkmod.com/ i get 404s after i have uploaded it and i try to see mine in the que.
Trozzul said:
thanks for the info! i got the Recovery.img but would you happen to know if this site is not in use anymore? http://builder.clockworkmod.com/ i get 404s after i have uploaded it and i try to see mine in the que.
Click to expand...
Click to collapse
Clockworkmod recovery builder website has been hit and miss recently. Overall I would strongly recommend taking a look at this guide here that will teach you the basics of porting Clockworkmod Recovery to a new device, you will also learn a lot more doing it this way, as well as it being easier to fix any issues.
shimp208 said:
Clockworkmod recovery builder website has been hit and miss recently. Overall I would strongly recommend taking a look at this guide here that will teach you the basics of porting Clockworkmod Recovery to a new device, you will also learn a lot more doing it this way, as well as it being easier to fix any issues.
Click to expand...
Click to collapse
i have to use Ubuntu? could i not use the command prompt since the codes looks like you can use them there. Could i format one of my old computers and setup Ubuntu there?
Trozzul said:
i have to use Ubuntu? could i not use the command prompt since the codes looks like you can use them there. Could i format one of my old computers and setup Ubuntu there?
Click to expand...
Click to collapse
You have to use Linux or OSX but Ubuntu is highly recommended. You can't use command prompt as the Windows architecture isn't designed to build and cross compile for the architecture Android is based on. Yes, you could format your old computer and install Ubuntu on that and proceed from there.
Sent from my SCH-I535 using XDA Premium 4 mobile app
shimp208 said:
You have to use Linux or OSX but Ubuntu is highly recommended. You can't use command prompt as the Windows architecture isn't designed to build and cross compile for the architecture Android is based on. Yes, you could format your old computer and install Ubuntu on that and proceed from there.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Cool, i will try my best to figure out how to get Ubuntu on this old thing, from looking it up looks like a simple process. could you recommend a good way to learn some basic commands like that guide asks for? i am using codecademy right now for some basic java and html stuff i know you need to know some of that stuff. its a single core 512mb of ram old XP computer, i dont know the system requirements for Ubuntu.
Trozzul said:
Cool, i will try my best to figure out how to get Ubuntu on this old thing, from looking it up looks like a simple process. could you recommend a good way to learn some basic commands like that guide asks for? i am using codecademy right now for some basic java and html stuff i know you need to know some of that stuff. its a single core 512mb of ram old XP computer, i dont know the system requirements for Ubuntu.
Click to expand...
Click to collapse
Your machine meets the minimum specs for Ubuntu (Barley) you could also check out Xbuntu or Lubuntu as well, make sure you use a 64-bit version as Android building requires that. Keep in mind with those specs you should be able to build it will just take a while to compile. For learning the basics of the Linux command line, this is a great guide just ignore the parts about Windows Power Shell (Or don't ignore them and learn twice as much!). The system requirements for Ubuntu can be found here as well for your reference. Android building does't really deal with HTML, it does deal with Java but as always the more you know the better because it just makes it easier to learn from there.
shimp208 said:
Your machine meets the minimum specs for Ubuntu (Barley) you could also check out Xbuntu or Lubuntu as well, make sure you use a 64-bit version as Android building requires that. Keep in mind with those specs you should be able to build it will just take a while to compile. For learning the basics of the Linux command line, this is a great guide just ignore the parts about Windows Power Shell (Or don't ignore them and learn twice as much!). The system requirements for Ubuntu can be found here as well for your reference. Android building does't really deal with HTML, it does deal with Java but as always the more you know the better because it just makes it easier to learn from there.
Click to expand...
Click to collapse
im pretty sure that computer i have is 32bit, so im screwed?
Trozzul said:
im pretty sure that computer i have is 32bit, so im screwed?
Click to expand...
Click to collapse
Is the operating system installed 32-bit or is the the CPU itself in your computer a 32-bit processor because if it's just a 32 -bit operating system you can still install the 64-bit version. But if it's a 32-bit processor then I'm afraid your out of luck. What you can do however is setup Ubuntu in a virtual machine on your main computer using Virtualbox.
shimp208 said:
Is the operating system installed 32-bit or is the the CPU itself in your computer a 32-bit processor because if it's just a 32 -bit operating system you can still install the 64-bit version. But if it's a 32-bit processor then I'm afraid your out of luck. What you can do however is setup Ubuntu in a virtual machine on your main computer using Virtualbox.
Click to expand...
Click to collapse
i was aware of the virtual machine ( still dont know how to do it lol) and i sorta didnt want to use it on my main computer i feel like to me it would be easier to just start linux on another computer. uh how would i tell if the processor on it is 32bit?
Trozzul said:
i was aware of the virtual machine ( still dont know how to do it lol) and i sorta didnt want to use it on my main computer i feel like to me it would be easier to just start linux on another computer. uh how would i tell if the processor on it is 32bit?
Click to expand...
Click to collapse
With Virtualbox you can setup Windows and Linux side-by-side and the good thing is if you mess something up in Virtualbox you regular windows installation is unaffected, I would highly recommend checking out this video walk though guide on how to install Ubuntu 14.04 LTS in Virtualbox. You can find out if you have a 32-bit processor or 64-bit processor by going to Accessories -> System Tools -> System Information (Or just search for System Information), then look at the System Type entry if it says x64-based PC you have a 64-bit processor if it says x86-based PC you have a 32-bit processor.
shimp208 said:
With Virtualbox you can setup Windows and Linux side-by-side and the good thing is if you mess something up in Virtualbox you regular windows installation is unaffected, I would highly recommend checking out this video walk though guide on how to install Ubuntu 14.04 LTS in Virtualbox. You can find out if you have a 32-bit processor or 64-bit processor by going to Accessories -> System Tools -> System Information (Or just search for System Information), then look at the System Type entry if it says x64-based PC you have a 64-bit processor if it says x86-based PC you have a 32-bit processor.
Click to expand...
Click to collapse
ill try to post back soon, i will try out virtualbox but im going to try to still get ubuntu on another computer i own, the other one ended up being x86 based. im sure the new one is 64-bit but it needs some work on it. thanks for the help so far!
Trozzul said:
ill try to post back soon, i will try out virtualbox but im going to try to still get ubuntu on another computer i own, the other one ended up being x86 based. im sure the new one is 64-bit but it needs some work on it. thanks for the help so far!
Click to expand...
Click to collapse
No problem buddy happy to help out, let me know how it goes!
shimp208 said:
No problem buddy happy to help out, let me know how it goes!
Click to expand...
Click to collapse
alright installed Ubuntu on one of my many computers, gonna try to build a setup a build environment, i have 75 gigs free on my hard drive, i heard the android source needs 100GB? could i put another hard drive in my computer thats 80gigs and would work?
Trozzul said:
alright installed Ubuntu on one of my many computers, gonna try to build a setup a build environment, i have 75 gigs free on my hard drive, i heard the android source needs 100GB? could i put another hard drive in my computer thats 80gigs and would work?
Click to expand...
Click to collapse
My apologizes for getting back to you so late @Trozzul I just finished with my finals the other day and didn't get home till much latter then anticipated hence the delay. While you could put in another 80 GB hard drive I would recommend picking up at least a 250 GB Hard Drive (They can be found online for about $30-$40), as that way you can be sure you won't run out of room and can have your main build environment all on one drive. But you can try it with the setup you have now and you can probably get away with it. As always let me know of any questions you have happy to help :highfive:.