Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
OMGN00B
Old
#391  
Junior Member
Thanks Meter 1
Posts: 21
Join Date: Sep 2010
I know many users use Link2SD but is Apps2SD bundled in froyo available here? Because I can't find its functionalities.
 
telnet777
Old
(Last edited by telnet777; 10th April 2012 at 02:04 AM.)
#392  
telnet777's Avatar
Senior Member
Thanks Meter 38
Posts: 133
Join Date: Feb 2012
Quote:
Originally Posted by OMGN00B View Post
I know many users use Link2SD but is Apps2SD bundled in froyo available here? Because I can't find its functionalities.
App2SD is supported by froyo. I'm not sure about this.

What I said is app2ext which links data/app to sd-ext/app. I'm not sure about this.


Edit:I’ve uploaded the XT711swap.zip. The readme is written by chinese.
Attached Files
File Type: zip XT711swap.zip - [Click for QR Code] (3.12 MB, 9 views)
 
telnet777
Old
#393  
telnet777's Avatar
Senior Member
Thanks Meter 38
Posts: 133
Join Date: Feb 2012
I've a question to ask.

When reboot, sometimes the phone says android is updating. About 76 items to update.
I googled that this is android 4.0's phenomenon. Who knows why? Thanks!
 
lwxddlqkillapp
Old
#394  
Senior Member
Thanks Meter 44
Posts: 120
Join Date: Feb 2012
Location: china
Do anybody have the original of ics framework-res.apk .. . Please give me the link. thinks.
 
telnet777
Old
(Last edited by telnet777; 11th April 2012 at 06:52 AM.)
#395  
telnet777's Avatar
Senior Member
Thanks Meter 38
Posts: 133
Join Date: Feb 2012
Hi, Mioze7Ae,

I've build mtd-hack.ko. I'll test it then edit it and re-build it.

Thank you for your instructions!

Edit1:
I've tested. The new part-STR.ko works on my Xt711.
Now, I'm trying to edit it.

Edit2:
I found it's useless after adding mark_logo_writeable() , so I want to debug using adb logcat.
But the logcat can't be used in openrecovery.
It says '/sbin/bash: line 0: exec: logcat: not found'.
I don't know how to handle this.
So I googled, find a linux command 'dmesg' and debug with it.

I found when mtd_init calls mark_logo_writeable(), the logo partition is still unvisible because it is hidden on XT711. So I put mark_logo_writeable() before return.

The final code is below:
Code:
erase /* and */ /* cdt arg */ from this line to mount logo partition:
{ mtd_hack_part(    640,   6784, "logo",       MTD_RO ) },
Code:
static int __init mtd_init(void)
{
    struct device_driver *devdrv;
    int err = 0;

    mark_boot_writeable();
    
    devdrv = driver_find("omap2-nand", &platform_bus_type);
    printk(KERN_INFO "mtd-hack: found driver %s modname %s\n", devdrv->name, devdrv->mod_name);

    err = driver_for_each_device(devdrv, NULL, NULL, create_missing_flash_parts);
    printk(KERN_INFO "mtd hack loaded");

    mark_logo_writeable(); //move to here!

    return 0;
}
And I've changed the moto logo to apple logo, great thanks to Mioze7Ae!
 
Mioze7Ae
Old
(Last edited by Mioze7Ae; 11th April 2012 at 02:09 PM.)
#396  
Mioze7Ae's Avatar
Recognized Developer
Thanks Meter 2091
Posts: 2,153
Join Date: Dec 2010
Location: Queen City of the West
Quote:
Originally Posted by telnet777 View Post
The final code is below:
Code:
erase /* and */ /* cdt arg */ from this line to mount logo partition:
{ mtd_hack_part(    640,   6784, "logo",       MTD_RO ) },
Ah, I see now. Sorry, I assumed logo was like boot. Logo just isn't available on standard boot in XT711. What you did does work. In this case there's also a shortcut since "logo" doesn't exist before the module is inserted.

The way you did it (which is perfectly fine):
(1) create read-only logo
(2) find logo data structure and mark it read-write

The shortcut is:
(1) create read-write logo

So, you could get rid of mark_logo_writable() and instead just use MTD_RW instead of MTD_RO and :
Code:
{ mtd_hack_part(    640,   6784, "logo",       MTD_RW ) },
Quote:
And I've changed the moto logo to apple logo, great thanks to Mioze7Ae!
ew, gross
Milestone XT720 -- CM6.3.6.2/github -- OpenRecoveryXT720 -- fastboot kernels -- SBF master thread/mirrors -- reverendkjr's video tutorials
SD card/app2ext/Link2SD problems: ORXT720 > "SD Card Utilities" > "Save diagnostics" and post /sdcard/sdcard-info.txt
The Following 2 Users Say Thank You to Mioze7Ae For This Useful Post: [ Click to Expand ]
 
telnet777
Old
#397  
telnet777's Avatar
Senior Member
Thanks Meter 38
Posts: 133
Join Date: Feb 2012
Quote:
Originally Posted by Mioze7Ae View Post
The shortcut is:
(1) create read-write logo

So, you could get rid of mark_logo_writable() and instead just use MTD_RW instead of MTD_RO and :
Code:
{ mtd_hack_part(    640,   6784, "logo",       MTD_RW ) },
I see. Because boot partition is already mounted, so we need mark_boot_writable() to make it writable. Thank you!

BTW, when I'm porting a rom(LHD-CM7-7098-NIGHTLY-JY-XT720@.zip) to XT711, I've do all things I know. But the phone reboot by itself a few seconds after seeing the bootanimation. It enter bootloop state. Do you know how to solve it or have you meet with this kind of problems?
 
fjfalcon
Old
#398  
fjfalcon's Avatar
Recognized Developer - OP
Thanks Meter 1263
Posts: 840
Join Date: Jan 2011
Location: Schelkovo

 
DONATE TO ME
Guys, i got lost sometime ago.. what does mtd_hack do? )
Making impossible possible
The Following User Says Thank You to fjfalcon For This Useful Post: [ Click to Expand ]
 
telnet777
Old
(Last edited by telnet777; 11th April 2012 at 02:51 PM.)
#399  
telnet777's Avatar
Senior Member
Thanks Meter 38
Posts: 133
Join Date: Feb 2012
Quote:
Originally Posted by fjfalcon View Post
Guys, i got lost sometime ago.. what does mtd_hack do? )
hehe, fjfalcon,long time no see!
To change logo.img on XT711 because logo partition is not available on this phone. So we need to re-build mtd-hack.ko and rename it to part-STR.ko. Thanks to MiozAe7, I did this following his instructions.

I'm now using the logo I attatched. It's very beautiful than ‘M'.



Edit:
I want to report a bug I found today.

When listening to the radio, I made a call. The called party answered. Then hangup. The FM radio keep working(not volumn down automatically) during the entire process.

I think the phone.apk or the telephony should give a signal to notify the fm radio to enter silence when the call start and restore its volumn when the call ended.

If you want logcat, I can re-test and upload the log.
Attached Thumbnails
Click image for larger version

Name:	logo.jpg
Views:	48
Size:	28.9 KB
ID:	996795  
 
Mioze7Ae
Old
(Last edited by Mioze7Ae; 11th April 2012 at 02:57 PM.)
#400  
Mioze7Ae's Avatar
Recognized Developer
Thanks Meter 2091
Posts: 2,153
Join Date: Dec 2010
Location: Queen City of the West
Quote:
Originally Posted by fjfalcon View Post
Guys, i got lost sometime ago.. what does mtd_hack do? )
It's for OpenRecoveryXT720 (but not included yet). When you 2nd-init to recovery via normal boot.img you only see a few of the partitions that you could see if you booted to stock recovery.img directly (but of course we can't really do anything in stock recovery.img except via the update.zip vulnerability on xt720mod.sbf). In full recovery you see all partitions r/w. mtd_hack.ko adds the missing partitions.

In OpenRecovery, mtd_hack.ko is called part-STR.ko and we've had it for a while, but part-STR.ko is actually made for A853 and has always segfaulted on insmod on XT720 (check dmesg after entering OpenRecovery). mtd_hack fixes that and adds missing partitions (bpsw etc). It also makes boot writable so you can flash boot.img from OpenRecovery (flashing boot actually never worked previously from OpenRecovery--that's why we have to remove the install boot.img from the CM updater_scripts or install fails--boot is read only).
Milestone XT720 -- CM6.3.6.2/github -- OpenRecoveryXT720 -- fastboot kernels -- SBF master thread/mirrors -- reverendkjr's video tutorials
SD card/app2ext/Link2SD problems: ORXT720 > "SD Card Utilities" > "Save diagnostics" and post /sdcard/sdcard-info.txt

The Following 3 Users Say Thank You to Mioze7Ae For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...