[Q] Compiling a certain part of the source code - Android Q&A, Help & Troubleshooting

Hello,
Suppose I have a bootmenu source code( from CM7 repo for example ), how can I compile it alone( without having to compile entire CM source code )?
Thanks, Joe.

Try make bootimage
Herpderp Defy.

make bootimage didn't work - no rule for creating bootimage.
Just one more question: If I don't want to download the entire code, just to compile a very small piece of it( which contains Android.mk ), how can I do it?

That piece must have a git behind it.
Try make --help
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.

It does, for example android_Framework_base
What do I do then?

You can do that, the android build system is tightly integrated, and you cant just build anything indepently
But if you have the full source, u can cd to the dir and use this command "mm"

UNknown command.

Lunched and . Build/envsetup before?
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.

mDroidd said:
Lunched and . Build/envsetup before?
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.
Click to expand...
Click to collapse
Yes, but it failed, so no.

GodSlayer said:
Yes, but it failed, so no.
Click to expand...
Click to collapse
Ubuntu 10.04 64-bit?
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.

mDroidd said:
Ubuntu 10.04 64-bit?
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.
Click to expand...
Click to collapse
Now, yes. I am still struggling to get it working, the repo sync always fails on me. Isn't there an easier way to download the source code?

GodSlayer said:
Now, yes. I am still struggling to get it working, the repo sync always fails on me. Isn't there an easier way to download the source code?
Click to expand...
Click to collapse
Nope...
Greets!
I'm not a fake.
I prefer people to reply to me and give feedback instead of thanking me!
But thanking me does show if you apreciate my works.

OK, So I've compiled the AOSP. mm is not working.
How can I compile the apps via Eclipse? It gives me thousands of errors.

My bad, was a typo, its mmm
So - do this
cd <source dir>
. build/envsetup.sh
lunch (select your device - or maguro/crespo would be fine)
mmm packages/apps/<app u wanna compile>
It'll compile, when done, check out/target/product/<device>/system/app/<app>.apk

cdesai said:
My bad, was a typo, its mmm
So - do this
cd <source dir>
. build/envsetup.sh
lunch (select your device - or maguro/crespo would be fine)
mmm packages/apps/<app u wanna compile>
It'll compile, when done, check out/target/product/<device>/system/app/<app>.apk
Click to expand...
Click to collapse
Thank you so much! I already figured out how to compile apps( make Settings/etc ), but this works for everything there.
And as for my second question - HOw can I insert a single app into eclipse? I tried to add the classes-full-debug.jar, but I still get some errors like missing classes and things like that.
Any solutioN?

Related

Help to compile CM9!

Hi all! I'm trying to compile the CM9 for optimus one but I don't understand how to do it! I have already compiled the CM7 and there are successful but don't know where to put files and give commands with the sources of CM9! Can someone give me a hand?
What have you done/tried already?
I compiled the CM7 but I don't know how build the CM9! I don't know who commands give and where to put files
Can you help me?
Lupohirp has already started.to port cm9 to p500 there r still some bugs but it's getting there
Sent from my LG-P500 using xda premium
First sync cm9-source, instead of gingerbread you use ics.
Download device and vendorfiles from github.com/lupohirp.
Create following folders in device: lge and lge/thunderg (in time it will be p500 instead of thunderg)
Also download framework_base from his github and replace all files folder in framework/base in your working folder.
_Arjen_ said:
First sync cm9-source, instead of gingerbread you use ics.
Download device and vendorfiles from github.com/lupohirp.
Create following folders in device: lge and lge/thunderg (in time it will be p500 instead of thunderg)
Also download framework_base from his github and replace all files folder in framework/base in your working folder.
Click to expand...
Click to collapse
done!! And now?
markolino631 said:
done!! And now?
Click to expand...
Click to collapse
Now, Use your Brains.
ahhaah i have an error in the file AudioTrack.cpp when compile cm9! this is a error:
frameworks/base/media/libmedia/AudioTrack.cpp: In member function 'android::status_t android::AudioTrack::restoreTrack_l(android::audio_track_cblk_t*&, bool)':
frameworks/base/media/libmedia/AudioTrack.cpp:1206: error: 'clearAudioConfigCache' is not a member of 'android::AudioSystem'
make: *** [out/target/product/p990/obj/SHARED_LIBRARIES/libmedia_intermediates/AudioTrack.o] Errore 1
make: *** Attesa per i processi non terminati....
how to fix it?
how to fix this error? http://pastebin.com/m3D1vZQs
OMG, if you dont know how to solve compiler errors learn coding/bug fixing instead
of ask again and again for every **** error on a forum. Do you realy think someone want
to help you to learn programming??? i think no one will do so.
Compiling a rom from source code is not the right toy for bloody beginners, sorry if it
sounds to hard but this is the real life.
andy572 said:
OMG, if you dont know how to solve compiler errors learn coding/bug fixing instead
of ask again and again for every **** error on a forum. Do you realy think someone want
to help you to learn programming??? i think no one will do so.
Compiling a rom from source code is not the right toy for bloody beginners, sorry if it
sounds to hard but this is the real life.
Click to expand...
Click to collapse
bro just let him wait for the reply from someone and learn it the hard way...
why waste ur time????
maybe someone will help him but who knows...
look what I just asked one thing I did not ask that someone help me to solve the bugs! I just want to compile the rom! isn't that just because you are good you have the right to judge others.
markolino631 said:
look what I just asked one thing I did not ask that someone help me to solve the bugs! I just want to compile the rom! isn't that just because you are good you have the right to judge others.
Click to expand...
Click to collapse
i doesnt said a thing about the one is a bad programmer / another is better. i only
said that its sometimes better to learn things before get started with big projects
that can waste a lot of time. do what you want - its your time, not mine
so I have time to lose! However I managed to compile the cm7 for another phone! I'm having problems with only the cm9 and can't solve it!
Before you try to compile CM9, read Cyanogen's words of wisdom
perseus0807 said:
Before you try to compile CM9, read Cyanogen's words of wisdom
Click to expand...
Click to collapse
thats sooo true.
I read what is written and I understand that to compile the rom you need to develop but still do not know (I have only 15 years old)! However, I still try and just wondering if anyone can help me understand!
I can read code, but I can't code. Let me try to point you in a good direction, it has to do with the audio system.
Sent from my LG-VM670 using xda premium

Compile, Compiler for newbies... like me

Please...
Maybe we can do some little workshop for absolute beginners...
Builds take up to 4h now
Click to expand...
Click to collapse
After I have read this...
Can someone please post more about creation/compile time?
How to increase Speed of compile?
Only PC Hardware?
Compiler?
Linux or Win as OS for Compiler?
Thanx in advance.
Best Regards
I think that how faster the CPU how faster it builds, and I think that more ram also decrease build time? in combo with CPU
and your internet download speed, you must download files
There are hundreds of tutorials howto compile kernel/platform around on XDA. Really it's just matter of using Search.
Building up kernel can take around 5min~2h, building platform can take around 30min~8hours. Everything depends on amount of RAM and CPU cores u got, I'm building up kernel in around 10minutes and platform in about 1h 30mins, got some laptop intel i7 + 4GB RAM. There's way to speedup platform compilation using CCACHE, but it costs alot of disk space.
Compiling is impossible under Windows, even with Cygwin it would be hard to achieve. I'd recommend Ubuntu 10 or 11 (rather avoid 12). Mac will do too.
Compiling is impossible under Windows...
Click to expand...
Click to collapse
Maybe if I have time... this year... I will try to boot somewhere Linux...
Forgotten... maybe last time Suse loooong time ago installed...
Maybe 4 or 5 years ago...
I am Win Fanboy...
Really it's just matter of using Search.
Click to expand...
Click to collapse
I have not sooo much time for research by my self...
So I thought if we have soo many users in wait status...
They could translate for me in easy words...
Anyway... why not make Workshop for S8500 ...
If for each Android handset many Tutorails exists...
Then easier copy and paste and replace I9000 by S8500 if mandatory...
Not our main Devs...
I mean our enthusiastic waiters...
We have more then 10 users in this Android section... I hope...
Best Regards
I'd recommend Ubuntu 10 or 11 (rather avoid 12). Mac will do too.
Click to expand...
Click to collapse
http://www.ubuntu.com/download
Lesson 1...
Download Ubuntu...
Where to find recomended Version 10 or 11
Thanx in advance.
Best Regards
Why not Ubuntu 12.04 ?
Is there any problem with it ?
@adfree
Here you cand download any version you want
http://releases.ubuntu.com/
Sorry, you are limited to 8 thanks per day
Click to expand...
Click to collapse
Thanx cyber kamikaz
Maybe we could collect all Links to need files/Compiler etc...
Thanx in advance.
Best Regards
adfree said:
Maybe we could collect all Links to need files/Compiler etc...
Click to expand...
Click to collapse
There is a small tutorial made by Mike to install all the applications you need and to compile the sources from his repository
http://polishblood.pl/?page_id=9
I'm not sure if it's also for wave.
yakub234go said:
Why not Ubuntu 12.04 ?
Is there any problem with it ?
Click to expand...
Click to collapse
Many people, including me are experiencing various issues in Ub 12. These are usually fixable simple way but always... it's annyoing.
I would recommend you to use Ubuntu 11.
And download Code Sourcery 2009 which is mandatory for this badadroid project.
And here is a pretty good guide for you,
Link: http://forum.xda-developers.com/showthread.php?t=1186409
That tutorial includes the guide to install Ubuntu also.
If you get stuck anywhere post here or just PM me, i will try to do my best
A note on CodeSourcery2009 - it also isn't fully compatibile with our sourcetree and may fail during compiling WLAN drivers. I switched to AOSP toolchain lately and it works like charm. HOWTO there
http://source.android.com/source/building-kernels.html
New year, new attempt...
Maybe someone else is now able to compile own zImage and can give step by step instructions for noobs... like me.
Screenshots allowed.
Also hints how to download sources are welcome. :angel:
Also links etc... feel free to write most usefull hints.
Thanx in advance.
Best Regards
adfree said:
New year, new attempt...
Maybe someone else is now able to compile own zImage and can give step by step instructions for noobs... like me.
Screenshots allowed.
Also hints how to download sources are welcome. :angel:
Also links etc... feel free to write most usefull hints.
Thanx in advance.
Best Regards
Click to expand...
Click to collapse
I think that you are asking too much and maybe it is time to make the guide yourself . For some devices you can find this kind of "spoon fed" guide, but for most devices you have to figure out how to do most of this your self. The spoon feeding guides can be really helpful depending on how close they are to your own device, but you will actually have to search for them. Another great place to start is xda-university. It took me a few minutes to find this: http://xda-university.com/as-a-developer/getting-started-building-a-kernel-from-source Perhaps this is would be a good place to start....
Need 64bits Linux
Maybe this would help http://source.android.com/source/building.html
adfree said:
New year, new attempt...
Maybe someone else is now able to compile own zImage and can give step by step instructions for noobs... like me.
Screenshots allowed.
Also hints how to download sources are welcome. :angel:
Also links etc... feel free to write most usefull hints.
Thanx in advance.
Best Regards
Click to expand...
Click to collapse
I can make such a TUT & will make one once i got free time
Best Regards
1 "problem" fixed...
"Working" with GitHub files...
If you follow 1 post in this Thread...
http://forum.xda-developers.com/showthread.php?t=1851818
FAQ IS RIGHT HERE, CLICK AND READ BEFORE POSTING
Click to expand...
Click to collapse
Clickclick... then you are here:
http://code.google.com/p/badadroid/wiki/FrequentlyAskedQuestions
Left site... Project Repositories Updated May 2, 2013
http://code.google.com/p/badadroid/wiki/ProjectRepositories
For instance Kernel... aka zImage...
Kernel GIT repository
https://github.com/Rebell/android_kernel_samsung_wave/
I swear I have not ever seen this ZIP Icon... maybe drunken or drugs or blind or braindead or all things together.
I thought only for registered users... but no Account needed to Download all files with 1 click.
My downloaded file android_kernel_samsung_wave-jellybean.zip is 124 MB big...
Later I will check how big is Platform repository...
Best Regards
http://forum.xda-developers.com/showthread.php?t=2276481
:good:
Thanx mylove90
Thanx Tigrouzen
I need more time for my Linux test PC... because 64 bit seems mandatory...
Meanwhile after I saw this today...
If you look into about phone you will notice that compile date is 8 May
Since that time i was trying several stuff like adding SmartassV2 governor but now my sources are corrupted !
I was trying to commit the changes on my repo but it didn't appear :S
Click to expand...
Click to collapse
Again few stupid questions...
Backup/Safety related...
1.
If 10 GB uncompressed is downloaded...
Someone tried to compress/Zip source ?
Maybe as ZIP archive less then 1 GB...
Then maybe not the latest Version, but better then downloading 10 GB ever and ever again...
2.
How to achieve Full Download of 10 GB as Windows Fanboy?
First success with 120 MB Zip was here:
http://forum.xda-developers.com/showpost.php?p=41350507&postcount=18
Is here 1 Button for Windows user...
Thanx in advance.
Best Regards
Adfree
You can download the sources but you have to understand how local_manifest.xml does it
But why to bother doing that while you can't compile on windows ?!
The sources downloaded are compressed already....just try to follow the TUT and you will find out that there is .repo folder with compressed sources downloaded
I guess i am just too noobish to Linux and don't understand how to fix my sources yet
Currently my main issue is time :S....I've to study to pass this year :S
Maybe other experts right here can help us
Best Regards

[Q] Error while building jb aosp

I have been trying for 2 days now to figure out how to fix this error, but I'm stumped.
After choosing my device in the 'lunch' menu, I receive this:
Build/core/config.mk:145:***no config file found for TARGET_DEVICE. Stop.
I have seen this error here and there while searching, but no one seems to have an answer on how to fix it. I have the vendorsetup file (I say that because that's the only info I get from people is 'make a file named vendorsetup.mk and add this to it'). I have synced sbrissens fascinate and aries-common repo files, and no matter what I do, it fetches the same error.
Any help would b much appreciated. I'm at my wits end here. This is driving me nuts! (Not that i get the error, but that I can't seem to find a fix ANYWHERE)
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
triptosyll said:
I have been trying for 2 days now to figure out how to fix this error, but I'm stumped.
After choosing my device in the 'lunch' menu, I receive this:
Build/core/config.mk:145:***no config file found for TARGET_DEVICE. Stop.
Click to expand...
Click to collapse
Hi
I assume you're adding extra devices into the aosp lunch menu. All the info for finding out what's wrong is in the error message; Have you had a look at line 145 in build/core/config.mk? On my JB AOSP tree it's a check for BoardConfig.mk. At a guess I would say you are missing a BoardConfig.mk, It'd be useful if you could link to the device repo you are using
Hope that Helps
trevd said:
Hi
I assume you're adding extra devices into the aosp lunch menu. All the info for finding out what's wrong is in the error message; Have you had a look at line 145 in build/core/config.mk? On my JB AOSP tree it's a check for BoardConfig.mk. At a guess I would say you are missing a BoardConfig.mk, It'd be useful if you could link to the device repo you are using
Hope that Helps
Click to expand...
Click to collapse
Yes I added a device. And yes that's what mine is checking for too. That's why this is so confusing. I HAVE a boardconfig.mk file. It just won't seem to find it....
Here's the repo I used. Its sbrissens. It has some common files with other carrier variants, so I got the aries-common files from his repo, and the fascinatemtd files too:
https://github.com/sbrissen/android_device_samsung_fascinatemtd
That's JUST his fascinatemtd files. I have downloaded the jb branch of the aries-common files too. If u want a look at those, they're on his repo page too.
Thanks for getting back to me. I can't seem to get anyone to help. My posts get buried beneath a bunch of others' that by the time the op for the guide I'm using gets online to help out, my post is buried and most of the time isn't seen.
:thumbup::thumbup:
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
triptosyll said:
Thanks for getting back to me. I can't seem to get anyone to help. My posts get buried beneath a bunch of others' that by the time the op for the guide I'm using gets online to help out, my post is buried and most of the time isn't seen.
:thumbup::thumbup:
Click to expand...
Click to collapse
Not a problem, It took me a while to get a build that would boot on a device, it's a case of reading, then reading some more, the android building google group is a useful resource.
I've just clone the repo you linked to and successfully "lunched" it, looks like there's some hardcoded paths in there.
so you'll want to use device/samsung/fascinatemtd as the path for the device files.... It still doesn't build as it needs some vendor specific files etc, but that's your adventure.
Whenever you run into build problems the *.mk files tell all. It might be useful to read up on what it takes to add a new device as that will give you an insight into how the build system "glues" together.
Good Luck
trevd said:
Not a problem, It took me a while to get a build that would boot on a device, it's a case of reading, then reading some more, the android building google group is a useful resource.
I've just clone the repo you linked to and successfully "lunched" it, looks like there's some hardcoded paths in there.
so you'll want to use device/samsung/fascinatemtd as the path for the device files.... It still doesn't build as it needs some vendor specific files etc, but that's your adventure.
Whenever you run into build problems the *.mk files tell all. It might be useful to read up on what it takes to add a new device as that will give you an insight into how the build system "glues" together.
Good Luck
Click to expand...
Click to collapse
So could my problem b that I downloaded the files from his repo as a .zip, instead of cloning it with terminal? Cuz if that doesn't do it, I don't know why it won't lunch for me. I pulled them as a zip, unzipped it and placed it in device/samsung/ fascinatemtd. Should I try it with the terminal instead?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
triptosyll said:
So could my problem b that I downloaded the files from his repo as a .zip, instead of cloning it with terminal? Cuz if that doesn't do it, I don't know why it won't lunch for me. I pulled them as a zip, unzipped it and placed it in device/samsung/ fascinatemtd. Should I try it with the terminal instead?
Click to expand...
Click to collapse
Shouldn't really make any difference unless your permissions are at fault, I tend to live in a bash shell anyway so from your aosp tree something like this might do the trick
Code:
cd device/samsung
git clone https://github.com/sbrissen/android_device_samsung_fascinatemtd.git fascinatemtd
cd ../..
source build/envsetup.sh
lunch full_fascinatemtd-userdebug
If your still having problems though I would first make sure you can lunch one of the standard AOSP options and also make sure your using bash as I think the build system has some bashism in it.
trevd said:
Shouldn't really make any difference unless your permissions are at fault, I tend to live in a bash shell anyway so from your aosp tree something like this might do the trick
Code:
cd device/samsung
git clone https://github.com/sbrissen/android_device_samsung_fascinatemtd.git fascinatemtd
cd ../..
source build/envsetup.sh
lunch full_fascinatemtd-userdebug
If your still having problems though I would first make sure you can lunch one of the standard AOSP options and also make sure your using bash as I think the build system has some bashism in it.
Click to expand...
Click to collapse
May I ask u one thing? In your little script u wrote out for me to do, the part that says cd ../.., which directory are u talking about? The WORKING_DIRECTORY?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
triptosyll said:
May I ask u one thing? In your little script u wrote out for me to do, the part that says cd ../.., which directory are u talking about? The WORKING_DIRECTORY?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
Click to expand...
Click to collapse
Yeah he is...go back to whatever your working directory is named...he said ../.. cause he wasn't sire what you named yours
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Yeah he is...go back to whatever your working directory is named...he said ../.. cause he wasn't sire what you named yours
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Nice! Thanks guys. I'll delete the files I had, and do a github clone, see if it works. And try lunching another one of the choices, see if it will work. I'll report back in prolly around an hour.
Thx a lot guys!
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
Dammit! My internet just went down. I'll get back to u when I can clone sbrissens github. Thanks for the help guys. I'll let u know how it goes when my 'net's back up and running.
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
So, I did sync sbrissens github.....still the same error. Then I tried number 1- full_eng....same error.
Tried crespo....same error. Every lunch option gives me that error. Now I'm REALLY lost. I have no idea what the problem is. Any help?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
triptosyll said:
So, I did sync sbrissens github.....still the same error. Then I tried number 1- full_eng....same error.
Tried crespo....same error. Every lunch option gives me that error. Now I'm REALLY lost. I have no idea what the problem is. Any help?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
Click to expand...
Click to collapse
You've got me buddy, not a clue what you've done I'd be tempted to write that one off as a bad job and start again..... I wouldn't worry about syncing the fascinate repo's at first just make sure you can get a clean AOSP build..... Just for reference Google's Guide to Building the AOSP although your probably already following that.
It' is very much one step at a time with this until you get an idea of what lives where and how it all fits. I must admit it did take me a good couple of go's before I got it right myself, Thank <insert deity here> for unlimted bandwidth.
trevd said:
You've got me buddy, not a clue what you've done I'd be tempted to write that one off as a bad job and start again..... I wouldn't worry about syncing the fascinate repo's at first just make sure you can get a clean AOSP build..... Just for reference Google's Guide to Building the AOSP although your probably already following that.
It' is very much one step at a time with this until you get an idea of what lives where and how it all fits. I must admit it did take me a good couple of go's before I got it right myself, Thank <insert deity here> for unlimted bandwidth.
Click to expand...
Click to collapse
Yeah, but the LAST thing I wanna do is resync the repo. That takes SO damned long. That's all I can do tho isn't it? If I wanna start over? Delete the source, and re sync it?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
triptosyll said:
Yeah, but the LAST thing I wanna do is resync the repo. That takes SO damned long. That's all I can do tho isn't it? If I wanna start over? Delete the source, and re sync it?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
Click to expand...
Click to collapse
Unless you want to get deep inside the animals, so to speak, but I think at this stage you're probably best off starting again otherwise you may "waste" a good couple of hours chasing errors, you'll probably learn a thing or two along the way it all depends how you look at it really, every cloud etc...... I suppose you could just try deleting your WORKING_DIRECTORY/device directory and just resync that to begin with. see if that cures what ale's ya', I find repo sync -j16 speeds things up a little as well
No need to resync the repo at all. All your changes are topical. You can run a "repo forall -c "git reset HARD"".
You can also do something else. Go into your repo path folder. Hit control h to show hidden files. Ctrl a selects them all then unselect the .repo folder by holding Ctrl while clicking on it. Delete all the folders and open your terminal. Do a repo sync. Only this time you are not downloading 7 gigs of stuff. Everything already exists in that .repo folder. Removing all and resyncing just refreshes everything.
Sent from my Galaxy Nexus using xda premium
lithid-cm said:
No need to resync the repo at all. All your changes are topical. You can run a "repo forall -c "git reset HARD"".
You can also do something else. Go into your repo path folder. Hit control h to show hidden files. Ctrl a selects them all then unselect the .repo folder by holding Ctrl while clicking on it. Delete all the folders and open your terminal. Do a repo sync. Only this time you are not downloading 7 gigs of stuff. Everything already exists in that .repo folder. Removing all and resyncing just refreshes everything.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
That's kinda funny u just posted that, cuz I was just looking at your cm compiler thread, and saw the link to the compile jb on Ubuntu thread, where u explained how to do that.
I just left this thread to go back to ur cm compiler thread to get that link and bring it back here and post it.
http://forum.xda-developers.com/showpost.php?p=29148373&postcount=593
Good timing man. And thanks for the help guys. In a day at most, I'll get back to ya on how it went. Thank u thank u thank u!!
:thumbup::thumbup::thumbup:
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
lithid-cm said:
No need to resync the repo at all. All your changes are topical. You can run a "repo forall -c "git reset HARD"".
You can also do something else. Go into your repo path folder. Hit control h to show hidden files. Ctrl a selects them all then unselect the .repo folder by holding Ctrl while clicking on it. Delete all the folders and open your terminal. Do a repo sync. Only this time you are not downloading 7 gigs of stuff. Everything already exists in that .repo folder. Removing all and resyncing just refreshes everything.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Thanks, a lesson in repo commands is in my future I think :laugh:.... Yeah Don't listen to me, listen to this man! :good:.
trevd said:
Thanks, a lesson in repo commands is in my future I think :laugh:.... Yeah Don't listen to me, listen to this man! :good:.
Click to expand...
Click to collapse
Lithid's the MAN!!
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
And check out that link. He explains it in repo commands in the link. :thumbup:
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
Hey guys, quick question. I said earlier how there are some common files I need too, do those common files go in /device/Samsung? Or in /device/Samsung/fascinatemtd?
________________________________
Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

CVE-2013-2094 exploit ported to android

symantec.com/connect/blogs/linux-kernel-exploit-ported-android
Can anyone patch the 3.0.x sources? there is a module that fix this arighi.blogspot.com.es/2013/05/linux-perfevents-root-exploit-cve-2013.html . When 3.4 sources go out whould need fix also...
Sorry for my poor english.
Salud.
agises said:
symantec.com/connect/blogs/linux-kernel-exploit-ported-android
Can anyone patch the 3.0.x sources? there is a module that fix this arighi.blogspot.com.es/2013/05/linux-perfevents-root-exploit-cve-2013.html . When 3.4 sources go out whould need fix also...
Sorry for my poor english.
Salud.
Click to expand...
Click to collapse
If any dev here have NDK configured (my damn Internet is to slow to download Eclipse C++ extension) and is willing to spare some time on compiling the exploit, here is the code : https://github.com/hiikezoe/break_setresuid
Cheers
wolf849 said:
If any dev here have NDK configured (my damn Internet is to slow to download Eclipse C++ extension) and is willing to spare some time on compiling the exploit, here is the code : https://github.com/hiikezoe/break_setresuid
Cheers
Click to expand...
Click to collapse
no, this is not... it's only the basic exploit....
here is the complete one... (same dev BTW)
https://github.com/hiikezoe/android_run_root_shell
stormtrooper_mx said:
no, this is not... it's only the basic exploit....
here is the complete one... (same dev BTW)
https://github.com/hiikezoe/android_run_root_shell
Click to expand...
Click to collapse
Thanks, you are right. I was so tired yesterday that I misinterpreted the branches.
But I am afraid that it will need some basic modification, as it seem to be written for Xperia.
wolf849 said:
Thanks, you are right. I was so tired yesterday that I misinterpreted the branches.
But I am afraid that it will need some basic modification, as it seem to be written for Xperia.
Click to expand...
Click to collapse
as far as i have seen, it has some addresses for some phones, but, if the phone doesn't match those, it tries to autodetect the correct address for perf_events proc.
i tried to compile it, but i get some errors that i can't fix..... yet.... (i'm not a prof dev)
if someone can help, please do it... i want root on my unrootable phone: NEC MEDIAS 101T, android 2.3.5 (with perf_events enabled) kernel 2.6.35.7-perf
error at building the code
wolf849 said:
Thanks, you are right. I was so tired yesterday that I misinterpreted the branches.
But I am afraid that it will need some basic modification, as it seem to be written for Xperia.
Click to expand...
Click to collapse
Hi,
I wanted to test this exploit on my Xperia phone.
I went through the whole progress, but now when I wanted to 'ndk-build' the file, I got an error and have no clue what I did wrong.
Here's what I did:
Code:
[B]/android_run_root_shell#[/B] ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
make: /home/<username>/build/core/build-local.mk: No such file or directory
make: *** No rule to make target `/home/<username>/build/core/build-local.mk'. Stop.
<username> is my username on the computer ofcourse . I run with privileged rights (root).
Any idea how to fix this? I have no dev skills AT ALL, so I just follow tutorial if I want to try something.
thanx in advance!

How to push a frameworks_base to a new repo? To big size error

Hello friends from XDA! I have a problem when try push a framework base repo (2.5GB). Always i get an advice about size, maybe have files too bigs. I saw a lot of source code ROM with their repos pushed, but i cant find the way. Someone has done? Thank you!
kjjjnob said:
Hello friends from XDA! I have a problem when try push a framework base repo (2.5GB). Always i get an advice about size, maybe have files too bigs. I saw a lot of source code ROM with their repos pushed, but i cant find the way. Someone has done? Thank you!
Click to expand...
Click to collapse
On GitHub? I did this just some hours ago actually, I only got a warning about one file being over recommended size of 50MB (some test MP4).
Make sure you are using SSH, not HTTPS.

Categories

Resources