backup all phone - Touch CDMA Android Development

This is a simple hack to backup all phone (everything)
you need:
space on sd
adb
start adb:
Code:
adb shell rm /sdcard/andboot/androidinstall.tgz (if present)
adb shell tar zcvpf /sdcard/andboot/androidinstall.tgz /system /data
if you want to reinstall, go to boot menu reinstall system and clean data (you can also do it with atools)

Related

Noob Question - Wipe phone

so i want to wipe my g1 to delete all of its apps.
however I would still like to keep my contacts and sms's/emails.
is this possible? if so, how do i do it?
thanks, God Like
your email's and contacts should be synced to google's servers if you keep sync on. if not just manually sync it a few times to get it to register on the servers. you can back up your messages.
or if you have fastboot, you can make a nandroid back up. pull userdata.img and use fastboot flash data userdata.img or something like that to put it back on your phone.
totally forgot that they were on google :/
but remember i am a noob, how do i wipe lol?
also my apps are on sd so will it delete them off the partition?
also will it delete everything else on my sd?
lastly, it wont delete my rom or root will it?
thanks
well to wipe your phone, boot the phone into recovery (home and power) and there is an option in recovery to wipe your phone. that will clear cache and data.
to wipe your ext2/3/4 boot into recovery, then choose the option recovery console, once in the recovery console hit enter, there will be a prompt to hit enter, so that is how you will know you are in the recovery console. after you hit enter type
Code:
mount /system
rm -r /system/sd/*
that will delete everything off of your second partition.
if you either wipe your phone or format your sdcard, it is recommended that you reflash your rom. but you will not lose root by just wiping your phone or formatting your sdcard
david1171 said:
Code:
mount /system
rm -r /system/sd/*
Click to expand...
Click to collapse
didnt work. My partition is linux ext2 ...do i need to change the asterix to anything?
thanks
mackz said:
didnt work. My partition is linux ext2 ...do i need to change the asterix to anything?
thanks
Click to expand...
Click to collapse
/system/sd is what the phone recognizes the ext2 partition to be. try
Code:
rm /system/sd/*
or
Code:
rm -r /system/sd
or
Code:
rm /system/sd
if that doesn't work then try
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
that and see if it will work.
make sure you are doing this from the recovery console.
If you are using cm recovery 1.4 you can go into the recovery console and type ums_enable to acess the sdcard with nothing running on it, I just did it to wipe my sd and start over fresh and when you are done type ums_disable to unmount the sd and type reboot to restart the phone
david1171 said:
/system/sd is what the phone recognizes the ext2 partition to be. try
Code:
rm /system/sd/*
or
Code:
rm -r /system/sd
or
Code:
rm /system/sd
if that doesn't work then try
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
that and see if it will work.
make sure you are doing this from the recovery console.
Click to expand...
Click to collapse
hey, thanks this apparently worked. It replied a # which tells me it worked and when i tried to repeat the command it said (code) could not be found...but after i rebooted, all my apps are still there...and they work. I reflashed and everything still is there
any ideas?

Accidentally Deleted font folder

well one my friend have problem with his HTC Tattoo while he was trying to delete a font from font folder he accidentally deleted the FONT FOLDER now his phone is not working...
is there anyway to fix this problem ?
I suppose that usb connection works, so he can push them to device via adb.
Here is the fonts folder.
Or he can use Android commander: http://forum.xda-developers.com/showthread.php?t=628138 to push them in system with an easier way.
can u pls explain how i can do it via ADB ?
Sorry, I'm not a linux expert and I don't know exactly which commands you must give. For this I suggested Android commander, cause you can drag & drop the folder to device's system folder like you do in windows file explorer.
You can also push the folder along with files with the Android SDK... It's easier as it is GUI based...
rre_za said:
can u pls explain how i can do it via ADB ?
Click to expand...
Click to collapse
1. Unpack the zip file into a folder
2. Connect Tattoo via USB, start recovery, open a terminal and type adb start-server
3. cd into the fontfolder: cd fontfolder
3. PATH\TO\adb push . /system/fonts (please note the DOT!!!! sign)
You're done.
What prob with my tattoo?
I used root1click tool
And I installed Enable Market >>>>> My phone's rooted
but when I try to push font in /system/fonts
ADB say : Permission Denied
Please Help
You need to remount the filesystem with the read-write permission.
Before typing "PATH\TO\adb push . /system/fonts" you need to execute "PATH\TO\adb remount"
I tried
adb remount
adb say:
remount failed: operation not permitted
what prob?
If you type
adb shell
Do you see a # or a $ ? (if you see a $ something has gone wrong with the root)
I believe you cannot remount via adb with stock (didn't try)...install Root Explorer and then try to remount from phone side (there is a button on the upper side saying: Mount RW)
Else do it manually and open adb shell and type:
1. su
2. insmod /data/local/bin/tattoo-hack.ko
3. mount -o rw,remount /dev/block/mtdblock5 /data
4. mount -o rw,remount /dev/block/mtdblock3 /system

unroot/stock under linux?

So, I went to fastboot and flashed my stock system image, recovery, boot....
booted up and it works fine.
But, I'm still rooted, even though the backup wasn't. wat.
so, now I'm on a fully stock system with root, and need to unroot. how do I?
In order to create an image of your system partition, your device needs to be rooted. Since 'root' is on the system partition, it will be rooted when you restore it again.
Open Android Terminal Emulator or adb shell and enter the following:
Code:
su
mount -o remount,rw system
rm /system/app/Superuser.apk
rm /system/xbin/su
Voila, root gone!
soupmagnet said:
In order to create an image of your system partition, your device needs to be rooted. Since 'root' is on the system partition, it will be rooted when you restore it again.
Open Android Terminal Emulator or adb shell and enter the following:
Code:
su
rm /system/app/Superuser.apk
rm /system/xbin/su
Voila, root gone!
Click to expand...
Click to collapse
It seems like today isn't my day.
Code:
[email protected]:/ # rm /system/app/Superuser.apk
rm failed for /system/app/Superuser.apk, Read-only file system
255|[email protected]:/ # rm /system/xbin/su
rm failed for /system/xbin/su, Read-only file system
255|[email protected]:/ #
System is read only right now, and I'm not familiar wnough with adb shell to flip it to rw...
edit: luckly, I know my way both around Google, and around the linux terminal.
mounted as RW, removed, rebooting the tablet now. if it takes I"ll restore it and see if it sticks there too. thank you!
Oh yeah, you might want to remount the system partition first
I'll edit my response accordingly.

How To Guide Backup all possible data from phone without root

adb backup and adb restore
Bash:
adb backup -apk -shared -all -f out.ab
Backing up all application, app data, and all shared files in storage.
Pulled the backup file from phone.
and restore
Bash:
adb restore out.ab

[GUIDE]Using /internal_sd/ as a swap

Warning: Using dd incorrectly can easily kill your smartphone
If you make a mistake in the commands you can erase the data on your memory card or erase one of the eMMC partitions altogether
After all this procedure will delete all the data on /internal_sd/ and you will not be able to store files on it
And now for the tutorial: I find these 96 MB in /internal_sd/ not very useful so I decided to use them for swap and it was successful
You need a kernel with swap and init.d and of course a root
That's all in the CM11 RC5. I don't know about other kernels or ROMs.
1) Download internal_sd_swp.img from the attachment
2) Put it somewhere on your smartphone
3) Run adb shell or some terminal on your smartphone
4) Do su and allow the request from the application Superuser or SuperSU
You should see # at the beginning of the line
5) Type
Code:
dd if=/patn/to/img/internal_sd_swp.img of=/dev/block/mmcblk0p32
(instead of /patn/to/img/ it should be where you put .img, if /data/local/ it will be /data/local/internal_sd_swp.img if /sdcard/ then /sdcard/internal_sd_swp.img etc)
6) Make a file 09swapon in /system/etc/init.d/ and type the following
Code:
busybox mkswap /dev/block/mmcblk0p32
busybox swapon /dev/block/mmcblk0p32
echo 100 > /proc/sys/vm/swappiness
7) Reboot and enter the
Code:
free
command and if successful the swap will not be 0
If you want it back the way it was, download internal_sd.img from the attachment, dd it like before and remove /system/etc/init.d/09swapon

Categories

Resources