Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
tkirton
Old
#101  
Senior Member - OP
Thanks Meter 208
Posts: 2,029
Join Date: Jul 2009
Location: Katy Texas
If you open it up and don't see anything relating to dta2sd.log (will be on the first five lines), then it must be something else. In that case, reflash and see if that works.

Quote:
Originally Posted by hacketbt View Post
I do have that file. That is currently while using older a2sd. I am unsure if I have this with 2.7.5.2. Should I reflash and check?

Sent from my PC36100 using XDA App

 
kevinbear
Old
#102  
Senior Member
Thanks Meter 21
Posts: 237
Join Date: Jun 2010
Location: Gurnee
Default Help!

Argh…

So I have searched every thread and forum I can find, read every bit of info, and I can't figure this out.

Running CM6 Nightly (happen to be on #110 at the moment) on my Evo. 8GB Toshiba SD Card - Class 6. Card works just fine. Partitioned/upgraded to Ext3 with AmonRa. Tried both standard and alt installers for Darktremor.

Yet every time I boot and run 'a2sd check', it tells me "Ext partition found, but not mounted".

It's crazy. Works perfectly with the a2sd implementation found in Fresh ROM, but I can't for the life of me get it working on cm6. Managed to fix every other problem I've run into, except for this one!



What do you need from me to help me figure this out?

Thanks in advance!
 
LC_Nab
Old
#103  
Member
Thanks Meter 1
Posts: 38
Join Date: Jul 2010
Location: Bayamon
[QUOTE=hacketbt;8454504]Any ideas why 2.7.5.2 breaks my a2sd? Running CM6 with 2.7.5.1 now and after installing 2.7.5.2 I have none of my apps after boot. Running "a2sd check" says there is an sd-ext partition but it cannot be mounted. Was forced to restore from nandroid to get everything back.QUOTE]

This happened to me too, all i did is redo the ext, but leave it at ext2 dont upgrade to ext3 and it should work fine, well it did to me at least xD

Sent from my PC36100 using Tapatalk



Sent from my PC36100 using XDA App
 
kevinbear
Old
#104  
Senior Member
Thanks Meter 21
Posts: 237
Join Date: Jun 2010
Location: Gurnee
[QUOTE=LC_Nab;8563519]
Quote:
Originally Posted by hacketbt View Post
Any ideas why 2.7.5.2 breaks my a2sd? Running CM6 with 2.7.5.1 now and after installing 2.7.5.2 I have none of my apps after boot. Running "a2sd check" says there is an sd-ext partition but it cannot be mounted. Was forced to restore from nandroid to get everything back.QUOTE]

This happened to me too, all i did is redo the ext, but leave it at ext2 dont upgrade to ext3 and it should work fine, well it did to me at least xD

Sent from my PC36100 using Tapatalk



Sent from my PC36100 using XDA App
Used AmonRa to partition. Still no luck.

Strangely, when I run 'a2sd partlist' it spits out that EXT2 EXT3 and EXT4 are all not supported by this ROM. That doesn't seem right, does it? (aside from maybe EXT4).

A few pastes from my terminal:

Code:
# a2sd check
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
[X] Ext partition found, but not mounted.
    Your rom may not be setup to run Apps2SD.
    Check with your rom developer if the boot image
    is programmed to run Apps2SD.

    Your partition may be using an EXT4 partition,
    but your rom may not support EXT4.  Repartition
    your SD card to use EXT2 or EXT3.
Code:
# a2sd repair
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with repair
[ ] Starting Darktremor Apps2SD in repair mode
[X] EXT partition not mounted
[ ] Resetting Apps and Private Apps to Internal Storage
[ ] Setting No Apps2SD flag file
[ ] Setting File System Ready property to 1.
Code:
# a2sd partlist
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with partlist
[ ] Starting Darktremor Apps2SD in partlist mode
[ ] Partitions Supported with this ROM:
    (X) EXT2 Partition Not Supported
    (X) EXT3 Partition Not Supported
    (X) EXT4 Partition Not Supported
[ ] Setting File System Ready property to 1.
Code:
# a2sd sysinfo
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with sysinfo
[ ] Starting Darktremor Apps2SD in sysinfo mode
[ ] System Information:
[ ] Kernel Information:
Linux version 2.6.34.5-cyanogenmod (shade@toxygene) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Fri Oct 8 15:36:42 EDT 2010
[ ] CPU Information:
Processor	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 407.63
Features	: swp half thumb fastmult vfp edsp thumbee neon 
CPU implementer	: 0x51
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0x00f
CPU revision	: 2

Hardware	: supersonic
Revision	: 0003
Serial		: 0000000000000000
[ ] Memory:
/system/bin/starta2sd: line 366: i: command not found
MemTotal:         425440 kB
MemFree:          111968 kB
Buffers:             104 kB
Cached:           144872 kB
SwapCached:            0 kB
Active:           224992 kB
Inactive:          57968 kB
Active(anon):     138036 kB
Inactive(anon):      560 kB
Active(file):      86956 kB
Inactive(file):    57408 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        137992 kB
Mapped:            87716 kB
Shmem:               612 kB
Slab:               9992 kB
SReclaimable:       3020 kB
SUnreclaim:         6972 kB
KernelStack:        3848 kB
PageTables:        13912 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      212720 kB
Committed_AS:    4221760 kB
VmallocTotal:     450560 kB
VmallocUsed:      126776 kB
VmallocChunk:     288772 kB
[ ] Mounted Partition:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock4 /system yaffs2 ro,relatime 0 0
/dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
tmpfs /app-cache tmpfs rw,relatime,size=8192k 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
[ ] Valid Partitions:
nodev	sysfs
nodev	rootfs
nodev	bdev
nodev	proc
nodev	cgroup
nodev	tmpfs
nodev	debugfs
nodev	sockfs
nodev	pipefs
nodev	anon_inodefs
nodev	devpts
	squashfs
nodev	ramfs
	vfat
	yaffs
	yaffs2
nodev	aufs
[ ] Swap Information:
: applet not found
cat: can't open '/proc/swaps': No such file or directory
cat: can't open '/proc/swaps': No such file or directory
[ ] Partition Information:
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   207.7M         0    207.7M   0% /dev
tmpfs                   207.7M         0    207.7M   0% /mnt/asec
/dev/block/mtdblock4    350.0M    126.2M    223.8M  36% /system
/dev/block/mtdblock6    427.6M    386.5M     41.1M  90% /data
/dev/block/mtdblock5    160.0M      4.3M    155.7M   3% /cache
tmpfs                     8.0M         0      8.0M   0% /app-cache
/dev/block/vold/179:1
                          6.6G      5.4M      6.6G   0% /mnt/sdcard
/dev/block/vold/179:1
                          6.6G      5.4M      6.6G   0% /mnt/secure/asec
[ ] MTD Information:
dev:    size   erasesize  name
mtd0: 00c00000 00020000 "wimax"
mtd1: 000a0000 00020000 "misc"
mtd2: 00500000 00020000 "recovery"
mtd3: 00280000 00020000 "boot"
mtd4: 15e00000 00020000 "system"
mtd5: 0a000000 00020000 "cache"
mtd6: 1aba0000 00020000 "userdata"
[ ] Phone Serial #: HT07BHL03342
[ ] Bootloader Version: 0.76.2000
[ ] Radio Baseband: 2.15.00.09.01
[ ] Hardware ID: supersonic
[ ] Product Model: PC36100
[ ] Product Brand: htc_supersonic
[ ] Product Device: supersonic
[ ] Product Board: supersonic
[ ] Rom: 3.26.651.1 CL218634 release-keys
[ ] Base Rom Version: 
[ ] Setting File System Ready property to 1.
#
 
kevinbear
Old
#105  
Senior Member
Thanks Meter 21
Posts: 237
Join Date: Jun 2010
Location: Gurnee
Looks like I might be having success by flashing Snap 7.6 (and using only ext2).

Bummer that cm6 kernel isn't currently mounting ext partitions well (from what I've read, finally). And that I still can't apparently upgrade to ext3
 
tkirton
Old
#106  
Senior Member - OP
Thanks Meter 208
Posts: 2,029
Join Date: Jul 2009
Location: Katy Texas
In the root of your Evo, there's a file called init.rc. Although this file, even if you were to edit it, cannot be saved (it will be replaced upon reboot of the phone), it may give me an idea of why it is not mounting.

If you could, do the following:

1. Using ADB, execute the following command:

adb pull /init.rc init.rc

2. Once you have that file, send it to me at rtkirton@gmail.com.

If you want to get ahead of me on this:
a. Open the file in a text editor.
b. Follow this link: http://forum.xda-developers.com/show...31&postcount=4
c. Read the contents of this link and see if any of those lines in the code section are in the init.rc. If not, then either it isn't launching Apps2SD (usually CyanogenMod runs a file called sysinit from /system/bin. It is marked in init.rc as exec /system/bin/sysinit) or your version is using something different to launch (which isn't a big deal...I can add support for that quickly).

Quote:
Originally Posted by kevinbear View Post
Argh…

So I have searched every thread and forum I can find, read every bit of info, and I can't figure this out.

Running CM6 Nightly (happen to be on #110 at the moment) on my Evo. 8GB Toshiba SD Card - Class 6. Card works just fine. Partitioned/upgraded to Ext3 with AmonRa. Tried both standard and alt installers for Darktremor.

Yet every time I boot and run 'a2sd check', it tells me "Ext partition found, but not mounted".

It's crazy. Works perfectly with the a2sd implementation found in Fresh ROM, but I can't for the life of me get it working on cm6. Managed to fix every other problem I've run into, except for this one!



What do you need from me to help me figure this out?

Thanks in advance!

 
tkirton
Old
#107  
Senior Member - OP
Thanks Meter 208
Posts: 2,029
Join Date: Jul 2009
Location: Katy Texas
Hmmm...that's strange. I'll check it out.

[QUOTE=LC_Nab;8563519]
Quote:
Originally Posted by hacketbt View Post
Any ideas why 2.7.5.2 breaks my a2sd? Running CM6 with 2.7.5.1 now and after installing 2.7.5.2 I have none of my apps after boot. Running "a2sd check" says there is an sd-ext partition but it cannot be mounted. Was forced to restore from nandroid to get everything back.QUOTE]

This happened to me too, all i did is redo the ext, but leave it at ext2 dont upgrade to ext3 and it should work fine, well it did to me at least xD

Sent from my PC36100 using Tapatalk



Sent from my PC36100 using XDA App

 
tkirton
Old
(Last edited by tkirton; 13th October 2010 at 09:42 AM.) Reason: Stated filesystem information is in /proc/partitions when it is really in /proc/filesystems.
#108  
Senior Member - OP
Thanks Meter 208
Posts: 2,029
Join Date: Jul 2009
Location: Katy Texas
That is odd that your kernel doesn't even support EXT2.

The information related to determining if the EXT2/3/4 filesystems are supported comes from /proc/filesystems. When you posted the a2sd sysinfo, it runs busybox cat /proc/partitions and puts that in the log, which didn't look like it has any of the EXT filesystem types.

I guess those were turned off in the kernel you are using (you can tell the kernel to turn off EXT2/EXT3/EXT4 support before it is compiled...all other developers I've encountered leave EXT2 on at the very minimum)...which sucks because no Apps2SD other than the Froyo version will work.

[QUOTE=kevinbear;8565661]
Quote:
Originally Posted by LC_Nab View Post

Used AmonRa to partition. Still no luck.

Strangely, when I run 'a2sd partlist' it spits out that EXT2 EXT3 and EXT4 are all not supported by this ROM. That doesn't seem right, does it? (aside from maybe EXT4).

A few pastes from my terminal:

Code:
# a2sd check
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
[X] Ext partition found, but not mounted.
    Your rom may not be setup to run Apps2SD.
    Check with your rom developer if the boot image
    is programmed to run Apps2SD.

    Your partition may be using an EXT4 partition,
    but your rom may not support EXT4.  Repartition
    your SD card to use EXT2 or EXT3.
Code:
# a2sd repair
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with repair
[ ] Starting Darktremor Apps2SD in repair mode
[X] EXT partition not mounted
[ ] Resetting Apps and Private Apps to Internal Storage
[ ] Setting No Apps2SD flag file
[ ] Setting File System Ready property to 1.
Code:
# a2sd partlist
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with partlist
[ ] Starting Darktremor Apps2SD in partlist mode
[ ] Partitions Supported with this ROM:
    (X) EXT2 Partition Not Supported
    (X) EXT3 Partition Not Supported
    (X) EXT4 Partition Not Supported
[ ] Setting File System Ready property to 1.
Code:
# a2sd sysinfo
[ ] Apps2SD is launching...
 __ _____
|  \  |  
|   | |  
|__/  |  Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with sysinfo
[ ] Starting Darktremor Apps2SD in sysinfo mode
[ ] System Information:
[ ] Kernel Information:
Linux version 2.6.34.5-cyanogenmod (shade@toxygene) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Fri Oct 8 15:36:42 EDT 2010
[ ] CPU Information:
Processor    : ARMv7 Processor rev 2 (v7l)
BogoMIPS    : 407.63
Features    : swp half thumb fastmult vfp edsp thumbee neon 
CPU implementer    : 0x51
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0x00f
CPU revision    : 2

Hardware    : supersonic
Revision    : 0003
Serial        : 0000000000000000
[ ] Memory:
/system/bin/starta2sd: line 366: i: command not found
MemTotal:         425440 kB
MemFree:          111968 kB
Buffers:             104 kB
Cached:           144872 kB
SwapCached:            0 kB
Active:           224992 kB
Inactive:          57968 kB
Active(anon):     138036 kB
Inactive(anon):      560 kB
Active(file):      86956 kB
Inactive(file):    57408 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        137992 kB
Mapped:            87716 kB
Shmem:               612 kB
Slab:               9992 kB
SReclaimable:       3020 kB
SUnreclaim:         6972 kB
KernelStack:        3848 kB
PageTables:        13912 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      212720 kB
Committed_AS:    4221760 kB
VmallocTotal:     450560 kB
VmallocUsed:      126776 kB
VmallocChunk:     288772 kB
[ ] Mounted Partition:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock4 /system yaffs2 ro,relatime 0 0
/dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
tmpfs /app-cache tmpfs rw,relatime,size=8192k 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
[ ] Valid Partitions:
nodev    sysfs
nodev    rootfs
nodev    bdev
nodev    proc
nodev    cgroup
nodev    tmpfs
nodev    debugfs
nodev    sockfs
nodev    pipefs
nodev    anon_inodefs
nodev    devpts
    squashfs
nodev    ramfs
    vfat
    yaffs
    yaffs2
nodev    aufs
[ ] Swap Information:
: applet not found
cat: can't open '/proc/swaps': No such file or directory
cat: can't open '/proc/swaps': No such file or directory
[ ] Partition Information:
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   207.7M         0    207.7M   0% /dev
tmpfs                   207.7M         0    207.7M   0% /mnt/asec
/dev/block/mtdblock4    350.0M    126.2M    223.8M  36% /system
/dev/block/mtdblock6    427.6M    386.5M     41.1M  90% /data
/dev/block/mtdblock5    160.0M      4.3M    155.7M   3% /cache
tmpfs                     8.0M         0      8.0M   0% /app-cache
/dev/block/vold/179:1
                          6.6G      5.4M      6.6G   0% /mnt/sdcard
/dev/block/vold/179:1
                          6.6G      5.4M      6.6G   0% /mnt/secure/asec
[ ] MTD Information:
dev:    size   erasesize  name
mtd0: 00c00000 00020000 "wimax"
mtd1: 000a0000 00020000 "misc"
mtd2: 00500000 00020000 "recovery"
mtd3: 00280000 00020000 "boot"
mtd4: 15e00000 00020000 "system"
mtd5: 0a000000 00020000 "cache"
mtd6: 1aba0000 00020000 "userdata"
[ ] Phone Serial #: HT07BHL03342
[ ] Bootloader Version: 0.76.2000
[ ] Radio Baseband: 2.15.00.09.01
[ ] Hardware ID: supersonic
[ ] Product Model: PC36100
[ ] Product Brand: htc_supersonic
[ ] Product Device: supersonic
[ ] Product Board: supersonic
[ ] Rom: 3.26.651.1 CL218634 release-keys
[ ] Base Rom Version: 
[ ] Setting File System Ready property to 1.
#

 
freeza
Old
#109  
freeza's Avatar
Recognized Developer
Thanks Meter 6873
Posts: 3,797
Join Date: May 2006
Location: Pasadena, CA

 
DONATE TO ME
Hi, is there anyway the align command can be used to zipalign apps in system/app as well? :-p
.:Team Synergy:.
Current Phone: Sprint Galaxy S III
ROMs: Galaxy S fre3 2.53 | Stock Jelly Bean L710VPBMD4
Sites: freeza inc. | free HQ Mobile Wallpapers&Ringtones
Facebook: Add me | Google Talk: @gmail.com
 
tkirton
Old
#110  
Senior Member - OP
Thanks Meter 208
Posts: 2,029
Join Date: Jul 2009
Location: Katy Texas
No. That's done for safety reasons. Zipalign has been known to cause issues with a small percentage of programs. /system/app was excluded in the event that any of the core apps could not be zipaligned correctly, causing an instability in the system.

Also, some phones (i.e. Desire) will not allow modifications to the /system partition unless the phone is in recovery, thus making any modifications to /system/app a moot point.

Rom developers, who are better suited to test for this zipalign issue, have zipaligned /system/app...however, the extent of what is zipaligned in that directory varies per rom developer. I made a decision when I integrated zipalign to leave the core programs (ones in /system/app) for the rom developers and I would only focus on /data/app and /data/app-private.

But if you are truly serious about it, here's the modified code. Put this in a file, transfer to /system/bin (or /system/xbin), change the permission to grant execution rights (chmod 755), and run it.

Code:
#!/system/bin/sh
echo "[ ] Zipaligning all .apk files in /data/app"
for apk in /system/app/*.apk ; do
    /system/bin/zipalign -c 4 $apk
    if [ $? == 1 ];
        then
            echo -e "[ ] ZipAligning $(basename $apk)"
            /system/bin/zipalign -f 4 $apk /cache/$(basename $apk)
            if [ -e /cache/$(basename $apk) ];
                then
                    busybox cp -fp /cache/$(basename $apk) $apk;
                    busybox rm /cache/$(basename $apk);
                    echo "[*] ZipAligning $(basename $apk) complete."
                else
                    echo "[X] ZipAligning $(basename $apk) failed."
            fi;
        else
            echo "[!] ZipAlign already completed on $apk"
    fi;
done;
Nandroid backup first.

Quote:
Originally Posted by freeza View Post
Hi, is there anyway the align command can be used to zipalign apps in system/app as well? :-p


 
Post Reply+
Tags
a2sd, apps2sd, boogers on my sdcard, darktremor, holy batman apps on sd
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...