Porting CWM how to Extract stock Recovery image? - General Questions and Answers

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:.

Related

PC broke so no odin now what?

My PC crashed on me and its so old I dont think I want to repair it. I have a powermac G4 so I cant even download heimdall because its only for intel based Macs. Ive quickly learned the ins and outs of flashing. I couldnt tell you the last time I bricked my cappy but now that I dont really have an option to recover I dont really want to take any chances. Is there a third option incase **** happens? I really dont want to get a new computer because my G4 is fast enough for the websurfing I do.
Phone a friend?
Sent from my Captivate
curti.nogg said:
Phone a friend?
Sent from my Captivate
Click to expand...
Click to collapse
+100000000
10chars.
Smallsmx3 said:
My PC crashed on me and its so old I dont think I want to repair it. I have a powermac G4 so I cant even download heimdall because its only for intel based Macs. Ive quickly learned the ins and outs of flashing. I couldnt tell you the last time I bricked my cappy but now that I dont really have an option to recover I dont really want to take any chances. Is there a third option incase **** happens? I really dont want to get a new computer because my G4 is fast enough for the websurfing I do.
Click to expand...
Click to collapse
I don't have access to a PPC Mac so I haven't had a chance to test this. However I did attempt to develop Heimdall with support for PPC Macs.
You'll have to download the source package and make the following modifications:
In OutboundPacket.h after line 22:
#define OUTBOUNDPACKET_H
Click to expand...
Click to collapse
Add the line:
#define PPC
Click to expand...
Click to collapse
In InboundPacket.h after line 22:
#define INBOUNDPACKET_H
Click to expand...
Click to collapse
Add the same line:
#define PPC
Click to expand...
Click to collapse
Then follow the instructions to compile (don't forget you need the libusb-1.0 SDK) and run Heimdall as usual you should hopefully be able to get Heimdall running on your G4.
Wow thanks! Unfortunately I have no experienc in programming but ill see what I can do
Sent from my SAMSUNG-SGH-I897 using XDA App
Well I can add the lines to both files but have no idea how to compile everything. I know you left instructions but it looks like jibberish to me....lol
Smallsmx3 said:
Well I can add the lines to both files but have no idea how to compile everything. I know you left instructions but it looks like jibberish to me....lol
Click to expand...
Click to collapse
Yeah. If you have no experience whatsoever compiling software then this might be a bit of a stretch.
First you need to install all the build tools. Whilst all of XCode technically isn't necessary, it's easiest if you just install the whole of XCode using the installer. XCode is probably included on your original OS X disk but if not you can download it for free from Apple's website.
Once you've installed XCode you need to install libusb 1.0.8 (http://www.libusb.org/). Then you need to get the Heimdall intel binaries and follow the instructions to install them. The intel binaries obviously won't work but it also makes some other changes which are required.
Then you need to use terminal to navigate (i.e cd) to the directory where you extracted the Heimdall source code. Once there you need to type:
config
make
sudo make install
Click to expand...
Click to collapse
If it complains on the first step, then type the following and retry:
sudo chmod 755 config
Click to expand...
Click to collapse
If you need more help it would be good if you could post in the Galaxy S Heimdall thread so other users can easily find and benefit from the answers I give.
Couldnt he setup a virtualbox with windows XP on it... and then Odin will start working again?
avgjoegeek said:
Couldnt he setup a virtualbox with windows XP on it... and then Odin will start working again?
Click to expand...
Click to collapse
Assuming Smallsmx3 doesn't mind running a virtual machine, then that is indeed a very good point It might work out to be simpler in this particular circumstance.
I have tried to run virtualbox and im positive its for only intel macs. Guest pc is my only option but I think I would have to buy the software and Im not 100% sure that I could even get odin working through guest pc. I really appreciate the help.

recovering partitioned internal memory

I recently used Frank's Tools to dual boot Ubuntu on my Tablet.
After I later realized it wasn't for me, I used the generic root kit to revert to android only OS.
I now see that my internal memory is only showing as 7.36 gb
I would like to know how I can go about recovering the partitioned memory
I have tried using frank's tools, and choosing android only but it gave me the error
"Nvflash started
nvflash configuration file error: file not found"
Some help would be much appreciated.
There should be a flash.cfg file in there- monkey around with the partition sizes and see if that fixes the issue.
I'm not familiar with Frank's tools, so can't help you there. My wild guess is that the rom files aren't unzipped and in the same folder as the nvflash executables.
You might try to download and flash the nvflash version of Prime or another custom rom since it will have the stock partition sizes.
Hi there go to little stevies thread download olife.sh and set up the enviroment put the rom you want in images boot.img system.img recovery.img
Run olife.sh and go to the option flash then select stock it will resize all the partitions and flash the rom you put in images i usually use the script just for flashing new roms makes sure i get a super clean install
Sent from my tf running krakd warped an twisted 1544mhz Blades kernel
Danzano said:
Hi there go to little stevies thread download olife.sh and set up the enviroment put the rom you want in images boot.img system.img recovery.img
Run olife.sh and go to the option flash then select stock it will resize all the partitions and flash the rom you put in images i usually use the script just for flashing new roms makes sure i get a super clean install
Sent from my tf running krakd warped an twisted 1544mhz Blades kernel
Click to expand...
Click to collapse
I am very new to Linux and don't know much at all about their OS or ubuntu.
I know i can install it and dual boot my PC with ubuntu, or simply just run a VM of ubunt on my PC.
All i know to do in Ubuntu us open up the terminal by hitting Ctrl+alt+f i beleive
Can anyone show me a step by step way of doing so?
Stevies thread asumes you have knowlege of ubuntu, but I just don't.
Even better has anyone been able to acomplish this with windows?
SomethinAmazinn said:
I am very new to Linux and don't know much at all about their OS or ubuntu.
I know i can install it and dual boot my PC with ubuntu, or simply just run a VM of ubunt on my PC.
All i know to do in Ubuntu us open up the terminal by hitting Ctrl+alt+f i beleive
Can anyone show me a step by step way of doing so?
Stevies thread asumes you have knowlege of ubuntu, but I just don't.
Even better has anyone been able to acomplish this with windows?
Click to expand...
Click to collapse
You can have ubuntu run next to windows just download the wubi version from the website it lets you have dualboot and if you get sick of ubuntu you can just uninstall it like any other win program.
As for the steps to setting up there are 1000 youtube vids on how to set up adb etc on ubuntu and there very easy to follow
Once you have watched a few of those videos you will have a folder in your home folder called platform-tools thats where all the good stuff goes for android and thats where lil stevies thread pics up from..
I was completly new to linux and android when i got my gt540 but after 2-3days i was happy flashing and modding and now with my tf doing even more with the system.
If you have a little patience and dont mind watching a few youtube vids you can get the whole lot set up and done and ready for future use in an hr or so
Understanding it or what your doing is the part that will take 2-3 days lol
Sent from my tf running krakd warped an twisted 1544mhz Blades kernel
Thanks so much Danzano.
You really helped me out alot. I installed Ubuntu like you suggested, and was able to safely remove the ubuntu partition from my tf's internal memory.
SomethinAmazinn said:
Thanks so much Danzano.
You really helped me out alot. I installed Ubuntu like you suggested, and was able to safely remove the ubuntu partition from my tf's internal memory.
Click to expand...
Click to collapse
All good mate it comes in handy alot for work on the tf and other bits and pieces
Sent from my tf running krakd warped an twisted 1544mhz Blades kernel

[Q] Android Kitchen "gcc not installed" error

Okay this is REALLY freakin' irritating!!
I have been itching to cook up my own ROM in the kitchen...BUT I CAN'T EVEN USE IT!
I have tried installing it, multiple times (deleting everything each time to start fresh), and follow all instructions to the "T", and every single time I open Cygwin (after putting in the kitchen and renaming it) and "cd kitchen" enter "./menu", it always comes up saying "Error: The application 'gcc' is not installed - the kitchen will not function properly without it. Ensure you did not miss a step during installation! Refer to the Android Kitchen FAQ...", etc. (I could swear it installed devel > gcc when I installed Cygwin. Even used the Install all option and stuff...)
Checked out the FAQ and everything, but I still can't find it! Everything I try just doesn't work! Can someone please help?? (thank you)
R: [Q] Android Kitchen "gcc not installed" error
Thats weird.....u on ubuntu? As far a s i remember i never had to install gcc it was already there....but i could be wrong.
Uninstall gcc. Go get it from official repo, retry. If it doesn't work this is more of a question for ubuntu forums theyll get anything working on a pc.
Sent from my GT-I9300 using xda app-developers app
Haha, actually I'm using Windows XP Professional. (Though I do have it dual-booted with Zorin OS...)
Yeah and uh...I'm not sure how you would directly uninstall gcc either...
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
R: [Q] Android Kitchen "gcc not installed" error
Wait.....what? Isnt zorin based off ubuntu? Why dont u install android kitchen stuff there?
Sent from my GT-I9300 using xda app-developers app
killbubble said:
Wait.....what? Isnt zorin based off ubuntu? Why dont u install android kitchen stuff there?
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Well, yes. It is.... I just figured it would be a lot more convenient to do everything on Windows instead.
There are times when it seems like things that were designed for Ubuntu don't really seem to work on the zorin distro. In this case, it probably will. I'm not really sure why I can't effectively connect to my phone though when in Zorin...maybe because there is a Kies for linux? I dunno...
I suppose I could try to install it though.
But anyways, more to the point! If cygwin/android kitchen was designed to also work in Windows XP/Vista/7, then why am I getting this error, and how do I fix it?
R: [Q] Android Kitchen "gcc not installed" error
Thats why i use kubuntu. Though i can't answer your question, i do know ubuntu and windows hate each other, getting that stuff to work is gonna probab be a pain.
If zorin has got problems try emulating a small os (so u dont waste too much time) based off linux (lucid puppy linux) and see if that works.
I wouldve thought people would also be modding android stuff directly on windows rather than emulating ubuntu stuff...after all android is open source.
Sent from my GT-I9300 using xda app-developers app
killbubble said:
Thats why i use kubuntu. Though i can't answer your question, i do know ubuntu and windows hate each other, getting that stuff to work is gonna probab be a pain.
If zorin has got problems try emulating a small os (so u dont waste too much time) based off linux (lucid puppy linux) and see if that works.
I wouldve thought people would also be modding android stuff directly on windows rather than emulating ubuntu stuff...after all android is open source.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Okay. Thanks for your suggestions. I may try and either do it on zorin, or repartition with kubuntu or something.
Too bad I can't do it in Windows...
Yeah, it's dumb that we still can't directly modify Android from Windows and have to use Linux. Well, actually, not as much "dumb" as inconvenient. Linux is free, yet it's different. I think we should be able to do it anywhere due to Android being open source.
Oh well... I don't understand why no-one else is having this problem. They have the guides for it on here (beginner's guides to making ROMs and stuff like that), and it seems as though nobody else has had this problem...or nobody even uses Windows. orz
Hopefully someone else will attempt to answer my question. thanks though. <
R: [Q] Android Kitchen "gcc not installed" error
well many developers are also pc fanatics and experiment new oses and grow to like open soyrce/free ones more than windows. many java devs use linux oses. Thats how devs roll. I use c and i like windows so i do it all in windows, but i know the editor/debugging programs are better on ubuntu than those available for windows....still....windows is...too much to shut down at times...
Sent from my GT-I9300 using xda app-developers app
killbubble said:
well many developers are also pc fanatics and experiment new oses and grow to like open soyrce/free ones more than windows. many java devs use linux oses. Thats how devs roll. I use c and i like windows so i do it all in windows, but i know the editor/debugging programs are better on ubuntu than those available for windows....still....windows is...too much to shut down at times...
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
You're probably right. I'm sure I'll be able to get used to it eventually, when I become a full developer. For now though, it's the learning curve. XD
Haha, yeah. That's good though. Windows is definitely enjoyable. (though I can't say much for W8. Ugh.)
So uh, I guess the Android Kitchen definitely works here in Zorin. Went to the menu without any problems. Funny still how it doesn't work in Windows....
You know, I'd probably have just skipped the whole kitchen thing and gone straight to development from source...but I'm not running on a x64 system, and therefore can't work on ICS and JB. :c
Soon though...very soon I will have all the parts to build my new computer, and not have to use this low-power laptop. >m>
Ascyndaeon said:
Okay this is REALLY freakin' irritating!!
I have been itching to cook up my own ROM in the kitchen...BUT I CAN'T EVEN USE IT!
I have tried installing it, multiple times (deleting everything each time to start fresh), and follow all instructions to the "T", and every single time I open Cygwin (after putting in the kitchen and renaming it) and "cd kitchen" enter "./menu", it always comes up saying "Error: The application 'gcc' is not installed - the kitchen will not function properly without it. Ensure you did not miss a step during installation! Refer to the Android Kitchen FAQ...", etc. (I could swear it installed devel > gcc when I installed Cygwin. Even used the Install all option and stuff...)
Checked out the FAQ and everything, but I still can't find it! Everything I try just doesn't work! Can someone please help?? (thank you)
Click to expand...
Click to collapse
My ERROR like ur ERROR.!
What should I do????
moj.enjoy said:
My ERROR like ur ERROR.!
What should I do????
Click to expand...
Click to collapse
Well, if I could go back in time 3 years I would be able to try and help you...I just tried it on Windows 10 here and everything works.
So, follow the instructions as far as even the cygwin_install.txt they provided. You should make sure you install /just/ the gcc-core and gcc-g++ when it tells you to tick the gcc (do not get the "cygwin gcc", idk if that did it, but just get the normal gcc). Follow all the others as well; far as I could tell the linux-util wasn't actually in utils (core instead I think?) but was already ticked, so don't worry about it unless it isn't.
After everything is done, make sure java is good to go and all, and cd to the kitchen location (just put the files in a new file, C:/kitchen/) and change directory to that. Then do the ./menu and it should work....
Also don't bump super old posts, not good. c: Either way I hope this helps. Real simple.
I really have no use for the kitchen anymore, since my GS3 gets CM nightlies (up to marshmallow? Wat!) and I have a Nexus 5X anyway so it's all gucci. But either way...yeah. It works to my knowledge.
Cheers~
(admin close thread nao? or can I do that...)
Ascyndaeon said:
Well, if I could go back in time 3 years I would be able to try and help you...I just tried it on Windows 10 here and everything works.
So, follow the instructions as far as even the cygwin_install.txt they provided. You should make sure you install /just/ the gcc-core and gcc-g++ when it tells you to tick the gcc (do not get the "cygwin gcc", idk if that did it, but just get the normal gcc). Follow all the others as well; far as I could tell the linux-util wasn't actually in utils (core instead I think?) but was already ticked, so don't worry about it unless it isn't.
After everything is done, make sure java is good to go and all, and cd to the kitchen location (just put the files in a new file, C:/kitchen/) and change directory to that. Then do the ./menu and it should work....
Also don't bump super old posts, not good. c: Either way I hope this helps. Real simple.
I really have no use for the kitchen anymore, since my GS3 gets CM nightlies (up to marshmallow? Wat!) and I have a Nexus 5X anyway so it's all gucci. But either way...yeah. It works to my knowledge.
Cheers~
(admin close thread nao? or can I do that...)
Click to expand...
Click to collapse
before ur comment
I found my answer with try and try..!!:laugh:
just setup cygwin again and saearch(gcc) and enable to install.
next ,another error and ...
THX for ur comment.
by the way how to create custom recovery for galaxy?
I'm glad to hear it's working for you! Hope you have great fun with it like I did. ^-^
And for the custom recovery...I say it's not really worth it unless you're really serious and can code. Not sure myself how one would make such a thing that has that access, you probably should ask somebody who's actually made them. Otherwise I strongly recommend either Team Win Recovery Project or ClockworkMod. (I use ClockworkMod, but most say twrp is better)
^-^

HDD space requirement for compiling CM 10.1

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

Battery Status on computer

IGNORE THIS, NEWER VERSION(S) ARE HERE: http://forum.xda-developers.com/android/development/phone-s-battery-status-computer-screen-t3070549
I have made a program to display the percentage of your phone on your computer. Requirements:
Computer that can run bash
USB-to-phone cable
ADB enabled on phone
Has been tested on the following:
LG P716 Jelly bean stock- One Works the other doesn't
LG P716 KitKat - Works
LG P500 with CM11 and rooted- Works
Samsung S3 stock - Doesn't work
Your help is greatly appreciated to porting it to Windows/Mac and adding new devices.
wilk.gr76 said:
I have made a program to display the percentage of your phone on your computer. Requirements:
Computer that can run bash
USB-to-phone cable
ADB enabled on phone
Has been tested on the following:
LG P716 Jelly bean stock- One Works the other doesn't
LG P716 KitKat - Works
LG P500 with CM11 and rooted- Works
Samsung S3 stock - Doesn't work
Your help is greatly appreciated to porting it to Windows/Mac and adding new devices.
Click to expand...
Click to collapse
Don't get me wrong but do you really have a use for it or is it just about improving your development skills ?
LS.xD said:
Don't get me wrong but do you really have a use for it or is it just about improving your development skills ?
Click to expand...
Click to collapse
I do. If I plug my phone in, and then turn on the display to see how far it has charged, the battery percentage is DROPPING! So, I created this. If you want faster charging than your USB port, use ADB over WiFi. But this did help me hone my skills.
wilk.gr76 said:
I do. If I plug my phone in, and then turn on the display to see how far it has charged, the battery percentage is DROPPING! So, I created this. If you want faster charging than your USB port, use ADB over WiFi. But this did help me hone my skills.
Click to expand...
Click to collapse
Pretty cool for that specific purpose I just downloaded the zip and was just about starting my laptop to test it BUT the archive is damaged and i can't extract it May you please check the archive's integrity and upload it again?!
Sure!
LS.xD said:
Pretty cool for that specific purpose I just downloaded the zip and was just about starting my laptop to test it BUT the archive is damaged and i can't extract it May you please check the archive's integrity and upload it again?!
Click to expand...
Click to collapse
Did that! Just make sure you can run bash. Your computer'll need linux or mac os x (not sure about mac)
If it helps, please press thanks.
wilk.gr76 said:
Did that! Just make sure you can run bash. Your computer'll need linux or mac os x (not sure about mac)
Click to expand...
Click to collapse
BASH?! Never heard about it...
Manjaro Linux should be fine for it
LS.xD said:
Pretty cool for that specific purpose I just downloaded the zip and was just about starting my laptop to test it BUT the archive is damaged and i can't extract it May you please check the archive's integrity and upload it again?!
Click to expand...
Click to collapse
It is nice to get feedback so quicly! I expected to have no replies by Sunday, yet I get one in the first 5 mins! "Vielen Dank!" (I saw the german flag by your name...)
LS.xD said:
BASH?! Never heard about it...
Manjaro Linux should be fine for it
Click to expand...
Click to collapse
Open the terminal, and its most likely your using bash. Bourne-Again SHell.
Just wondering, what is the orange "OP" rectangle next to "Junior Member", to the left of my post?
wilk.gr76 said:
Open the terminal, and its most likely your using bash. Bourne-Again SHell.
Just wondering, what is the orange "OP" rectangle next to "Junior Member", to the left of my post?
Click to expand...
Click to collapse
OP = overpowered or may be "Original Poster"
Is it possible that your tool only runs on 32Bit systems? I use 64Bit OS with multilib and no chance to make it fly / run or whatever you like
LS.xD said:
OP = overpowered or may be "Original Poster"
Is it possible that your tool only runs on 32Bit systems? I use 64Bit OS with multilib and no chance to make it fly / run or whatever you like
Click to expand...
Click to collapse
Yes it is built for 32bit systems but you should be able to run it on 64 bit as well. You need to unzip everything of course and make adb and dialog (in the same folder as the script) executable. The command is chmod +x adb && chmod +x dialog
To change it to 64-bit, you'll need to replace the adb and dialog files with the 64-bit versions.
You might need ia32-libs or somthing like that.
Also, OP I think it overpowering. You shall port it to Windows. You shall thank me. LOL, don't have to do it.
wilk.gr76 said:
Yes it is built for 32bit systems but you should be able to run it on 64 bit as well. You need to unzip everything of course and make adb and dialog (in the same folder as the script) executable. The command is chmod +x adb && chmod +x dialog
To change it to 64-bit, you'll need to replace the adb and dialog files with the 64-bit versions.
You might need ia32-libs or somthing like that.
Also, OP I think it overpowering. You shall port it to Windows. You shall thank me. LOL, don't have to do it.
Click to expand...
Click to collapse
Im familiar with chmod Commandline version works well (see signature for phone's setups) while the guy version causes a never ending error output:
libgtk-3.so.0 shared libraries can't be found . All files are present in my Linux so I really have no clue, why i can't open it.
LS.xD said:
Im familiar with chmod Commandline version works well (see signature for phone's setups) while the guy version causes a never ending error output:
libgtk-3.so.0 shared libraries can't be found . All files are present in my Linux so I really have no clue, why i can't open it.
Click to expand...
Click to collapse
Are you using GNOME? You might need to install libgtk. But, like the readme file says, this is bit is still alpha (it's more beta than beta.. If that makes sense).
But if it helped, please press the " Thanks" button
wilk.gr76 said:
Are you using GNOME? You might need to install libgtk. But, like the readme file says, this is bit is still alpha (it's more beta than beta.. If that makes sense).
But if it helped, please press the " Thanks" button
Click to expand...
Click to collapse
Its really weird as the libs "missing" are all installed. I use KDE.
LS.xD said:
Its really weird as the libs "missing" are all installed. I use KDE.
Click to expand...
Click to collapse
It's pretty strange that it used "can't" instead of "cannot". Maybe try using gnome. I dunno, it works on mine.
I'm moving this to a DevDB now.
Has been moved to http://forum.xda-developers.com/and...ter-screen-t3070549/post59841376#post59841376

Categories

Resources