Lollipop for OnePlus One Enters Testing Stage

Cyanogen just announced on their twitter that their CyanogenMod Lollipop build for the OnePlus … more

Xiaomi Business Model Unlike Usually Conceived

This article explains how Xiaomi sells phones not just to be a mobile OEM, but also to seed … more

Note 4 Launcher Theme Collection

If you like the features and integration of the TouchWiz Launcher on your Note 4, FrenchFamousTeam put … more

Verizon Allows Customers to Opt Out of Supercookies

Following the controversy that Verizon’s zombie “supercookies” … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

edit system.img

OP trapacska

23rd December 2010, 09:30 PM   |  #1  
OP Senior Member
Flag Érd
Thanks Meter: 349
 
163 posts
Join Date:Joined: May 2010
More
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, 592 views)
24th December 2010, 01:03 AM   |  #2  
Recognized Developer
Thanks Meter: 876
 
319 posts
Join Date:Joined: Dec 2010
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, 03:25 PM   |  #3  
OP Senior Member
Flag Érd
Thanks Meter: 349
 
163 posts
Join Date:Joined: May 2010
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, 05:56 PM   |  #4  
Member
Thanks Meter: 3
 
32 posts
Join Date:Joined: Dec 2010
so ... It's used to ?
25th December 2010, 12:50 AM   |  #5  
propc's Avatar
Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
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, 109 views)
Last edited by propc; 25th December 2010 at 01:31 AM.
25th December 2010, 10:15 AM   |  #6  
OP Senior Member
Flag Érd
Thanks Meter: 349
 
163 posts
Join Date:Joined: May 2010
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, 03:29 AM   |  #7  
propc's Avatar
Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
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 04:41 AM.
29th December 2010, 01:36 PM   |  #8  
OP Senior Member
Flag Érd
Thanks Meter: 349
 
163 posts
Join Date:Joined: May 2010
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, 02:24 PM   |  #9  
Senior Member
Flag Sofia
Thanks Meter: 14
 
123 posts
Join Date:Joined: Nov 2010
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, 03:08 PM   |  #10  
propc's Avatar
Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
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?

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

Advanced Search
Display Modes