Related
Hey i know this is kinda noobish but how do you adb stuff from your computer to your phone i downloaded the android sdk and its not too clear on how to adb.
please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i really wanna flash haykuro's new build and i need adb to do the spl thingy and to do his apps2sd and to do haykuro do you use the first apps2sd or apps2sd2
I agree - isn't xda-dev the place for this?
Would anyone who's got some familiarity with this, and knows the best instruction sites, etc. be willing to at least put together a list of links?
I dunno, seems like the HTC wizard and universal forums are whuppin' android's hiney....
http://forum.xda-developers.com/showthread.php?t=502010
Is there a good way to get the current version of Cyanogen up and running on the SDK emulator? I have several people that complain about my application widget closing when they open or close the keyboard. The logs show nothing pertaining to my application and the only thing they all have in common is a stock G1 with Cyanogen 4.2.6 and no home screen manager. Many others with non-modded G1's do not have this problem.
I'd like to test it out in the emulator since I now only have a Droid
I found some instructions with an image file to use for this, but it was for a very old version of Cyanogen.
do a nandroid backup and then copy the files from it in to the directory of a virtual device you have already created
then all shall be good
Is there a good source to snag a existing nandroid backup of 4.2.6? I don't have a G1 or any other device to run a nandroid backup on. Too bad too cause I just shipped out my old HTC Magic a few days ago. Now all I have is my Droid.
I'll search around for one and report back if I locate one.
just did a dump for you
http://code.google.com/p/cyanogen-updater/downloads/list
itl be up in a few minutes
You just need to make a yaffs2 image of the /system folder from cyan's update.zip. The boot.img is already in the zip.
Search for mkfs.yaffs2.
That nandroid backup works perfectly in my AVD 1.6 emulator. Thanks so much for building that for me. I can test all my apps against Cyan now
Thanks goldenarmz too, I'll save this away for future versions. Does this work with Hero roms as well?
pcm2a said:
Thanks goldenarmz too, I'll save this away for future versions. Does this work with Hero roms as well?
Click to expand...
Click to collapse
Yes, you can run anything on the emulator like that
I also found out that trick a few days ago. The only problem I have is that I do not get an Internet connection.
Does the SDK simulate wifi, 3G or is there just another fictive network device? I've got DroidWall and Y5 installed. Furthermore I've got sometimes problems to start my wifi after rebooting (problem by manual copied wpa_...cfg, I guess).
I am not really sure where to search. I will investigate the stuff in the paragraph above but perhaps you've got another few hints for me?
btw: I've got 4.2.13, but that shouldnt make a big difference, should it?
Anybody has found a fix for internet Issue for Cyanogen system.img file and Android SDK emulator?
Regards,
Oscar.
Well hello everyone.
I am an application development student from Belgium.
I am proficient in Java, VB.NET, some c/c++ and also PHP/JS/HTML/CSS
Anyways, my recent interest has been going out to creating custom roms for the galaxy S!
The problem now is though, I was able to find some guides and such, but most were incomplete, and for HTC(and other) devices.
I have no idea what is different between making a ROM for galaxy S or a ROM for an HTC device.
If anyone would like to link me to some good resources that can help me on my way, or would like to collaborate (and in the meanwhile teach me a bit) I would be more than happy! (I am open for collaboration as I am pretty proficient in Java and I'm always happy to code and learn more about coding!)
I think the question is really want you want to do!
Custom ROMs for Android are as simple as using recovery console to replace files on the system with your own versions.
ie. Replace the framework.apk which contains all theme images with your own modified one, which you can use to skin the device. Same for replacing other system apps.
Unfortunately, most of these apps are closed source, so modifying them is difficult. The stock android system has open source versions of most of them though, and you can modify those and build them, and then replace the ones on the device. I'm not entirely sure how to build them up though, but it probably isn't too hard.
Then there are custom kernels, which let you actually change the underlying linux system underneath android - Samsung has an open source version of the kernel available that you can compile, and then flash to your phone using Odin or other tools. Compiling the kernel is pretty tricky though.
Well i'm really talking about stuff like SamSet, MoDaCo, Doc's ROM and others.
I'm not saying I want to create a pro ROM in a day or anything, but i'd really love to learn more to get better (always looking for more stuff to put on the resume, I guess?!)
Thanks a lot,
Kenny
Bump for some help
(sorry for the double post but i'm really eager to learn)
I don't have time to give a detailed response right now. However you will want to read up on yaffs (file system) and odexing/deodexing ROMs.
Thank you I will definately do that,
I am following a guide now to start out creating custom ROMs for android, however it was written for Motorola Droid and I have no idea what you have to do different for a samsung galaxy s.
I am a good coder, even though I say so myself, with a lot of experience. I also have a lot of linux experience, you name it
Only the problem is the old, and much known "where do I get started?"
So if anyone can point me out in the right direction on that, tell me how/where you started out, I would appreciate it greatly!
Thanks!
Very sorry to bump again
I set up my environment in ubuntu today to get started (just gotta fix a few errors, didn't know android wouldn't compile on java 1.6, only on 1.5)
Anyways, still need some help here! thanks!
Again I am awefully sorry for the bump here but i'd really like some help.
Note that i'm not a newbie at coding whatsoever and i'm not unfamiliar with some hardcore java, c/c++ and other languages, I'm just having trouble getting started when it comes to modding an existing android release (there are tutorials on HTC and other devices but some methods do not apply to the galaxy S)
If you're trying to create a ROM from scratch then unfortunately you're out of luck at the moment. No one has really managed to do so yet. By "from scratch" I mean the Android Open Source Project (i.e. official Android git repository).
What you can do is grab an existing firmware. Extract the contents, de-odex the apks, modify them or add new apks, optionally you can also compile a custom SGS kernel using Samsung's kernel source. Then you can re-odex the ROM, pack it back up and distribute it.
There's no real "starting place" as such and you won't yet find any tutorials about how to create SGS ROMs. Just give it a go and see where you get.
Yes, I do mean creating a ROM from stock samsung firmware, of course.
So my next logical question would be now:
How do I go over extracting contents from the existing samsung firmware, de-odexing and so on?
Any links/guides/tips are greatly appreciated, as long as they are applicable to this cell phone and not totally crap, thanks!
Samsung uses rfs, I think you should know. There is a thread somewhere in this forum regarding extracting .rfs file. Understood you need Debian though.
For some readup, go search for a famous guy named JesusFreke. Tons of materials...
Hope that from here onwards, this can lead you on, and to find out more. Google is your friend too...
I'm afraid my biggest problems already occur in setting up the environment, so it's really the very beginning that gets me stuck, i'm sure coding would be a bikeride compared to setting up the environment for me (i'm no hero in linux,not at all, i'm afraid)
How the hell do I get from point A (being downloading the full source) to point B (starting to create a custom ROM?)
thanks
of course if anyone has the time, and wants to, you can PM me your msn or something, if anyone is up to it
Raykoid666 said:
I'm afraid my biggest problems already occur in setting up the environment, so it's really the very beginning that gets me stuck, i'm sure coding would be a bikeride compared to setting up the environment for me (i'm no hero in linux,not at all, i'm afraid)
How the hell do I get from point A (being downloading the full source) to point B (starting to create a custom ROM?)
thanks
of course if anyone has the time, and wants to, you can PM me your msn or something, if anyone is up to it
Click to expand...
Click to collapse
Agreed completely! Getting a full cross-compilation to Samsung's Android going is seriously difficult! There have been some promises for tutorials and guides for setting things up though, but none have appeared yet. Probably because it's hard!
Well thank you for agreeing with me on that.
I am really hoping for anyone that can help me out here, either on here or in private, and give some detailed instructions on how to get started.
Hell there is enough information on creating roms alread, deodexing, adding/removing apps etc etc etc... The real problem lies in setting everything up properly.
I think I have gotten to the point where I'm compiling the android source (without samsung specific files)
note i'm saying "i think i am compiling" because i'm hoping it won't error out on me again after an hour of compiling!
But once that is done... I have no idea where to go next, where to get the samsung specific files, or what to do with them whatsoever once i have them
thanks!
Android generic source won't actually help you much. Samsung has made a huge number of changes to it, and while it is all open source, backporting their changes to get your stock source running on the phone is a major undertaking. I believe cyanogenmod was actually working on this, but it seems without much success so far.
What the other rom makers you see are doing is taking a snapshot of a running rom, copying over all of the APKs and the files on a running device, and then tweaking those. ie. Opening up framework-res.apk and changing the image files inside.
The update.zip roms that are what most people are doing are really just using the Android recovery to replace files on the phone with their own versions. Since the underlying system is linux, and everything is a file, this actually works pretty well.
The kernel development effort is completely separate from the rest of the system though, and Samsung has provided the entire source tree that just has to be compiled. I'm a bit stumped myself on all the details of setting it up, but I have seen some threads on this forum about it, and it didn't seem too bad to set up. Apparently you shouldn't use the codesourcery toolchain though, or something. Not too clued up on it, sorry. Hopefully someone with the details can chime in, or give us a link to the old post on it (I'm failing to find it using the search function! )
Alright sounds good!
So these recovery files you are talking about (the contents of /system) how do i retrieve those from a base ROM such as JM7 or the likes after a clean flash?)
Raykoid666 said:
Alright sounds good!
So these recovery files you are talking about (the contents of /system) how do i retrieve those from a base ROM such as JM7 or the likes after a clean flash?)
Click to expand...
Click to collapse
Root your phone, zip them up onto the sdcard, and then copy them off.
There are probably better methods, but this works fine.
Also, with credits to Unhelpful, he has told me that the correct toolchain to be using is 'uClibc or eglibc toolchain with ct-ng'. I have no idea what to do with that yet, but it's a start.
RyanZA said:
Root your phone, zip them up onto the sdcard, and then copy them off.
There are probably better methods, but this works fine.
Also, with credits to Unhelpful, he has told me that the correct toolchain to be using is 'uClibc or eglibc toolchain with ct-ng'. I have no idea what to do with that yet, but it's a start.
Click to expand...
Click to collapse
You don't even need to root your phone to pull /system Ryan
adb pull /system <random folder>
is all you need ^^
Alright thank you, I managed to get all the /system files using abd pull /system
now next thing up would be de-odexing right, before I go editing stuff?
Now before I go de-odexing. Can anyone tell me what exactly de-odexing is and why I need it?
and what do I need to do to create an update.zip again?
thanks a lot all!
Tayutama said:
You don't even need to root your phone to pull /system Ryan
adb pull /system <random folder>
is all you need ^^
Click to expand...
Click to collapse
Haha cool, didn't know you could pull whole folders!
Raykoid666 said:
Alright thank you, I managed to get all the /system files using abd pull /system
now next thing up would be de-odexing right, before I go editing stuff?
Now before I go de-odexing. Can anyone tell me what exactly de-odexing is and why I need it?
and what do I need to do to create an update.zip again?
thanks a lot all!
Click to expand...
Click to collapse
The apk files in Android are odexed - that means they have a special index applied for dalvik that speeds them up somehow! I don't know how, I haven't checked how it actually works.
The important point is though:
odexed is faster, but you can't edit it because of signatures or something technical
deodexed means you can change it however you want
More useful info can be found from google - lots of it!
update.zip is easy - it's a zip file in a special format that can be understood by Android's recovery console. The easiest way to do it is to grab an existing update.zip and modify it as needed. Tayutama has millions of em around, so use his!
Then you need to sign it once you're finished with it so that the SGS will accept it. Samsung made a boo-boo and didn't disable the test keys for the 2.1 SGS firmwares. That makes it easy!
http://www.londatiga.net/it/how-to-sign-apk-zip-files/
Just use the test keys to sign it, and then copy it to /sdcard/update.zip and reboot into recovery and it'll work.
Hi,
I'm trying to experiment with making my own build, but for the first instance I'm trying to gain an understanding of how everything is working by working with a current build.
I'm using eclipse in linux with the android sdk etc.
My question relates to running already prepared builds in the emulator. From what I understand in the sdk/platform folder I should be able to place the system.img file from a current build and run it on the emulator, however when I try this the emulator appears to freeze.
What am I doing wrong or missing?
Thanks in advance.
Can somebody please give me some advice, I know all of us are busy people but all I'm asking is for a couple of minutes of time from somebody more knowledgeable than me?
This is NOT native ubuntu, THATS why i wanted it. You can use CYANOGENMOD roms and this will just load like a normal app, or a normal terminal. Or in my case provide me with a capable server in my pocket. Thjs js so cool imo. Because i can run all the old perl scripts directly on my phone... People can use my little perl scripts right from my pocket! I like this!
I use android 2.3 but after i got it on 2.3 i factory reset, installed multiple other roms, including ICS roms and it all worked. But alot of cool features backtrack has to offer seem to require lots of reconfiguration on 4+. i recommend android 2.3 nutrino rom i got it all working godly on there. Without editing the boot.img once... Or rly anything..
This runs as an app and the app "changes" the "root" directory. So basically its a little hack, its not native ubuntu.
I heard people telling me my phone cant run arch linux or ubuntu and i beg to differ.
Here is the only link i used to get a full blown capable (whatever) in my pocket.
http://stuffresearch.tor.hu/?p=245
After your done. Download a vnc client app to use the graphical interface (startx X.org desktop)
After your done with that download a ssh server app (that way your ubuntu chroot will be able to navigate android filesystem)
The vnc server and ssh server do not need to route trafic to your lan nor internet.
leathan said:
Sorry for the repost, idk how to move threads. I heard people telling me my phone cant run arch linux or ubuntu and i beg to differ.
I can write a full guide and post my scripts to help but this link may be enough.
http://stuffresearch.tor.hu/?p=245
After your done. Download a vnc client app to use the graphical interface (startx X.org desktop)
After your done with that download a ssh server app (that way your ubuntu chroot will be able to navigate android filesystem)
The vnc server and ssh server do not need to route trafic to your lan nor internet.
After you got it on your phone i recommend... Unlocking ALL the arm repositories and deleteing the bloat packages cause you wont have alot of room.
I get 2gb of room for ubuntu apps after removing bloat.
Click to expand...
Click to collapse
perhaps this is what ppl were talking about when they said that to you? http://forum.xda-developers.com/showthread.php?t=2078919 not really sure, i'm more of a stock rom/cm rom kind of guy myself. Ubuntu is still too new for me on a computer for me to consider it for a rom on a phone
Thank you for link.
But I don't see what I can do with Linux on my phone.
What is your motivation to run it? What useful thinks you can do with it?
Girafik said:
Thank you for link.
But I don't see what I can do with Linux on my phone.
What is your motivation to run it? What useful thinks you can do with it?
Click to expand...
Click to collapse
idk, that's why I stick to the CMs, stock ROMs, and other custom mod's along those lines.
I hope you guys read this.....
You can do almost anything you can on normal ubuntu... And it does not load unless you load it.
Honestly if you dont need ubuntu or a useful linux dont get it. But with this u can run linux binaries that are generally common.... And not just the tiny subset that busybox brings. But a giant giIant giant giant giant awesomeness
For example i love loading firefox and runnng the same addons that i run on my pc on cellphone.
I also love being anle to send my phone shell commands directly AND HAVE BINARIES that make that useful. (I can write perl scripts to automate it all now, powerfully)
For example you can run wireshark to sniff data.... You can really do anything ubuntu can do.
Usually downloading linux distros onto your phone *for chroot is very easy. But since backtrack is so big i needed an extra step which i couldnt find untill i read this link. I was very great-full to that guy. I hope he can help someone else thru me. Because i needed backtrack on my phone yes or yes.
I can now fully program using emacs directly on my phone (i connect a computer keyboard to my phone) but for me its always been a dream to have a real computer in my pocket that i can use to program and run real internet browsers and diagnose networks. Believe it or not i stay legal, very ironically
I know how nerdy that sounds, but theres a hacker in all of us, and this makes your phone a weapon.
Tbh most people wont even want this. But those who do will be so happy to know that they cAn hack the image to under 4gb and hence can run it on their phone. It just all works right out the box.
Just look at what ubuntu can do and if u rly rly want that and it works on the phone install this.
I think im going to do my own directions and make it two steps.
That way people will just click click and see for themselves what new things they can do.
THIS DOES NOT DELETE YOUR CM ROM. YOU CAN RUN THIS SIDE BY SIDE TO YOUR ROM, AND EVEN HAVEA. DUAL BOOT SETUP + THIS.
Its fully compatible to work side by side because ita a chroot not a real install
palmbeach05 said:
idk, that's why I stick to the CMs, stock ROMs, and other custom mod's along those lines.
Click to expand...
Click to collapse
You can use this and stick to your cm rom.
Girafik said:
Thank you for link.
But I don't see what I can do with Linux on my phone.
What is your motivation to run it? What useful thinks you can do with it?
Click to expand...
Click to collapse
You have linux already on your phone. Android runs on linux. Thats why chroot is so easy i think
This is about backtrack ubuntu. Linux comes when you buy the phone.
I tried typing "what useful things can ubuntu do" into google
But that wasn't helpful lol...
palmbeach05 said:
perhaps this is what ppl were talking about when they said that to you? http://forum.xda-developers.com/showthread.php?t=2078919 not really sure, i'm more of a stock rom/cm rom kind of guy myself. Ubuntu is still too new for me on a computer for me to consider it for a rom on a phone
Click to expand...
Click to collapse
This isnt a rom though. Im not knowledgeable in this area but i think since your running chrooted the android system still occupies the read only memory. I might sound dumb but i this is not in any way a rom. It fully sits in your REAL INTERNAL "sdcard" memory. Unless you load it ^.^ it auto closes when u close the terminal.. Atleast it shud
I believe that would be the case if you were to run ubuntu natively... Aka delete android.
leathan said:
I tried typing "what useful things can ubuntu do" into google
But that wasn't helpful lol...
Click to expand...
Click to collapse
If you had to Google something like that you probably have no clue what BackTrack means or what it is meant for and should avoid following this guide anyway.
Enviado desde mi MB855
Sorry for insulting you. But I have was programming nearly a decade before ubuntu even existed. It is a mere derivative, and backtrack is just a set of tools.
Google is powerful, you can hack with google. Googling what ubuntu is good for is perfectly ok imo, nothing to do with much.
Im NOT in IT... BUT I code 29 hrs a day average, atleast i try.
Si pensas que ubuntu esta correlacionado con la habilidad de programar estas en la ironia.
I dont see how any human would not like just having backtrack ubuntu on their phone ^.^
Even if i did not know already know all the tools.... You can just read... Or something ^.^
That guide was like 1 step from what i had done off the top of my head also... -.-
Not mean at all. But usually a programmer or someone in the IT industry knows what backtrack's purposes are. I am afraid I was just expressing an opinion in an open forum and didn't mean to come out as insulting or hurtful. Instead, I was trying to avoid you causing damage to your phone by venturing into the unknown. Calling someone dumb on the other hand IS insulting.
Enviado desde mi MB855
leathan
hi
i have a question
i ve done all steps until 1st run of boot bt script by adb
my sh bootbt perfoming with many errors
it tells about lack of root access and "cant find directory .."
what kind of linux distributive do u use for adb, i think it may be related with my usb live linux version (dont want to install it)
USSRxAZ said:
leathan
hi
i have a question
i ve done all steps until 1st run of boot bt script by adb
my sh bootbt perfoming with many errors
it tells about lack of root access and "cant find directory .."
what kind of linux distributive do u use for adb, i think it may be related with my usb live linux version (dont want to install it)
Click to expand...
Click to collapse
can you send me the full output you got when you ran bootbt? Maybe also the android VERSION and the bootbt source but first read bellow.
When you finish all the editing and you upload the /BT5 folder to your cellphone. are you sure your putting everything in the INTERNAL SDCARD. And also try moving all installed apps out of INTERNAL SD and into INTERNAL MEMORY. (I think i read somewhere somekid had to remove the real sdcard also... I dont see why lol, and i didnt have too.
Then you should just load up a teminal emulator on android and type: su and then sh bootbt. You said you did "sh bootsh" from adb. I did it from phone. But once the script runs it shouldnt matter where its invoked from so long as your running as root?
Try typing adb root first from pc.
Or type su first from terminal emulator on your phone.
To reply to mot.a.troll.... Im sorry im dumb and take suddle things like that as a big insult because i really dont think knowing about ubuntu or even backtrack. Is a requirement for this or for following that guide. I am damiliar with unix... Believe it or not. And i am DEFFINITLY not in IT, idk what "it" even means whaha. All i enjoy doing is programming when i was a kid in basic, and now 90% just perl all day (for many many years)
Ill edit my insult to u since your right, and its because im dumb and get offended. I wish i never even knew what ubuntu was period lol, but setting it all up manually is hard work and i just needed things working lol
I dont think the problem has anything to do with your linux distro or adb. Im 99.999999999% sure lol
Hacker ? Backtrack? *cough* , gentoo based linux for arm next time but nice effort.
Fyi backtrack really seems ok for live cd wifi stuff, but as phone had no promiscuous mode on wifi driver, whats the point ?
Just an off note, if u want linux on atrix this badly then why not chip in with porting ubuntu touch.
Sent from my GT-I9505 using xda app-developers app
i ve tryed it again with other ROM and sdcard placement but i m gettin same errors (no directory's, cant mount etc)
sry i havent posted log again
p.s.
Gentop2 (Gentoo) is the best experience i had with atrix and linux at all
I wish i have a dream what somebody will compile newer and better version than 05092013 but it wont happen i guess.
JustSueMe said:
Hacker ? Backtrack? *cough* , gentoo based linux for arm next time but nice effort.
Fyi backtrack really seems ok for live cd wifi stuff, but as phone had no promiscuous mode on wifi driver, whats the point ?
Just an off note, if u want linux on atrix this badly then why not chip in with porting ubuntu touch.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Sorry if me being a hacker offends you or your definition of it. Personally idgaf.. my current job basicaly implies i atleast write clever enough perl to make money lol...
And for your off note... This may sound very "ignorant".. but i HATE the owners of ubuntu. and hate how closed it is. I would never help them.
Also about the promiscuous mode, I wasnt even aware phones had no promiscuous capable wifi drivers... are you sure? Either way I dont see why you NEED it for the plethora of tools offered to you just by downloading an .img file.... I understand gentoo is alot better... but i have no time? This took me 30mins... because i literally copy pasted the commands and then waited...
use your brain? I could hack on windows, ios, android, ipad, unix, linux, pickyourfavorite here... hacking is an abstraction above the operating system imho *cough* *noob* ...and chrooting android PERIOD. gives OBVIOUS benifits.
the link i found is an extremelly easy way to make it work
USSRxAZ said:
i ve tryed it again with other ROM and sdcard placement but i m gettin same errors (no directory's, cant mount etc)
sry i havent posted log again
p.s.
Gentop2 (Gentoo) is the best experience i had with atrix and linux at all
I wish i have a dream what somebody will compile newer and better version than 05092013 but it wont happen i guess.
Click to expand...
Click to collapse
if you get an error like /local/data/mnt/ no such directory
then that means you just have to create that directory... and try again.
otherwise post your logs.
Remember what i wrote as a first reply too.
leathan said:
Sorry if me being a hacker offends you or your definition of it. Personally idgaf.. my current job basicaly implies i atleast write clever enough perl to make money lol...
And for your off note... This may sound very "ignorant".. but i HATE the owners of ubuntu. and hate how closed it is. I would never help them.
Also about the promiscuous mode, I wasnt even aware phones had no promiscuous capable wifi drivers... are you sure? Either way I dont see why you NEED it for the plethora of tools offered to you just by downloading an .img file.... I understand gentoo is alot better... but i have no time? This took me 30mins... because i literally copy pasted the commands and then waited...
use your brain? I could hack on windows, ios, android, ipad, unix, linux, pickyourfavorite here... hacking is an abstraction above the operating system imho *cough* *noob* ...and chrooting android PERIOD. gives OBVIOUS benifits.
the link i found is an extremelly easy way to make it work
Click to expand...
Click to collapse
My definition of "hacker" is someone that manages to create a tool or find a way to overcome an obstacle that wasn't supposed to be passed, such as wifi passwords. in this sense, just by using someone elses tools doesn't put you into the category of hacker.
I see chroot can have a benefit, but not by much as it depends on the android os. As 95+% of androids wifi drivers are closed with no promiscuous mode then the generic way of wifi hacking isn't possible. Correct me of I'm wrong but I'm going to assume that's why u want backtrack
Noob? Im have a ubuntu touch port up and running already and. With custom kernel this gives much more benefit over a chroot .
Sent from my GT-I9505 using xda app-developers app