newbie question about directory structure. - myTouch 3G, Magic Android Development

I am trying to understand the purpose of /xbin/ seems like it works exactly the same as /bin/. Is there any benefit to using one over the other to store system binaries?
Thanks,
Obelisk

Do a "ls -l /system"
You will notice the difference in ownership. According to that, the rights will be different.
This has no effect on you, being the root user and all (especially if you are executing through ADB), but from the perspective of your device it does make a difference, i.e. when your device is running as the normal user with ID 1000.
obelisk79 said:
I am trying to understand the purpose of /xbin/ seems like it works exactly the same as /bin/. Is there any benefit to using one over the other to store system binaries?
Thanks,
Obelisk
Click to expand...
Click to collapse

Thanks for the explanation. Learning how to mod my Rom is turning out to be quite the learning experience since I have only a little understanding of the inner workings of Linux and how it is structured.

Related

Speed up your device significantly

UThis actually works so i decided to share with you all
Please choose option 9 that is what I chose and i can see a visible boost on android revolution rom
This is the thread to boosting your device.
http://forum.xda-developers.com/showthread.php?t=991276
If this is the wrong section please move it
And to any rom developer looking at this thread please add this script in your rom
muneebrocks said:
UThis actually works so i decided to share with you all
Please choose option 9 that is what I chose and i can see a visible boost on android revolution rom
This is the they'd to boosting your device.
http://forum.xda-developers.com/showthread.php?t=991276
If this is the wrong section please move it
And to any rom developer looking at this thread please add this script in your rom
Click to expand...
Click to collapse
Moved to General as it is not Development related. and on a side not. No I wont be adding this to any rom I make.
zelendel said:
Moved to General as it is not Development related. and on a side not. No I wont be adding this to any rom I make.
Click to expand...
Click to collapse
Could you elaborate why it actually does speed up the device
muneebrocks said:
Could you elaborate why it actually does speed up the device
Click to expand...
Click to collapse
After running it for a few days, That was after I had to change my good working busybox to an older one that caused issues. I didnt see any change other then it closing apps that it had no point in closing. Android has one of the best memory management systems and its best not to mess with it a bit much. I have had a few people run it on my set up and they ran into the same issues. While I agree that is may work on some roms, it is not for every rom.
zelendel said:
After running it for a few days, That was after I had to change my good working busybox to an older one that caused issues. I didnt see any change other then it closing apps that it had no point in closing. Android has one of the best memory management systems and its best not to mess with it a bit much. I have had a few people run it on my set up and they ran into the same issues. While I agree that is may work on some roms, it is not for every rom.
Click to expand...
Click to collapse
Thank you for the insight it helps me with android revolution rom makes just a bit faster to make all the difference in the world.
muneebrocks said:
Thank you for the insight it helps me with android revolution rom makes just a bit faster to make all the difference in the world.
Click to expand...
Click to collapse
Might want to make sure that it doesnt break any of mike's custom scripts just in case. Speed is great as long as it doesnt sacrifice other things to do it.
zelendel said:
Might want to make sure that it doesnt break any of mike's custom scripts just in case. Speed is great as long as it doesnt sacrifice other things to do it.
Click to expand...
Click to collapse
Atm it hasn't done anything like that i actually think my camera might also be taking pictures faster but that could. Be because I'm over excited about how certain lagg is over
I use my phone mainly for gaming, camera and smses and for these this this script has not been a problem infact a solution
muneebrocks said:
Atm it hasn't done anything like that i actually think my camera might also be taking pictures faster but that could. Be because I'm over excited about how certain lagg is over
I use my phone mainly for gaming, camera and smses and for these this this script has not been a problem infact a solution
Click to expand...
Click to collapse
I can see where it would help with gaming. I dont game on my device. Mostly used in a perfessional manor for work and fun. Just dont understand why a script would kill the phone and sms app on a mobile device. But if it works for you then great. Glad you got your device working the way you want.

What is invovled in making a custom ROM? just wondering, like how hard is it?

Could I just modify stock rom, create it into nvflashable version or zip for cwm and say it's a custom rom?for e.g overclock, UI changes etc
if it was easy everyone would do it lol
It takes a lot of knowledge and skill, it may not be difficult in the way that roofing a house is difficult, more like difficult in the way that doing a millionaire's taxes is difficult (i suspect, only just now starting to learn c++) more brain work, very little physical labor (besides extended times in hunched position with cramping hands behind a screen with your eyes crossing and head aching lol)
Sustantivo said:
Could I just modify stock rom, create it into nvflashable version or zip for cwm and say it's a custom rom?for e.g overclock, UI changes etc
Click to expand...
Click to collapse
Technically yes but no one would download it. If all you do is UI then its a theme not a rom and the OC is done in the kernel which is very difficult to edit. Custom roms are about making something new. One has to have different features than another for it to be successful. You need to invent new things and add personal tweaks for it truly to be "Your" Custom rom
I would say it ranges from easy-peasy, lemon-breezy to extremely difficult that only rocket scientists and jedi knights should attempt it.
For what most people want to do, it's pretty easy. I think the hard part for the average person is having the mindset to take things apart to see how it works. If you just want to put your name on a rom, it will be extremely difficult because the goal will get in the way of your curiosity. If you get freaky with the command line, your curiosity and imagination will lead you down the rabbit hole. Of course, the path to the bottom of the rabbit hole is lined with bootloops and bricks, but you can gloss over that detail until after you set the bridge on fire and jump off the middle.
Regarding what makes a rom, a custom rom, I would think that you would need to have source code somewhere. If you are taking someone else's rom and adding someone else's kernel and adding someone else's themes, then that is just a modification. You didn't make (-j16) anything, but instead just added some things together that were all ready made. If you patch the kernel or compile the rom from your own source, then that's a custom rom.
stevedebi said:
Perhaps you can move all of the stuff to the storage ( not the card) and then put a shortcut from main memory to the storage card directory?
Click to expand...
Click to collapse
great explaination
Sent from my Transformer TF101 using xda premium
pierrekid said:
great explaination
Sent from my Transformer TF101 using xda premium
Click to expand...
Click to collapse
You sure you are posting in the right thread???
Hah, silly question...
----------------------------------------------------------------------------------
Sent via X8_xgin6.1((stock animation)+alfs.v6+transplanted w/ GCR8.2+timescape+8GB+synaptic+oc.748Mhz)
[COLOUR=RED] I HATE MY 3G NETWORK, SLOW LIKE A TURTLE[/COLOUR]
He's just asking for opinion and overall thoughts. I don't see anything wrong with that.
haha i just wanna do something like paul burton with his ics early port from the source code, i'm not that good, but a fast learner hahah,
You need a working knowledge of java (in my java textbook it says android is based on java and a skilled java programmer has little trouble programming for android), you need the various sdk's, for java, android, you need an android virtual environment on your pc to test your android apps and roms out..you want to start with theming, making simple apps..also need to know how to compile kernels which probably means you need a working knowledge of linux programming..starting from ground up, you are many months of study away from having the knowledge to build a rom imo. That's what im doing too...
If you want to jump start your journey- purge yourself of anything Microsoft, Windows, or closed source. Then you will truly be open.
Install Ubuntu 10.04 LTS server edition. Use the force, let go of the mouse.
gee one said:
If you want to jump start your journey- purge yourself of anything Microsoft, Windows, or closed source. Then you will truly be open.
Install Ubuntu 10.04 LTS server edition. Use the force, let go of the mouse.
Click to expand...
Click to collapse
Lol windows sucks but for some reason when i install ubuntu it never detects my laptop's broadband card and i cannot get online to get it from the ubuntu getting place lol
Sooooo im stuck trying to learn java and linux on a windows os..i need to study linux more, but that would keep me from studying java and other languages (c++, c#, for example)

[Q] ICS On-Screen Buttons Help?

Hi, i have been looking at tuorials for decompiling and re-compileing framework-res.apk in order to add the ics on screen buttons to my phone. I can get the framework-res.apk decompiled, i can make the required edits in the xmls, but when i go to recompile with aapt.exe or even just apktool, i get monstrous errors in the log. this may have something to do with my ADB setup, but it is very confusing to me. i would like to know if anyone would be willing to make the edit for me, as recompiling the apk is not working for me. i will email/PM the framework-res.apk to anyone who would like to do this for me, I am only 14 so i do not have all that much experience, although i am not a noob, more of a power user. (I am a flashaholic) my current ROM is TripNRaVer's CyanogenMod 9 build 8 i believe (having issues with 10) Thanks everyone
Sensation-al! said:
Hi, i have been looking at tuorials for decompiling and re-compileing framework-res.apk in order to add the ics on screen buttons to my phone. I can get the framework-res.apk decompiled, i can make the required edits in the xmls, but when i go to recompile with aapt.exe or even just apktool, i get monstrous errors in the log. this may have something to do with my ADB setup, but it is very confusing to me. i would like to know if anyone would be willing to make the edit for me, as recompiling the apk is not working for me. i will email/PM the framework-res.apk to anyone who would like to do this for me, I am only 14 so i do not have all that much experience, although i am not a noob, more of a power user. (I am a flashaholic) my current ROM is TripNRaVer's CyanogenMod 9 build 8 i believe (having issues with 10) Thanks everyone
Click to expand...
Click to collapse
Being a "flashaholic" has nothing to do with being able to develop or make changes.
I drive a car daily, doesn't mean I can take apart an entire car and rebuild it in a day.
Hgaara said:
Being a "flashaholic" has nothing to do with being able to develop or make changes.
Click to expand...
Click to collapse
Oh, absolutely i know that! But i am very interested in learning how to develop roms and such, i just though it might be useful to let you know, guess not anyway, any possibility of having this done?
Sensation-al! said:
Oh, absolutely i know that! But i am very interested in learning how to develop roms and such, i just though it might be useful to let you know, guess not anyway, any possibility of having this done?
Click to expand...
Click to collapse
Haha btw don't take my comments as being a jerk. As for developing, might take a course some where or read every developing book you can find.
Sensation-al! said:
Oh, absolutely i know that! But i am very interested in learning how to develop roms and such, i just though it might be useful to let you know, guess not anyway, any possibility of having this done?
Click to expand...
Click to collapse
i'm interested too! i've began with compiling cm9 and now i'm still here but your trick isn't very simple
Hgaara said:
Haha btw don't take my comments as being a jerk. As for developing, might take a course some where or read every developing book you can find.
Click to expand...
Click to collapse
haha no worries, i assumed it was with good intention but i would really like to know if anybody could do this for me, i absolutely LOVE the way the software buttons look. the xml edits are quite simple, really, i just cant get the framework to recompile.
Sensation-al! said:
haha no worries, i assumed it was with good intention but i would really like to know if anybody could do this for me, i absolutely LOVE the way the software buttons look. the xml edits are quite simple, really, i just cant get the framework to recompile.
Click to expand...
Click to collapse
aapt and apktool seem to be hardcore sensitive to it's surroundings. I had to re-install Ubuntu because some conflict was screwing around with the apk rebuilding. I had tried on Windows, Mac, Mint, everything possible. After the reinstall it worked, (with a ****ton of errors of course), created some handicap file but all I needed was resources.arsc.
If you do it and a new resources.arsc is compiled then that's all you'll need, you won't have to worry about anything else
GazaIan said:
aapt and apktool seem to be hardcore sensitive to it's surroundings. I had to re-install Ubuntu because some conflict was screwing around with the apk rebuilding. I had tried on Windows, Mac, Mint, everything possible. After the reinstall it worked, (with a ****ton of errors of course), created some handicap file but all I needed was resources.arsc.
If you do it and a new resources.arsc is compiled then that's all you'll need, you won't have to worry about anything else
Click to expand...
Click to collapse
thanks for that but it was part gibberish to me, no offense intended I don't have my own computer as I am only 14 and I have been trying on my parents laptop, but I have no idea where to go from here so, is there any possibility I could email you my framework-res.apk and you could make the XML edits? I can give you a link to a tut for what I would like done if you have the time
Sent from my TripNDroid Pyramid using XDA App
Bump?
Sent from my TripNDroid Pyramid using XDA App
Anyone?
Sent from my TripNDroid Pyramid using XDA App
Just to let everyone know, there is a setting I have just discovered built into tripndroid os to enable these buttons, in Settings>display. I just found this today, just thought I'd let you guys know!
Sent from my TripNDroid Pyramid using XDA App

Android Dev Enviroment

Hi,
I have been hunting for days and trying different stuff without luck.
Im trying to find a decent guide on setting up an eviroment for compiling apps.
Nearly all guide relate to ROM building and not application building.
I managed to get Cygwin working, but it would give stupid errors on compiling SDL source, even though other parts of code that reference SDL compile fine.
I put this down to Cygwin, I had simular problems when compiling on PSP.
Going back to an earlier version seemed to solve that problem, but I dont fancy messing about. Already lost 2 days of my life, .
I then tried Linux and Eclispe, that didnt work out either as apparently there is a problem that causes eclipse to be missing Android from the prefs list.
Tried work arounds, but nothing worked.
As I said, spent 2 days trying to solve this. There are to many guides and contradicting info. Even the official Android site is confusing.
I wanted to play around with UAE4Droid. As I have just bought a tablet, that runs UAE4Droid full speed and Im very impressed. Never considered Android before, bought tablet on a Whim, best thing I have bought in ages.
Any help would be great.
You can try MIT Appinventor by Google, it's esay to use!
http://www.youtube.com/watch?v=8ADwPLSFeY8 (I don't know how to correctly post the video u.u)
albertgoca93 said:
You can try MIT Appinventor by Google, it's esay to use!
Click to expand...
Click to collapse
Thanks for the reply, thats not quite what Im after.
Did you install the ADT plugin in eclipse? This has all the necessary stuff for Android.
Also, a Linux partition is preferable over cgwin or a vm IMO...
Have you tried any of the utilities in the Chef Central section? Tommytommatoe has a great utility for AOL's does most anything you can think of. It also sets up your environment automagically by script. It will add everything to PATH and make sure everything is properly configured.
There are some other goodies in the Chef Central section too!
Sent from my PC36100 using xda premium
imheroldman said:
Did you install the ADT plugin in eclipse? This has all the necessary stuff for Android.
Click to expand...
Click to collapse
I did, I also tried the work arounds to.
imheroldman said:
Also, a Linux partition is preferable over cgwin or a vm IMO...
Have you tried any of the utilities in the Chef Central section? Tommytommatoe has a great utility for AOL's does most anything you can think of. It also sets up your environment automagically by script. It will add everything to PATH and make sure everything is properly configured.
There are some other goodies in the Chef Central section too!
Click to expand...
Click to collapse
Will check it out, thanks.
EDIT:- cant find anything on there, will keep hunting.
Here is TT's Android utility:
http://forum.xda-developers.com/showthread.php?p=5623817
Sent from my PC36100 using xda premium
imheroldman said:
Here is TT's Android utility:
http://forum.xda-developers.com/showthread.php?p=5623817
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
Cutom back covers and stylus?

[Nook HD/HD+] Ubuntu Touch 13.10 "Saucy" [Project Abandoned]

PROJECT ABANDONED AS OF 11/27/2016
I have little knowledge on how to get this rom working. If someone would like to take over then start a new thread. On top of this, it's currently unclear the state of the Ubuntu Touch project as a whole.
Welcome to Ubuntu Touch for Nook HD
Ubuntu Touch is a project from Canonical that aims to create a mobile, touch friendly, unique operating system.
DISCLAIMER
I DO NOT claim to know what I'm doing, half the time I do not, lol.
Installing/flashing anything discussed in this thread is at your own risk. Things break, code is never 100% perfect, I'm not responsible if your device is bricked.
INSTALLATION
Thanks to user ShotSkydiver we have a Hummingbird build! I will post install details later once I get this up on my device.​
Changelog
10/28
Hummingbird
ShotSkydiver said:
The touch axis is no longer flipped, but the touch zones are still messed up, so tapping is off by about half an inch.
If you run into the same problem I did with not being able to get past the intro screen, reboot into CWM, adb pull /data/ubuntu/usr/share/dbus-1/interfaces/com.canonical.unity.AccountsService.xml, find the line that says
Code:
<property name="demo-edges" type="b" access="readwrite">
<annotation name="org.freedesktop.Accounts.DefaultValue" value="true"/>
</property>
and change the value to "false", push the file back to the same location, and reboot.
I'm still working on getting touch fixed properly, also accelerometer as that doesn't work either.
Click to expand...
Click to collapse
Ovation
Also reserved
good luck sir. I am also eager to try this out
Currently stuck on a error, anyone who knows please help out.
Code:
make: *** No rule to make target `/home/lance/Nook-HD-Ubuntu-Touch/out/target/product/hummingbird/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by `/home/lance/Nook-HD-Ubuntu-Touch/out/target/product/hummingbird/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Wow! Cool. I almost got excited, then realized that it said "HD" not "HD+". Oh well. Sorry, I don't actually have anything valuable to add. Just that it's exciting to see some more ROMS popping up for this (these) device(s). Good luck, I hope you get it running, and that it inspires somebody to do the same for HD+.
you need wpa_supplicant_8_ti
bpaulien said:
Wow! Cool. I almost got excited, then realized that it said "HD" not "HD+". Oh well. Sorry, I don't actually have anything valuable to add. Just that it's exciting to see some more ROMS popping up for this (these) device(s). Good luck, I hope you get it running, and that it inspires somebody to do the same for HD+.
Click to expand...
Click to collapse
I too have nothing valuable to contribute but would like to see continued progress on this and hopefully also a build for the HD+. :victory:
My system began crashing today, I'm not sure why. Something to do with xorg but it locks up before I can fully figure out the issue. I'll try cleaning the dust from the fan inside my laptop to see if it could be a overheating issue.
waflsk8s said:
I too have nothing valuable to contribute but would like to see continued progress on this and hopefully also a build for the HD+. :victory:
Click to expand...
Click to collapse
Should be straightforward once I get a build up for the HD. Maybe a while because my current laptop decided to act up on me at the worse possible time.
ShapeShifter499 said:
Should be straightforward once I get a build up for the HD. Maybe a while because my current laptop decided to act up on me at the worse possible time.
Click to expand...
Click to collapse
You're in good company, at least. (FWIW)... KillerSloth has horrible troubles with his laptop too. The laptops are possibly rebelling against compiling OS's for different platforms? Who knows what's going on?
I can't wait to try this!
From my experience, most laptops cooling systems are not designed to cool the cpu adequately when doing things that stress the cpu as severely as compiling roms. But my suggestion would be to clean out your fan and heatsink as best you can. If your technically inclined and can find a good tutorial on taking your laptop apart I'd do it to really clean it out. You'll be amazed by how much dust can get up in there. You could also clean wipe the laptop and reinstall Linux fresh which could solve your xorg problems.
Sent from my HTC6435LVW using Tapatalk 2
Those xorg issues are incompatible driver issues I believe.
Reinstall clean and setup build environment. Try to refrain from recommended updates after you get everything working right lol
Not sure if I ever sent the PM, but you can add that wpa supplicant tree to your manifest for simplicity.
Any other build errors/issues I can probably walk you through too, I've seen them all lol especially with these nooks now
Sent from my Nook HD+ using xda premium
If you can get this booting I'd be happy to know what you did. All of my build attempts since they did the flip have been unsuccessful and I do not apparently have the know-how to get it working (it boot loops on my HD+ and Nook Tablet, both of which seem to actually turn off briefly so I can't pull any logs). Good luck and hopefully your computer gets going again
I really wish there was more work on this, would be fantastic to check out Ubuntu on a tablet without having to make another purchase.
I need help
Amirusownsu said:
I really wish there was more work on this, would be fantastic to check out Ubuntu on a tablet without having to make another purchase.
Click to expand...
Click to collapse
I am working on porting Ubuntu touch to the Nook HD, and it's going rather well, but the guide says i need to write UCM mixer files, and I have no idea what to do. Can anybody help?
2390 said:
I am working on porting Ubuntu touch to the Nook HD, and it's going rather well, but the guide says i need to write UCM mixer files, and I have no idea what to do. Can anybody help?
Click to expand...
Click to collapse
Maybe in other threads who speaks about porting to UT maybe healp you if you ask them
I have one Nook HD, I could be your tester if you want :laugh:
2390 said:
I am working on porting Ubuntu touch to the Nook HD, and it's going rather well, but the guide says i need to write UCM mixer files, and I have no idea what to do. Can anybody help?
Click to expand...
Click to collapse
Yeah, I couldn't help with it since I only really know simple web development stuff (have a few certs, still in school)...but if there is anything we could do to help I'm sure alot of interest would be found.
Amirusownsu said:
Yeah, I couldn't help with it since I only really know simple web development stuff (have a few certs, still in school)...but if there is anything we could do to help I'm sure alot of interest would be found.
Click to expand...
Click to collapse
I honestly had never even heard of UCM mixer files, and I still don't fully understand them. I have my own Nook HD to test on, and when I get it booted, I'll post it. Where should I look?
2390 said:
I am working on porting Ubuntu touch to the Nook HD, and it's going rather well, but the guide says i need to write UCM mixer files, and I have no idea what to do. Can anybody help?
Click to expand...
Click to collapse
Unless you already figured out how to get it to boot I would focus on that issue first - that of booting - though I suppose you could build for the non-flipped old builds of touch but that won't do much good really. The audio fix is minor compared.
When the ubuntu images were flipped the ability to get a working bootable build became more difficult. It should be rather easy for someone who knows what they are doing with ubuntu touch and possibly a rom dev or similiar but otherwise its quite confusing. The guide says they will update it to explain the needed info and some stuff is explained somewhat at the top.
I've made a lot of boot.img tests which did nothing and then looked into lxc (found inside the touch zip) is very important to booting but haven't felt like doing anything else. Lxc and boot.img need to be repackaged with additional device specific code at this point in time from what I understand... in order to get it to boot.

Categories

Resources