1. Download our Official Android App: Forums for Android!

Root [Boost Mobile] Deving under *nix

Discussion in 'Android Devices' started by Blyss, Jul 26, 2013.

  1. Blyss

    Blyss Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    332
    Joined:
    May 24, 2013

    May 24, 2013
    332
    230
    68
    So here's a question. You guys know by now that before I was developing a B08C based rom and now I'm gonna base one on droidsmith. Here's the question:
    Before I was on Windows 7 using the customary Windows based tools.

    Now my main box is running Kubuntu 13.04. I supposed I could always run the windows stuff under Wine(like im doing for my IDE for FreeBASIC) but I bet there's a better way.

    My box HAS to run linux, it still has no hard drive(remember that old laptop with no cooling and no hard drive? That's mine now. Booting off of a 16GB SD card with a house fan aiming straight on it for cooling). I actually followed some internet directions and made a Windows XP install disc that will install to flash media, but it's SLOW off the flash drive. That card is a class 4. Kubuntu runs smooth as silk off of it. Windows is like autistic. So Kubuntu it is. This Windows 8 laptop is just not available often enough for my deving needs.

    So what's the preferred ROM deving setup under linux?
     

    Advertisement

  2. smartmanvartan

    smartmanvartan Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,372
    Joined:
    Sep 28, 2012

    Sep 28, 2012
    1,372
    632
    223
    Male
    Business owner
    Montreal, Canada
    Oh my goodness... the windows tools are secondary to the linux tools... welcome to fun town!

    DSIXDA android kitchen is a must.
    apktool of course
    ARK is useful for unpacking ramdisk
    Gimp
    The only thing i find easier on windows is the apk decompiling and recompiling... for everything else its all linux! :)
     
    Blyss and LilBit like this.
  3. LilBit

    LilBit Extreme Android User
    Rank:
    None
    Points:
    533
    Posts:
    5,865
    Joined:
    Sep 1, 2012

    Sep 1, 2012
    5,865
    3,308
    533
    Female
    U.S.A.
    :thumb:
     
  4. Blyss

    Blyss Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    332
    Joined:
    May 24, 2013

    May 24, 2013
    332
    230
    68
    BTW I've never been a fan of GIMP... unless they've updated the UI in the last few years I will do my artwork in paint.net for windows
     
  5. mercury0x000d

    mercury0x000d The ultra-modern operator
    Rank:
     #58
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    Paint.NET is the best! :D I did the Alliance artwork using it exclusively.
     
  6. Skinnyjeans21

    Skinnyjeans21 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    2,617
    Joined:
    Oct 25, 2012

    Oct 25, 2012
    2,617
    1,796
    333
    Male
    High School Senior and Professional Sleeper
    Houston, TX
    Uh, since Android Kitchen was mentioned.... I can't seem to get a working folder set up :( I have everything set up correctly, cygwin is installed, everything is in the proper directories, but I can't build a working folder no matter what. Any help on this?
    EDIT: It just keeps saying that I can't create a working folder from it because its an update.zip, not a full rom... dunno if I have to convert the updater-script to an update-script for it to work?
     
  7. smartmanvartan

    smartmanvartan Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,372
    Joined:
    Sep 28, 2012

    Sep 28, 2012
    1,372
    632
    223
    Male
    Business owner
    Montreal, Canada
    what is cygwig? is that part of the set up in windows?
     
  8. Skinnyjeans21

    Skinnyjeans21 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    2,617
    Joined:
    Oct 25, 2012

    Oct 25, 2012
    2,617
    1,796
    333
    Male
    High School Senior and Professional Sleeper
    Houston, TX
    Yeah, I already tried dual booting a linux distro on my laptop, but its got a weird partitioning set-up since its an HP (idk what went through their heads while doing all this...), and apart from that I can't boot from usb for some unknown reason, even though I know I burned to my USB correctly. I had no choice but to use cygwin and Windows... this would've been so much easier on linux though.
     
  9. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ

    Just unzip your Tom in a folder called WORKING. That's all you need.
     
    Blyss likes this.
  10. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ

    DS was built 100% on a debian system. Apktool, smali, and baksmali are about to become your best friends. If you want a slightly more automated approach than apktool provides you can always use APK-Manager. Its a shell script for apktool and signapk.jar
     
    Blyss likes this.
  11. mercury0x000d

    mercury0x000d The ultra-modern operator
    Rank:
     #58
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    Yes, you do have to convert - otherwise you'll encounter little issues like that throughout your build. If you need a hand, send me a PM and I can set it up for you with TeamViewer.
     
    Skinnyjeans21 likes this.
  12. smartmanvartan

    smartmanvartan Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,372
    Joined:
    Sep 28, 2012

    Sep 28, 2012
    1,372
    632
    223
    Male
    Business owner
    Montreal, Canada
    Teamviewer is awesome! I wish they actually had a linux version of it...
     
  13. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ
    One of these days I'm going to have to run windows, so I know what things like team viewer is lol
     
  14. mercury0x000d

    mercury0x000d The ultra-modern operator
    Rank:
     #58
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

  15. Skinnyjeans21

    Skinnyjeans21 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    2,617
    Joined:
    Oct 25, 2012

    Oct 25, 2012
    2,617
    1,796
    333
    Male
    High School Senior and Professional Sleeper
    Houston, TX
    If its all the same with you, I'd rather do it myself or else I wouldn't really learn anything :eek: otherwise if I get another laptop (which is bound to happen in a couple of months) I'm not gonna know exactly how to set it up. Sorry. .
     
  16. mercury0x000d

    mercury0x000d The ultra-modern operator
    Rank:
     #58
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    Hey, no problem, I totally understand! I tend to want to do things like that too. For example, when I was integrating the "deeper" features of Warp OEM, I did all the necessary steps myself, like translating the examples from the tut I was following to the Smali found on the Warp, and things like that. Sure, I could've started with a base with all the tweaks already done for me - and by no means am I faulting those that take that route! - but what would I have learned? How much more could I have learned if I did it on my own?

    I do that in my own coding projects, too. Even if there happens to be a library I could add to give me access to a certain feature, I'd rather write my own code to do the job.
     
  17. Skinnyjeans21

    Skinnyjeans21 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    2,617
    Joined:
    Oct 25, 2012

    Oct 25, 2012
    2,617
    1,796
    333
    Male
    High School Senior and Professional Sleeper
    Houston, TX
    Yeah that's what I did when BLVCKHVLO gave me his rom, the Wi-Fi tethering smali file was already in the rom but it wasn't integrated into the settings menu, and even though he said he'd integrate it, I just went ahead and poked through DS and WOEM to see how everything is set up, then I added wifi tethering myself, so now I know how to add things in to settings when necessary. Besides I like learning so either way I'm gonna end up doing things the hard way to learn how it works :)
     
  18. smartmanvartan

    smartmanvartan Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,372
    Joined:
    Sep 28, 2012

    Sep 28, 2012
    1,372
    632
    223
    Male
    Business owner
    Montreal, Canada
    I know about this but have you used it? its teamviewer for windows with wine in a package.. and it only works as a viewer not a server... :(
     
  19. mercury0x000d

    mercury0x000d The ultra-modern operator
    Rank:
     #58
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    Nope, can't say I have... that's a kinda weird way to go about things...
     
  20. Blyss

    Blyss Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    332
    Joined:
    May 24, 2013

    May 24, 2013
    332
    230
    68
    If it's HP it probably has a recovery partition, size should be around 30-50 gigs. Then if it's Win 7 or 8(not sure about Vista, but probably that too) the bootloader is kept on a separate partition, should be about 128mb. After that you should have your main OS partition in the amount of how ever much space you have left.

    As far as booting from USB, did you check in the bios and make sure it was able to boot from USB. Should be able to find something like boot order where it lists your cdvd, hdd, usb, network as possible boot options. You can set usb to be the first one and then it will always boot to usb if it's available and a suitable drive in place.

    Alternatively you can usually mash a button during the POST(power on self test) to bring up a menu called something like "Boot device selector" and choose your USB from there when you want to boot from it. In my case it's F12, but that's on an Acer. If you have no boot splash it should say what button it is as the bottom of the screen for 3-5 seconds when your screen first powers on. Also it probably says in your manual.

    If you don't do EITHER of those things, and if your HDD is set to higher priority in your bios than your USB, then you will never boot to USB. Unless you take your HDD out lol.

    Also, cygwin is a pain IMO.
     
  21. Blyss

    Blyss Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    332
    Joined:
    May 24, 2013

    May 24, 2013
    332
    230
    68
    Since we are all speaking the linux language here, here's my question. I've been doing some programming in FreeBASIC lately. The compiler is multi platform, so that's not a problem. But the IDE I've been using for year is Windows only. Now, it run's under wine. Of course being an IDE I can compile from it. However if I point set my compiler path to the linux compiler, it doesn't play nice and won't work. So right now I've set it to point to the windows version of the compiler and that's working but it's laggy since the IDE is in wine, launches the compiler in wine, and then of course it makes a Windows binary so that launches in Wine too. I fear as my app grows more complicated this is gonna be a bottleneck. Any ideas on getting a Windows based IDE running in Wine to point to a linux version of the compiler, and launching a linux binary?
     
  22. Dm47021

    Dm47021 Android Expert
    Rank:
    None
    Points:
    323
    Posts:
    1,472
    Joined:
    Nov 26, 2011

    Nov 26, 2011
    1,472
    2,115
    323
    Male
    tech.
    coloma mi
    you can use android kitchen to unpack ramdisk aswell, also compiling / decompiling apk is pretty simple. apktool d Settings.apk Settings.out
     
  23. Dm47021

    Dm47021 Android Expert
    Rank:
    None
    Points:
    323
    Posts:
    1,472
    Joined:
    Nov 26, 2011

    Nov 26, 2011
    1,472
    2,115
    323
    Male
    tech.
    coloma mi
    Geany : Releases


    multi platform ide for freebasic... have to compile it.. i may compile for you, and send you a .deb file
     
    Blyss and jimsmith80 like this.
  24. Dm47021

    Dm47021 Android Expert
    Rank:
    None
    Points:
    323
    Posts:
    1,472
    Joined:
    Nov 26, 2011

    Nov 26, 2011
    1,472
    2,115
    323
    Male
    tech.
    coloma mi
    Here ya go. i compiled a .deb installer package for you. should make it alot easier since you dont have to compile it yourself.

    DOWNLOAD HERE: Geany-1.23.1-1-amd64-dm47021

    this is for 64-bit systems
     
    Blyss and smartmanvartan like this.
  25. smartmanvartan

    smartmanvartan Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,372
    Joined:
    Sep 28, 2012

    Sep 28, 2012
    1,372
    632
    223
    Male
    Business owner
    Montreal, Canada
    Can't wait to see it!
     

Share This Page

Loading...