yashsingh1/xdaforums huggingface dataset:
[Galaxy S Advance I9070 Android Development] Destro123:
guys why after flashing this . in twrp it doesnt show the files to flash
[Galaxy S Advance I9070 Android Development] AsquareX:
Your files need to be in internal memory to flash via this recovery.
[Galaxy S Advance I9070 Android Development] soncumle:
Tahank yoi
[Galaxy S Advance I9070 Android Development] davidian6811:
thanks
[Galaxy S Advance I9070 Android Development] jfjkeuren:
thanks!!
[Galaxy S Advance I9070 Android Development] felipebcanto:
I get the same thing.
[Galaxy S Advance I9070 Android Development] xCode195:
Ok I figured out why it wont read my sdcard.It seems TWRP cant read either HC cards or cards with 4GB or more because when i removed my 4GB HC card and put 2GB normal one it read it I will try to flash the rom with that sd card...

Well everything went fine with 2GB sdcard :D
[Galaxy S Advance I9070 Android Development] diego-ch:
mine is 32GB and it works just fine.
[Galaxy S Advance I9070 Android Development] shut_down:
8GB works ok too.
[Galaxy S Advance I9070 Android Development] hackbob:
16gb here and works fine too; maybe the partion format of the SD? Mine is fat32

@diego-ch: It seems I've messed up a lot my phone... now even trying to flash the stock images from sammobile result in bootloop...

I'll fully clean the phone tomorrow (even the internal SD) and flash all back from the ground up and see if everithing will work properly
[Galaxy S Advance I9070 Android Development] felipebcanto:
I'm having a hard time trying to do this, I go to Odin, I flash at PDA, It works, but I got no lucky on rooting.
[Galaxy S Advance I9070 Android Development] diego-ch:
have you tried flashing supersu via twrp?
[Galaxy S Advance I9070 Android Development] varun.chitre15:
I was unsuccessful in extracting the boot.img with all methods, its size is 16mb

Any idea how it is done?

---------- Post added at 10:16 AM ---------- Previous post was at 10:02 AM ----------

Ok this seems tedious job, there is no such issue for devices I developed as they were MTD device.

I am now planning to combine initramfs and zImage into boot.img

What I need is only pure zImage. Can anyone compile one?
[Galaxy S Advance I9070 Android Development] ogromanas:
post :eek:error
[Galaxy S Advance I9070 Android Development] diego-ch:
this phone uses emmc like the i9100.

did you make any mods for samsung's SGSII I9100? it works the same way (afaik).

I dont think these devices have a separate boot.img.

If you want the zImage you just need to extract the file on the first post
[Galaxy S Advance I9070 Android Development] varun.chitre15:
Actually I have never developed for Samsung before

I am much familiar to the boot.img structure

Anyways,

Then there is any way to just flash ramdisk/initramfs?

Because modded ramdisk is heart of ROM development.

---------- Post added at 04:55 PM ---------- Previous post was at 04:49 PM ----------

Hmm..that means I have to build kernel from source which is a last option left.
[Galaxy S Advance I9070 Android Development] sander-ua:
Guys as far as I understanf for now twrp doesn't support mounitnig sd-card to pc? Can somebody fix this?
[Galaxy S Advance I9070 Android Development] hackbob:
Same here

Fixed the problem with the restore; it seems that my phone was a fully dev phone and the partions sizes were all messed up, that's why the restore failed and the same while flashing the stock image.

Repartioned with pit file while flashing and everything it's fine.
[Galaxy S Advance I9070 Android Development] shut_down:
It seems I have same problem too. I was browsing files when i was in Install option of TWRP, and I didnt noticed that it was internal storage.

Log is saying "E:Unable to mount "/sdcard' (tw_mount)" and" E:Unable to mount /sdcard (No such file or directory".

P.S. And too, it works with 2GB SD card...

P.P.S. 8GB SD is formated too to fat32. Anybody have solution?

Problem solved. I reformated SD card with SDFormatter And now it works just fine. :)
[Galaxy S Advance I9070 Android Development] diego-ch:
I figured out what was causing that error with help from twrp devs.

that happens because some sdcards don't have partitions.

So, twrp tries to mount a partitionated sdcard and fails.

that issue is now fixed, just wait for the next release =d

I'm working on adding custom bootanimations and cpu governors now :cool:
[Galaxy S Advance I9070 Android Development] flo_victor:
BLN

Can you also add bln support like on galaxy i9000?
[Galaxy S Advance I9070 Android Development] cornick:
Just a quick question from a total noob: Is this a totally different method of rooting from the one posted by qzem in another thread for i9070?

I ask this because I could no longer find a download link for the dxld1.tar.md5 which was deleted by the storage facility.

Could we please have a step by step description of what to do for this method for noobs like me?

Thank you and more power!
[Galaxy S Advance I9070 Android Development] antonio8297:
yes is different
[Galaxy S Advance I9070 Android Development] rjzameer:
kernel cause battery drain??!

To diego...

Hey diego...how to found out that this kernel might cause battery drain? Only 7-8 hours of normal usage after flashing this kernel...then i flash stock kernel...and my battery goes normal..around 20- 26 hours of usage..

Is anybody had face same issue?
[Galaxy S Advance I9070 Android Development] shut_down:
My battery life time is about the same as with stock kernel.
[Galaxy S Advance I9070 Android Development] rjzameer:
ok..tq
[Galaxy S Advance I9070 Android Development] facce:
Does it work with I9070P (the NFC version)?
[Galaxy S Advance I9070 Android Development] diego-ch:
I dont think it will work.

if your device is rooted, install 'parted' and check if the partition table matches the non-nfc version.

then make a dump from the kernel partition so we can take a look at the initramfs files.
[Galaxy S Advance I9070 Android Development] cocafe:
i tried to build a custom kernel from your kernel source.... but i failed ,at the end of building progress there were some errors.. :(

i will try again later..

now just wait for your next release kernel....
[Galaxy S Advance I9070 Android Development] cocafe:
@diego

i sucessfully build a custom kernel with TWRP..

but the kernel version in settings is Unavailable..

how to edit the kernel verison info?? plz..
[Galaxy S Advance I9070 Android Development] rjzameer:
setting..

[Source] add kernel "name" to version information

http://xdaforums.com/showthread.php?t=977854

by @s0niqu3

hope this link will help
[Galaxy S Advance I9070 Android Development] diego-ch:
you're using old files, clone my repo on github again.
[Galaxy S Advance I9070 Android Development] varun.chitre15:
In your defconfig, under LOCAL_VERSION tag remove the spaces to solve the unavailable bug and set your name to change name of kernel.
[Galaxy S Advance I9070 Android Development] diego-ch:
sorry I forgot..

I changed the compression method from gzip to lzop

so you need to install lzop

sudo apt-get install lzop
[Galaxy S Advance I9070 Android Development] cocafe:
yes, i change the compression type from lzop to gzip in deconfig, and it works well..

i compiled the kernel on my classroom computer, and it hasn't any available internet connections.

i will continue to work on it in the weekend.. :)

Anyway, thanks a lot !
[Galaxy S Advance I9070 Android Development] cocafe:
@diego

i updated the kernel source.. the kernel version bug fixed.. and i add some io schedulers ..

i tried to edit the cpufreq table in cpufreq_db8500.c several times.. but i failed.. the phone can not boot..

i will try again later...

Do you have any ideas about overclocking our i9070?
[Galaxy S Advance I9070 Android Development] diego-ch:
I haven't tried that yet,

but I saw here on xda that a few people were trying to do that with the galaxy ace 2

which has the same board/cpu/gpu as the galaxy s advance
[Galaxy S Advance I9070 Android Development] cocafe:
all right....

oc isn't too important for me.. Dual 1GHz is enough :)

i continue to mod our kernel...
[Galaxy S Advance I9070 Android Development] zackwire:
I agree with the oc, it isnt needed at this point. It would be great to have a bunch of governors and maybe more options on recovery apps maybe.
[Galaxy S Advance I9070 Android Development] cocafe:
em... in fact, i want to add 600MHz to save some battery...

in my school, it's hard to charge my phone..

i plan to add init.d support and more governor tomorrow :)

---------- Post added at 01:01 PM ---------- Previous post was at 12:44 PM ----------

it seems a small bug with TWRP Recovery...

type "reboot recovery" in the android terminal, the phone reboot into TWRP properly..

but tap Poweroff in Reboot Menu, after a few seconds ,

power the phone , it will boot into TWRP automatically not into system... tap Poweroff, boot again, the issue happend again.. it seems a loop... only tap Bootloader/System in Reboot Menu again, it boot correctly..

when enter TWRP with Vol.Up + Home + Power not the "reboot recovery", that issue doesn't happend.

is that a bug?
[Galaxy S Advance I9070 Android Development] Ntadeusz:
How to remove TWRP recovery?
[Galaxy S Advance I9070 Android Development] rjzameer:
reflash

Flash stock kernel
[Galaxy S Advance I9070 Android Development] varun.chitre15:
@diego

I reported your work to XDA News Portal :D

And you are now featured ;)

http://www.xda-developers.com/android/samsung-galaxy-s-advance-gets-its-first-custom-recovery/
[Galaxy S Advance I9070 Android Development] zackwire:
this is great! this will surelly raise awareness to our device...thanks varun! :)
[Galaxy S Advance I9070 Android Development] Ntadeusz:
When we get reset flash counter in our phones?
[Galaxy S Advance I9070 Android Development] cocafe:
@diego

there is a bug with custom bootanimation.zip in kernel...

That bug makes boot animation loop...can not enter system.. unless delete the bootanimation.zip via TWRP..
[Galaxy S Advance I9070 Android Development] diego-ch:
I'm aware of that, still trying to fix it
[Galaxy S Advance I9070 Android Development] varun.chitre15:
Great!

Do let us know when you fix it :D
[Galaxy S Advance I9070 Android Development] Delete99:
Thank you for your awesome job. It works well on my device (Thailand)
[Galaxy S Advance I9070 Android Development] thiagoruiz4:
TWRP dont istall

hey you guys, im install the kernel, everything looks fine, but when ill look fot the TWRP and its not there, can you guys help me??

my odin give me that information:

<OSM> Enter CS for MD5..

<OSM> Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> GT-I9070_GB_TWRP_KERNEL.tar.md5 is valid.

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/004> Odin v.3 engine (ID:4)..

<ID:0/004> File analysis..

<ID:0/004> SetupConnection..

<ID:0/004> Initialzation..

<ID:0/004> Get PIT for mapping..

<ID:0/004> Firmware update start..

<ID:0/004> kernel.bin.md5

<ID:0/004> RQT_CLOSE !!

<ID:0/004> RES OK !!

<ID:0/004> Completed..

<OSM> All threads completed. (succeed 1 / failed 0)
[Galaxy S Advance I9070 Android Development] shut_down:
Where did you look for it? You need to power on phone with volume up + menu + power key to enter TWRP. It is not in phone applications, if you look there.

Послато са GT-I9070 користећи Тапаток 2
[Galaxy S Advance I9070 Android Development] cocafe:
type "su" and type "reboot recovery", and then maybe you will see TWRP..

is this help?
[Galaxy S Advance I9070 Android Development] thiagoruiz4:
Oh, i didnt know that, thank you!!
[Galaxy S Advance I9070 Android Development] ravenmag:
Huge beer, man. Thanks a lot. :D Finally sth new for SGSA. :D
[Galaxy S Advance I9070 Android Development] ohohkhimee:
Guys what is pda and chainfire supersu?

Will be my apps deleted if im going to flash my kernel?
[Galaxy S Advance I9070 Android Development] Forssound:
http://xdaforums.com/showthread.php?t=1538053 explains what supersu is.

SuperSU allows for advanced management of Superuser access rights for all the apps on your device that need root. SuperSU has been built from the ground up to counter a number of problems with other Superuser access management tools.

PDA is that not personal digital assitend ...In esscence you'll only be flashing that part..Or in short the OS not the baseband and modem stuff..

Normally If all goes well wich is 99% of the time your'apps will still be there.

Maybe you can back them up before or write at least their names down...and make sure your phone is loaded:fingers-crossed:
[Galaxy S Advance I9070 Android Development] diego-ch:
You need to flash supersu zip in twrp, not the tar in odin.
[Galaxy S Advance I9070 Android Development] ohohkhimee:
Mine is already rooted..if i will flash the kernel in the first page will my root be lost?
[Galaxy S Advance I9070 Android Development] scaldrich:
No wi-fi with kernel from current github

Hi All

Many many thanks to Diego for all his hard work on making it so easy to build a custom kernel for the Galaxy S Advance. I've installed the kernel posted in Post #1 on my wife's Advance and it's working great.

However, never being able to leave things alone I'm really keen to build my own kernel in order to get init.rc to launch dropbear (for ssh access) on startup. This will enable me to "push" music to her phone over ssh when it's docked at night.

I've been trying to build my own custom kernel from the github (android_kernel_samsung_janice) contents, so far it works great and I managed to get a working kernel build which I can flash successfully with Odin and the phone boots fine. Unfortunately the current contents of the github repository result in non-working wi-fi on her phone :(

So I've got two questions:

1. Could the fact that the current github contains the modules for XXLE2 and my wife's phone is still at XXLD1 be related to the lack of wi-fi?

2. What revision of Diego's github would I need to check-out in order to build exactly the same kernel as is posted in Post #1?

Hope someone can help and, once again, thanks so much to everyone for all the amazing info here :)

Simon
[Galaxy S Advance I9070 Android Development] shut_down:
You should maintain root. I still have it, after flashing this kernel.

Послато са GT-I9070 користећи Тапаток 2
[Galaxy S Advance I9070 Android Development] nafitte:
Thank you diego-ch for your hard work... i want know does this kernel support to run ubuntu..
[Galaxy S Advance I9070 Android Development] diego-ch:
a[1] the only stock module used in this kernel is the j4fs module, all the others are built from source.

a[2] here's the release tree.

I'll give it a try and build one with init.d support,

I've added BFQ scheduler but it makes the j4fs driver fail, still need to look into that code.

@varun.chitre15 did you upload your sources to github? or at least the bootanimation fix?
[Galaxy S Advance I9070 Android Development] cocafe:
i added init.d, sio and vr io schedulers.. they seem working well.

but how to prove that j4fs driver works?

this can prove that j4fs driver works?

$ su

# insmod j4fs.ko

insmod: init_module 'j4fs.ko' failed (File exists)

#
[Galaxy S Advance I9070 Android Development] diego-ch:
Check if mmcblk0p1 is mounted

mount | grep mmc
[Galaxy S Advance I9070 Android Development] cocafe:
$ export PATH=/data/local/bin:$PATH

$ mount | grep mmc

/dev/block/mmcblk0p3 /system ext4 rw,relatime,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p2 /modemfs ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p4 /cache ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p7 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p5 /data ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered,noauto_da_alloc 0 0

/dev/block/mmcblk0p1 /mnt/.lfs j4fs rw,relatime 0 0

$

it works well.. thank you ,diego.
[Galaxy S Advance I9070 Android Development] varun.chitre15:
Sorry guys, I was quite busy with my schedule and hence could not upload my git repo

I have request, after I make my git repo, I will keep it open for diego, hackbob and cocafe for modification, so my request is whenever you people do any mod to kernel and if it works, then will you fork my repo too with that?

I am too adding new features day by day.

This way if we do a group project then we can attain a peak of kernel development at earliest!

This will reduce the workload on us individuals. And as you all know I dont have phone therefore it takes time for me to implement the features.

I have managed to add 14 new features in ThunderZap project.

I will send a pull request to diego's repo by tomorrow.

Regarding ROM development, I can manage it on my own :D

I have been doing it since 1 year :p
[Galaxy S Advance I9070 Android Development] djhifi:
Hi guys sorry for this but I found it nowhere.

Is there anyway to unlock galaxy s advance with the BML5.IMG method? I've been trying to extract that file using terminal emulator app commands but it states "no such files or directory"

Much help would be appreciated!
[Galaxy S Advance I9070 Android Development] diego-ch:
@djhifi

you have a simlocked i9070?
[Galaxy S Advance I9070 Android Development] djhifi:
Yes sir I do. A vodafone SIMlock to be more accurate.

Rooted tough.

(I have no efs folder btw)

Solutions ?
[Galaxy S Advance I9070 Android Development] diego-ch:
here' s my /efs dir: http://pastebin.com/nRpfW5ZU

couldnt find the file you're looking for...
[Galaxy S Advance I9070 Android Development] djhifi:
I heard something about HEXing a .BAK file ?

Any clues as to why I dont have an EFS folder ?

I rooted my phone
[Galaxy S Advance I9070 Android Development] diego-ch:
check if /efs is mounted

mount | grep mmc
[Galaxy S Advance I9070 Android Development] atishey23:
What are the disadvantages of increasing binary counter after flashing through odin as stated by the OP.

And also can someone explain the meaning of this to me.
[Galaxy S Advance I9070 Android Development] antonio8297:
you can't send in assistance the s advance
[Galaxy S Advance I9070 Android Development] ohohkhimee:
thanks! gonna try twrp when i have my spare time..anyway do we have now a cwm recovery for s advance?
[Galaxy S Advance I9070 Android Development] lthy31:
Weird.. why there is no root access after I flash this kernel? Last time qzem's way worked.Before I flash this kernel I used supersu to unroot my phone, then this dialog appeared, so I flashed your kernel and I get this same problem. I tried reflashing the original firmware and flash this kernel, still the same problem, is it because i unroot using supersu? my baseband is DXLD1.
[Galaxy S Advance I9070 Android Development] diego-ch:
You'll loose warranty
[Galaxy S Advance I9070 Android Development] diego-ch:
As said on the first page.

After installing the kernel, you need to flash chainfire's super su zip via twrp in order to root the phone.
[Galaxy S Advance I9070 Android Development] lthy31:
But why can't I find the supersu zip file in twrp? Its in my sdcard D:
[Galaxy S Advance I9070 Android Development] diego-ch:
Your sdcard is probably one of those that doesn't have a partition and because of that it doesn't get detected by twrp.

Try using the internal storage. If that doesn't work you can format your sdcard or wait for the next kernel release which has this issue fixed.

Btw, no ETAs. I'm very busy this week.
[Galaxy S Advance I9070 Android Development] xCode195:
Try formatting the sdcard using https://www.sdcard.org/downloads/formatter_3/

It worked for me...
[Galaxy S Advance I9070 Android Development] shut_down:
This worked for me too.

Послато са GT-I9070 користећи Тапаток 2
[Galaxy S Advance I9070 Android Development] atishey23:
You mean samsung care.
[Galaxy S Advance I9070 Android Development] shut_down:
Losing warranty.

Послато са GT-I9070 користећи Тапаток 2
[Galaxy S Advance I9070 Android Development] samukarb:
thanks!! nic job this worked for my
[Galaxy S Advance I9070 Android Development] atishey23:
Any thing changed after applying 6mb update from samsung.
[Galaxy S Advance I9070 Android Development] varun.chitre15:
Only 6mb?

Can you post it here?

Maybe I will patch my upcoming custom ROM with it.

Its always good to stay updated :)
[Galaxy S Advance I9070 Android Development] galaxyfitankit:
Yup it's 6 mb...inky it changes your kernel to there latest build which was done on 13 September according to Korean time and the baseband changes to ddli1...it fixes the network problem...and battery issues...with Indian s advance models
[Galaxy S Advance I9070 Android Development] varun.chitre15:
Can you post the zip or whatever it is?
[Galaxy S Advance I9070 Android Development] galaxyfitankit:
Actually bro...I don't have that phone note..that's my colleague's phone..and bro that update is official and it's done by ota way...by settings software update...and it reboots the phone and enters recovery and updates itself...so it's integrated inside the whole Linux package ....don't know how to extract...and my friend won't allow me to experiment with his 20k baby...
[Galaxy S Advance I9070 Android Development] PaulTT:
The latest software is available on samfirmware (I9070DDLI1 , size 525MB). I flashed it today and it seems to work fine (anyway, I immediately flashed the root+TWRP kernel over it).
[Galaxy S Advance I9070 Android Development] mathei:
I immediately flashed the root+TWRP kernel over it, no root permission:confused:

Restored backup with TWRP and i have root permission:laugh:

Flashed I9070DDLI1, flashed root+TWRP kernel+ SuperSU.zip over it, and i have root permission, work fine!
[Galaxy S Advance I9070 Android Development] arhant:
hey if i use dd method , then how to root my phone first..!! as u said ur phone need to be rooted for this method.

and if i use the odin method and if my flash counter increases, how will it effect my phone and is there any way to fix it..?

thnk u.!

:highfive::highfive:
[Galaxy S Advance I9070 Android Development] :
When you upload the build with TWRP v2.2.2.2?

Sorry for my bad English :D
[Galaxy S Advance I9070 Android Development] cocafe:
diego has updated the TWRP, but there are some issues.
[Galaxy S Advance I9070 Android Development] ypkonline:
Here is the 6 MB file which is an OTA update i downloaded this from sam mobile as i had already rooted the phone and it would not allow me to do a OTA update .. i am newbie for Galaxy S advance .. but old for XDA ..

Its just 6 MB file not too sure fro what this patch file is for

hxxp://www.hotfile.com/dl/173125371/794870a/I9070DDLI1_I9070ODDLD4_INU.zip.html
[Galaxy S Advance I9070 Android Development] doctorandy:
What is the improvement?

Hi Diego! I'm brazilian too!

I want to know if there is a performance improvement after installing this kernel.

I'm running XXLE2 stock ROM.

Thanks!
[Galaxy S Advance I9070 Android Development] shut_down:
You get TWRP recovery, for instaling custom ROMs. And rest is like default kernel i think - as it is said in title "Stock Kernel + TWRP Recovery".
[Galaxy S Advance I9070 Android Development] arhant:
if i flash twrp via odin it will increase my binary counter..!

but i heard that flashing recoveries via odin dont increase binary counter..!

correct me if m wrong..!
[Galaxy S Advance I9070 Android Development] diego-ch:
The recovery on the i9070 is located inside the kernel, so it will increase your counter.
[Galaxy S Advance I9070 Android Development] Adi_Pat:
Hey mate, this device uses a rather strange kernel format. (kernel.bin) Seeing this for the first time. How do you extract/repack it?
[Galaxy S Advance I9070 Android Development] diego-ch:
it's a zImage+ramdisk, not the standard boot.img

I tried repacking the zImage and also a few other users did that too...

it doesn't work. the device gets stuck on bootloader logo.

you need to build it from source for it to work properly.
[Galaxy S Advance I9070 Android Development] Adi_Pat:
I shall build from source, how did you unpack it?

Can you share your scripts.
[Galaxy S Advance I9070 Android Development] diego-ch:
source is on my signature
[Galaxy S Advance I9070 Android Development] hackbob:
diego and the twrp guys made the git kernel source with samsung provided kernel sources.

I used these scripts:

http://xdaforums.com/showthread.php?t=1294436

but only for unpack and see/get the stock drivers, repack never worked on my end but not needed