yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] tchoukito:
script a2sd on don't work :(

adbd is already running as root

C:\android-sdk_r06-windows\android-sdk-windows\tools>adb shell a2sd on

/system/xbin/a2sd: line 6: SD_EXT_PART: command not found

/system/xbin/a2sd: line 7: SD_EXT_MOUNT: command not found

[Ô£ô] Moving /data/app to /app

mkdir: can't create directory '/app': Read-only file system

chmod: /app: No such file or directory

cp: can't create '/app/com.Horairesme-1.apk': No such file or directory

cp: can't create '/app/com.a0soft.gphone.app2sd-1.apk': No such file or director

y

cp: can't create '/app/com.allocine.androidapp-1.apk': No such file or directory

cp: can't create '/app/com.anddoes.fancywidget.pro-1.apk': No such file or direc

tory

cp: can't create '/app/com.betterandroid.bettercut-1.apk': No such file or direc

tory

cp: can't create '/app/com.dropbox.android-1.apk': No such file or directory

cp: can't create '/app/com.facebook.katana-1.apk': No such file or directory

cp: can't create '/app/com.fede.launcher-1.apk': No such file or directory

cp: can't create '/app/com.google.android.apps.chrometophone-1.apk': No such fil

e or directory

cp: can't create '/app/com.google.android.street-1.apk': No such file or directo

ry

cp: can't create '/app/com.google.android.voicesearch-1.apk': No such file or di

rectory

cp: can't create '/app/com.google.android.youtube-1.apk': No such file or direct

ory

cp: can't create '/app/com.google.zxing.client.android-1.apk': No such file or d

irectory

cp: can't create '/app/com.jazzmoonstudio.android.widget.flashlight-1.apk': No s

uch file or directory

cp: can't create '/app/com.keramidas.TitaniumBackup-1.apk': No such file or dire

ctory

cp: can't create '/app/com.mediafill.stopwatch.timer-1.apk': No such file or dir

ectory

cp: can't create '/app/com.metago.astro-1.apk': No such file or directory

cp: can't create '/app/com.noshufou.android.su-1.apk': No such file or directory

cp: can't create '/app/com.quoord.tapatalkxda.activity-1.apk': No such file or d

irectory

cp: can't create '/app/com.rechild.advancedtaskkiller-1.apk': No such file or di

rectory

cp: can't create '/app/com.sfr.android.mobiletv-1.apk': No such file or director

y

cp: can't create '/app/com.sfr.android.moncompte-1.apk': No such file or directo

ry

cp: can't create '/app/com.sfr.android.sfrwifi-1.apk': No such file or directory

cp: can't create '/app/com.shazam.android-1.apk': No such file or directory

cp: can't create '/app/com.socialnmobile.dictapps.notepad.color.note-1.apk': No

such file or directory

cp: can't create '/app/de.stohelit.folderplayer-1.apk': No such file or director

y

cp: can't create '/app/de.stohelit.playerwidgets-1.apk': No such file or directo

ry

cp: can't create '/app/mobi.societegenerale.mobile.lappli-1.apk': No such file o

r directory

cp: can't create '/app/org.hermit.dazzle-1.apk': No such file or directory

[Ô£ô] Done

[Ô£ô] Moving /data/app-private to /app-private

mkdir: can't create directory '/app-private': Read-only file system

chmod: /app-private: No such file or directory

cp: can't stat '/data/app-private/*': No such file or directory

[Ô£ô] Done
[Nexus One Android Development] incredulous:
That script shouldn't need to be run as it is enabled by default.

Leo will correct me if I'm wrong.
[Nexus One Android Development] biglolz:
same problem with reboots on app installation. first time install of this mod - wiped everything, installed/installed gapps, problem hit. Rebooted, re-wiped, ran the fix uid from ra recovery, reboot and all good. Since then it's been stable, all apps installed quickly/smoothly.
[Nexus One Android Development] Qwest905:
incredulous

did you install the gapps after you flashed 9.4??
[Nexus One Android Development] tchoukito:
yes but if you don't off a2sd you will have BOOT LOOP when intall any application..
[Nexus One Android Development] beagz:
I had no problems with the new release. All good so far
[Nexus One Android Development] leonnib4:
This output is just impossible.. :)

a2sd is a bash script.

SD_EXT_PART is a local variable.

If you have bash if can NOT not work.

I don't get what's wrong for you.

Just wipe ALL this time, and you won't have to do it again.

WIPE data + dalvik + ext + everything.

Start a fresh, clean install with 0.9.4.

Everything will be fine.

And @incredulous, you're wrong :D

/system/etc/init.d/10a2sd is run at boot and mount the ext partition and activate a2sd if necessary -- you should NOT call it yourself

/system/xbin/a2sd is the script that can enable/disable it and can be run
[Nexus One Android Development] beagz:
Is FM radio working? I can't get any sound from it.
[Nexus One Android Development] incredulous:
Yep, as I have always done.

I didn't need to. I went into recovery, wiped all (four times to be sure).

Flashed 9.4, then Gapps from first post. Booted, went into leoparts first to check it has recognised the ext partition - all good.

Setup the Google account and went to the market and installed Gmail.

Checked it to sync in Accounts & Sync.

Then went on to install some apps to test. Alllll fine.
[Nexus One Android Development] incredulous:
I have just noticed that data is still going to internal memory, how does this get changed?
[Nexus One Android Development] leonnib4:
data2sd on
[Nexus One Android Development] incredulous:
Haha, I'm such a numpty. :)
[Nexus One Android Development] biglolz:
will .9.5 use 2.3.3? ;)
[Nexus One Android Development] matrixios:
How enable trackball alert???
[Nexus One Android Development] incredulous:
So I did it;

Apps data -- Status: OFF

... I'm confuzzled.

Hmm, actually whenever I run a data2sd command I get 2 command not found errors;

/system/xbin/data2sd: line 6: SD_EXT_PART: command not found

/system/xbin/data2sd: line 7: SD_EXT_MOUNT: command not found
[Nexus One Android Development] Qwest905:
i've done everything ..from installing with amon ra recovery instead of clockword mod

i've done the FIX UID like someone mentioned...wiped 4 times and i'm still getting the boot loop

not sure what's wrong with 9.4
[Nexus One Android Development] incredulous:
Try redownloading a fresh copy and reflash.
[Nexus One Android Development] Crussader:
had this a2sd problem after full wipe some are reporting... I've found that if I repartition the SD card (backing it up before, of course)... everything works :)
[Nexus One Android Development] biglolz:
also...great job in putting together the rom - has been very smooth for me so far. would be nice to see google release the 3rd party drivers so we get the extra speed but meh what can you do.

hopefully someone vets the source code to confirm there's nothing malicious ;)
[Nexus One Android Development] leonnib4:
Read the FAQ on post #2 !!!

-----

@incredulous @Qwest905

- Check MD5

- Check HBOOT

- WIPE ALL (inc. EXT partition!)

- Flash

Your results are just.. impossible.

Please take care to do all steps.
[Nexus One Android Development] [c]:
I don't get the bootloop or any FCs...but when the screen switches off, when I switch back on it won't connect to the mobile network (no calls, no texts...).

If I reboot the phone, I get a perfect connection - until the screen goes off, then the same thing happens.

Any ideas? I've wiped, flashed, rewiped, reflashed, redownloaded, rewiped, reflashed...
[Nexus One Android Development] Crussader:
maybe this would help?
[Nexus One Android Development] incredulous:
Hmmm.

I've checked everything, I'll try repartitioning again. I only just did it before 9.3.
[Nexus One Android Development] elegos:
I installed 0.9.4 upon 0.9.3, fixed permissions, installed gapps and no errors at all :)

@leonnib4: as of fix permissions, you may create a one-time run script to fix them automatically.
[Nexus One Android Development] leonnib4:
I asked to do it again for 0.9.4...

So it includes you if you did for 0.9.3.

Like I'm saying for the last pages: for 0.9.4, WIPE all, make a clean install and all will be good after that.

I guess you hadn't OldApp2SD activated?

No it won't work.

This has to be done before the first reboot.

Tried. DId you thought I did not tried it already? :D
[Nexus One Android Development] elegos:
thus I have to reverse-engineer the recovery once more to know if there is an edify command to do that after installing any zip file :)
[Nexus One Android Development] [c]:
I have an Ext partition, but I hadn't done anything else to activate anything (just wipe, flash, boot, screen off, no signal).

Just flashed the latest CM nightly, and it's working fine - would rather be on this, though, as I loved your FroYo.
[Nexus One Android Development] elegos:
old app2sd is automatically activated if you've got an ext3 partition - at least this is what happened to me. Format your ext3 partition, wipe data and reflesh the 0.9.4, it should run just fine (I did so on 0.9.3 and it worked)
[Nexus One Android Development] leonnib4:
Exactly.

Elegos is right.
[Nexus One Android Development] Qwest905:
thanks guys..that helped..formatting app2sd

now everything is running smooth
[Nexus One Android Development] TonDwg:
Same problem here. And beside of this I recognized, that there are only three ringtones and no notification sounds in the ROM.
[Nexus One Android Development] mazenimad:
Have a weird problem with google talk I get google talk authentication failed every 5 minutes didn't have this on 0.9.3 its really annoying plus my country doesn't allow any type of voip so I can't configure it properly can anyone help?
[Nexus One Android Development] Qwest905:
is there a way to go back to the stock music player?

i prefer that over the cube?

thanks
[Nexus One Android Development] incredulous:
Right. I repartioned using the tool in Amons recovery 2.2.1

Wipe everything 5 times.

Flashed 9.4, then Gapps. Did first boot.

Did data2sd on in term and it gave me the same two error lines;

/system/xbin/data2sd: line 6: SD_EXT_PART: command not found

/system/xbin/data2sd: line 7: SD_EXT_MOUNT: command not found

Then it just says some stuff about options and then;

[] Moving /data/data to /data

[] Done

But it doesn't actually do it...
[Nexus One Android Development] leonnib4:
Okay so I rebooted under my Linux-dev OS and check what you guys have as bug...

Looks like a bad copy-paste in /system/xbin/*2sd make the bash from the Nexus not understand SD_EXT_* variables.

So I'm rebuilding the ROM with some fixes.

I'm gonna check all this and you'll be able to upgrade as usual without wipe if you already did.

Hope this will solve some of yours problems with OldApp2SD :)
[Nexus One Android Development] Qwest905:
glad you were able to reproduce the error =)...

love to see someone who's hard at work on making a great rom for everyone =)

just wondering if you'd be able to include the old music player instead of the cube one
[Nexus One Android Development] leonnib4:
If other people complain about it, I might :)
[Nexus One Android Development] incredulous:
Well Leo, as it happens. I decided to wipe and reflash again, but after flashing Gapps I flashed DTs A2SD aswell.

It enabled the data2sd for me so I don't have to do the command that doesn't work :P
[Nexus One Android Development] leonnib4:
I don't get it...

Why would you have to enter a command if data2sd was active?

This is supposed to be activate by /system/etc/init.d/10a2sd at boot...
[Nexus One Android Development] beagz:
Any ideas about the FM player?
[Nexus One Android Development] leonnib4:
What do you mean?
[Nexus One Android Development] leonnib4:
Okay so I've fixed the scripts, improved some scripts but it just works for me...

LeoGingerBread 0.9.5 uploaded

Check with RomUpdater

Again:

- WIPE ALL + EXT

- Flash full

- Flash GApps

- Fix UID missmatch

So I made an incremental feel free to try it.

But if it fails because you already had problems:

- WIPE ALL + EXT

PS: I just run:

- a2sd off

- a2sd on

- data2sd on

- reboot

- flash again + fix uid_missmatch

- data2sd off

- a2sd off

- reboot

- a2sd on

- reboot

- flash again + fix uid_missmatch

And everything is working fine :)

CraZy BetaTester ^^
[Nexus One Android Development] incredulous:
So when I was first flashing 9.4, OldApps2SD was defaulting to ON, but Dalvik-Cache and Apps data were greyed out.

So I did data2sd status and was off, so I did the on command and it gave those errors.

Now I've flashed DT's, they are no longer greyed out and data2sd status is showing as off.
[Nexus One Android Development] leonnib4:
Ok.

So basicly now 'data2sd on' will work (0.9.5).

Except that DT's App2SD might interfer... it's like having 2 antivirus on your computer.

Wipe if you can.
[Nexus One Android Development] alvinistic:
Personally, I prefer the stock music app too. The cubed looks cool but usability wise is not that good. It actually slows me down to do what I want. Poll? :P
[Nexus One Android Development] incredulous:
Lolol, ok. Well I'm about to go to bed. 2:48am here, I'll do it first thing in the morning - I'm actually up at 4am LOL.
[Nexus One Android Development] leonnib4:
It's 3:56 here in Paris, and I'm up at 5 :D

Another sleepless night, waiting for bugs on XDA and to solve them :D
[Nexus One Android Development] beagz:
Just that FM doesn't have any sound. I just wonder if any one else has the same problem or if its working.
[Nexus One Android Development] leonnib4:
Use The stock headset.
[Nexus One Android Development] myps1:
How do you fix UID missmatch?
[Nexus One Android Development] leonnib4:
In among_RA its in the "others" menu
[Nexus One Android Development] beagz:
Tried original headset, still no sound.
[Nexus One Android Development] probers1:
I also have no sound on FM radio. I will try 0.9.5 now though and report back.
[Nexus One Android Development] probers1:
Tried to update with rom updater and no luck. Failed to download. There was an error downloading the file. Anyone else?
[Nexus One Android Development] Jack_R1:
Hi Leo,

Still on 0.9.2, preparing to update to 0.9.5 - but I can confirm FM radio not working. There is no sound. Original headset too.
[Nexus One Android Development] myps1:
still encountering boot loop after 2-3 mins of running 0.9.5 despite doing all the steps :confused:

Any solutions?
[Nexus One Android Development] hlwdim:
Hi Leo, I used 0.9.4, and found the TB not wake but just unlock(I didn't select it), is it right? thanks
[Nexus One Android Development] elegos:
Always for app2sd:

upgraded to 0.9.5, fixed permissions, got the same "wipe" problem at each reboot (while sd-ext is not empty). I've formatted sd-ext too but the problem persists even if I install apps from market only.

Here is the very first part of the logcat, hope it helps to debug this annoying problem (no, I don't think it's a permissions problem anymore):

--------- beginning of /dev/log/main
I/banner ( 75): [✓] Android 2.3.2 / LeoGingerBread_0.9.5
V/sysctl ( 77): [✓] Initialization
V/sysctl ( 80): [✓] Done
V/addons ( 82): [✓] Setting Addons
V/addons ( 106): [✓] Done
V/a2sd ( 108): [✓] Remounting / read-write
I//system/xbin/run-parts( 70): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:360
V/a2sd ( 110): [✓] Checking filesystem
I//system/xbin/run-parts( 70): e2fsck 1.41.10 (10-Feb-2009)
I//system/xbin/run-parts( 70): /dev/block/mmcblk0p2: recovering journal
I//system/xbin/run-parts( 70): /dev/block/mmcblk0p2: clean, 12/249856 files, 39610/499713 blocks
V/a2sd ( 113): [✓] Mounting the partition
W/a2sd ( 117): [✓] Removing /system/sd
I//system/xbin/run-parts( 70): rm: can't remove '/system/sd': Read-only file system
W/a2sd ( 119): [✓] Migrating /data/app to /sd-ext/app
I//system/xbin/run-parts( 70): rm: can't remove '/sd-ext': Device or resource busy
I//system/xbin/run-parts( 70): cp: can't stat '/data/app/*': No such file or directory
W/a2sd ( 125): [✓] Done
W/a2sd ( 126): [✓] Migrating /data/app-private to /sd-ext/app-private
I//system/xbin/run-parts( 70): cp: can't stat '/data/app-private/*': No such file or directory
W/a2sd ( 132): [✓] Done
V/a2sd ( 133): [✓] Remounting / read-only
[Nexus One Android Development] Crussader:
Me too... and how about AppWidgetPicker? It would be a nice addition to your ROM

Thanks for all your hard work :)
[Nexus One Android Development] leonnib4:
@elegos

/system/SD exists.

So you did not wipe correctly..
[Nexus One Android Development] Qwest905:
maybe we can have two versions...one with the stock music player and the other with the cube>?

btw i can confirm no sound on fm radio
[Nexus One Android Development] leonnib4:
Sorry but no way I'm gonna build 2 builds just for an apk.

I acknowledge the non-working FM radio.
[Nexus One Android Development] miguelm75:
sorry for n00b question: how can I delete ext2/3 partition? is it possible using ClockworkMod or AmonRA Recovery or adb?

i tried with adb, but it didn't work out for me. i see, that without deleting ext partition there are some troubles with flashing LeoGB (bootlops or problem with mobile network).
[Nexus One Android Development] Jack_R1:
You can't delete it, only wipe it. Deleting requires full repartitioning - erasing everything from SD.
[Nexus One Android Development] miguelm75:
yes, but is there a possibility to create only fat32 partitions, without creating ext2/3 or swap? it's what i want to do, i don't need a2sd at the moment :-)

i didn't see this option.
[Nexus One Android Development] elegos:
You can run this ROM without any extra partition, but you won't be able to use app2sd nor data2sd.
[Nexus One Android Development] TonDwg:
Simply repartition in recovery and set swap and ext to 0. But this will delete everything on your SD, so make a backup first.

Does anyone has the problem of losing network connection after shutting the screen as mentioned some posts before?
[Nexus One Android Development] Jack_R1:
Back up everything from your SD card, get into Amon Ra's recovery, use 'partition SD card's option, set 0 for swap and EXT.

Or just stick the SD card into PC and try to read it, Window will suggest to format the card.
[Nexus One Android Development] WhiteRabbitDE:
I just flashed LeoGinger 0.9.5, but when i try to call or lock the screen it loses connection and it wont come back... I had this problem long time ago with the first Gingerbread Rom i flashed, but Cyano and MicroMod fixed it.

Is there any Work-around to fix that problem ? I can remember a file that can be flashed that fixed this issue but cant remember where i found it .
[Nexus One Android Development] ximpa:
impossible to install anything from market

i have wiped all.

leogingerbread 0.9.5
[Nexus One Android Development] TonDwg:
This is exactly the problem I ment. I had this problem with sense ROMs, too. It's the only big bug that prevents me from using this great ROM. Another little bug is, that Facebook sync doesn't work.
[Nexus One Android Development] xdraw:
I have the exact same problem. Everything else works great though
[Nexus One Android Development] alvinistic:
Found the culprit. /data/app is owned by root (uid=0, gid=0). Changing the ownership to uid=1000 fixed the issue.

adb shell

chown 1000:1000 /data/app

Leo, please fix this in your ROM :)

EDIT: seems like /mnt/sdcard also has permission issue :(

d---rwxr-x 25 1000 1015 8192 Jan 1 1970 sdcard

Notice the uid and gid now do not resolve to names?
[Nexus One Android Development] gapacher:
I met a lot of problems. I list them here:

1 Wifi works unstable. The phone always trying to connect to AP“obtaining IP addresses”. It makes the network speed very slow.:(

2 Market hardly work. always reboot.:(

3 The notification bar have problem. The signal bar always turn to gray after screen off. :(

4 FM radio does not work. no sound.

I just flashed 0.9.5 a few hours. this is all the problem I met. and I have all wiped before flash this ROM.
[Nexus One Android Development] Qwest905:
if anyone wants the old music.apk i can upload it
[Nexus One Android Development] myps1:
I would like to have the old music apk... how do I remove the new one?
[Nexus One Android Development] Jack_R1:
Ok, I'll create the update.zip to remove Cubed and put back the old Music. Leo, please feel free to link to it in the 1st post, if you want to. It'll be ready in a few min.

[edit] Here it is:

http://www.mediafire.com/?l034q8aiqe32jkg

Also attached.
[Nexus One Android Development] mazenimad:
may i know what happened to the dialer vibration on connect and on hangup??
[Nexus One Android Development] Jack_R1:
Leo reverted back to stock Phone.apk instead of CM-modified one for now. That's why the options are missing.
[Nexus One Android Development] Qwest905:
thank you =)
[Nexus One Android Development] leonnib4:
/sd-ext/app and /sd-data and owned by root for me and it works, because what those folders contents have the good permissions, no matter if the app folder is owned by root...

DT's App2sd does not chmod them for example. No need.

Q: Did it really fixed the problem to install from the Market for you?

That's strange anyway, 'cause I have the same thing and it installs great o_O

PS: I'll restore the stock Music app in the next release.
[Nexus One Android Development] incredulous:
Leo, so I flashed 9.5 today and it rocks. Everything works top notch.

The only thing I'm unsure about now is getting Leoparts to show Swap as on.

Thats minor though :)
[Nexus One Android Development] leonnib4:
SWAP does not work yet.
[Nexus One Android Development] incredulous:
Simple and to the point. I like it :P
[Nexus One Android Development] mousse04:
No music3 is so much better ;-)
[Nexus One Android Development] leonnib4:
Fact is that you're the first one to say that.

People that gave their advice only said that they did not like it...
[Nexus One Android Development] biglolz:
is it a straight forward move to the 2.3.3 branch?
[Nexus One Android Development] leonnib4:
I repo sync and merged changes and fixes from 2.3.2 and 2.3.3
[Nexus One Android Development] incredulous:
I rarely play music on my phone, but I do really like Music3.

Alot smoother to use than the stock apk.
[Nexus One Android Development] WorLord:
0.92 was working great for me (I don't use a2sd, nor do I have an ext partition - I only have a single FAT32 on my SDCard).

0.95 is a nightmare.

I have wiped everything that is wipable five (5) times in a row. I have re-downloaded, and re-installed, the rom and its GApps. I can not install anything from market, and my connections die when I lock the screen.

Reverting to 0.91, things are fine.
[Nexus One Android Development] biglolz:
nice...will we be seeing 2.3.3 in the next release?
[Nexus One Android Development] leonnib4:
I would need a logcat of that. Anyone?
[Nexus One Android Development] alvinistic:
Leo, I have provided the logcat of errors when installing apk from sdcard a couple posts back. I think same error if you install from market.

I see u comment out the set permission of /data/app in your update script. I have verified that it works after I uncomment those 3 lines in the update script. Hope this helps.
[Nexus One Android Development] leonnib4:
That should help indeed.

Thx for the good eyes
[Nexus One Android Development] alvinistic:
Another thing I noticed through adb shell is that now uid and gid no longer shown in names.

For example:

In 0.9.3 - #busybox whoami -> root

In 0.9.5 - #busybox whoami -> unknown uid 0

In 0.9.5 ls -l also shows only uid. Is this due to the busybox upgrade?

My only concern is that android permissions are set using names, not uid. When the config file states uid=root, does it properly translate to uid 0?

Glad that I can be of help to make this great rom even better :)

Thanks!
[Nexus One Android Development] merchant91:
Thank leonnib4 for this gr8 ROM.....!!!

If possible can u add the trackball pickup and hangup again......!!!

Thanx once again keep up the good work.....!!! :D:D
[Nexus One Android Development] leonnib4:
No one permission is set by name under Linux.

Each name means a UID.

The 'n' option of ls shows you the UID.

Yes, it is due to the newest busybox, but it does not change a thing (the newest busybox has 4x more commands).

Will do