[dump][sharp aquos phone sh-12c][2.3.3] stock firmwares - Miscellaneous Android Development

Hey guys ,
----UPDATED 04.05.2012---------------------------------------------------------------------
this are dumped (using ADB cat) Stock-Firmwares of the NTT DoCoMo SH-12C (AQUOS PHONE)
DOWNLOAD [sh-12c-rom][2.3.3] stock (build 01.01.03)
size : 2X ~ 180MB
hoster : Mediafire
~~PART1~~
~~PART2~~​
this contains
Code:
/dev/mtd/mtd0 > boot.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd1 > persist.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd2 > misc.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd3 > recovery.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd4 > ipl.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd5 > system.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd6 > cache.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd7 > log.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd8 > battlog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd9 > calllog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd10 > ldb.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd11 > userdata.img - [COLOR="Red"]no[/COLOR]
--------------------------------------------------------------------------------
DOWNLOAD [sh-12c-rom][2.3.3] stock (build 01.01.02)
size : 2X ~ 180MB
hoster : Mediafire
~~PART1~~
~~PART2~~​
this contains
Code:
/dev/mtd/mtd0 > boot.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd1 > persist.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd2 > misc.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd3 > recovery.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd4 > ipl.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd5 > system.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd6 > cache.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd7 > log.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd8 > battlog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd9 > calllog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd10 > ldb.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd11 > userdata.img - [COLOR="Red"]no[/COLOR]
This can be flashed using this how-nandroid-without-nandroid-Tutorial !
NOTE : first check your SH-12C's system partitions will be flashed with the correct .img-file!
----------------------------------------------------------------------------------------------
still there is no mod, no custom recovery and no custom rom available !(maybe a thing for clockworkmod or cyanogen???)
really would like to see some developement!!!
Partitions of the SH-12C (for DEV's)
Code:
/dev/mtd/mtd0 > boot
/dev/mtd/mtd1 > persist
/dev/mtd/mtd2 > misc
/dev/mtd/mtd3 > recovery
/dev/mtd/mtd4 > ipl
/dev/mtd/mtd5 > system
/dev/mtd/mtd6 > cache
/dev/mtd/mtd7 > log
/dev/mtd/mtd8 > battlog
/dev/mtd/mtd9 > calllog
/dev/mtd/mtd10 > ldb
/dev/mtd/mtd11 > userdata
dbaf14

Do you know: How to updeta firware from 01.01.02 to 01.01.03?
thank you

Will it be possible to extract the update files from the dump image of a updated phone.

dbaf14 said:
Hey guys ,
this is dumped full Stock-Firmware of the NTT DoCoMo SH-12C (AQUOS PHONE)
FILENAME : dumpsysclean.zip (includet files are .img-files)
SIZE : 383,08MB
HOSTER : MEGAUPLOAD
OS : Android 2.3.3
BUILD : 01.01.02
INFO : includes all gapps and sharp system&preinstalled apps
>>>>>>> DOWNLOAD <<<<<<<<
still there is no mod, no custom recovery and no custom rom available !(maybe a thing for clockworkmod or cyanogen???)
really would like to see some developement!!!
Partitions of the SH-12C (for DEV's)
Code:
/dev/mtd/mtd0 > boot
/dev/mtd/mtd1 > persist
/dev/mtd/mtd2 > misc
/dev/mtd/mtd3 > recovery
/dev/mtd/mtd4 > ipl
/dev/mtd/mtd5 > system
/dev/mtd/mtd6 > cache
/dev/mtd/mtd7 > log
/dev/mtd/mtd8 > battlog
/dev/mtd/mtd9 > calllog
/dev/mtd/mtd10 > ldb
/dev/mtd/mtd11 > userdata
dbaf14
Click to expand...
Click to collapse
it is a nandroid img files, didn't it ?
I can't expand it with unaffs after unrar, unaffs say broken files

hmm
i used the tutorial of this thread back-up-your-phone-without-nandroid
first i temp. rooted my sh-12c and i used via adb command line :
Code:
adb shell
$ su
# cat /proc/mtd
to know about the device partitions
i got this ->
Code:
/dev/mtd/mtd0 > boot
/dev/mtd/mtd1 > persist
/dev/mtd/mtd2 > misc
/dev/mtd/mtd3 > recovery
/dev/mtd/mtd4 > ipl
/dev/mtd/mtd5 > system
/dev/mtd/mtd6 > cache
/dev/mtd/mtd7 > log
/dev/mtd/mtd8 > battlog
/dev/mtd/mtd9 > calllog
/dev/mtd/mtd10 > ldb
/dev/mtd/mtd11 > userdata
then i used this to backup the phones partitions
Code:
cat /dev/mtd/mtd0 > /sdcard/boot.img
cat /dev/mtd/mtd1 > /sdcard/persist.img
cat /dev/mtd/mtd2 > /sdcard/misc.img
cat /dev/mtd/mtd3 > /sdcard/recovery.img
cat /dev/mtd/mtd4 > /sdcard/ipl.img
cat /dev/mtd/mtd5 > /sdcard/system.img
cat /dev/mtd/mtd6 > /sdcard/cache.img
cat /dev/mtd/mtd7 > /sdcard/log.img
cat /dev/mtd/mtd8 > /sdcard/battlog.img
cat /dev/mtd/mtd9 > /sdcard/calllog.img
cat /dev/mtd/mtd10 > /sdcard/ldb.img
cat /dev/mtd/mtd11 > /sdcard/userdata.img
now i got the .img files , and when you use hex editor or notepad++ you'll see , this are the real files , but still dont know how to extract them too
also didnt tried to flash it back until now !
any ideas?
dbaf14

dbaf14 said:
hmm
i used the tutorial of this thread back-up-your-phone-without-nandroid
first i temp. rooted my sh-12c and i used via adb command line :
Code:
adb shell
$ su
# cat /proc/mtd
to know about the device partitions
i got this ->
Code:
/dev/mtd/mtd0 > boot
/dev/mtd/mtd1 > persist
/dev/mtd/mtd2 > misc
/dev/mtd/mtd3 > recovery
/dev/mtd/mtd4 > ipl
/dev/mtd/mtd5 > system
/dev/mtd/mtd6 > cache
/dev/mtd/mtd7 > log
/dev/mtd/mtd8 > battlog
/dev/mtd/mtd9 > calllog
/dev/mtd/mtd10 > ldb
/dev/mtd/mtd11 > userdata
then i used this to backup the phones partitions
Code:
cat /dev/mtd/mtd0 > /sdcard/boot.img
cat /dev/mtd/mtd1 > /sdcard/persist.img
cat /dev/mtd/mtd2 > /sdcard/misc.img
cat /dev/mtd/mtd3 > /sdcard/recovery.img
cat /dev/mtd/mtd4 > /sdcard/ipl.img
cat /dev/mtd/mtd5 > /sdcard/system.img
cat /dev/mtd/mtd6 > /sdcard/cache.img
cat /dev/mtd/mtd7 > /sdcard/log.img
cat /dev/mtd/mtd8 > /sdcard/battlog.img
cat /dev/mtd/mtd9 > /sdcard/calllog.img
cat /dev/mtd/mtd10 > /sdcard/ldb.img
cat /dev/mtd/mtd11 > /sdcard/userdata.img
now i got the .img files , and when you use hex editor or notepad++ you'll see , this are the real files , but still dont know how to extract them too
also didnt tried to flash it back until now !
any ideas?
dbaf14
Click to expand...
Click to collapse
3q, i got a log as following from my phone, and i think it is might be flashed with yaff2. So, i try to expand it with unaffs, but i fail to.
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null)
1 /boot mtd boot (null)
2 /cache yaffs2 cache (null)
3 /data yaffs2 userdata (null)
4 /ldb yaffs2 ldb (null)
5 /calllog yaffs2 calllog (null)
6 /misc mtd misc (null)
7 /recovery mtd recovery (null)
8 /sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0
9 /system yaffs2 system (null)
Fixing execute permissions for /cache

so now made another dump wich can be unpacked with unyaffs!(maybe useful to get root?)
this contains .img again , but made with "mkfs.yaffs2"
FILENAME : dumpimg.zip (includet files are .img-files)
SIZE : 308MB
HOSTER : Hotfile
OS : Android 2.3.3
BUILD : 01.01.02
INFO : includes all gapps and sharp system&preinstalled apps
>>>>>>> DOWNLOAD <<<<<<<<
dbaf14

Hotfile and Megaupload links are down. Any chance of re uploads?

Rly both is down?
Omg then i have to make a new dump again and it will be different coz i updated my SH-12C to firmware 01.01.03 some weeks ago!( it means if i cant find the old file)
So please be patient
Maybe this weekend!^_^
dbaf14
Sent from my SH-12C using XDA App

dbaf14 said:
Rly both is down?
Omg then i have to make a new dump again and it will be different coz i updated my SH-12C to firmware 01.01.03 some weeks ago!( it means if i cant find the old file)
So please be patient
Maybe this weekend!^_^
dbaf14
Sent from my SH-12C using XDA App
Click to expand...
Click to collapse
Yes, both are down, megaupload was megashutdown by the feds and the owners are in megatrouble looking at years in jail.
Hotfile does not like hot files, so they got removed due to copyright complaints.
Thank you for your help.
No worries on the file versions, any dump is a good dump.

dbaf14 said:
So please be patient
Maybe this weekend!^_^
dbaf14
Sent from my SH-12C using XDA App
Click to expand...
Click to collapse
Next weekend or sooner?

Does anyone with a Sharp SH12C or SH80F have the time to do a ROM dump?
Old posts are deleted.

HDD_x8 said:
Does anyone with a Sharp SH12C or SH80F have the time to do a ROM dump?
Old posts are deleted.
Click to expand...
Click to collapse
D*mn, i forgot
I'll try to dump today!
dbaf14
Sent from my SH-12C using XDA App

Have you got the time to take a dump?

[sh-12c-rom][2.3.3] stock (build 01.01.03)
HDD_x8 said:
Have you got the time to take a dump?
Click to expand...
Click to collapse
lol finally i had time to do this ,, so what u plan to do with this ?
still dont know how to unpack it
DOWNLOAD [sh-12c-rom][2.3.3] stock (build 01.01.03)
size : 2X ~ 180MB
hoster : Mediafire
~~PART1~~
~~PART2~~​
this contains
Code:
/dev/mtd/mtd0 > boot.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd1 > persist.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd2 > misc.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd3 > recovery.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd4 > ipl.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd5 > system.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd6 > cache.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd7 > log.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd8 > battlog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd9 > calllog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd10 > ldb.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd11 > userdata.img - [COLOR="Red"]no[/COLOR]
dbaf14

Thanks, the plan is to extract the apps and system files if possible.
Here is a guide for the first 2 image files
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

How to extract the files?

hey guys some files added to MY SH-12C PAGE
dbaf14

dbaf14 said:
Hey guys ,
----UPDATE 07.04.2012---------------------------------------------------------------------
this is dumped (using ADB cat) Stock-Firmware of the NTT DoCoMo SH-12C (AQUOS PHONE)
DOWNLOAD [sh-12c-rom][2.3.3] stock (build 01.01.03)
size : 2X ~ 180MB
hoster : Mediafire
~~PART1~~
~~PART2~~​
this contains
Code:
/dev/mtd/mtd0 > boot.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd1 > persist.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd2 > misc.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd3 > recovery.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd4 > ipl.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd5 > system.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd6 > cache.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd7 > log.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd8 > battlog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd9 > calllog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd10 > ldb.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd11 > userdata.img - [COLOR="Red"]no[/COLOR]
FILENAME : dumpsysclean.zip (includet files are .img-files)
SIZE : 383,08MB
HOSTER : MEGAUPLOAD
OS : Android 2.3.3
BUILD : 01.01.02
INFO : includes all gapps and sharp system&preinstalled apps
>>>>>>> DOWNLOAD <<<<<<<<
This can be flashed using this how-nandroid-without-nandroid-Tutorial !
NOTE : first check your SH-12C's system partitions will be flashed with the correct .img-file!
----------------------------------------------------------------------------------------------
update 10.11.2011
this is dumped (using ADB mkfs.yaffs2) Stock-Firmware of the NTT DoCoMo SH-12C (AQUOS PHONE)
FILENAME : dumpimg.zip (includet files are .img-files)
SIZE : 308MB
HOSTER : Hotfile
OS : Android 2.3.3
BUILD : 01.01.02
INFO : includes all gapps and sharp system&preinstalled apps
>>>>>>> DOWNLOAD <<<<<<<<
this can be unpacked with ADB using "unyaffs" or "unyaffs.exe x86 for windows"
NOTE : this can be not complete
still there is no mod, no custom recovery and no custom rom available !(maybe a thing for clockworkmod or cyanogen???)
really would like to see some developement!!!
Partitions of the SH-12C (for DEV's)
Code:
/dev/mtd/mtd0 > boot
/dev/mtd/mtd1 > persist
/dev/mtd/mtd2 > misc
/dev/mtd/mtd3 > recovery
/dev/mtd/mtd4 > ipl
/dev/mtd/mtd5 > system
/dev/mtd/mtd6 > cache
/dev/mtd/mtd7 > log
/dev/mtd/mtd8 > battlog
/dev/mtd/mtd9 > calllog
/dev/mtd/mtd10 > ldb
/dev/mtd/mtd11 > userdata
dbaf14
Click to expand...
Click to collapse
hi i cant download part 2 could you check if it is downloadable ?or can you give me here

dbaf14 said:
Hey guys ,
----UPDATE 07.04.2012---------------------------------------------------------------------
this is dumped (using ADB cat) Stock-Firmware of the NTT DoCoMo SH-12C (AQUOS PHONE)
DOWNLOAD [sh-12c-rom][2.3.3] stock (build 01.01.03)
size : 2X ~ 180MB
hoster : Mediafire
~~PART1~~
~~PART2~~​
this contains
Code:
/dev/mtd/mtd0 > boot.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd1 > persist.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd2 > misc.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd3 > recovery.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd4 > ipl.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd5 > system.img - [COLOR="Green"]yes[/COLOR]
/dev/mtd/mtd6 > cache.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd7 > log.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd8 > battlog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd9 > calllog.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd10 > ldb.img - [COLOR="Red"]no[/COLOR]
/dev/mtd/mtd11 > userdata.img - [COLOR="Red"]no[/COLOR]
FILENAME : dumpsysclean.zip (includet files are .img-files)
SIZE : 383,08MB
HOSTER : MEGAUPLOAD
OS : Android 2.3.3
BUILD : 01.01.02
INFO : includes all gapps and sharp system&preinstalled apps
>>>>>>> DOWNLOAD <<<<<<<<
This can be flashed using this how-nandroid-without-nandroid-Tutorial !
NOTE : first check your SH-12C's system partitions will be flashed with the correct .img-file!
----------------------------------------------------------------------------------------------
update 10.11.2011
this is dumped (using ADB mkfs.yaffs2) Stock-Firmware of the NTT DoCoMo SH-12C (AQUOS PHONE)
FILENAME : dumpimg.zip (includet files are .img-files)
SIZE : 308MB
HOSTER : Hotfile
OS : Android 2.3.3
BUILD : 01.01.02
INFO : includes all gapps and sharp system&preinstalled apps
>>>>>>> DOWNLOAD <<<<<<<<
this can be unpacked with ADB using "unyaffs" or "unyaffs.exe x86 for windows"
NOTE : this can be not complete
still there is no mod, no custom recovery and no custom rom available !(maybe a thing for clockworkmod or cyanogen???)
really would like to see some developement!!!
Partitions of the SH-12C (for DEV's)
Code:
/dev/mtd/mtd0 > boot
/dev/mtd/mtd1 > persist
/dev/mtd/mtd2 > misc
/dev/mtd/mtd3 > recovery
/dev/mtd/mtd4 > ipl
/dev/mtd/mtd5 > system
/dev/mtd/mtd6 > cache
/dev/mtd/mtd7 > log
/dev/mtd/mtd8 > battlog
/dev/mtd/mtd9 > calllog
/dev/mtd/mtd10 > ldb
/dev/mtd/mtd11 > userdata
dbaf14
Click to expand...
Click to collapse
hi my sh-12c is in boot loop jsut can see and stuck at AQUOS PHONE nothing els can i flash this rom to my phone , any way to flash in this situation please help ?
---------- Post added at 11:21 AM ---------- Previous post was at 11:17 AM ----------
thaiyo8 said:
hi my sh-12c is in boot loop jsut can see and stuck at AQUOS PHONE nothing els can i flash this rom to my phone , any way to flash in this situation please help ?
Click to expand...
Click to collapse
i tried shbreak and lstweek to uninstall some aplications but not sure if it is rooted or not , please help

Related

LG SU950/KU9500/Optimus Z CM 7.1 Port

I'm working on a port of CM 7.1 to the LG Optimus Z, and I'd like to use this thread as a dev log. I'll be putting up developments here for review and critique.
Pulled contents of /dev/mtd/mtdX and friends from original phone.
Code:
cat /dev/mtd/mtd0 > /sdcard/misc-mtd0.img
cat /dev/mtd/mtd0ro > /sdcard/misc-mtd0ro.img
cat /dev/mtd/mtd1 > /sdcard/recovery-mtd1.img
cat /dev/mtd/mtd1ro > /sdcard/recovery-mtd1ro.img
cat /dev/mtd/mtd2 > /sdcard/boot-mtd2.img
cat /dev/mtd/mtd2ro > /sdcard/boot-mtd2ro.img
cat /dev/mtd/mtd3 > /sdcard/system-mtd3.img
cat /dev/mtd/mtd3ro > /sdcard/system-mtd3ro.img
cat /dev/mtd/mtd4 > /sdcard/cache-mtd4.img
cat /dev/mtd/mtd4ro > /sdcard/cache-mtd4ro.img

Terminal Command Bible

I've ben gone for a while after working on my app2sd script (unfortunately I wasn't able to completely debug it, but kudos to devs that got it working for different devices) and I thought it would be nice to list some of the interesting commands I used to put the script together and eventually add other useful commands that can pull interesting info from devices, thus helping devs accomplish whatever it is that they're trying to accomplish.
For starters, this is one of my favorites, though unfortunately it doesn't work in every device:
Find Partition Blocks by Name:
Code:
ls -ln $(ls -lnR /dev | busybox egrep -i "by-name" | busybox grep /dev | busybox cut -f1 -d':') | busybox cut -f2 -d':' | busybox cut -f2,3,4 -d' '
Code:
BOOT -> /dev/block/mmcblk0p5
BOTA0 -> /dev/block/mmcblk0p1
BOTA1 -> /dev/block/mmcblk0p2
CACHE -> /dev/block/mmcblk0p8
EFS -> /dev/block/mmcblk0p3
HIDDEN -> /dev/block/mmcblk0p10
OTA -> /dev/block/mmcblk0p11
PARAM -> /dev/block/mmcblk0p4
RADIO -> /dev/block/mmcblk0p7
RECOVERY -> /dev/block/mmcblk0p6
SYSTEM -> /dev/block/mmcblk0p9
USERDATA -> /dev/block/mmcblk0p12
As you can see, if your device has the info, like my Galaxy Note 10.1, it will list every partition in the device with their name and their respective block.
Let's say you needed to point to the recovery partition, you could take the command one step further to make it return the recovery partition itself:
Code:
ls -ln $(ls -lnR /dev | busybox egrep -i "by-name" | busybox grep /dev | busybox cut -f1 -d':') | busybox cut -f2 -d':' | busybox cut -f2,3,4 -d' ' | busybox egrep -i "recovery" | busybox cut -f3 -d' '
Returns:
Code:
/dev/block/mmcblk0p6
Find folders using up the most space:
This is a quick way to find folders using the most space on your device. Great when you're running out of space.
Code:
busybox du -sh $(du -kHd 100 [XXXX] 2>/dev/null | sort -nr | cut -f2 | head -[YY]) 2>/dev/null
Replace [XXXX] with the path you want to analyze, such as /sdcard
Replace [YY] with how many results you want to show, such as the top 10 folders using up space
Code:
busybox du -sh $(du -kHd 100 /sdcard 2>/dev/null | sort -nr | cut -f2 | head -10) 2>/dev/null
would show the top largest folders in /sdcard
Reserved...
And if anyone has useful commands that they would like to contribute, please feel free to post them and I'll add them to the OP with credits.

RK3188 - Minix NEOX7 - unpack and repack boot.img

Hi all folks,
I have some question about the stock android system in this specific box and the format of the dumped partition.
Try to explain, I'm using rkflashtool to interact with the memory of the RK3188
This is the output of the command
rkflashtool r 0 1 | head -n 11
-------------------------------------------------------------------------------------------------
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0
init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:
[email protected](misc),
[email protected](kernel),
[email protected](boot),
[email protected](recovery),
[email protected](backup),
[email protected](cache),
[email protected](userdata),
[email protected](kpanic),
[email protected](system),
[email protected](user)
-------------------------------------------------------------------------------------------------
I guess the boot partition is something linke that:
+-------+ <--- 0x00019fe0
| boot |
+-------+ <----0x00012000
With this command i'm able to dump the entrie boot partition on my linux box in a file named b00t.img :
rkflashtool r 0x12000 0x8000 > b00t.img
Now, i have find out that with the tool rkunpack (or simply with dd) i'm able to unpack this b00t.img. The output are two file:
b00t.img-raw
b00t.img-symbol
The first file is no more than a gzip compressed data file, I'm able to extract the data in a directory with this command:
gunzip < ../b00t.img-raw | sudo cpio -i --make-directories
Now in this dir I have all the files of the / partition. I can modify for example the /init.rc.
I want to repack the entrie b00t.img in order to flash it again on the device.
NB:
In this thread these guys work at something like my problem...
http://www.freaktab.com/showthread.p...ull=1#post4055
The difference is that they work on a different partition layout, and the rkunpack of dumped boot.img return they only boot.img-raw.
Obviously I've already tried to repack the modified directory in this two ways:
mkcramfs myboot myboot-temp.img
kcrc myboot-temp.img customboot.img
or
find . ! -name "."| sort | cpio -oa -H newc | gzip -n > ../newboot.gz
kcrc newboot.gz customboot.img
None of these leads to obtain a file large enough to fit the boot partition on the deivice, that I want fill with:
rkflashtool w 0x12000 0x8000 < modifiedb00t.img
Has anyone ever worked with rk3188? Any idea?
Thanks in advance.
Anyone?

[Tweak][Guide] Init.d Tweaks

Init.d Tweaks
(Needs ROM (Kernel) With init.d Access And Busybox, Open Empty File In Text Editor (Notepad ++ Or Similar), Insert Tweak You Want In Header,Save in /system/etc/init.d and name it Lomething Like 73tweaks)
1. Strict minfree handler tweak
Code:
echo "2048,3072,6144,15360,17920,20480" > /sys/module/lowmemorykiller/parameters/minfree
2. Internet speed tweaks
Code:
echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
echo "1" > /proc/sys/net/ipv4/tcp_sack;
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480" > /proc/sys/net/core/wmem_max;
echo "404480" > /proc/sys/net/core/rmem_max;
echo "256960" > /proc/sys/net/core/rmem_default;
echo "256960" > /proc/sys/net/core/wmem_default;
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;
3. Vm management tweaks
Code:
echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness
echo "50" > /proc/sys/vm/vfs_cache_pressure
echo "90" > /proc/sys/vm/dirty_ratio
echo "70" > /proc/sys/vm/dirty_background_ratio
4. Misc kernel tweaks
Code:
echo "8" > /proc/sys/vm/page-cluster;
echo "64000" > /proc/sys/kernel/msgmni;
echo "64000" > /proc/sys/kernel/msgmax;
echo "10" > /proc/sys/fs/lease-break-time;
echo "500,512000,64,2048" > /proc/sys/kernel/sem;
5. Battery tweaks
Code:
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
6. EXT4 tweaks (greatly increase I/O)
(needs /system, /cache, /data partitions formatted to EXT4)
a) removes journalism
Code:
tune2fs -o journal_data_writeback /block/path/to/system
tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data
b) perfect mount options
Code:
busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier=0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /cache
7. Flags blocks as non-rotational and increases cache size
Code:
LOOP=`ls -d /sys/block/loop*`;
RAM=`ls -d /sys/block/ram*`;
MMC=`ls -d /sys/block/mmc*`;
for j in $LOOP $RAM
do
echo "0" > $j/queue/rotational;
echo "2048" > $j/queue/read_ahead_kb;
done
8. microSD card speed tweak
Code:
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
9. Defrags database files
Code:
for i in \
`find /data -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
done
9. Remove logger
Code:
rm /dev/log/main
10. Ondemand governor tweaks
Code:
SAMPLING_RATE=$(busybox expr `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency` \* 750 / 1000)
echo 95 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
11. Auto change governor and I/O Scheduler
a) I/O Scheduler (Best: MTD devices - VR; EMMC devices - SIO) - needs kernel with these
Code:
echo "vr" > /sys/block/mmcblk0/queue/scheduler
or
Code:
echo "sio" > /sys/block/mmcblk0/queue/scheduler
b) Governor (Best: Minmax > SavagedZen > Smoothass > Smartass > Interactive) - needs kernel with these
Code:
echo "governor-name-here" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
12. Move dalvik-cache to cache partition (if it's big enough) to free up data partition space
Code:
CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)
if [ $CACHESIZE -gt 80000 ]
then
echo "Large cache detected, moving dalvik-cache to /cache"
if [ ! -d /cache/dalvik-cache ]
then
busybox rm -rf /cache/dalvik-cache /data/dalvik-cache
mkdir /cache/dalvik-cache /data/dalvik-cache
fi
busybox chown 1000:1000 /cache/dalvik-cache
busybox chmod 0771 /cache/dalvik-cache
# bind mount dalvik-cache so we can still boot without the sdcard
busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache
busybox chown 1000:1000 /data/dalvik-cache
busybox chmod 0771 /data/dalvik-cache
else
echo "Small cache detected, dalvik-cache will remain on /data"
fi
13. Disable normalize sleeper
Code:
mount -t debugfs none /sys/kernel/debug
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features
14. GPS.conf
(create or edit your /system/etc/gps.conf with a text editor)
a) European NTP server (replace for america or asia in your case)
Code:
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
b) SE supl for A-GPS (better than Nokia's or Google's)
Code:
SUPL_HOST=supl.sonyericsson.com
SUPL_PORT=7275
Warning: Using these tweaks may brick your device. Use it with caution.
:good::good::good:
How can I know that my ROM / kernel support Init.d or not??
AK205 said:
How can I know that my ROM / kernel support Init.d or not??
Click to expand...
Click to collapse
Install Universal Init.d from Play Store and follow in-app instructions. Init.d support will be enabled on your device. Your device must be rooted first.
Build.prop tweaks by @bravonova
bravonova said:
Install Universal Init.d from Play Store and follow in-app instructions. Init.d support will be enabled on your device. Your device must be rooted first.
Click to expand...
Click to collapse
I make and init.d script and i copy your custom values to my init.d script. However, on net speed tweaks, the tcp_rmem and tcp_wmem didn't change the value at all even i edited it. Any help?
Should it be in text file or script file?
So we create a different text document containing each code for each tweak?? Not all In one document in the init.d folder??
Nice write up, bro. Thanks. Will have to try.
Guys so why aren't these enhancing tweaks and buildprop tweaks already available in our phones? Why aren't our phones optimized?
Tweaks good for one person or situation are not necessarily optimal for every case in general .
Medyredy said:
Guys so why aren't these enhancing tweaks and buildprop tweaks already available in our phones? Why aren't our phones optimized?
Click to expand...
Click to collapse
Can you help please?
Hello, I'm a newbie here. I wish to overclock my stock kernal, So it can be done through tweak? or I have to compile new overclock kernal from stock kernal source? Their's already a overclocked kernal for my device but its for cm11 and i want to use it on 4.1.2 JB stock ROM. Is their any simple way out?
Your help will be appreciated. Thanks .
use cm11 for s7392 or try
cm12 new developed
or stock i did give it to you before
choice is yours.......
i no longer have this device
rony raj said:
use cm11 for s7392 or try
cm12 new developed
or stock i did give it to you before
choice is yours.......
i no longer have this device
Click to expand...
Click to collapse
Thanks for suggesting new Cm12 kernal.
As of cm11, X264 encoding is important for me, plus their were some other minor bugs in that build. Though i agree its the best build compiled rom for Trend.
I will myself start some project after June~July.
What happened to your device though? You are among the few members who are guiding peoples on threads related to this device and i really appreciate it.

[Q] Update of ZTE Nubia Z5s Mini nx406e

zte nubia z5s mini nx406e - version android 4.4.4
Greetings, could someone guide me ?
I want to be able to update this device,
to an android version a little more current,
if I have a copy of the system made with twrp recovery,
starting from there, how can I extract everything to be able to develop.
I know that everything that is needed is within the system itself,
I would appreciate any guidance.
Please do not block what I write again, like the one here
I just tried to explain myself in a way that they could understand me better, excuse my bad english.
Procedure performed to extract .img
adb version: Android Debug Bridge version 1.0.32 - > files used: googledrivers
adb>adb devices
List of devices attached
0123456789 device
previously rooted device -> with this version of the super su -> files here SuperSu
adb shell
[email protected]:/ $ su
[email protected]:/ # cat /proc/partitions
major minor #blocks name
179 9 12288 mmcblk0p9 -> boot
179 24 1280000 mmcblk0p24 -> system
[email protected]:/ # cat /dev/block/mmcblk0p9 > /sdcard/boot_pull.img
[email protected]:/ # cat /dev/block/mmcblk0p24 > /sdcard/system_pull.img
[email protected]:/ # exit
[email protected]:/ $ exit
adb>adb pull /sdcard/system_pull.img stock_system.img
2773 KB/s (1310720000 bytes in 461.535s)
img to download from here: stock_system.img
adb>adb pull /sdcard/boot_pull.img stock_boot.img
2792 KB/s (12582912 bytes in 4.400s)
img to download from here: stock_boot.img
Procedure to extract kernel
1.- Download the tool: android bootimg tools
2.- Extract the file using: tar xvzf android_bootimg_tools.tar.gz
It contains two binaries:
unpackbootimg
mkbootimg
3.-Then run: ./unpackbootimg -i boot.img -o unpack
./unpackbootimg -i <filename.img> -o <output_path>
It will contain:
boot.img-base
boot.img-cmdline
boot.img-pagesize
boot.img-ramdisk.gz ----> ramdisk
boot.img-zImage ----> kernel
archive: boot-img-zImage
to extract: boot.img-ramdisk.gz
use command: gunzip -c boot.img-ramdisk.gz | cpio -i
I'm looking at how to extract kernel sources from: boot.img-zImage

Categories

Resources