yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] farmatito:
This is hack for the userinit.sh script that allows to override

system programs with different binaries or just add some new

executable programs to your rom as you can use your ext3 partition

as storage. One more advantage is that your customizations

will be persistent even after a update.

For this to work you have to add this lines to your /system/sd/userinit.sh script:

mount -o remount,rw /dev/rootfs /
mkdir /usr
chown root.root /usr
chmod 755 /usr
mkdir /system/sd/bin
chown root.shell /system/sd/bin
chmod 755 /system/sd/bin
ln -s /system/sd/bin /usr/bin
mount -o remount,ro /dev/rootfs /

After a reboot, you'll find a newly created bin

directory in /system/sd/ linked to /usr/bin.

/usr/bin is the first directory to be searched

in path in CM-mod ROMs so any program dropped

there will be found and executed before others with

same name in the system. So you can simply:

adb push new_program /usr/bin
adb shell
cd /usr/bin
chmod 755 new_program
chown root.shell new_program

This is experimental stuff and therefore USE IT AT YOUR OWN RISK.

Tested on CM-mod-3.6.7.2 and CM-mod-3.6.8 and works fine for me.
[G1 Android Development] followinginsanity:
So if I were to use this method. I could 'truely' replace the home screen with one of the 3rd party ones. ie aHome or dxTop? As it is now, I've noticed that even setting aHome as default, Home still runs in the background. Using Advanced Task Manager to confirm this btw.

If this is the case, I'll be using this shortly. As I'm tired of just running 3rd party programs in addition to the programs they are suppose to replace.

Its like using windowblinds in windows, instead of just replacing the whole shell. lol
[G1 Android Development] jusplainmike:
This only lets your run cli programs. This is below the dalvik system so it won't help you change the launcher.apk for ahome or dxtop.
[G1 Android Development] followinginsanity:
Ok I see what your saying now. Misunderstood the exact intent of the changes
[G1 Android Development] ttabbal:
Cool trick, thanks. I already had a /system/sd/bin, so I modified it a little to skip creating it and doing the chmod etc on it.

Slight mod to avoid the whole thing if /usr is already there.. .

if ! [ -d /usr ]
then
mount -o remount,rw /dev/rootfs /;
mkdir /usr;
chown root.root /usr;
chmod 755 /usr;
ln -s /system/sd/bin /usr/bin;
mount -o remount,ro /dev/rootfs /;
fi

This is useful to me as my userinit.sh is the new one from the compcache thread and can be run to get status info on compcache after boot. No need to remount the filesystem and all that when what we need is already there.
[G1 Android Development] farmatito:
I don't think you can skip the creation of /usr as it is lost

after a reboot at least on cm-mod, you can skip the creation

of system/sd/bin if it already exists tough. OTOH running:

mkdir /usr
chown root.root /usr
chmod 755 /usr
mkdir /system/sd/bin
chown root.shell /system/sd/bin
chmod 755 /system/sd/bin
ln -s /system/sd/bin /usr/bin

will do no harm as mkdir and ln will fail if the targets already exist

and chown and chmod will just ensure that you can run your

programs.To be on the safe side i would suggest:

mount -o remount,rw /dev/rootfs /
mkdir /usr
chown root.root /usr
chmod 755 /usr
# we should check if /system/sd is mounted
if [ ! -d /system/sd/bin ] ; then
mkdir /system/sd/bin
chown root.root /system/sd/bin
chmod 755 /system/sd/bin
fi
ln -s /system/sd/bin /usr/bin
mount -o remount,ro /dev/rootfs /
[G1 Android Development] ttabbal:
This would be a great place to put a set of the GNU utilities like ls, ln, cp, mv, etc to go along with bash. Busybox is great and all, but there are some advanced options in the GNU versions that aren't available in Busybox. Has anyone compiled them for Android? I might try copying the Debian ones over and see if they work without the rest of the chroot. I'm thinking I'll need at least some of /lib from debian for them to work though.
[G1 Android Development] farmatito:
Have you tried a fully configured busybox with desktop options enabled?

Attached just for reference my .config.
[G1 Android Development] ttabbal:
Nope. Is there a binary available? I don't have a cross compiler set up right now.
[G1 Android Development] farmatito:
Try this, You can create all the symlinks with this command:

adb push busybox /usr/bin
adb shell
cd /usr/bin
./busybox --install .

For full functionality you should also add /etc/passwd, /etc/shadow, /etc/group, /etc/gshadow. I link them to /system/sd/etc/ to have them rw

mkdir /system/sd/etc
chmod 644 /system/sd/etc
/system/bin/chown root.root /system/sd/etc
/system/bin/chown root.root /system/sd/etc/passwd
/system/bin/chown root.root /system/sd/etc/group
/system/bin/chown root.root /system/sd/etc/shadow
/system/bin/chown root.root /system/sd/etc/gshadow
/system/bin/chown root.root /system/sd/etc/fstab
chmod 644 /system/sd/etc/passwd
chmod 644 /system/sd/etc/group
chmod 600 /system/sd/etc/shadow
chmod 600 /system/sd/etc/gshadow
ln -s /system/sd/etc/passwd /etc/passwd
ln -s /system/sd/etc/shadow /etc/shadow
ln -s /system/sd/etc/group /etc/group
ln -s /system/sd/etc/gshadow /etc/gshadow

Remove the su link to busybox for now as it interferes with

the superuser app (otoh you could set a root passwd and

use busybox's su BUT ONLY FROM A SHELL)

rm /usr/bin/su

You should also:

passwd root
addgroup -g 65534 nogroup

You can even use ash as your default shell by doing:

if [ -e /usr/bin/busybox ] ; then
mount --bind /usr/bin/sh /system/bin/sh
fi
# Fix scripts in /system/bin
for i in am ime input monkey pm svc
do
if [ `grep -c "#!/system/bin/sh" /system/bin/$i` -eq 0 ] ; then
echo "#!/system/bin/sh" > /system/bin/$i.tmp
cat /system/bin/$i >> /system/bin/$i.tmp
mv /system/bin/$i.tmp /system/bin/$i
chown root.shell /system/bin/$i
chmod 755 /system/bin/$i
fi
done
[G1 Android Development] ttabbal:
Thanks! That worked great.
[G1 Android Development] prscott1:
Hey farmatito - just stumbled onto this thread and am going to follow this but I am unclear on how to remove the su link to busybox? Any direction would be appreciated! Thanks.

Edit: I realize you mean to just rm it from /system/sd/bin - duh. thanks for this thread! I like having the full busybox bin.
[G1 Android Development] farmatito:
cd /usr/bin

rm su
[G1 Android Development] prscott1:
Yeah, I figured that out - thanks. I had edited my above post saying such.

another question for you - I was going through your busybox config file - and am wondering which directory you store it in so that it is used when installing busybox?
[G1 Android Development] farmatito:
Download the source code from www.busybox.net

extract it

cd busybox

cp my_config .config

make oldconfig

make

You need a cross compiler to build it

you can download one at

http://www.codesourcery.com/sgpp/lite/arm/portal/release830

or

http://www.codesourcery.com/sgpp/lite/arm/portal/release827
[G1 Android Development] rub1k:
Quick stupid question please... tried searching but haven't found much.

After doing the userinit.sh mod shown here and using the new busybox (thanks for that, btw!), I noticed that a lot of the commands (including 'ls' which is now using /usr/bin/ls) show ansi colors in a terminal that supports them (i.e. 'Terminal' or 'Better Terminal' app) which is awesome but 'adb shell' looks mostly horrible with escape sequences instead of colors, like this:

# cd /system/sd
cd /system/sd
# ls -l
ls -l
drwxrwx--x 2 system system 2048 Aug 19 16:04 ←[1;34mapp←[0m
drwxrwx--x 2 system system 1024 Aug 16 02:12 ←[1;34mapp-private←[0m
drwxr-xr-x 2 root root 4096 Aug 19 20:40 ←[1;34mbin←[0m
drwxrwx--x 2 system system 7168 Aug 19 16:04 ←[1;34mdalvik-cache←[0m
drw-r--r-- 2 root root 1024 Aug 19 20:39 ←[1;34metc←[0m
drwxr-xr-x 2 root root 12288 Jul 10 02:29 ←[1;34mlost+found←[0m
drwxrwxrwx 2 root root 1024 Jul 22 18:15 ←[1;34mmedia←[0m
-rwxr-xr-x 1 root root 331 Aug 19 20:28 ←[1;32muserinit.sh←[0m

Do you guys set your $TERM variable to something that makes the adb terminal more "sane" or is not possible because adb is limited and I should just ssh or telnet in, etc.?

I've tried setting $TERM to various standard things (ansi/vt100/xterm/etc.) but the dumb adb terminal remains.. well.. dumb.
[G1 Android Development] farmatito:
What terminal are you using?

I use konsole on linux and everything looks fine.

Cannot say if there is a suitable terminal for windows,

maybe the one that comes with the mingw compiler.

If nothing works you can just:

cd /usr/bin
rm ls
[G1 Android Development] prscott1:
Many thanks!
[G1 Android Development] rub1k:
Oh, sorry, I should have specified that.

This was using adb from my Vista x64 laptop (yeah, sorry, stuck with win32 for using adb so terminal choices rather limited).

So, basically, it was just running "adb[.exe] shell" from a Windows command prompt.

Tried bash under cygwin and even though it has full ansi coloring support, it looks like adb.exe isn't very terminal friendly because extended/escaped ansi still don't translate.

No big deal; I'll remove /usr/bin/ls for now or temporarily alias 'ls' to /system/xbin/bb/ls while I'm in an adb shell.

Wondering what else I could be using via the USB connection to get a shell prompt within my G1... easiest way is to turn on the wifi and telnet/ssh in, I guess?

EDIT: Duh, just started telnetd and forwarded the port using adb and problem solved (using putty to telnet in as described here and it works very nicely).
[G1 Android Development] prscott1:
If you are on a windows pc, try using cygwin - works great.
[G1 Android Development] rikupw:
via the boot.img

what about adding these to the boot.img?

I know how to unpack and repack (as well as actually flashing it via fastboot) a boot image, :) and I was looking at cyanogen's 4.0.1 boot.img and it looks like some of those lines could easily be placed into the init.rc, however, I'm afraid of flashing (actually I shouldn't be...)
[G1 Android Development] xidominicanoix:
not 100% sure on this but couldn't you remove Launcher.apk from system/app and then Home won't run at all?
[G1 Android Development] farmatito:
I think it is easier to add it to userinit.sh script, that way this customizations will be persistent even after flashing if the new rom has support for running userinit.sh at boot.
[G1 Android Development] farmatito:
This will not work nor is it intended to work.
[G1 Android Development] rikupw:
That makes sense, :) I went ahead and repacked cyanogen's latest anyway and managed it make it work well enough :) I'm sure if you looked at the init.rc you'd see how to do it

I placed the /usr into the initrc, but later decided to just comment it out and use userinit for the creation, but *shrugs* placing it in the userinit (maybe appending an option in the user.conf to create it... if i knew how) it was causing problems with these new userinit scripts, so I went ahead and just placed /system/sd/bin into the path...

# create mountpoints and mount tmpfs on sqlite_stmt_journals
mkdir /sdcard 0000 system system
mkdir /system
mkdir /data 0771 system system
mkdir /cache 0770 system cache
mkdir /sqlite_stmt_journals 01777 root root
# mkdir /usr 0755 root root #spaceman
# chmod 0755 /system/sd/bin/* #spaceman
# chown root shell /system/sd/bin #spaceman
# symlink /system/sd/bin /usr/bin #spaceman
mount tmpfs tmpfs /sqlite_stmt_journals size=4m

mount rootfs rootfs / ro remount

please note this is the first time i've tried to mod for any particular reason a boot.img, so i've never had to put code into it before.

but the general idea of how to put it into init is there :)
[General Topics] vikasraj:
Hello All,

i got a application from the Nokia 5800 which is like playin the piano..

so jus thought if we could port it to our devices
[General Topics] domi007:
I would say it's impossible.

It's like you cannot bake a bread with a coffee machine...:rolleyes:
[General Topics] vma:
It is not impossible. It would require an emulator that emulates the hardware of a Nokia. I even imagine that SIS-Files could run on a virtual machine, meaning there is one abstraction layer between the software and the actual hardware.

The reason such an emulator does not exist by now:

1) The hardware capable of executing SIS binaries is not documented well enough.

2) The libraries required to run those binaries are not documented to allow an emulation or virtualisation.

3) There are legal issues: the SIS hardware, OS and libraries are well patented and protected by law.

4) It is much easier to program a similar software from scratch on the WM platform.

5) Nobody has so far been willing to do it for free and in an illegal way.

6) Nobody has thought so far, there is money to be made out of this.

This means: buy a Nokia to run that particular software...

...or see if it is available for PalmOS (if so, search for StyleTap) or PocketPC.

Cheers,

vma
[General Topics] 8525Smart:
****** head*

Playing the piano? You mean like Omniano?
[myTouch 3G, Magic Android Development] Droned:
Hello,

I have now the standard Vodafone rom from Netherland and I think there will be some roms wich are faster and better than this rom.

The only things that the rom has to have are:

- Updates whitout issues

- Wifi connection

- Multitouch and slide on images ( iPhone way )

- no vodafone splash screen

- standard things, like google mail, calendar, clock, onscreen touch keyboard...

When I want these things, is it necessary to change the standard vodafone rom, if yes, witch is the best rom at the moment that reach my functions I want.

Greetz,

Dries
[myTouch 3G, Magic Android Development] Doom_G2:
The Vodafone splash screen won't dissapear with a new rom. The splash screen can be changed though.

About the ideal rom.. For now I recommand the hero rom by fatility. You should use the standard homescreen instead of the touchflo interface though, because otherwise your phone will be pretty slow.

The fatility hero rom gives you multitouch in browser and albums (also for PDF-viewer and other tiny programs..)

Good luck!
[myTouch 3G, Magic Android Development] bcrook:
The JACHeroski might be another option to consider. It uses a more optimized Rosie.apk and has been more recently developed, vs. Fatal1ty's.

JACHeroski thread is here:

http://xdaforums.com/showthread.php?t=538588

Enjoy.
[Touch Pro2, Tilt 2 Windows Mobile General] combat goofwing:
how do you get them to show up in the music taag on TF3D and videos on the camera tag

thanks for any help
[Touch Pro2, Tilt 2 Windows Mobile General] whtrbt7:
music normally gets scanned by HTC's music player integrated into TF3D. If it doesn't, I suggest using playlist manager application to import playlists. As for pictures and videos, they normally need to appear in Storage Card/DCIM/101Media.

Oh just for reference, I put my music in the Storage Card/My Documents/My Music folder.
[Wing, P4350 Herald Upgrading] alvarete62:
Hi everyone! I got my Wing like 2 months ago, and I did what every newbie does. I Installed lots of things just to realize that I would use 10% of the stuff. Then, started the cleanup,trying not to hard reset it, just as a matter of pride.

The worst thing I did to my Wing was Pocket Mechanic Pro. It's famous "registry optimizer" swept away my voice command among other things. After some research, and ivanmmj's inspiration (thanks again, ivan), I managed to fix almost every issue that PMP's registry optimizer caused. The only one remaining is that everytime I soft reset the phone, it keeps looping and never gets into today screen. T.Mobile logo and silly music, Windows mobile logo, and then after a while, starts all over again, and again, and again. The only workaround for this is to take the microSD out and when I see the today screen reinsert it. No big deal, but sometimes it's recognized as Storage Card 2 so I have to rename Storage Card and reinsert the microSD. Any ideas on what might be causing the restart loop?? Help would be really apreciated....:D
[Wing, P4350 Herald Upgrading] afn691:
A thing may be you have missing registry keys and the OS identifies bad paths. Sometimes it happens with *folders* called "Storage Card" and then you must rename the SD card. (This happens usually if using software for english-only systems and you're using i.e. spanish WM which calls "Tarjeta de Almacenamiento" to the SD card, then you may fins sometimes a "Storage Card" as a folder, not the SD card).

Another *different* thing (I think that's not happening to you now) is the SD card is bad, and you must format it. Sometimes the device freezes without any apparent cause...

Well, I posted to your other thread about your problem, Ivan suggested you to hard-reset (I hard-resetted many many times my Herald... I'm a newbee forever :p ) and the best you can do is:

1) Search for a good ROM, do *every* previous step (including a search and download of your original ROM and Radio, etc.), and then install this ROM you prefer. A Light or Naked will help you to have an empty device to fill it at your own wish.

2) Look for an app which does backups, and backup your registry.

3) Look for an app which helps you to enter "safemode" if any problem appears. With Monocube v.2 you can align screen and enter to something similar to standard mode, with Monocube v.3 you can't but you'll be able to solve problems (those apps are not free)

4) Install Schap's Advanced config, and config your device (take care of configuring options for the Herald/Wing, not for the Kaiser or others)

5) Install on the device ONLY the apps you'll or your device will need. the rest, you'll have enough space for them in the SD card.

6) Try to minimize the use of RAM, so that you must have the fewest apps running.

7) Backup all your device again so you'll be able to recover your config without spending looots of days installing again.

8) If something wrong happens, you'll be able to boot in safe mode and correct it or to hard-reset and recover your old conbfig/installation.
[XPERIA X1 Q&A, Help & Troubleshooting] at45:
You'd think it'd be in the settings somewhere, but it doesn't seem to be. How do I stop my phone from telling the sender of a message when a message has been received by my phone?
[XPERIA X1 Q&A, Help & Troubleshooting] at45:
Anyone... ?
[XPERIA X1 Q&A, Help & Troubleshooting] charge:
Go to messages, then options, click on sms/mms thingy, and there you can turn it off/on
[XPERIA X1 Q&A, Help & Troubleshooting] mkouk:
what you are asking is not possible. The notification of the message delivery is not carried out by your phone to able to intercept the settings and change them.

The notification is being sent my your operator's messaging gateway server which sits in between your phone and the person sending you the text message.

Once the server pushes the message to your mobile phone, it automatically notifies the sender if they have specified it.
[XPERIA X1 Q&A, Help & Troubleshooting] Firefall!:
This is true. The server knows when you're receiving it, it's not just broadcasted for anyone to grab it ;)
[8125, K-JAM, P4300, MDA Vario General] nesincodrut:
hy everybody ,

when i receive a message a part of it is displayed on the bottom of the screen, and above the left softkey is written "reply" , i want to change that("reply") to "view" or "view message". pls help , this bothers me since my first wm phone.
[Touch HD General] x5-rwk:
I have done many searches on this topic all over the Blackstone forum and have not found any solution to my problem. I have found a few people that have an error about the camera not initializing or something but that is not my problem.

Soon after I upgraded to WM 6.5 I noticed that my camera would sometimes quit and I would have to soft reset the device to get it working again. This happened more and more often. It got to the point where the camera would not even try to start.

I have tried several different roms and nothing is helping. Since updating to different roms the camera button in the camera tab in TF3D doesn't even show up. All I get is the album. It acts like the camera isn't even there. It does show up in the program menu. If I activate the camera under the programs menu I get nothing or just get taken back to the home page and nothing happens. Depends on the rom.

I found a few threads where people seem to have the same problem I do but usually after three or four posts and no results they just seem to end.

I have also tried installing some of the other camera cab programs. Topaz, Rhodium, Blackstone etc...

Any help would be appreciated.

One last thing. I also switched back to WM 6.1 and still nothing. The only thing I have yet to try is either redo the HSPL or go back to the original stock SPL

---Update---

After three rom updates and many, many, many searches, I found the solution. Using the advanced config tool cab and changing one of the camera settings Encode photos in portrait mode to no the camera has come back to life. I did the soft reset and hit the camera button and nothing happened but a little screen flash and the window's working icon in the middle started then stopped. That has not happened in a while. I hit the button again and it delayed and started and then quit. I tried it one more time and it came on and was able to take a picture. Reminds me of trying to start a cold engine. Prime it then try to turn it over, prime it a little more then maybe some coughing and finally on the third prime. Presto it starts. Very happy again.
[Touch HD General] d3vils7:
i am having the same problem

can you help me plz

what is advanced config tool cab you used

pardon me my english not that good but what are the steps you did in simple language plz

my phone has WM6.1 and standard rom 1.14.415.2 build 32434 wwe

thanks in advanced
[Touch HD General] whale999:
I did the not save in portrait mode thing and it worked for me. Thanks. I've spent many hours on this. Great!
[Touch HD General] cegap:
It didnt work!

I tried just as you said with the "advance config tool" abd the problem persist.

Any idea?
[Touch HD General] crajee:
I think it is hardware probelm. Initially it works with some software tinkering (actual steps vary with different devices, infact may be be coincidental / immaterial in help) and becomes harder and harder as time passes and ulimately fails even on stock ROM/SPL.
[Touch HD General] andrew-o:
Hi all. I've got the same problem. Nothing helps. Maybe i need just to overwrite drivers, instead of installing camera soft?? May anyone send me camera dll files?
[Touch Pro, Fuze Themes and Apps] iota63:
im using the today screen rather then TF3D cuz it kills my battery any one know a way to prevent the massacre of my battery or a way of making my today screen better
[Touch Pro, Fuze Themes and Apps] jfrm:
I have intalled EnergyRom 20090630 and using tf3d2 from Rhodium (with Manila Today page) and battery use is completly normal.

Stock rom are very, very, bad regarding battery. Maybe you should move to another Rom....
[Touch Pro, Fuze Themes and Apps] burnblue:
Titanium is better

Are you using a 6.5 ROM? I'm not usinf TF3D because I just don't want it. I use teh 6.5 today with a launcher, comm manager (CComm), clock, notifications and music plugins. It couldn't be dreamier.

If you're not on 6.5 yet, get SPB Pocket Plus and Pocket Diary. They made my Today Screen really good for years and I was a happy paying customer
[Windows Mobile Development and Hacking General] mrfc3s:
Hey I am running the 3vo WM 6.5 ROM and I am looking for a program that can give me caller information, Like the iPhone does when you recieve a call from someone. I found one program the locate caller from another user on the board. Now what I wanna know is do I need to run something else to run locate caller or is there another program that will work out of the box that does what I am looking for?

Any help would be great.
[myTouch 3G, Magic Android Development] scoobyturbo:
ok ive just rooted my phone but ive forgotten my google login details is there anyway i can recover them thanks as ive got all my contacts syniced with google
[myTouch 3G, Magic Android Development] Roy_Drage:
Cant you log onto the website from your computer and try to get the support team online to help you out?

Like have them mail you or reset your login details to another email address.