A2SD - G1 General

correct me if i'm mistaken, but isn't doing apps 2 SD as simple as
1) su
2) mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
3) busybox cp /data/app/* /system/sd/app
4) rm -r /data/app
5) ln /system/sd/app /data/app
6) reboot
??same thing goes with app-private and dalvik cache? am i wrong?

you're almost right .
1) su
2) mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
3) busybox cp /data/app /system/sd/app
4) rm -r /data/app
5) ln -s /system/etc/app /data/app
6) reboot

Related

WiFi - Ad Hoc somthings i did not understand

Hi every body !
I made my G1 connecting with Ad Hoc mode:
Code:
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
adb push tiwlan.ini /data/misc/wifi/tiwlan.ini
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb shell mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
And i have made a correct tiwlan.ini and wpa_supplicant.conf, this is why it works like a charm.
Now, i have two problems:
1- After every reboot, i can't start my Wifi(no Wifi at all, it is OFF), i have to redo all that script
2- Even i made a Shell Script, noway, it works only by using the ADB. Here is a very basic script that i tried:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp -f ./tiwlan.ini /data/misc/wifi/tiwlan.ini
cp -f ./wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Any idea ?
Thank you.
G1 - Cyanogen 5.0.8-N1
(Sorry for my english writing)
Hi !
UP
I didn't resolve the problem yet
A+
I don't know how much of the script you understand, but your /system partition doesn't seem to be mounted until you run that script. That doesn't seem normal, /system sounds rather important :-/ If you don't know how to undo whatever modifications you have made, I would recommend resetting your phone to factory settings. It should fix it.

[Q][possable solution found??][universal??] data2ext

I have made a file to mount an sdcard second partition to "/data". It needs to go in "/system/etc/init.d/". Can some have a look to tell me if it would work or not as I don't have a partition sdcard.
-Download link: http://db.tt/paxqo1b
Code:
#!/system/bin/sh
if [ -e /dev/block/platform/msm_sdcc.1/by-num/p2 ]
then
busybox mount -o rw,remount -t yaffs2 /dev/block/mtdblock10 /;
busybox umount /data;
busybox mount /dev/block/platform/msm_sdcc.1/by-num/p2 /data;
busybox chown system system /data;
busybox chmod 771 /data;
busybox mount -o ro,remount -t yaffs2 /dev/block/mtdblock10 /;
fi;
Why would you want the whole data partition on the sdcard? It will ruin it a lot quicker, and also slow the phone down if the card isn't fast enough.
Jack

Google Maps freeze in Froyo

I should check defy forums more often!
have been suffering with this since GMaps changed to vector based maps.
http://forum.cyanogenmod.com/topic/31432-faq-cyanogenmod-7/
16) My GoogleMaps (or other application that uses OpenGL) is freezing/irresponsive. What can I do?
Open terminal or adb shell and type these commands:
Code:
$ su
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
# echo sysctl -w vm.min_free_kbytes=4096 >> /system/etc/install-recovery.sh
# chmod 744 /system/etc/install-recovery.sh
# mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
Wow, Froyo... Been a while...

Can't seem to unroot my FF?

I tried following this thread: http://forum.xda-developers.com/showthread.php?t=1349652
When I open a CMD window and type this is what happens:
c:\>cd adb
c:\adb>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# rm /system/app/Superuser.apk
rm /system/app/Superuser.apk
# rm /system/bin/su
rm /system/bin/su
rm failed for /system/bin/su, No such file or directory
# rm /system/xbin/su
rm /system/xbin/su
# rm /system/bin/su
rm /system/bin/su
rm failed for /system/bin/su, No such file or directory
#
I can't seem to remove '/system/bin/su". I restarted my KF and typed "adb shel" "su" and it says "permission denied". Does that mean my KF is good to ship back and not rooted now?
bal1985 said:
I tried following this thread: http://forum.xda-developers.com/showthread.php?t=1349652
When I open a CMD window and type this is what happens:
c:\>cd adb
c:\adb>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# rm /system/app/Superuser.apk
rm /system/app/Superuser.apk
# rm /system/bin/su
rm /system/bin/su
rm failed for /system/bin/su, No such file or directory
# rm /system/xbin/su
rm /system/xbin/su
# rm /system/bin/su
rm /system/bin/su
rm failed for /system/bin/su, No such file or directory
#
I can't seem to remove '/system/bin/su". I restarted my KF and typed "adb shel" "su" and it says "permission denied". Does that mean my KF is good to ship back and not rooted now?
Click to expand...
Click to collapse
Try to install an app that requires root like OpenVPN for example. If it doesn't install or work properly, you're unrooted. Or try to su in with a terminal emulator.

[Q] Code means Deodex

Hi. What is the meaning of the following code? I mean, what is she?
This is the work that could paste the file or files. Odex to remove that?
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
Re: Code means Deodex
"adb shell
su
stop
mount -o rw,remount /system/ /system/" are the commands to get superuser permissions and remount "/system/"
"cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex" are the commands to push the deodexed .apk files and .jar files from "/sdcard/done_app/" and "\sdcard\done_frame\" to "\system\app\" and "\system\framework\" respectively. The odex files are not required and this also deletes them
"mount -o ro,remount /system/ /system/
reboot" remounts system and reboots your cell phone.
These commands need deodexed system files put in the required directories.
Search the forums or google on how to pull system files and deodex them :good:

Categories

Resources