yashsingh1/xdaforums huggingface dataset:
[Android General] camot:
I followed pandrzej2 advice and did not include phicomm.swap in the system.img. Indeed it is not necessary and it is generated when the system is started as you can check by doing

adb shell du /system/phicomm.swap

About the network failing with the GPS running, I did not find this problem. It is the phone network failing or only data network? This is important to me because I use the phone mainly as GPS for track recording when I go biking and would not like to get disconnected in case of problems! I used it to track routes with the GPS for about 5 hours, the tracks are recorded without problem and used only about 50% of the battery.

Have you tried if this problem also appears with the original quad core kernel I left in a previous link? with the working rom and the phone connected by usb just do (for instance in Linux)

adb reboot bootloader

fastboot flash boot boot_qc.img

fastboot reboot

---------- Post added at 07:32 PM ---------- Previous post was at 06:57 PM ----------

If I understand correctly you solved the 3G problems of the quad core version just by changing the sim card?

Is the new card a "virtual network operator" (VNO) or a real one. I have tried two different sim cards but both belong to different VNO.

Can other people with problems (or not) with the 3G with the quard core version confirm that the problems depend on the network provider? If that is the case perhaps the problem can be solved with the correct configuration.
[Android General] crazytiti:
I try to factory reset my phone to make partition copy but it was looping on the android booting animation !

So i restore my nandroid and all back to normal...
[Android General] crazytiti:
I try with dd if=/dev/block/mmcblk0 of=/sdcard/out.pit bs=8 count=580 skip=2176 but it gave me a file with only 00 inside, the bs count and skip parameters surely need some adjustments.
[Android General] nikan06:
I'm getting the same 00 file. That's why i mention the search method.

Some parameters info:

About the partitions or the entire rom dump, i hope you give your best to do it.
[Android General] panlar:
I had no problem in the 3G mode. Still i haven't any problem with the 3G,with the new sim card (it is not MVNO).

I tried another sim card in 3G and it was ok,but in 2G didn't working.

The problem was only with the 2G mode.

So,i thought to change the sim (this card was over 10 years old and it was 2G) with a new one and now the mobile phone working fine !

No problems at all !

I hope to understand my english ! :)
[Android General] zamora666:
thank you
[Android General] nikan06:
Has anyone got the gpt bin file (17KB)?

You can save it with gdisk from adb shell.
[Android General] nikan06:
I 've manage to create the correct partitions with the correct order on my phone, but i'm missing the starting and ending sectors of the partitions.

Running gdisk you have a set of commands:

p - displays the disk (mmcblk0) info with sector start, sector end, size, type and names of the partitions

b - will save the gpt to a file

I also manage to gather almost all the files needed for flashing and unbrick our phone.

I can't do it by myself guys, need help here.

QuadCore owners can also take part on this.
[Android General] panlar:
Hello.Happy new year !

Today the phone has started the same thing,after so many days!

I can not make calls,again ! (this problem is something like call barring)

I'll try to change the firmware. which is the best one,multilanguage ? please help !! :(
[Android General] nikan06:
Happy New Year!

These are the files i need, to complete the unbrick flashing method.

It's very simple to do it and it's safe, so don't worry, you won't brick your phone.

Start your phone in recovery mode and connect to the PC.

Open a dos box and type:

adb shell

How to dump GPT main and backup.

Use this command to save GPT main on sdcard, it's a 17.0 KB file.

~ # dd if=/dev/block/mmcblk0 of=/sdcard/gpt_main.bin bs=512 count=34

Use this command to save GPT backup on sdcard, it's a 16.5 KB file. It will make some time because it must read the end of memory, just wait.

~ # dd if=/dev/block/mmcblk0 of=/sdcard/gpt_backup.bin bs=512 count=33 skip=7569375

How to dump sdi.

Use this command to save sdi on sdcard, it's a 128.0 KB file.

~ # dd if=/dev/block/mmcblk0p3 of=/sdcard/sdi.mbn

How to dump persist.

If your phone is always rebooting this partition is damaged.

Use this command to save persist on sdcard, it's a 32768.0 KB file.

~ # dd if=/dev/block/mmcblk0p13 of=/sdcard/persist.img

How to dump recovery.

I need the stock recovery, not crazytiti's from the first post.

Use this command to save recovery on sdcard, it's a 10240.0 KB file.

~ # dd if=/dev/block/mmcblk0p15 of=/sdcard/recovery.img

How to dump fsg.

Use this command to save fsg on sdcard, it's a 1536.0 KB file.

~ # dd if=/dev/block/mmcblk0p17 of=/sdcard/fsg.img

Transfer the files to the PC.

Use this command to save the files from the sdcard to the pc.

adb pull /sdcard/gpt_main.bin c:\files\gpt_main.bin
adb pull /sdcard/gpt_backup.bin c:\files\gpt_backup.bin
adb pull /sdcard/sdi.mbn c:\files\sdi.mbn
adb pull /sdcard/persist.img c:\files\persist.img
adb pull /sdcard/recovery.img c:\files\recovery.img
adb pull /sdcard/fsg.img c:\files\fsg.img
[Android General] Skyfire1:
Hi

Hi there, I`m Skyfire1.

I`m from Germany and i`ve just read through this thread.

It`s just awsome what you have acomplished. Thanks a lot!

I had quiete some difficulties rooting this SP ( 512 quadcore ) .

Then I found Kacerolo`s rom on needrom.

It was very easy to use and came with philztouch recovery and root.

For me It works fine with about 16600 on Antutu.

The only thing I want to change is the size of the swap . It is only 53 MB of size.

What are your ideas of an easy way to increase the swap ? I used the ramexpander.apk but was wondering if it was better doing it internally.

I already read somthing about it in this thread but I don`t quite understand it. ( I think Ill have to read it again :) )

I`m familliar with flashing by custom recovery and using rootexplorer.

So flashing a kernel should be no Problem. It`s only that I don`t know how to find the right one for me.

Kind regards Skyfire1
[Android General] crazytiti:
Hello, you have to check the system partition size (use df command in adb shell) and if there is some free space on it.

the normal system partition will be about 787mb.

If you have some free space you could check the setup_swap.sh script for the size of the swap.

Then you have to reboot your phone to recovery mode and with adb shell you delete the /system/phicomm.swap file.

at reboot the file will be recreated using the space on system partition and the size from the script (the swap size will be the min of the two)
[Android General] Skyfire1:
Thanks, i´ll look into it.

I assume I need to install ADB, find out how to use it and find the script .

Wich size is best ? Should I leave free space on the partitition for anything ?

I haven`t used ADB before.
[Android General] crazytiti:
Yes you need ADB, the script is at the root of the phone you could open it directly on your phone (it's a text file)

I don't think any space will be useful on /system/ but for security 10-20mb is good.
[Android General] crazytiti:
fsg.img

gpt_backup.bin

gpt_main.bin

persist.img

recovery.img

sdi.mbn

=> http://dl.free.fr/r9OOGy0Jj
[Android General] nikan06:
Thanks a bunch :good:

One more thing, i need the start and end sector of partitions reported by gdisk.
[Android General] crazytiti:
I don't have gdisk on my phone ...
[Android General] nikan06:
Excellent work
[Android General] Skyfire1:
Hi there,

I´ve looked at the swap script throug win editor and I need to know which value is to be changed for creating a bigger swapfile. As far as I can see it is already big enough. Can any body tell me how big it is and which parameter I should change ?

# Start linux swap

mount -o rw,remount,barrier=1 /system

if [ ! -f /system/phicomm.swap ];then

#rm /system/phicomm.swap

dd if=/dev/zero of=/system/phicomm.swap bs=1024 count=307200

fi

busybox mkswap /system/phicomm.swap

busybox swapon /system/phicomm.swap

while [ 1 ]

do

swap_on=$(busybox free|busybox grep "Swap"|busybox tr -s ' '|busybox cut -d ' ' -f2)

if [ "$swap_on" == "0" ];then

busybox mkswap /system/phicomm.swap

busybox swapon /system/phicomm.swap

fi

sleep 8

done
[Android General] crazytiti:
Hello, this line create a swap file of ~300MB

But you could have 2 issues :

- if the swap file already exist it will not recreate it.

- if the system partition is not big enough it will only fill the available space.

Please check your system partition size and empty space.

LINK2SD app could show you size and free space :

https://play.google.com/store/apps/details?id=com.buak.Link2SD
[Android General] nikan06:
On my search for things that would help me to the revival project, i saw a comment on needrom from deepzpain referring to a rebranded phone in India called Karbonn Titanium S1 Plus

Why not test this rom and see what happens?

ATTENTION!! This method of flashing requires repartition of your phone memory.

Surprise!!! My phone has 4.4.2 KitKat, better memory management without phicomm.swap file and more space for user data. One problem though is that it isn't rooted and it's a must, with all those bloat apps.

I will play a little more with this rom and then back to the stock. That's what the revival project can do.
[Android General] crazytiti:
Good idea !

I made some research and found that this phone has an CM11 port :

http://xdaforums.com/android/help/custom-rom-karbonn-titanium-s1-plus-t2821321

I'm currently dling it (very slow from baidu)

Some other forum report that everything is working except camera.
[Android General] nikan06:
That's true, only front camera is working.
[Android General] nikan06:
I have rooted the Titanium 4.4.2 KitKat.

Tried both superuser and supersu packages from their sites but none of them worked.

So i build my own package of superuser and now i have a rooted titanium rom.

Bye bye bloats!

Time to get in to it.

1. Download the zip file and copy it to your sdcard.

2. From stock recovery 3e select update from sdcard.

3. Select the superuser.zip file.

4. Done. You have rooted your phone.
[Android General] nikan06:
If your phone isn't booting or is in bootloop and you only get HS-USB QDLoader or HS-USB Diagnostics in Device Manager then here is the Revival Package to the rescue.

ATTENTION!!! The Revival Package will recreate and flash all the partitions on your phone.

Not me or XDA has the responsibility for what happens to you phone by using any of the following software.

Drivers for Phicomm C230w

Use eMMC DL Tool ( Guide ) or QPST-2.7.399 and use eMMC Software Download ( Tutorial ) to flash the Phicomm C230w - Revival Package.

And if you prefer to revive your Phicomm C230w as Karbonn Titanium S1 Plus here it is: Karbonn Titanium S1 Plus - Revival Package

Thanks:

@crazytiti for dumping the GPT

@wladimir_tm for the partitions information
[Android General] DhaniBaho:
Need help please... After flashing to Karbonn using your package my phone messed up... It just shows (stuck) the Karbonn Smart Titanium S1 Plus... Then i removed-put back the battery and connect it to PC... On PC when power off no HS-USB QDLoader or HS-USB Diagnostics, I checked device manager it recognized as Karbonn USB Device (USB Storages)

If power on The PC asking for Karbonn Device Driver, if using combination key (vol +, vol -, power) the pc recognized it as PHICOMM Bootloader Interface, if connected by using recovery mode (vol - and power) the pc asking for PHICOMM Phomd (recovery) driver... Please help

Sent from ASUS® D-FonePAD™
[Android General] DhaniBaho:
finally after doing many trial and error my phicomm is kitkat but there's a problem... my sim card won't recognized, so there's no mobile network...

only bluetooth and wifi that can work
[Android General] nikan06:
First load after flashing will take some time.

If the phone is stuck at the Karbonn logo connect the phone to pc in fastboot mode and flash the system image again.

fastboot flash system system.img

SIM card need IMEI to work. IMEI info is stored on partitions mmcblk0p10 (modemst1) and mmcblk0p11 (modemst2).
[Android General] DhaniBaho:
How do i restore the IMEI? And how do i get this mmcblk0p10 and mmcblk0p11? Are they from the phicomm? Or from the karbonn?

Sent from ASUS® D-FonePAD™
[Android General] DhaniBaho:
I give up... How to write my imei to this titanium rom?

Sent from ASUS® D-FonePAD™
[Android General] wladimir_tm:
to find HOW to make ('compile' of 'generate') msimage.mbn && MPRG8x**.mbn

where did you find this ??

especially interesting files (in "packadge") - Phicomm C230w eMMC\8x10_msimage.mbn && MPRG8x10.mbn ???

question is because there is would be VERY GREAT to find HOW to make ('compile' of 'generate') this type of files for ANY QC devices..

thanks more

---------- Post added at 08:28 PM ---------- Previous post was at 08:14 PM ----------

can you provide 4.4.2 KitKat partitioning info? (maybe gdiks? ;) )

thnks
[Android General] nikan06:
I found the files 8x10_msimage.mbn and MPRG8x10.mbn in other firmwares for msm8610.

I'm now back to Phicomm ROM but from the Karbonn xml files i get this:

Partition 22 is 1.6 GB because it uses all the free space on disk.

Number Start (sector) End (sector) Size Code Name
1 32768 163839 64.0 MiB 0700 modem
2 163840 164863 512.0 KiB FFFF sbl1
3 164864 165119 128.0 KiB FFFF sdi
4 196608 196671 32.0 KiB FFFF DDR
5 229376 230399 512.0 KiB FFFF aboot
6 230400 231399 500.0 KiB FFFF rpm
7 262144 282623 10.0 MiB FFFF boot
8 294912 295911 500.0 KiB FFFF tz
9 295912 297959 1024.0 KiB 0700 pad
10 297960 301031 1.5 MiB FFFF modemst1
11 301032 304103 1.5 MiB FFFF modemst2
12 327680 1966079 800.0 MiB 0700 system
13 1966080 2031615 32.0 MiB 0700 persist
14 2031616 2097151 32.0 MiB 0700 cache
15 2097152 2117631 10.0 MiB FFFF recovery
16 2129920 2131967 1024.0 KiB FFFF misc
17 2162688 2165759 1.5 MiB FFFF fsg
18 2195456 2195457 1024 bytes FFFF fsc
19 2195458 2195473 8.0 KiB FFFF ssd
20 2195474 2215953 10.0 MiB FFFF splash
21 2215954 4313105 1024.0 MiB 0700 usbmsc
22 0 7569374 1.6 GiB 0700 userdata
[Android General] DhaniBaho:
Now i have efs professional with qualcomm nv tools n able to see the mmcblk0p10 and mmcblk0p11, so what next so i can write the IMEI of my phone? Somebody help please

Sent from ASUS® D-FonePAD™
[Android General] wladimir_tm:
just only restore (dd if= *** // of= ** )

if you have backed up before this partitions ...
[Android General] wladimir_tm:
that is for another device ((( - ro.board.platform=msm7x27a

example part of build.prop

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=wb168B
ro.build.display.id=CM_U86-userdebug 4.4.4 WB168B 14B0709112658 test-keys
ro.build.version.incremental=14B0709112658
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.4
ro.build.date=2014年 07月 09日 星期三 11:26:58 CST
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=root
ro.build.host=wbdy-14b
ro.build.tags=test-keys
ro.product.brand=592zn
ro.product.name=cm_kiss
ro.product.board=kiss
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=K-touch
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=msm7x27a
# ro.build.product is obsolete; use ro.product.device
ro.build.product=kiss
ro.product.model=K-Touch U86
ro.product.device=kiss
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=cm_kiss-user 4.4.2 KVT49L f48c8a1252 test-keys
ro.build.fingerprint=592zn/cm_kiss/kiss:4.4.2/KVT49L/f48c8a1252:user/test-keys
ro.build.characteristics=default
ro.cm.device=kiss
# end build properties
#
# from device/592zn/kiss/system.prop
[Android General] Skyfire1:
Hi, please excuse me but I get 16000 on Antutu( quadcore version ). What´s the advantage of the newer rom. Or are we talking about the dualcore version?
[Android General] nikan06:
How to patch boot.img to remove the slowly file swap of C230w and replace it with the faster zram swap of Titanium S1 Plus.

You also gain an additional 300MB of space on system partition.

Tools needed:

Unpack & Repack Tool for boot image

Notepad++

Unpack boot.img

Delete file initrd/setup_swap.sh

cpiolist.txt

Delete line 47

file setup_swap.sh initrd/setup_swap.sh 0644

initrd/init.qcom.sh

Delete form the end of file

if [ -f /setup_swap.sh ];then
/setup_swap.sh &
fi

initrd/init.rc

Find:

# Create cgroup mount point for cpu accounting
mkdir /acct
mount cgroup none /acct cpuacct
mkdir /acct/uid

Add after:

# Create cgroup mount point for memory
mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000
mkdir /sys/fs/cgroup/memory 0750 root system
mount cgroup none /sys/fs/cgroup/memory memory
write /sys/fs/cgroup/memory/memory.move_charge_at_immigrate 1
chown root system /sys/fs/cgroup/memory/tasks
chmod 0660 /sys/fs/cgroup/memory/tasks
mkdir /sys/fs/cgroup/memory/sw 0750 root system
write /sys/fs/cgroup/memory/sw/memory.swappiness 100
write /sys/fs/cgroup/memory/sw/memory.move_charge_at_immigrate 1
chown root system /sys/fs/cgroup/memory/sw/tasks
chmod 0660 /sys/fs/cgroup/memory/sw/tasks

initrd/init.target.rc

Delete line 35

chmod 777 /setup_swap.sh

Find:

on early-init
mkdir /firmware 0771 system system
symlink /data/tombstones /tombstones

Replace with:

on early-init
mkdir /firmware 0771 system system
symlink /data/tombstones /tombstones
write /sys/kernel/mm/ksm/pages_to_scan 100
write /sys/kernel/mm/ksm/sleep_millisecs 500
write /sys/kernel/mm/ksm/run 1
write /sys/block/zram0/disksize 192M

Find:

on boot
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
write /sys/bus/i2c/drivers/ft5x06_ts/1-0038/update_fw 1
# Enable writing to brightness node under torch-light from userspace
chown system system /sys/class/leds/torch-light/brightness

Replace with:

on boot
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
write /sys/bus/i2c/drivers/ft5x06_ts/1-0038/update_fw 1
# Enable writing to brightness node under torch-light from userspace
chown system system /sys/class/leds/torch-light/brightness
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/swappiness 100

Find:

service audiod /system/bin/audiod
class late_start
user system
group system

Add after:

service swapping /system/bin/sh /system/etc/enable_swap.sh
class core
user root
oneshot

Repack boot.img and flash it

fastboot flash boot boot.img

Create a file named enable_swap.sh and copy it on /system/etc folder

Contents of enable_swap.sh

#!/system/bin/sh
# No path is set up at this point so we have to do it here.
PATH=/sbin:/system/sbin:/system/bin:/system/xbin
export PATH

busybox mkswap /dev/block/zram0
busybox swapon /dev/block/zram0

To gain the extra 300MB on system partition delete /system/phicomm.swap file.
[Android General] crazytiti:
I understand that zram is like compressed ram, but it will use more cpu (and battery)

can you explain the gain more than "it's faster" ?

Other thing : i have study the partition table of my phicomm and it seems ~500mb are "lost" between partitions, i'm currently trying to move partition and enlarge userdata with the help of "parted"

https://fs09n4.sendspace.com/dl/38b...54aeefbf21d53add/w6hi6x/sdparted-recovery.zip

Warning : don't use parted if you don't know what you are doing, it's only for developers until someone make a good how-to, you could brick your phone/loose data

stock part table with lost space "in between" :

lost start end size type name
67.1 67.1 134 67.1 fat16 modem
134 135 0.524 sbl1
135 135 0.131 linux-swap(v1) sdi
66 201 201 0.328 DDR
67 268 269 0.524 aboot
269 269 0.512 rpm
67 336 346 10.5 boot
57 403 403 0.512 tz
403 404 0.1049 pad
404 406 0.1573 modemst1
406 407 0.1573 modemst2
63 470 1309 839 ext4 system
1309 1342 33.6 ext4 persist
1342 1376 33.6 ext4 cache
1376 1386 10.5 recovery
23 1409 1410 0.1049 misc
66 1476 1478 0.1573 fsg
66 1544 1544 0 fsc
1544 1544 0 ssd
1544 1554 10.5 splash
1554 2628 1074 fat32 usbmsc
56 2684 3876 1191 ext4 userdata
598 3273
[Android General] nikan06:
(INFO)What is zram and how does it work???

GDisk report:

Disk /dev/block/mmcblk0: 7569408 sectors, 3.6 GiB

First usable sector is 34, last usable sector is 7569374

Total free space is 1166012 sectors (569.3 MiB)

That's what Karbonn done with the partitions on Titanium and the last partition (userdata) is supposed to get all free space from disk.

I'm not sure though if it's working, because the size of the last partition is the same.
[Android General] crazytiti:
Yes i've read it :angel:

What i want is some feedback from use, like application launch time, how many gain in ram quantity.

For example i have a 350mb swap, but from my phone usage i've never exceed 250mo of swap use.

So i wonder if i could remove swap and use zram instead (without swap the typical sign of missing ram: apps'icon reloading on the apps menu happen almost every time i go to the apps menu)

And I'm curious about the impact on the battery usage.

I wanted to test it, but at the moment i don't have the time to do it, feedback from others are welcome :highfive:
[Android General] blackra1n.x:
Thank you :) >>>>>>>>>>>>>>>>>
[Android General] crazytiti:
So i've messed up with gparted and brick my phone, i mean HARD brick : no more recovery, no more bootloader/fastboot.... only qualcomm HS-USB QDLoader 9008 detected when plugged in.

( i was moving some of the first partition but i need to reboot to put data back on it, and it was a booting partition)

So i use the REVIVAL kit and i have to say big thanks, my phone is back to normal (only lost sdcard0 data because i've never do backup of it)

So the revival kit is OK, but don't mess with gparted, the resurrection of my phone was NOT as simple as "clic on restore"
[Android General] koylaaa:
I wasn't enjoying phicomm c230w without root access, thanks for your package, I have root access to my phicomm c230w
[Android General] nikan06:
If you still on the play i have tried my self with success.

I've used the following files of Karbonn package on the Phicomm eMMC flashing procedure and the userdata partition increased to 1.5G
[Android General] crazytiti:
I've study the files and effectively the karbonn partitions doesn't have useless space in between partitions.

I will try it.

Edit : It work, i have a 1.5gb userdata, and still the 1gb sdcard0, i was a little worried when my phone doesn't found sim card but then i restore mmcblk0p10 and p11 to get my IMEI back.
[Android General] nikan06:
If you don't want to use swap file and save the space on system partition, i made an update package which include:

boot.img with no swap routine

erase the phicomm.swap file (300MB)

build.prop with some dalvik tweaks

And if you want to use swap again you have two choices

Flash the original boot.img

Install an app from the store like Swapper for Root, Simple Root Swap, AMemoryBoost ( Swap enabler ) etc.
[Android General] nikan06:
If you want to use zram swap instead of swap file and save 300MB of space on system partition, i made an update package which include:

boot.img with zram swap

erase all swap file routines and files

erase the phicomm.swap file (300MB)

If you want to build it your own, i wrote a guide on post #286
[Android General] bigjailerman:
HI, where can I find this rooted zip?

Thanks
[Android General] nikan06:
It's on post #272
[Android General] bigjailerman:
Thanks very much