FORUMS

Analysis & Opinion

Top Forum Discussions

edit system.img

169 posts
Thanks Meter: 360
 
By trapacska, Senior Member on 23rd December 2010, 08:30 PM
Post Reply Subscribe to Thread Email Thread
hy everybody.

i try mod the system.img on ubuntu linux with unyaffs and mkfs.yaffs2, i "hacked" the symlinks(because the armv6 unyaffs doen't like) so now everything is ok, unyaffs works well. BUT:

when i flash the other sin files with flashtool, my x8 is restart after a green sony ball. i gave to all file in bin folder: rwx-rx-rx and the all other files got rw-r-r permissions.

so, i don't know what is the problem with this method.

//my system.img was flashed with a method in "clean and pre-rooted 2.1 rom" thread.//

in attachment the filesunyaffs and mkfs.yaffs2.x86)
Attached Files
File Type: zip linux_tools.zip - [Click for QR Code] (211.2 KB, 610 views)
 
 
24th December 2010, 12:03 AM |#2  
Recognized Developer
Thanks Meter: 880
 
Donate to Me
More
unfortunately unyaffs-x86 does NOT preserve all file permissions if image is extracted and reassembled in Linux x86.
You have to extract/assemble on the phone to keep permissions.
Or, alternatively, you can fix permissions by using xRecovery tool, there's a menu "fix permissions".
To see why exactly your phone reboots, use adb logcat from PC.
24th December 2010, 02:25 PM |#3  
OP Senior Member
Flag Érd
Thanks Meter: 360
 
More
Quote:
Originally Posted by racht

unfortunately unyaffs-x86 does NOT preserve all file permissions if image is extracted and reassembled in Linux x86.
You have to extract/assemble on the phone to keep permissions.
Or, alternatively, you can fix permissions by using xRecovery tool, there's a menu "fix permissions".
To see why exactly your phone reboots, use adb logcat from PC.

yess, thank you! now i found a mkfs.yaffs2 for arm processors for android. it's verry slow.

so i made my sdcard to ext2, and now i try to "extract" my img.
24th December 2010, 04:56 PM |#4  
Member
Thanks Meter: 3
 
More
so ... It's used to ?
24th December 2010, 11:50 PM |#5  
propc's Avatar
Senior Member
Thanks Meter: 129
 
Donate to Me
More
Quote:
Originally Posted by trapacska

hy everybody.

i try mod the system.img on ubuntu linux with unyaffs and mkfs.yaffs2, i "hacked" the symlinks(because the armv6 unyaffs doen't like) so now everything is ok, unyaffs works well. BUT:

when i flash the other sin files with flashtool, my x8 is restart after a green sony ball. i gave to all file in bin folder: rwx-rx-rx and the all other files got rw-r-r permissions.

so, i don't know what is the problem with this method.

//my system.img was flashed with a method in "clean and pre-rooted 2.1 rom" thread.//

in attachment the filesunyaffs and mkfs.yaffs2.x86)

i've created sh script to view your current permissions.
it could be useful to re-set the permission manually to create the ROM
how:
upload to root of sdcard
run
Code:
su
cd /sdcard
sh plist.sh
it will create folder "permissions" on your sdcard.
all files permission listed there

open with notepad++
Attached Files
File Type: zip plist.zip - [Click for QR Code] (922 Bytes, 111 views)
Last edited by propc; 25th December 2010 at 12:31 AM.
25th December 2010, 09:15 AM |#6  
OP Senior Member
Flag Érd
Thanks Meter: 360
 
More
Quote:
Originally Posted by propc

i've created sh script to view your current permissions.
it could be useful to re-set the permission manually to create the ROM
how:
upload to root of sdcard
run

Code:
su
cd /sdcard
sh plist.sh
it will create folder "permissions" on your sdcard.
all files permission listed there

open with notepad++

it's cool! thank you. now i try to debrand the oroginal x8 rom.
26th December 2010, 02:29 AM |#7  
propc's Avatar
Senior Member
Thanks Meter: 129
 
Donate to Me
More
Quote:
Originally Posted by trapacska

it's cool! thank you. now i try to debrand the oroginal x8 rom.

you know what. i've found a better method to change permissions

1-mount original system.img
Code:
mkdir tmp/1
sudo mount -o loop /your/system.img/path /tmp/1
2-clone permissions from original system.img to your system folder
Code:
chmod -R --reference /tmp/1 /your/new/system/path
and the permission fix done!

EDIT: tested. and worked. I've finally created my own modified ROM (running on sdcard)
EDIT2: some problem with root permissions, will work on it
Last edited by propc; 26th December 2010 at 03:41 AM.
29th December 2010, 12:36 PM |#8  
OP Senior Member
Flag Érd
Thanks Meter: 360
 
More
thank you i found a way to fix permissions too:

1. unyaffs original system.img
2. in busybox shell mount it to r/w
3. copy xrecovery and su and superuser to fresh rom.

(for me it works well without xrecovery fix permissions)
if there is some error, you can fix it with xrecovery
29th December 2010, 01:24 PM |#9  
Senior Member
Flag Sofia
Thanks Meter: 14
 
More
Hello,

Can you try to change the /system image with one from froyo ? You can find such image in the X10 forum. I thing that if we change the contents of the /system with such from froyo it should work. With the standard kernel from eclair.

Please try this and let me know.
29th December 2010, 02:08 PM |#10  
propc's Avatar
Senior Member
Thanks Meter: 129
 
Donate to Me
More
Quote:
Originally Posted by bnight

Hello,

Can you try to change the /system image with one from froyo ? You can find such image in the X10 forum. I thing that if we change the contents of the /system with such from froyo it should work. With the standard kernel from eclair.

Please try this and let me know.

i tried it. no luck. too many files. where are the files that need to be edited?
/system/lib?
29th December 2010, 02:43 PM |#11  
OP Senior Member
Flag Érd
Thanks Meter: 360
 
More
Quote:
Originally Posted by propc

i tried it. no luck. too many files. where are the files that need to be edited?
/system/lib?

/system/framework (for a skin)((but the all folder))

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes