Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,696 Members 37,424 Now Online
XDA Developers Android and Mobile Development Forum

edit system.img

Tip us?
 
trapacska
Old
#1  
Senior Member - OP
Thanks Meter 349
Posts: 163
Join Date: May 2010
Location: Érd
Default edit system.img

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, 556 views)
 
racht
Old
#2  
Recognized Developer
Thanks Meter 875
Posts: 309
Join Date: Dec 2010

 
DONATE TO ME
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.
 
trapacska
Old
#3  
Senior Member - OP
Thanks Meter 349
Posts: 163
Join Date: May 2010
Location: Érd
Quote:
Originally Posted by racht View Post
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.
 
auphone
Old
#4  
Member
Thanks Meter 3
Posts: 32
Join Date: Dec 2010
so ... It's used to ?
 
propc
Old
(Last edited by propc; 25th December 2010 at 12:31 AM.)
#5  
propc's Avatar
Senior Member
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by trapacska View Post
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:
Select 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, 106 views)

Nexus S i9023
 
trapacska
Old
#6  
Senior Member - OP
Thanks Meter 349
Posts: 163
Join Date: May 2010
Location: Érd
Quote:
Originally Posted by propc View Post
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:
Select 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.
 
propc
Old
(Last edited by propc; 26th December 2010 at 03:41 AM.)
#7  
propc's Avatar
Senior Member
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by trapacska View Post
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:
Select 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:
Select 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

Nexus S i9023
 
trapacska
Old
#8  
Senior Member - OP
Thanks Meter 349
Posts: 163
Join Date: May 2010
Location: Érd
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
 
bnight
Old
#9  
Senior Member
Thanks Meter 14
Posts: 121
Join Date: Nov 2010
Location: Sofia
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.
 
propc
Old
#10  
propc's Avatar
Senior Member
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by bnight View Post
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?

Nexus S i9023

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Slide Dial Replacement Dialer Lets You Make Calls from Anywhere

If you frequently make phone calls, your dialer (aka phone app)is one of the … more

Navigate with Your Samsung Gear 2 Using DMA Navi Watch

Whether you’re travelling to a new destination or exploring some previously … more

Xperia Z1 Stereo Speaker Mod, Cell Phone Unlocking Legal Again! – XDA Developer TV

Cell Phone Unlocking is legal again!! That and much … more

[OTA Captured] Verizon LG G Pad 8.3 Finally Gets Official KitKat Update

It’s been almost nine months since the LG G Pad … more