GT-I9500 and GT-I9505 Kernel Sources(Update_2) at GITHUB - Galaxy S 4 i9505 Android Development

International Version Galaxy S 4 kernel source repo.
https://github.com/gokulnatha/GT-I9500.git
https://github.com/gokulnatha/GT-I9505.git
Reference : http://opensource.samsung.com/
File: GT-I9500_JB_Opensource.zip
File: GT-I9505_JB_Opensource.zip

Update1 code merge from samsung
Updated the repo with Update_1 from samsung.
File :GT-I9500_JB_Opensource_Update1.zip
Files Changed : 21
[email protected]:~/Desktop/github_gg$ patch -p3 < ../../galaxy4/zips/GT-I9500_update1.patch
patching file arch/arm/configs/ja3g_00_defconfig
patching file arch/arm/configs/ja3g_09_defconfig
patching file arch/arm/configs/jalte_00_defconfig
patching file arch/arm/kernel/sys_arm.c
patching file drivers/cpufreq/exynos-ikcs-cpufreq.c
patching file drivers/gpu/ion/ion_system_heap.c
patching file drivers/media/video/exynos/fimc-is-mc2/fimc-is-core.c
patching file drivers/media/video/exynos/fimc-is-mc2/fimc-is-core.h
patching file drivers/media/video/exynos/fimc-is-mc2/fimc-is-device-ischain.c
patching file drivers/media/video/exynos/fimc-lite/fimc-lite-core.c
patching file drivers/motor/tspdrv.c
patching file drivers/sensorhub/factory/temphumidity_shtc1.c
patching file drivers/sensorhub/ssp.h
patching file drivers/staging/android/lowmemorykiller.c
patching file drivers/video/backlight/s6e8fa0_I_mipi_lcd.c
patching file drivers/video/backlight/s6e8fa0_I_param.h
patching file firmware/tsp_synaptics/synaptics_b0_5_1_fac.fw.ihex
patching file firmware/tsp_synaptics/synaptics_b0_5_1.fw.ihex
patching file kernel/sys.c
patching file mm/memcontrol.c
patching file mm/vmscan.c
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
File :GT-I9505_JB_Opensource_Update1.zip
Files Changed : 25
[email protected]:~/Desktop/github_gg_9505$ patch -p3 < ../../galaxy4/zips/GT-I9505_update1.patch
patching file arch/arm/configs/jf_defconfig
patching file arch/arm/kernel/sys_arm.c
patching file arch/arm/mach-msm/board-jactive_att.c
patching file arch/arm/mach-msm/board-jf_att.c
patching file arch/arm/mach-msm/board-jf_cri.c
patching file arch/arm/mach-msm/board-jf_eur.c
patching file arch/arm/mach-msm/board-jf_spr.c
patching file arch/arm/mach-msm/board-jf_tmo.c
patching file arch/arm/mach-msm/board-jf_usc.c
patching file arch/arm/mach-msm/board-jf_vzw.c
patching file drivers/char/diag/diagchar_core.c
patching file drivers/media/video/msm/csi/msm_ispif.c
patching file drivers/media/video/msm/sensors/jc_v4l2.c
patching file drivers/media/video/msm/server/msm_cam_server.c
patching file drivers/sensorhub/factory/temphumidity_shtc1.c
patching file drivers/sensorhub/ssp_firmware.c
patching file drivers/sensorhub/ssp.h
patching file drivers/staging/android/lowmemorykiller.c
patching file drivers/video/msm/mipi_samsung_octa_video_full_hd_pt.c
patching file drivers/video/msm/msm_fb.c
patching file firmware/tsp_synaptics/synaptics_b0_5_1_fac.fw.ihex
patching file firmware/tsp_synaptics/synaptics_b0_5_1.fw.ihex
patching file include/media/msm_camera.h
patching file mm/memcontrol.c
patching file mm/vmscan.c
wifi802.11abgn said:
International Version Galaxy S 4 kernel source repo.
https://github.com/gokulnatha/GT-I9500.git
https://github.com/gokulnatha/GT-I9505.git
Reference : http://opensource.samsung.com/
File: GT-I9500_JB_Opensource.zip
File: GT-I9505_JB_Opensource.zip
Click to expand...
Click to collapse

Related

[Q][KERNEL] Not able to unpack some boot.img

The tool I use is KITCHEN for unpacking boot.img
Yesterday i encountered a problem while unpacking boot.img file
Code:
Press Enter to continue
Kernel found at offset 131072 in boot.img
Setting offset=131072 in mkbootimg.c, line 76
Setting offset=131072 in mkbootimg.c, line 109
Setting offset=131072 in extract-kernel.pl, line 23
Setting offset=131072 in extract-ramdisk.pl, line 23
Extracting kernel ...
Extracting ramdisk ...
Error: No ramdisk folder found!
Contents of bootimg_050313_133308:
total 3340
-rw-r--r-- 1 user None 3419532 May 3 13:33 zImage
Press Enter to continue
Got an error. Showing No ramdisk folder found. Is there any other way to unpack such boot.img??
Tried a lot searching on Google about this but didnt find any solution.
Someone who play with kernels everyday help me out please
Anyone??
Does anyone know about lzma compression? I guess such boot.img are compressed using lzma algorithm. How to unpack and re-pack such boot.img?
Plz someone help
Sent from my LT18i using xda app-developers app
Have you tried another method?
XperienceD said:
Have you tried another method?
Click to expand...
Click to collapse
Yep i did. Now able to unpack and re-pack lzma compressed boot.img files
For extracting boot.img-ramdisk.gz (LZMA compressed only) should type
Code:
lzma -dc ../boot.img-ramdisk.gz | cpio -i
All the Credit goes the original Dev.:good:
Reference used : http://forum.xda-developers.com/showthread.php?t=1659584&highlight=lzma
rohan170890 said:
Yep i did. Now able to unpack and re-pack lzma compressed boot.img files
For extracting boot.img-ramdisk.gz (LZMA compressed only) should type
Code:
lzma -dc ../boot.img-ramdisk.gz | cpio -i
All the Credit goes the original Dev.:good:
Reference used : http://forum.xda-developers.com/showthread.php?t=1659584&highlight=lzma
Click to expand...
Click to collapse
helo bro .. i am facing the same prblm like ramdisk folder not found while unpacking boot.img ... will u plzz help me to unpack it
here is the boot.img file http://www.mediafire.com/download/781fb7713efj719/boot.img

[Q] [kitchen][help me!!]cant build a new boot.img

Found BOOT-EXTRACTED folder, checking contents ...
Found boot.img-ramdisk
Found zImage
Working folder found
od: boot.img: No such file or directory
Compiling mkbootfs ...
Error: mkbootfs not successfully compiled!
Press Enter to continue
how to solve it ??
push

Recover files from backup

Hi there.
Few months ago, before updating my z1 compact to 5.1.1, i've done a backup with sony pc companion, but i decided to not restore it.
Now i need some notes and files in that backup, so is there a way to get them without restoring everything? I tried to open the .dbk file with 7zip, but the notes backup file has no extension so i don't know how to open.
Thank you.
dario2510 said:
Hi there.
Few months ago, before updating my z1 compact to 5.1.1, i've done a backup with sony pc companion, but i decided to not restore it.
Now i need some notes and files in that backup, so is there a way to get them without restoring everything? I tried to open the .dbk file with 7zip, but the notes backup file has no extension so i don't know how to open.
Thank you.
Click to expand...
Click to collapse
I think backups are usually ext4. Try Ext4 unpacker or Ext2 explore.
dario2510 said:
Hi there.
Few months ago, before updating my z1 compact to 5.1.1, i've done a backup with sony pc companion, but i decided to not restore it.
Now i need some notes and files in that backup, so is there a way to get them without restoring everything? I tried to open the .dbk file with 7zip, but the notes backup file has no extension so i don't know how to open.
Thank you.
Click to expand...
Click to collapse
Tested with 7zip on the phone and seems to be working. My backups are TWRP, and info is packed in ext4.win files. 7z e command unpacked it.
Here's the output, (terminal wouldn't let me take a screenshot)...
7z e system.ext4.win000
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)
Processing archive: system.ext4.win000
Extracting AndroidManifest.xml
Extracting res/layout-v17/settings_checkbox.xml
Extracting res/layout/disclaimer_dialog1.xml
Extracting res/layout/disclaimer_dialog2.xml
Extracting res/layout/disclaimer_dialog3.xml
Extracting res/layout/disclaimer_prototype.xml
file settings_checkbox.xml
already exists. Overwrite with
res/layout/settings_checkbox.xml?
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? Y
Extracting res/layout/settings_checkbox.xml
Extracting res/mipmap-hdpi-v4/ic_settings.png
file ic_settings.png
already exists. Overwrite with
res/mipmap-mdpi-v4/ic_settings.png?
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? A
Extracting res/mipmap-mdpi-v4/ic_settings.png
Extracting res/mipmap-xhdpi-v4/ic_settings.png
Extracting res/mipmap-xxhdpi-v4/ic_settings.png
Extracting res/xml/settings.xml
Extracting resources.arsc
Extracting META-INF/MANIFEST.MF
Extracting META-INF/SONY-ERICSSON-E-PLATFORM-SIGNING-LIVE-864F-3.SF
Extracting META-INF/SONY-ERICSSON-E-PLATFORM-SIGNING-LIVE-864F-3.RSA
Extracting classes.dex
Everything is Ok
Files: 17
Size: 433866
Compressed: 1618233344
[email protected]:/sdcard1/twrp/BACKUPS/CB5A20B0Q8/2015-12-25--.236 #
levone1 said:
Tested with 7zip on the phone and seems to be working. My backups are TWRP, and info is packed in ext4.win files. 7z e command unpacked it.
Here's the output, (terminal wouldn't let me take a screenshot)...
7z e system.ext4.win000
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)
Processing archive: system.ext4.win000
Extracting AndroidManifest.xml
Extracting res/layout-v17/settings_checkbox.xml
Extracting res/layout/disclaimer_dialog1.xml
Extracting res/layout/disclaimer_dialog2.xml
Extracting res/layout/disclaimer_dialog3.xml
Extracting res/layout/disclaimer_prototype.xml
file settings_checkbox.xml
already exists. Overwrite with
res/layout/settings_checkbox.xml?
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? Y
Extracting res/layout/settings_checkbox.xml
Extracting res/mipmap-hdpi-v4/ic_settings.png
file ic_settings.png
already exists. Overwrite with
res/mipmap-mdpi-v4/ic_settings.png?
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? A
Extracting res/mipmap-mdpi-v4/ic_settings.png
Extracting res/mipmap-xhdpi-v4/ic_settings.png
Extracting res/mipmap-xxhdpi-v4/ic_settings.png
Extracting res/xml/settings.xml
Extracting resources.arsc
Extracting META-INF/MANIFEST.MF
Extracting META-INF/SONY-ERICSSON-E-PLATFORM-SIGNING-LIVE-864F-3.SF
Extracting META-INF/SONY-ERICSSON-E-PLATFORM-SIGNING-LIVE-864F-3.RSA
Extracting classes.dex
Everything is Ok
Files: 17
Size: 433866
Compressed: 1618233344
[email protected]:/sdcard1/twrp/BACKUPS/CB5A20B0Q8/2015-12-25--.236 #
Click to expand...
Click to collapse
I haven't understood how this could have helped me, but i solved in another way:
I found notes folder in backup directory, then I used this program to extract files from fullbackupdata and finally i found my notes written in some databes files.
Hope this could help someone.

Finding file_contexts from stock image

Hello,
After modifying my system.img filesystem, I need to find the adequat file_contexts file for my PixelC to be able repack my system file as an image.
To do so, I opened the boot.img image and extracted the ram disk.
Unfortunately I could not find a file name "file_contexts" but only "plat_file_contexts" or "nonplat_file_contexts" which ended up making the tablet not boot.
Where can I find the appropriate file_contexts for the Pixel C ?
Thank you.
Das Kartoffel said:
Hello,
After modifying my system.img filesystem, I need to find the adequat file_contexts file for my PixelC to be able repack my system file as an image.
To do so, I opened the boot.img image and extracted the ram disk.
Unfortunately I could not find a file name "file_contexts" but only "plat_file_contexts" or "nonplat_file_contexts" which ended up making the tablet not boot.
Where can I find the appropriate file_contexts for the Pixel C ?
Thank you.
Click to expand...
Click to collapse
When you change system.img .. do you remove DM-verity too ?
Otherwise it will never boot.
No need for file_contexts .. just use simg2img tool to make sparse image again ..or keep it as ext4 system.img.
It seems like file_contexts got split between plat_ and nonplat_ from Android 8.0 on. See this: https://source.android.com/security/selinux/compatibility

Extracting Stock OOS payload.bin

I have installed everything needed for the payload dumper, but I am getting the following error when trying to extract a OOS payload.bin:
Code:
Processing LOGO partitionTraceback (most recent call last):
File "payload_dumper.py", line 157, in <module>
dump_part(part)
File "payload_dumper.py", line 100, in dump_part
out_file = open('%s/%s.img' % (args.out, part.partition_name), 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'output/LOGO.img'
Edit: figured it out.
For others with this problem, the instructions are not 100% correct. They say:
Download payload_dumper.py and update_metadata_pb2.py
Click to expand...
Click to collapse
But having only these two files is not sufficient. I got it working by downloading the entire repo as a zip and placing the payload file in that folder.
creeve4 said:
I have installed everything needed for the payload dumper, but I am getting the following error when trying to extract a OOS payload.bin:
Code:
Processing LOGO partitionTraceback (most recent call last):
File "payload_dumper.py", line 157, in <module>
dump_part(part)
File "payload_dumper.py", line 100, in dump_part
out_file = open('%s/%s.img' % (args.out, part.partition_name), 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'output/LOGO.img'
Edit: figured it out.
For others with this problem, the instructions are not 100% correct. They say:
But having only these two files is not sufficient. I got it working by downloading the entire repo as a zip and placing the payload file in that folder.
Click to expand...
Click to collapse
Having same issue. Trying to extract an incremental OTA Payload, but getting exact same error. I did download the source files and still get the same error. Here is the Payload extractor I am using. Maybe you were using a different one.
GitHub - vm03/payload_dumper: Android OTA payload dumper
Android OTA payload dumper. Contribute to vm03/payload_dumper development by creating an account on GitHub.
github.com

Categories

Resources