+ Reply to Thread
Results 1 to 9 of 9
Customizing android image
This is a discussion on Customizing android image within the Meizu M8 Android forums, part of the M8 Firmware category; I've just started to play with dual-booting android on M8 and thought I'd share some tip: Add apps to the ...
-
01-31-2010 #1Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsCustomizing android image
I've just started to play with dual-booting android on M8 and thought I'd share some tip:
Add apps to the image
The mdroid.img is just a ext2 file system in a file. So the following command will allow you to add android packages files into the image. Note: all commands listed here have to be issued as root or sudo on a Linux machine.
* mkdir /mnt/mdroid
* mount -o loop mdroid.img /mnt/mdroid
* Then you can copy any .apk file to /mnt/mdroid/system/app
* umount
* transfer the new mdroid.img to /Disk on your M8
Worked for me OK. I installed a terminal app (the default one in the original image doesn't seem to allow input) and managed to issue some commands. Actually 'dmesg' command shows a lot of errors from I2C system. Not sure if this affect anything major.
Increase image size
You can prepare your own img file as well.
(Note: I have NOT tested the following but there is no reason it shouldn't work.)
* dd if=/dev/zero of=my.img count=4096 (replace with your size in blocks)
* mkfs.ext2 my.img
* mkdir /mnt/myimg && mount -o loop my.img /mnt/myimg
* Then copy everything from /mnt/mdroid/ over to /mnt/myimg
* umount /mnt/myimg
* Copy my.img to /Disk/mdroid.img on your M8.Last edited by lang2; 01-31-2010 at 07:00 PM.
-
-
02-01-2010 #2Valued Member
- Join Date
- Aug 2008
- Location
- Belgium
- Posts
- 2,434
- Thanks
- 127
Thanked 189 Times in 130 PostsGoodone Lang2!
I will try to document this with screens asap, many users will be glad with it. (or if you can document it be my guest ;-) )
Did you allready try to install someother apps aswell?
And are you been able to mount /disk from your installed terminal in android? This to use for example mp3´s/avi´s/.. ?
-
02-01-2010 #3Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsHi evow04,
I've accidentally injured my left hand so can't do much typing here. By document did you mean word doc or wiki? I'd prefer keeping everything in a wiki but I did notice that there are a number of word doc around. I should be able to write a more detailed how-to after a few days. BTW, why is there 2 wikis?
I did try a few other apps and it's a bit of hit and miss. Some work (pTerminal, a paint app, etc), some does't (android file manager), and some say the trial is expired - the date on android is 2024 somehow. What's a bit interesting is that the paint app rotated the screen 90' when launched.
w.r.t disk, the 'mount' command did say that some mmc device is mounted on /mnt/disk but 'ls' replied with 'no such file or directory'. Do we know for sure the device name if it's recgonized?Last edited by lang2; 02-01-2010 at 07:41 PM.
-
02-01-2010 #4
And this only works on Linux operating systems? Not Windows?
I tried Pushing applications to android, but it didnt work. Is there a way to do this for windows? XP, Vista(sux), 7, idc but any?
-
02-01-2010 #5Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsI don't think it'll work under Windows. Easest is to create a virtual machine.
-
02-02-2010 #6Valued Member
- Join Date
- Aug 2008
- Location
- Belgium
- Posts
- 2,434
- Thanks
- 127
Thanked 189 Times in 130 PostsHi lang2!
First of all; i hope your injuries get healed asap, i wish you the best!
You´re right about the "HowTo", this is information needed into a wiki instead of a .doc file, Good news is that there is been worked on.
I will send you a pm about that one
mm that is indeed interesting since this is a thing on the To-Do listWhat's a bit interesting is that the paint app rotated the screen 90' when launched.
indeed that´s freeware i thought see MS their site.Is there a way to do this for windows?
//
Easest is to create a virtual machine.
& if your pc isn´t that performant you could use Damn small linux?
(not sure if it would work with m8, but you could try?)
Mm it could be that it refers to the .img file. (not even sure if under android we could easily mount ntfs/fat/32)w.r.t disk, the 'mount' command did say that some mmc device is mounted on /mnt/disk but 'ls' replied with 'no such file or directory'. Do we know for sure the device name if it's recgonized?
What happens if you type df -l?
Normally we should see an overview of all drives and their partitions?
-
02-02-2010 #7Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 Posts@evow04
pm received. Will tried to add sth to the wiki in the coming days. I'll try a few things as well such as mounting the Disk partition. The problem is: there are too many things to do and too little free time.
-
02-03-2010 #8Valued Member
- Join Date
- Aug 2008
- Location
- Belgium
- Posts
- 2,434
- Thanks
- 127
Thanked 189 Times in 130 Poststhah, i can only agree :-)
i wish you the best ;-)
-
02-13-2010 #9Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsAdded link to this post.
The same technique would work with the new system.img
Similar Threads
-
Image Sizes
By Tidus2 in forum FirmwareReplies: 0Last Post: 02-02-2009, 04:31 PM -
Album image
By Gekon in forum General Meizu M6Replies: 3Last Post: 01-03-2009, 03:59 PM -
minione new image
By yyqcp in forum General Meizu M8Replies: 71Last Post: 08-09-2008, 10:08 PM -
Dfu Image 1
By Mr.Nick92 in forum FirmwareReplies: 5Last Post: 05-18-2008, 03:44 AM -
ouvrir une image
By patrickd in forum FrenchReplies: 2Last Post: 08-20-2007, 09:49 PM



Reply With Quote