yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] willmav5000:
Edit the build.trout.prop in the system folder

from

ro.product.name=kila
ro.product.device=dream

to

ro.product.name=opal
ro.product.device=sapphire
[G1 Android Development] sauudmir:
i used this patch using the all command

su

sh /sdcard/fr-patch132.txt all

and its applied successfully ...

i'm using a G1 and i dont have the swap partition , so does applying all the of the scripts effects it with the swap or not? coz i saw while the patch was applying something about swap but didn't read it properly ...

and if the swap is on after using the patch ... how can i just turn off the swap ?
[G1 Android Development] Firerat:
if you don't have a swap partition, then it won't turn swap on

but you can still just use the 'rev swap' option to revert it, ( or delete /sd-ext/userinit.d/25Swap )
[G1 Android Development] sauudmir:
can u give me the command to delete the file or to rev swap back
[G1 Android Development] Firerat:
Hmmm

It is very easy

Read the first post, I don't feel like playing airoplanes today
[G1 Android Development] sauudmir:
thanks alot man got it working :)
[G1 Android Development] Firerat:
added new version to accommodate Custom partition layouts, ZERO brick risk!
[G1 Android Development] r4d14n7:
For anyone curious, dc2x appears to be working on Cyan-based SpeedTeam Eclair 2.2.1. Sweet script Firerat!
[G1 Android Development] Firerat:
if you fancy living on the bleeding edge, check out

http://goo.gl/qgOp

using that I have a data partition of 114.8 mb ;)

the method suits AnySPL , Danger/NoneDanger

we believe it will become the 'norm' and opens up a number of possibilities

full thread here

http://xdaforums.com/showthread.php?t=704560
[G1 Android Development] chief2842:
I am the same way I just want to fix the live wallpaper problem.

Edit looking at the script seems like I want to just do this part "give WRITE_EXTERNAL_STORAGE ( Gallery3D and Most games ) access to graphics"

Is there a way I can do this without applying anything else in the script.

Can I just go in terminal and type everything manually?
[G1 Android Development] Firerat:
what is so difficult?

su
sh /sdcard/fr-patch133.txt lwp

is that really hard to do?
[G1 Android Development] chief2842:
No but what I did was edit your script only keeping the lwp code and renamed it .shl snd ran it that way. Guess I took the long route nevertheless thanks.
[G1 Android Development] Tom in AZ:
Updated this patch on my phone from the 1.3.2 to the 1.3.3 when I had to reflash to CM5.0.7DS (do to that no boot issue after two days). In any case, just wanted to stop by and say thanks again for your patch and that you updated it!

I do have a small question about the RAM on the phone and the way that the system sees it. Here is the situation:

I have both "Advance Task Killer Free" and "Memory Status" (both installed from the standard Android Market) on my Google G1.

ATKF tells me I have 27MB of available internal memory, while "Memory Status" tells me I have 83.47MB of available internal memory. Any idea on how to make sure that the OS is seeing that full 83MB free? Sometimes ATKF reports down to 19MB free, and the phone really gets slow (at the same time MS states in the 70MB free).

Before installing your patch I used "Cachemate for Root (purchased)" to clean up the cache, then followed up by using "Move Cache for Root User" to move all of the cache to the SD card.
[G1 Android Development] tahiriqbal:
I tried to run the patch, fr-patch133.txt, on G1 running Jubeh's Froyo Rom, but I get error in terminal and on ADB command prompt. I get same error on fr-patch132.txt too.

Here's the error:

# sh /sdcard/fr-patch133.txt fb
sh /sdcard/fr-patch133.txt fb
grep: not found
[: not found
egrep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
grep: not found
[: not found
[: not found
busybox: not found
[: not found
grep: not found
head: not found
awk: not found
expr: not found
[: not found
expr: not found
[: not found
NoneDanger detected
[: not found
grep: not found
[: not found
grep: not found
[: not found
/system/etc/init.d/*userinit*: No such file or directory
[: not found
[: not found
[: not found
[: not found
[: not found
[: not found
[: not found
[: not found
[: not found
[: not found
#

I used this patch on many other ROMs and it worked perfect. Never faced any issues. What should I do so that it works??

Thanks!
[G1 Android Development] Firerat:
ahh, ok

it looks like your froyo build doesn't have busybox ( or all of busybox's links )

confimed, jubeh's froyo does not have busybox
[G1 Android Development] tahiriqbal:
Thanks for reply, Firerat. Where do I get busy box? Is it available on Market? BTW, when I installed Titanium Backup, it asked to download busybox and I did. Do I need a different busybox or what?

Thanks again.
[G1 Android Development] Firerat:
I've found titanium's busybox lacking ( specifically colour terminal support )

but in anycase you need to get it into your path, and make the correct links

but tbh, I have no idea if the all in one patch is even useful on a Froyo

wait for a Stable build ( e.g. CM6 )

This 'patcher' was born out of the CM5 test thread

Froyo is probably a very different beast, and I guess will have different issues

if needs be I will create a new 'patcher'
[G1 Android Development] tahiriqbal:
Got it. Yeah, I think, I'll wait for CM6. I was just trying to get Facebook to sync. But that's not really a big deal. I can wait.

Thank you so much for replying and the great work you're doing.
[G1 Android Development] Firerat:
well, I have made a quick script to make the busybox links for you

to use it

adb remount
adb shell sh /sdcard/bb4Jsfroyo.txt

using the adb remount because I have no idea which syntax the mount uses ( and I'm lazy ;) )

*should* work but I haven't tested it

Edit: actually, might not need adb remount now, I added a bit

get on sdcard and

su
sh /sdcard/bb4Jsfroyo.txt

fingers crossed

this is the script ( also attached as txt )

#!/system/bin/sh
BB=`find /data/data -name busybox`
$BB mount -o rw,remount /system
for i in free freeramdisk fuser getopt grep gunzip gzip head hexdump id ifconfig insmod install ip kill killall killall5 length less ln losetup ls lsmod lspci lsusb lzop lzopcat md5sum [ [[ arp ash awk basename bbconfig brctl bunzip2 bzcat cpio cut date dc dd depmod devmem df diff dirname dmesg dnsd dos2unix du echo ed egrep env expr false mkdir mke2fs mkfifo mkfs.ext2 mknod mkswap mktemp modprobe more mount mountpoint mv netstat nice nohup nslookup ntpd od patch pgrep pidof ping pkill printenv printf ps pwd rdev readlink realpath renice reset rm rmdir rmmod route run-parts sed seq setsid sh sha1sum sha256sum sha512sum sleep sort split stat strings stty swapoff swapon sync sysctl tac tail tar tee telnet test tftp time top touch tr traceroute true tty tune2fs umount uname uniq unix2dos unlzop unzip uptime fdisk fgrep find fold bzip2 cal cat catv chgrp chmod chown chroot cksum clear cmp cp usleep uudecode uuencode vi watch wc wget which whoami xargs yes zcat;do
ln -s $BB /system/xbin/$i
done

edit:

added

$BB mount -o rw,remount /system

*should* remount /system rw
[G1 Android Development] Firerat:
:)

ok, replaced

BB=`find /data/data -name busybox`

with

BB=/system/bin/busybox

tbh I thought titanium installed busybox somewhere in /data/data/
[G1 Android Development] tahiriqbal:
This time i got this error:

su
# sh /sdcard/bb4jsfroyo.txt
sh /sdcard/bb4jsfroyo.txt
[1] Illegal instruction ${BB} mount -o r...
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
link failed File exists
#

Thank you so much!
[G1 Android Development] Firerat:
well, it looks like most worked
[G1 Android Development] dskyers:
i cant get

i cant get the live wallpaper to stay on screen after lock screen comes on and phone goes to sleep i applied patch using code in example??? i have mt3g with chrome3.6:confused:
[G1 Android Development] elfasito:
hello, excuse my ignorance!

But this patch has nothing to do with loading roms requiring danger-spl?

I mean no danger-spl to load roms!

as in your other post, firerat!
[G1 Android Development] Firerat:
yeap, has nothing to do with it

the latest NoneDanger stuff is here

http://goo.gl/qgOp

NB, it seems NoneDanger need to use the kernel I provided

as a bonus you don't get the random reboots you get with 5.0.8f's kernel
[G1 Android Development] elfasito:
Thank.

one last question, no possibility to do a modification none-danger?

with the super 8.8?
[G1 Android Development] Firerat:
errm, yeah, but this is not the place

in the thread r

http://xdaforums.com/showthread.php?p=6916491#post6916491

are some zips, which are good for danger/NoneDange

I've got a tarball for devs to patch their zip to Automate things so that you only need to mod recovery

not fully tested yet, BUT you can use the v1 zips, they should work but it does seem that on None Danger you have to use the kernel I compiled ( along with lbcoders fix for bt )
[G1 Android Development] sparksco:
Works great!

Nice patch Firerat. I thought that I would never be able to get fb sync to work on a cm based rom. I just did a few things on my Chromatic3.7. From better term emulator I did

sh /sdcard/fr-patch133.txt lwp remount fb fixp dc2x

For facebook sync all I had to do was go to market >downloads >facebook uninstall/reinstall >Contacts >menu >add account >facebook

G1 rooted

Engineering spl

RA-1.7.0-Dream recovery

Ext4 and Fat32 Partition

Modified Chromatic3.7 based off cm-5.0.8-DS Stable using Update-Zip-Packager script that allows me to modify the contents of any rom and then repacks it and signs it on my windows xp laptop

hmm, other stuff I'm too tired to think of right now
[G1 Android Development] boostnek9:
Just fo you and your syncing issue..until Firerat comes up with a new patch.

http://www.4shared.com/file/kdb7ZvEy/_2__signed-facebook.html

I just tried it on my dream and I have Froyo installed and I am able to sync now :)

enjoy!
[G1 Android Development] Firerat:
no need for a new patch........

and I fixed the issue in the post after the one you quoted
[G1 Android Development] boostnek9:
Sorry if I offended you on that! It's just that it didnt work for me..

I had to get a modified APK in oder for my sync to work..
[G1 Android Development] fahad123:
thanks a million...

these scripts are awesome.......

my phone memory was constantly dropping inspite of Apps2SD...

i applied these scripts and everything's fyn now.. good to have my internal memory back :)
[G1 Android Development] Darrien13:
so once I flash a new ROM such as Super D this patch will have ni effect anymore such as swap being on?
[G1 Android Development] Firerat:
if superd executes scripts in /system/etc/init.d

then yes, but tbh I thought superd supported swap 'out of the box'
[G1 Android Development] Darrien13:
I don't quite understand, sorry but all I want to know is that will theses scripts I enable on cyanogenmod 5.0.8 still be enabled if I were to restore a nandroid of my super d rom or flash a fresh donut rom?
[G1 Android Development] Firerat:
after a nandroid, no , they will get wiped when sd ext is restored
[G1 Android Development] sparksco:
So I just used a couple of things on the defcon ds froyo test10. I flashed a couple of your other Custom MTD Partitions before and after flashing the rom. I couldn't get fb to sync with this rom, so I ran the fb sync patch and it works. The only other one that worked was the shabang patch, although it only installed a couple of them and said that the others were already installed. The fix permissions patch did not work because there is no fix_permissions to be found. I only tried these three patches because I didn't know what the other ones would do or if they would work.
[G1 Android Development] deuse:
@Firerat

Will you be doing one of your awesome patches for Froyo dude?

thanks
[G1 Android Development] Firerat:
Well, as Sparksco noted, these should do much the same on cm6 as cm5

At the moment init.d scriots are not being run on boot, I'm guessing the init bin dosn't understand exec

Couple of boot.imgs in defconoi's thread with working init.d

But tbh, about the only ones in this patch (133) that I use for cm6 are fb shabang and remount

The most common scripts that I patch with a shabang already have it, which is good

But yeah, If I come up with some usefull script for cm6 I'll include
[G1 Android Development] Timmac:
Does this mean that fb patch should work on Froyo? because it doesn't seem to be working for me,CM6.
[G1 Android Development] t0ny0:
Yeah, the facebook one doesnt work on Froyo for me either :( and dont think I didnt try at least 5 times... I did :)
[G1 Android Development] Firerat:
well

it works for me
[G1 Android Development] Kid_Ding:
works for me too!
[G1 Android Development] Timmac:
:(

Is there anything else I can try?
[G1 Android Development] Firerat:
Enable sync via the facbook settings
[G1 Android Development] midijunkie:
Hmhm, reboot after dc2x on cm6 :/
[G1 Android Development] Firerat:
actually, that won't work

since sd-ext is not mounted
[G1 Android Development] Firerat:
su
sh /sdcard/05mountsd.txt

and reboot
[G1 Android Development] Timmac:
There isn't one.
[G1 Android Development] crr127:
i used your mount patch and it brings it up now but when i hit the button for it to mount it just keeps trying and never does. this for sj's rc1 test 2.1
[G1 Android Development] Skythe:
Hi Firerat,

First of all, a thank for for making this patch, very useful :)

Sorry if it's a bit of a noob question, but I've tried to set up swap on CM6-RC1 via

su

sh fr-patch133.txt swap

It's done it's thing and I've rebooted. How can I check if it's worked? I've ran "free" in the terminal, but it's coming up with 0/0/0 under each column for "Swap"
[G1 Android Development] Firerat:
?

what button?

you do know that the remount script is for remount system rw/ro

it has nothing to do with mounting the sdcard over usb
[G1 Android Development] Firerat:
yes, free is correct

I can assume that you have a swap partition can't I ?
[G1 Android Development] Simru12:
FB Patch

Hi Firerat,

First, thanks for the patches.

I have a G1 that I just rooted and updated to CM 5.0.8 and I want to install the Facebook Patch, but wanted to confirm the steps so I don't do anything wrong. I already copied fr-patch133.txt to my hard drive, so next I:

1) Do Nandroid Backup

2) mount the SD card and transfer the file to it.

3) boot in Recovery Mode

4) and here I get lost..... Help?

Thanks
[G1 Android Development] Firerat:
run it on the live rom, then reboot
[G1 Android Development] Simru12:
Noob here. How do I do that?
[G1 Android Development] Houka420:
Place txt file on the root of your sdcard

Open terminal emulator while in the rom & type

su (hit enter)

sh /sdcard/fr-patch133.txt fb (hit enter)

wait for it to finish. You may have to reboot.(Not sure though)
[G1 Android Development] Simru12:
Thanks..... but this is the part I don't know how to do.

Help?
[G1 Android Development] Houka420:
Download this file. http://xdaforums.com/attachment.php?attachmentid=348484&d=1277328643 Put it on the root of your sdcard. Boot your phone into the rom. Go where your installed apps are & find the app terminal emulator. Run the program & type the commands I gave you.
[G1 Android Development] Simru12:
Got it, done and working. Thanks for the help
[G1 Android Development] Deadbolt:
I am on the latest CM5 and I just tried to do the facebook patch, I rebooted and it cannot get past the G1 bootup screen. I went into recovery, I saw that I got:

E:Error in CACHE:recovery/log

(No space left on device)

Not sure how that happened so I thought to do the dc2x patch and when I ran that it gave me errors...rebooted and still cannot get past the G1 boot screen. Ive done the facebook patch on previous CM5 builds and it worked out fine. By the way, I used fr-patch132...didn't think I had to download 133. Any help would be appreciated as my G1 was running like a champ with more than enough memory before the patch.
[G1 Android Development] Firerat:
mount -a
df -h
find /cache

need to know the output of that
[G1 Android Development] Deadbolt:
Filesystem Size Used Available Use% Mounted On

tmpfs 47.8M 0 47.8M 0% /dev

/dev/block/mtdblock4 30.0M 30.0M 36.0K 100% /cache

/dev/block/mtdblock3 90.0M 90.0M 40.0K 100% /system

/dev/block/mtdblock5 89.8M 13.1M 76.7M 15% /data

/dev/block/mmcblk0p1 698.6M 681.5M 17.2M 98% /sdcard

/dev/block/mmcblk0p2 223.4M 135.7M 75.8M 64% /sd-ext
[G1 Android Development] Deadbolt:
and when I do find /cache, its gives me a ton of info but since im in console it gets cut off where I can't copy everything to the very top
[G1 Android Development] Deadbolt:
Well I couldn't find a solution and actually re-flashed CM5.0.8, wiped cache and dalvik in recovery and everything is well again with more internal memory to boot. I also just downloaded the alternate facebook apk instead. Not sure why the patch didn't work.
[G1 Android Development] Firerat:
the patch did work

but you messed something else up

what did you fill cache with?
[G1 Android Development] Deadbolt:
I'm not sure what went on with the cache to be honest. Everything was fine until I rebooted after I entered the code for FB sync in terminal.
[G1 Android Development] Firerat:
which does nothing to cache, so its unrelated

this is the fb function

it is just a sed ( Steam EDit ) of /system/build.trout.prop

fb ()
{
# Edit trout.prop to get sync option in Facebook 1.2.x
# Credits : SilverSurfR and Skri11a
prop=/system/build.trout.prop
if [ `grep -q "Facebook 1.2.x Sync" $prop;echo $?` != "0" ];
then
remountrw
sed \
-e '/ro.product.name=kila/ i #ro.product.name=kila' \
-e '/ro.product.name=kila/ i #Facebook 1.2.x Sync on G1 Credits : SilverSurfR and Skri11a' \
-e '/ro.product.device=dream/ i #ro.product.device=dream' \
-e '/ro.product.device=dream/ i #Facebook 1.2.x Sync on G1 Credits : SilverSurfR and Skri11a' \
-e 's/ro.product.name=kila/ro.product.name=opal/' \
-e 's/ro.product.device=dream/ro.product.device=sapphire/' \
-i $prop
echo "$prop Patched for Facebook 1.2.x sync"
echo "changes will take effect on next boot"
echo "enable sync in Facebook app settings"
else
echo "$prop appears to have already been patched"
fi
return
}
[G1 Android Development] crr127:
now if i go ahead and add a user.conf to bin once i enabled swap that would still allow me to control almost everything correct?
[G1 Android Development] Firerat:
no

this has nothing to do with user.conf
[G1 Android Development] weipingchong:
Thanks for the great work!

I've just applied the FB patch on CM6 and its working without a hitch for me!

On a curious note, I wonder how does the FB-Contact sync work? it will pull information/display pic from FB based on what value/information? I have certain contacts that doesnt sync with FB even though they are friends on FB.

Thanks!
[G1 Android Development] Firerat:
I think its based on name, email a telephone matching

not all FB users choose to give tel no. out

but you can 'join' contacts

in contacts edit contact --> menu --> join --> select second 'contact', they will then be merged
[G1 Android Development] weipingchong:
Cool! thanks!

I just realised that whenever I reboot my phone, the sync option under FB will revert to the option "don't sync" when previously i had selected the option to sync those in my contact. and also, the FB account under Contact will be gone.

secondly, when i setup the sync option under Contact to add another account, the contact photo doesn't update automatically. i'll have to click one by one to update the contact photo to their FB's profile picture.

i've uninstalled and install FB many times over and the problem is not resolved.

wonder if i applied the patch wrongly? running CM6 on g1

thanks!
[G1 Android Development] Firerat:
it will be a cm6 thing
[G1 Android Development] Ghost117:
sooo....

I ran #free before i started and had some good numbers in swap. Then I ran this scrips with swap and some other things (fb) and now my swap is 0/0/0 when running #free.

I am using RC1
[G1 Android Development] Firerat:
yes,

it seems that cm6 rc1 , dosn't always have /dev/block/mmcblk0* ready at boot

it is seemingly random, my g1 is fine, ( class6 ), but some others are having the same kind of problem, even with a class6

some more detail here

http://forum.cyanogenmod.com/topic/2636-froyo-a2sdext/page__st__40#entry26332

I can fix the 'on boot' issue , but I have to be somewhere , errm 5min ago , lol

sorry, but will I'll upload a fix later

its staight forward, fix is here

http://forum.cyanogenmod.com/topic/2636-froyo-a2sdext/page__view__findpost__p__26124
[G1 Android Development] Firerat:
Added some CM6 support

basically adds 05mount ( from CM5 ) with IConrad01's fix

the fix has also been put into the swap script
[G1 Android Development] Molinari:
Just one dumb question.

Running cm6 rc1, all I want to do is move the dalvik cache, I want to leave the apps the way they are on fat32, do I just do the dc2x or do I have to do the sdext as well, or will sdext move all the apps to the ext partition?
[G1 Android Development] Firerat:
you will need the sdext option for cm6
[G1 Android Development] Molinari:
Will that move the apps as well?, I'd like to avoid that...
[G1 Android Development] Firerat:
no, that script will only mount sd-ext, ( which you need for your dalvik-cache bind mount to work )

I have a script on CM Forums for a2sdext for FroYo though
[G1 Android Development] Molinari:
Thanks, you da ma..., uhh... one of the men....
[G1 Android Development] hatchna:
Fireat,

I just wanted to send you a huge thanks from over at the Eris boards. I ran your script with the lwp option and it solved my issues with my lwp FC'ing on me. You sir, are the man! Simply outstanding work.
[G1 Android Development] stefanero313:
btw only the sdext option für cm6 and teh rest only cm5? or works the script now for cm5 and cm6 with all options?! :)
[G1 Android Development] Firerat:
sdext is for cm6, the rest is cm5 *or* cm6
[G1 Android Development] Abhi_UK:
does cm6 have 3d?
[G1 Android Development] Firerat:
Yeap

Lwp don't work quite as well as with cm5 ( which was limited ) but the lwp option in th aio patch does work in the same way,

In fact a few posts up is mention of the lwp patch working on the cm6 eris port
[G1 Android Development] sparksco:
Hey firerat, I testd out this sdext patch and it does not seem to be working for me. Anyways, since you've gone back to non danger, I'll post my logcat:

http://cyanogenmod.pastebin.com/raw.php?i=UNq6VXxp
[G1 Android Development] bluedragon1982:
is its possible to revert 'sdext' option in latest script 134? only want to know if this makes problems on my G1 with latest D/S Nightly (also made a NANDROID Backup befor try new patch)
[G1 Android Development] Firerat:
su
rwsystem
rm /system/etc/init.d/05mountsd
[G1 Android Development] Firerat:
wrong log, that is the part after it has tried to mount sd-ext
[G1 Android Development] G1ForFun:
Hey Firerat, how does the swap portion of this script actually work?

Does it just automatically set a swap size of 32mb and a swappiness of 60?

Does it actually detect a swap partition on your sd card and use it?

Just wondering thanks.