yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] TheNewGuy:
corrupt file system?

firerat, I have a problem with my ext partition, and a2sd not working anymore. when i run your patch now I get

fdisk: cant open /dev/etc/mmcblk1 : no such file or directory

I have researched alot and tried some things, but since I am using the 15mb radio and hboot and a custom MTD recovery, and I dont really know what any of the suggested fix's are actualy doing... I am a little scared to go messing to much. I know that you are good with file system and mount points and you know all about my set up, so even though this has nothing to do with developing your script, could you help me please. I can provide any info you need. Thank you very much.
[G1 Android Development] Firerat:
very odd, my script doesn't look in /dev/etc for anything, only /dev/block

and g1 has no mmcblk1 anyway, so something is very wrong
[G1 Android Development] TheNewGuy:
Ok that is not good. Do you think it something to do with me trying to cd into the phone to extract the .config and google files, from my new linix setup. I was trying to compile a kernel from source using the cyanogen wiki... and I got stumped by the step,

Do you have any suggestions how to fix it?

I have wiped,and re flashed,fastboot erase system -w,re-ran steps for custom MTD starting with flashing 1.5.6-recovery,re-formated and partitioned sdcard with amon ra 1.6.2, tried a few other commands, your script said to do try formating after I tried a2sd.
[G1 Android Development] Firerat:
the extract files script, just adb pulls files of your phone, you need that

the get RomManger just downloads it, as does the google one

you don't actually need RomManager or google files

but it won't do any harm ( just wastes space )

to skip RomManger

edit vendor/cyanogen/products/common.mk

and comment out

vendor/cyanogen/proprietary/RomManager.apk:system/app/RomManager.apk \

its 1.4MB which is probably going to be updated via the Market anyway

onto the script,

the only reason it would get to looking at /dev/block/mmcblk1 would be because you do not have a valid ext partition on your sdcard

su
fdisk -l /dev/block/mmcblk0

give me the output of that
[G1 Android Development] TheNewGuy:
---edit---
[G1 Android Development] Firerat:
a lowercase L , not the didgit 1
[G1 Android Development] Firerat:
no ext partition

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 1908 15324218+ c Win95 FAT32 (LB
A)
/dev/block/mmcblk0p2 1971 1974 31397+ 82 Linux swap

backup sdcard,reformat it and include an ext partition
[G1 Android Development] Firerat:
then you have not done it correctly
[G1 Android Development] TheNewGuy:
.... it is pretty self explanatory... I used the partitionsd option in the menu, and picked 32MB swap, 512MB ext, remainder FAT32..

So I guess my recovery is messed up? Or is it my sdcard?

edit: so I tested with old sdcard and it worked so it must be the sdcard.

So thanks for your help, and ifanyone knows how to fix an sdcard let me know..
[G1 Android Development] lolmensch:
is it possible to revert the lwp fix?

it breaks 3d graphics on the cm nightlies.

Edit (SOLVED):

Firerat was already so kind to give me the solution. Here it is for everyone making the same crap as i did:

sh <path to script> rev lwp Or delete /sd-ext/userinit.d/15G*

:D
[G1 Android Development] geokuttan:
I cant get the app2sdext to work i tried everything

mount -o rw,remount /system

Usage: mount [-r] [-w] [-o options] [-t type] device directory

sh-3.2# rm /system/etc/init.d/05mountsd

rm /system/etc/init.d/05mountsd

sh-3.2# sh /sdcard/fr-a2sd_1-36c.sh.txt

sh /sdcard/fr-a2sd_1-36c.sh.txt

===========================

a2sd for FroYo version 1.36

===========================

================================================================

/system/etc/init.d/05mountsd alreadys exists and appears to work

================================================================

/sdcard/fr-a2sd_1-36c.sh.txt: line 262: cannot create temp file for here documen

t: Read-only file system

==============================================

do you want to put /data/data on /sd-ext(y/n)?

It will free up 2.6M from data

/data currently has 0.0M free

this option would give you approx 2.6M free

( /data/data can grow to 30M or more )

==============================================

y

y

/sdcard/fr-a2sd_1-36c.sh.txt: line 382: cannot create temp file for here documen

t: Read-only file system

/sdcard/fr-a2sd_1-36c.sh.txt: line 451: cannot create temp file for here documen

t: Read-only file system

sh: /system/bin/ApkManager.sh: No such file or directory

==================================

FroYo apps2sdext complete..

you may need to reboot to see apps

which were already on /sd-ext

==================================

==========================================

bind mounting /data/data with /sd-ext/data

changes will take effect on next boot

==========================================

It says that ApkManager.sh is missing..is it possible to manually put that script there??
[G1 Android Development] lolmensch:
öhm im not very smart so the most obvious thing for me would be, no write permissions for sd card?
[G1 Android Development] Firerat:
hmm, what ROM?

actually, I should put a full remount system function in to catch when remount rw fails
[G1 Android Development] geokuttan:
http://xdaforums.com/showthread.php?t=798558

GammaFly V1.2 beta 4

the Apkmanager.sh should be inside the bin folder right..i dont see it inside that folder...that means its missing that script...
[G1 Android Development] Firerat:
the problem is I've been lazy and not specificly set it to use busybox mount ( as CM6 uses busybox's mount by default )

if you do

su
busybox mount -o rw,remount /system

before the script , it _should_ work
[G1 Android Development] geokuttan:
so after i run the app2sd script it will automatically create the Apkmanager.sh?
[G1 Android Development] mat_pav:
HI,

How can i disable swap without deleting the swap partition. I don't know how but swap seems to be enabled buy default. After the ROM installation i only used AIO a2sd ext but swap was also enabled.

TNX
[G1 Android Development] Firerat:
either

you have some other swap script installed

or

you have compcache on
[G1 Android Development] mat_pav:
I think i dont have compcache on. I have you customMTD script installed but nothing else. Can you tell me how can i disable it.

TNX
[G1 Android Development] Firerat:
if its my script then

su
swappy off

if its not my script ( or an old version ) delete the script that is starting swap

it will be in

/sd-ext/userinit.d/

or could be in /sd-ext/userinit.sh
[G1 Android Development] mat_pav:
Swappy off does not work but i have the /sd-ext/userinit.d/ wich contains :

- 10data2sdext-ninds

- 11datadata-binds

- 55apkmanager

The problem is that I dont know what to delete.

Free in Terminal gives me this values

Mem:112976

Swap: 20328

The swap is enabled
[G1 Android Development] Firerat:
why do you think swap is on?

give output of

free

and

cat /proc/swaps

you may need su for the swaps one
[G1 Android Development] mat_pav:
Free:

TOT USED FREE SHARED BUFFERS

Mem: 112976 105868 7108 0 508

Swap: 20328 12516 7812

Tot: 133304 118384 14920

I get /dev/block/ramzswap9 partition 2

0328 12608 -1

What does it mean?
[G1 Android Development] Firerat:
that your using compcache

turn it off in settings --> cyanogenMod settings --> Performance settings
[G1 Android Development] mat_pav:
I see now. Can you tall me one more thing. Should i disable compcache. What settings do you suggest. I use the nightly 242.

Thank you for your help.
[G1 Android Development] sparksco:
After you disable compcache reboot, then set swap up. If you don't have a swap partition you can still make a swap file. Don't make it bigger than 32mb, swappiness I'm not sure about because performance on various brands of sdcards will effect performance. Try 20 swappiness, if it's still to slow, run the "sh /sdcard/fr-patch141-BETA2.txt swap" command again, and change your swappiness to what works best for you.
[G1 Android Development] Dukenukemx:
Delete this post.
[G1 Android Development] Firerat:
longpress home screen --> custom shortcut --> pick activity --> launcher actions --> Open close draw

now drop the icon on to the action button
[G1 Android Development] Dukenukemx:
Thanks. :P Now I gotta teach myself not to drag to the bottom.
[G1 Android Development] Firerat:
:)

done it myself, a good few times

might look at sticking a fix open tray thing in settings if no one else does it first
[G1 Android Development] techn0crat:
Weird problem.

Im having a strange problem... The other night, I did a fresh install of 271 with the ezterry 2708 patch-- with my apps all backed up to /sd-ext

I used the aio line in mtdpartmap.txt to get it to mount my ext- and it did! worked like a charm. Thank you firerat for backing up apps after fresh installs simple. =)

But, I noticed there was an app that hadn't showed back up-- I looked for it on "my downloads" since it was a paid app-- but it didn't show up in a search, and when I found it on AppBrain, it gave me a "package not found" ---

BUT, when I ran ApkManager--- the app shows up there. Moving it to /data/ does nothing---

I ran "cp" and copied it to my fat 32--- tried to use Astro to install it--- but it failed after telling me "package will replace already installed app"

Finally, I tried installing it through ADB with no luck:

C:\Documents and Settings\Toshiba>adb install -r C:\net.dinglisch.android.tasker
m-1.apk
1038 KB/s (0 bytes in 1014060.000s)
pkg: /data/local/tmp/net.dinglisch.android.taskerm-1.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

C:\Documents and Settings\Toshiba>adb install C:\net.dinglisch.android.taskerm-1
.apk
1111 KB/s (0 bytes in 1014060.000s)
pkg: /data/local/tmp/net.dinglisch.android.taskerm-1.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

Trying to uninstall it the same way returns "Failure"

AAAND having some time to review, that isn't the only app I'm missing that STILL shows up in APKManager----

Any suggestions?

I already option 13...
[G1 Android Development] thomaskm:
Hi Firerat,

I am a great supporter of your script and it works great on my G1.

I have just upgraded from CM6.0 to CM6.1, but after i flash the new rom and restore the apps and run your script again. after a reboot it just gives me a bunch of stop running..

I have tried using the fr140 and set up the a2sd again but still not working, I have also read through the post and try the a2sd you posted in the cyanogen forum , but still not effective..What's wrong?

Thx for your help.
[G1 Android Development] Firerat:
guessing the rom is broken
[G1 Android Development] Firerat:
Magpie

is the future
[G1 Android Development] techn0crat:
Dude, it's CM! Besides, I upgraded to the 6.1 stable, and it's still the same deal!

I'll try me some Magpie.

See if that doesn't do something.
[G1 Android Development] Firerat:
Dude, its a Nightly!!

Anyway, post a logcat I'll look at it

but I can tell you its not related to the script, the script is very simple

it just plays Linux tricks on Andriod, thats all.

Script, just moves files around, it does't know or care if Android has installed it correctly

Android just looks for files in directories, but we did a little switch on the directory, as far as it knows the files are in /data/app ( but we know they are actually in /sd-ext/app )

INSTALL_FAILED_MISSING_SHARED_LIBRARY

is telling you something is missing, the logcat will more than likely tell you what it is

it is probably related to the gapps you have

over the part few weeks CM6 has increased in size ( Fonts CMWallpaper )

in combination with gapps, it could be filling system up too much

try flashing

http://tinyurl.com/SuperTinyGapps
[G1 Android Development] Firerat:
su
fix_permissions

when that is done uninstall taskkiller, your phone will run better
[G1 Android Development] thomaskm:
thx that works like a charm!

Looking forward to more new and amazing script from you!
[G1 Android Development] 2fast4u88:
Hey Firerat you are a hard guy to get a hold of. lol You might notice me on the cyanogen forums. But I have a real quick ?. What do I have to edit or could you make me the files to use this correctly on the desire with the stock sense rom?

I have it working right now with 200mb free with the cache size on 10 or 15mb. But I can't download anything from the market over that size. Which i guess is because /cache isn't being bind mounted. I have no idea how to fix it either :(

I used your files that ennon has posted by the way. If it takes donating I can do that also.
[G1 Android Development] Firerat:
if the bind script is not running, run it manually

su
sh /sd-ext/userinit.d/06BindCache

that assumes you are not using a CM based ROM which should be running that script

btw, I think your in the wrong thread

this one has nothing to do with customMTD

quickest way to get hold of me is in one of my threads,

threads are preferred as other people can answer ( so its quicker )

I have PMs turned off as I was fed up with idiots asking me how to root or to fix their kang'o'rom/custom update zip
[G1 Android Development] Artifex14:
Hi

thank you for all the work you've made for android !

++

Artifex14
[G1 Android Development] sparksco:
Just make sure you don't donate because it will be returned ;)
[G1 Android Development] Firerat:
lol ^^ true story

Anyway

Artifex14 has what he needs, we did it over email

you can expect some exciting things with his next rom release

well not that exciting, just more convenient for people
[G1 Android Development] sparksco:
Yay, can't wait to see it :D

Well Firerat I would still like to buy you a beer, also I need someone to look at my flashable recoveries for me and make sure they are good to go. Would rather not post them here with my dropbox, but when I emailed you about the donation I didn't hear back from you.

Also I was going to see if you could look at elegos's Splash Creator script. I have a fully functional eng spl but when I get to the part where it says flash with fastboot y/n? I selelct y and enter, then it says my phone is not in fastboot. Is this because adb and fastboot is not in my $PATH? I can flash it manually no problem so that's why I was thinking that was the issue. I'm just not sure of the full path to add for the dir. Do I need to add my home folder like this?:

/home/sdk/tools

First I do this:

echo $PATH

Which gives me this:

username/sdk/tools:/home/usernam/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Anyways no hard feelings
[G1 Android Development] techn0crat:
Yes. How I love the tricks you play in your script.

Wonderful!

But, I'm on the 6.1 stable... now, anyways. Same problem. (Did a fresh install on the 6.1 stable, too--)

I love how the sdext script allows the fresh installs to be much easier--- without all the hassle of re-installing EVERY DAMNED APP.

Thank you. Thank you. Thank you.

I noticed a couple more apps missing, and I finally figured out that it is, in fact-- the private apps that are missing after this fresh install.

There's the logcat--- I used aLogcat--- and there were so many options, I simply left it at the default.

If i need to post a better one, let me know...

I ctrl+f'ed for net.dinglish.taskerm-1.apk (gah, I miss that app so much =( )

but it wasn't even there...

Thanks for the help, man.

If you ever post your paypal e-mail, i'm sending you money.

Period.

Or hell! I know how much you Brits like Rolling Rock. But the Queen won't allow it to be imported 'cause it's the best Ale in all the land!

So I'll send you a 6 pack o' that if you'd really like.

You've been more helpful to me throughout my modding escapades than you can really imagine, and I would like to say "thank you" one way or another---
[G1 Android Development] Firerat:
I'm going to need the logcat during boot ( which you can do with that alogcat apk )

you will need adb

during boot ( with usb plugged in )

adb logcat
[G1 Android Development] techn0crat:
OK, so--- I restored one of my nightlies--- uninstalled the apps I was missing from the 6.1 stable--- and then did a fresh install again.

Those apps are STILL missing from the market---

Damn! Yeah, there's something up with the cm6.1--- or maybe 85m isn't big enough for system?

df -h told me it only needed 83--- and the thread said go 2m over that...

The setting worked fine with the 266 nightly---

OK, and thanks for the patience, but adb logcat during boot erases the beginning after so long... so, how can I get the ENTIRE thing-- instead of a fractional snippet...?

I can't imagine this is helpful at all, but this is as much as I could copy and paste from command prompt while it was booting.

https://docs.google.com/leaf?id=0Bw...hlZDYtMGRlZjBhMDdhNWM4&hl=en&authkey=CJSCspgB

If you tell me how to get a smaller, more complete one, I will... just let me know how, I've never pulled a logcat before...
[G1 Android Development] Firerat:
adb logcat > somelog.txt
[G1 Android Development] techn0crat:
Psshhhh, that easy?

Damn, okay--- running that, now.

AAAAAnnnd, here it is.

Thank you very much. =)

https://docs.google.com/leaf?id=0BwQ6u-V89ChVZmFkZDU5OTgtN2QxNi00ZmI5LWJjZTctMzM1NGRjZjhmYWZk&hl=en&authkey=CPKsnKIN

P.S.:

How is the 28.25 radio vs the 27.08?

I'm still using 27.08--- and the only thing I've seen to read about it (besides that the 2708 ports work with the 28.25)--- is that there's no noticeable difference....

What do you think??

(I'm not even sure I can actually see the extra 15mb of ram... from the 2708-- certainly doesn't show up after killing all tasks...)
[G1 Android Development] jhr5474:
Random Boot animations

I have used the 141beta2 patch and I am trying to get random boot animations.

I selected and installed from terminal number 12 I think it is. However, I have put 9 boot animations in my bootanimations folder. sdcard/bootanimations/ etc.... I have the new radio and hboot. Is this stopping me?
[G1 Android Development] ad505:
Does anyone know if this script will work on the mytouch 3g slide?
[G1 Android Development] techn0crat:
From page one:

It should work on the slide.
[G1 Android Development] loukvlav:
Are "a2sd", "sdext", "dc2x", "ddb" of any use to a 32A magic?

Do they offer any other benefits except more room on the device?

Thanx!
[G1 Android Development] sparksco:
Yes. Apps2ext is way better than appstofat32. Ddb moves most of your data to ext partition, and dc2x moves dalvik-cache to ext as well. A2sd installs apkmanager in the /system/bin, and sometimes will modify the 05mountsd in the /system/etc/init.d/
[G1 Android Development] loukvlav:
Yes but the 32A Magic has plenty of space already. Why would someone use the script if all it offers is more free space in the device and no other benefit? This is useful for a G1 but how is it useful in the 32A which has huge space available?

Would keeping the apps in the phone's internal memory make it slower somehow?

Thanks for any clarifications!
[G1 Android Development] sparksco:
Under cm settings > allow moving of applications > internal. If you select external, it will install your apps to the fat32 partition of your sdcard, which will slow your phone's performance down a lot.
[G1 Android Development] loukvlav:
I am talking about not moving the apps at all. Just install them in data/data which is the default. The 32As have more than enough internal storage for plenty of apps. That is what I am asking. Does moving the apps in the sd offer any other benefit other than more space in the device? Is it more advisable even for the 32A which offers the option not to?

Thanks!
[G1 Android Development] sparksco:
Magpie

Your auto kernel Magpie rom is a beast, superfast. Hat's off for the auto kernel ;)
[G1 Android Development] Maave:
One thing I noticed when getting my EXT3 partition working was that the owner was root and it had 771 permissions, denying read/write to other users. If some people are having problems with accessing the mounted partition, check the permissions and change them to 777.
[G1 Android Development] sparksco:
Just run fix permissions and it will do the same thing:

Terminal emulator:

$ su
# fix_permissions

reboot

adb shell:

adb shell

# su (if prompted from superuser on phone from unknown select "allow")
# fix_permissions

reboot

Amon ra recovery v1.7.0:

Go to console, press enter

# fix_permissions
# reboot

Clockworkmod recovery, adb shell only:

adb shell

~# fix_permissions
~# reboot
[G1 Android Development] coolme90:
how come everytime i run the a2sd script in my g1, it freezes and i have to reflash the rom.
[G1 Android Development] jhr5474:
Random Boot animations please help

I have used the 141beta2 patch and I am trying to get random boot animations.

I selected and installed from terminal number 12 I think it is. However, I have put 9 boot animations in my bootanimations folder. sdcard/bootanimations/ etc.... I have the new radio and hboot. Is this stopping me? I also tried like FR said and used sd-ext bootanimations and numbered them 1 through 9.
[G1 Android Development] Firerat:
DON'T

the permissions are correct , do not change them
[G1 Android Development] Firerat:
you don't need a2sd
[G1 Android Development] Firerat:
no idea, post a logcat
[G1 Android Development] sparksco:
All I'm saying is that /data/app/ = internal, and Fat32=external. If you have it on auto install for location, it will install internal for default I'm pretty sure until you run out of space and then it will try and install on the fat32 partition. So yeah you should be fine with it on auto for install location ;)
[G1 Android Development] icecreamisdrugs:
I tried using DDB in conjunction with magpie [forum.cyanogenmod.com/topic/9731-magpie-2010-12-07/] on my nexus one, but I decided to revert to having /data/data and /data/system on internal memory for various reasons.

When I ran the above script it seemed to properly disable DDB by removing the binds and restoring the original folder locations, but none of the content was moved from /sd-ext back to /data and there were no errors of any kind displayed (no information at all, really). I had to move the content back manually and everything is still working alright, but it was a tad bit scary for a few moments (even with a fresh nandroid ^_~). I didn't grab any logcats at the time and I'm not really wanting to reproduce the issue to produce them since my phone is stable now. If anyone else has had this issue I'd suggest checking /sd-ext/data and /sd-ext/system for your missing files.
[G1 Android Development] Firerat:
it installs this to /data/firstboot.sh

echo "Uninstalling /data/data binds"
sh /system/etc/init.d/05mountsd
for i in data system;do
cp -a /sd-ext/${i}/* /data/${i}/
rm -r /sd-ext/${i}
done
rm /sd-ext/userinit.d/11datadata-binds

no reason it wouldn't work

and if it didn't , it would still bind mount
[G1 Android Development] sparksco:
Shell script

Ok so I've really been wanting to test these patches out in recovery, and of course they won't run in recovery. So I made my own, here it is if you would like to post it on the OP, 100% ready for testing in recovery. Some things in recovery don't work of course, but some things do like sdext and some other things do. Tested it last night in adb shell recovery. Here it is:

usage e.g.

# mount /sdcard (just in case ;))

# /sdcard/fr-patch141-BETA3.sh

or

# /sdcard/fr-patch141-BETA3.sh sdext swap ect....

http://dl.dropbox.com/u/11290772/Android/fr-patch141-BETA3.sh
[G1 Android Development] sparksco:
Thanks for the tip, so I need to install the shabang first rihgt?

Edit: I forgot to mention I already added some extra things to the rom, like the 05mountsd, 20userinit, swappy, apkmanager.sh/ApkManager.sh, and a couple other scirpt throughout the rom.