yashsingh1/xdaforums huggingface dataset:
[Galaxy S Advance I9070 Android Development] jineshpatel30:
No of line difference is due to inclusion of Lucky Patcher hosts which blocks some tracking cookies and malware sites....

i'm uploading export list which i backup sometimes ago...it contains some of my modification ( not all bcz many times i directly change in hosts :p ) you can include it if you decide to stay with your host :)

[COLOR="Magenta"]only remove [/COLOR]

mtalk.google.com (1st line) it bolcks Gtalk which cause wakeup in google services even when you don't use hangout...but if you use hangout there may be problem wiith blocking this... i never use hangout so i blocked it.

[B][COLOR="Red"]*[/COLOR][/B]".domainname.com" remove all line start with [B][COLOR="Red"]* [/COLOR][/B] bcz they are not useful.

about browing lag...well stock browser works witout lag for me but it's slow.

best brower for me is dolphin 10.2.8 (old version) no lag , super fast don't update to higher version it'll lag like hell on our device

(i personally don't like opera ..website experience is not good enough :p )

nice that you removed unnecoory script ...how about DNS or ipv4 script

( don't remember exact name ) it's too big and i don't see much difference without it :p
[Galaxy S Advance I9070 Android Development] Sami Kabir:
- The "largest" script in my ROM was LoopySmoothness (115 lines, 8 KB) - I removed it because I too didn't notice much difference in performance with and without it. If you're talking about netspeed script, it only consists of 16 lines (700 bytes in size) because I've already removed all the extra and conflicting codes a long time ago. Obviously there is no massive improvement in web browsing, but this script does help it speed up a little.

- Thanks again for the list. I too don't use Hangouts/GTalk - so I'll keep mtalk.google.com. Why do you want me to remove the ones that look like ".domainname.com"? Don't they work?
[Galaxy S Advance I9070 Android Development] jineshpatel30:
ok. I wasn't aware of that

actually i added those *'s before domains to block all the things from that url but it's already bolcked by specific ad.xxx.com or someting like that... i tried to put star along with that specifics so if you look close you will find 3 lines for same

for example..

ad.dobleclick.com

*.ad.dobleclick.com

*.doubleclick.com

but in reality ad.doubleclick.com blocks all of 3 so other 2 are unnecessary...i came to know this after some time so i changed it in host file but didn't change it in export list.

so you can remove all * lines...btw there is no harm for not removing it except CPU reads them every time unnecessarily :p
[Galaxy S Advance I9070 Android Development] jineshpatel30:
oh forgot one thing in previous post ... if some user will use hangout there "may" be some problem...though i'm not sure...never used... so just put a note in OP for this if you are not removing it....if user don't use hangout this host entry does more than blocking job it actually eliminate that wakelock and save battery !
[Galaxy S Advance I9070 Android Development] Sami Kabir:
I know. I was going to mention it :p

Thanks for all your help. :good:

Sent from my GT-I9070
[Galaxy S Advance I9070 Android Development] arneldna:
USB mass storage mode force closes the systemUI. So here is the work around for peeps who got a WiFi router......works well for me...

We will use FTP to transfer files between PC and phone.

1) Connect the phone to PC and enable USB tethering.. Wait till the drivers are installed.....

2) Now download Filezilla client for FTP file transfers in your pc and use any ftp supporting app (I prefer software datacable) from play store and setup an ftp connection through your WiFi network...Done

Filezilla is pretty easy and extremely fast....The file transfer speed for me reaches to 16MB/sec...way better than the regular ftp connection or USB storage mode.

You can use Airdroid too in a similar way.....the transfer rate is doubled when your phone is tethered to your pc using the USB cable

..hope that helps..
[Galaxy S Advance I9070 Android Development] ladarjav:
Battery Draining too fast.

I'm having some issue with battery backup. After successful installation of Sami 1.2 it working very well. But form last fews day battery is draining too fast. It's 3% per hour without much use. Just wifi on, using whatsapp, no Facebook app, no any other social or security apps. installed.

Here's detail for Battery:

1. Screen : 27%

2. Android OS: 24%

3. Mediaserver: 16%

4. remaining other apps takes rest.

I'm using Sami 1.2 with stock kernel.

Any help will be appreciated. Thanks:laugh:
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Battery life has never been a strong point for my ROM. I also think that specific versions of CoCore E kernels like r09 or the good old 8.2 does a better job in delivering better performance and battery life - better than stock kernel. You can also use the No-Frills CPU control app to set a much battery friendly combination of governor and I/O - like pegasus(q) and sio.

You said that you are having battery problems for the past few days, does that mean that you didn't have them when you installed my ROM for the first time?

Anyways, try Greenify - I've been using it for quite some time now and I must say, it does help slowing down battery drain. And also, install something like Wakelock Detector to find out what app (or apps) are consuming more battery than others.

Sorry I wasn't able to give you a sure-fire way to get rid of this problem :o
[Galaxy S Advance I9070 Android Development] jineshpatel30:
don't you think his media saver draining too much battery ?

check yours...

i'm on HJ since long ( waiting for 1.3 :p ) and my media saver never use more than 3%
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Hmm.. Mine's at 11% right now. This is definitely something to look at - but I don't know where to look at :laugh: :p

My work on 1.3 update is actually done. But yesterday when I tried to flash its final zip file, it installed properly, my phone booted but it got stuck at "Android is upgrading... Starting apps". I waited for 20-30 minutes but it was stuck (it wasn't a bootloop though). Now I'm trying to figure out what's causing this - because I never experienced anything like this while testing 1.3 update before.

I actually wanted to release it tomorrow or day after tomorrow - looks like now I have delay it for a few more days :(
[Galaxy S Advance I9070 Android Development] MikiGry:
Are u anable to take logcat on ADB or it doesnt detect your device ?

Wysłane z YSF-fonika 6.7 powered by Apollo kernel.
[Galaxy S Advance I9070 Android Development] jineshpatel30:
this is more...i never seen media saver taking that much of battery...( atleast in usual usage ...days when you transfer many media files are exception )

well this is weird ! try with fresh install after factory reset and check is it still present ( this may be cause because in some apps when there is lots of changes i had problems in loading their data so i have to clear data for that app to work..my experience...give it try after taking nandoid backup may be it works...)
[Galaxy S Advance I9070 Android Development] Sami Kabir:
I still can't understand logcats. And last time when my phone wasn't booting properly, logcat didn't really help me - i.e it didn't exactly tell me what file was causing this issue. Right now I'm trying something - and if that doesn't work I'll have no choice but to take a logcat.

This is something to think about.. Hmm..

Thanks for the tip!

What I did right now is separate all the folders in system folder (in the zip file) and made separate flashable zip files of them. I'll now flash them one by one and see if my phone boots properly or not. This is time consuming because everytime I flash a zip file and reboot my phone, it has to go through "Android is upgrading... optimizing apps x of 161" and this takes a while to finish.
[Galaxy S Advance I9070 Android Development] jineshpatel30:
keep going :p this will take half of yr sleep to night :p ;) so don't fall asleep in-between ( kidding :silly: )
[Galaxy S Advance I9070 Android Development] ladarjav:
Battery Draining too fast.

After installing rom I didn't notice any issues because I was too excited that I installed Sami 1.2. It really took more time to install this rom.

It's perfect rom.

I was listening to music and using mx player so may be that's why "Media Server" is taking 11%.
[Galaxy S Advance I9070 Android Development] jineshpatel30:
IMO it shouldn't be cause...bcz media server only works when you "change" some media related folder or add some media files...it starts on bootup, do whole media scan then it sit in background for changes in media related...this background process don't eat battery....listening music or browsing pics doesn't trigger media server but capturing pics or changing folder does !
[Galaxy S Advance I9070 Android Development] jineshpatel30:
HOME button bug fix :D

[MENTION=4879114]Sami Kabir[/MENTION] here i conform that home button "bug" ( it goes to home screen instead of wake ) is definately due to patch from this thread to your android.policy.jar

i installed Sami OS 1.0 and changed android.policy.jar from HarshJelly and TaDa home button working as it should...so remove this patch from your android.policy.jar

i'm uploading android.policy.jar from HJ for your reference :)

(you may get bootloop after using this ...it's bcz of there may be some other ROM related changes. i was able to boot with this after clearing dalvik cache n F.reset ....so i'm conforming that this cause is due to this patch only...after rebooting i stuck in bootloop so you may not able to put directly HJ android.policy.jar , you have to make appropriate changes ( that's remove those patch from that thread only.... IMO ) in your android.policy.jar

Edit : one request.

Edit 2 : well after using sami 1.2 for sometime i have some specific request for SystemUI which i'll ask after you release 1.3 , if you can give some time to that it'll be very helpful to me :)
[Galaxy S Advance I9070 Android Development] Sami Kabir:
[MENTION=4942685]jineshpatel30[/MENTION], I was also able to fix this bug to some extent. Now, pressing it while the screen is off for a long time will just wake the screen. It won't minimize the app which is running. But the problem is that its still a hit-or-miss thing. Sometimes it works, sometimes it doesn't.

I'll look into HJ's android.policy.jar as soon as I get some free time. Does home button lag exist in HJ ROM? If not, then I'd really like to know how Harsh fixed it.

About my 1.3 update, I was able to find out that a file (or files) in the lib folder is causing my phone to not boot completely. Now all I have to do is find out what so file(s) is causing this..

Anyways, what type of changes do you want to see in my SystemUI?
[Galaxy S Advance I9070 Android Development] jineshpatel30:
This policy.jar method works every time...i tried 10-12 times and it worked

well don't feel any lag on home button..

Not even on stock rom nor on HJ...but i'm not using google now or samsung voice..

So home button is really quick for me ...snd i don't think harsh took some steps to reduce this lag...bcz it's not that much noticeable !

Well i like SystemUI exactly what present in sami 1.0

That is NO Quick setting panel ( many of them are not working and i don't use other so it's almost no use for ppl like me..and providing lidrod togale put extra load on systemUI)

No minsk app short cut...it takes much space

WiFi arrow with stock colour...orange & green

Small AM/PM like in 1.2

And little bit more transperent pull down & same transperancy in brightness bar background (if thickness of brightness bar can be reduce it will be gr8 bcz we only need line while it took about 1CM of width due to its background !
[Galaxy S Advance I9070 Android Development] #Henkate:
[MENTION=4879114]Sami Kabir[/MENTION] :

1)Just got an idea , but i think will be hard. What about an option in QuickLaunch which clear ram? So, we can just tap the icon in statusbar and it will clear the ram, instead going to task manager.

2) Personally, i dont like that in settings> about phone it say android 4.2.2 and that platlogo, but i can change them myself.

3)An option to move clock in left /right /center if possible as some people posted here that want the clock in right as i remember.

Im excited to see 1.3 update :)
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Thanks for the ideas and for your patience but you probably won't like what I'm going to say next...

1. Sadly, I don't know much about smali editing. So, adding an entirely new function like this is almost impossible for me. I thought about doing something like this but it probably won't work because its for Android 4.2+ only. :(

2. Ok.

3. I was thinking about doing this for a very long time. I even tried to do this twice but I failed. I'll try it again some time later and if I succeed then I'll let you know about it.

Sorry to disappoint you.
[Galaxy S Advance I9070 Android Development] jineshpatel30:
hey , today i noticed that this mtalk.google.com is used for push notification of twitter ! so there is chance that it's used by other apps also for push notificatin. so it's probably best that we don't use it in host file for blocking :) sry for inconvenience :(

btw if you made any export-import list for adway , can you upload it ?
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Thanks for the info. No, I didn't compile any list from AdAway. The one I'm using is the old one (the one you shared earlier).
[Galaxy S Advance I9070 Android Development] RafaeLuisxD:
Where is the link of the latest version?

Where is the link to the latest version of this?

Sorry my lack of knowledge, am new to the forums

and sorry for my bad english, I don't speak english, I am using a google translator XD
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Hello.

Sami OS 1.2: http://d-h.st/Afn

Sent from my GT-I9070
[Galaxy S Advance I9070 Android Development] hastalafiesta:
Great job [MENTION=4879114]Sami Kabir[/MENTION] , actually I'm running my own cyano 11 build and I'm satisfied with it, nice performance but not so good battery life... how are yours with your rom? Tell me the average in hours please(screenshot):o

I wanna take a try to your rom:good:
[Galaxy S Advance I9070 Android Development] jineshpatel30:
yeeee Finally ;) gr8 job :D

it's sad for me that i can't able to Update for 3-4 days :( extremely busy with study :(

i'll give it try asap and give my full review :p
[Galaxy S Advance I9070 Android Development] Sami Kabir:
In my opinion, any non-TouchWiz ROM is better than my ROM. I always try to keep a good balance between battery consumption and performance, but I always seem to fail in doing it.

My battery isn't in a good condition, so it discharges really fast. I have to charge my phone at least once everyday even with light usage.

I had to reboot a few times today, so I'll share a screenshot of my battery stats tomorrow (if I remember :p)

Thanks. :o

Its okay. I can understand. I'm also in the same position as you are.. I too have very little free time to spend. :)

Sent from my GT-I9070
[Galaxy S Advance I9070 Android Development] wmfaiz:
Can someone mirror it to solid files or androidfilehost???

I can't download from devhost or 4shared as my college block most of the hosting sites

I mean from the first version of SamiOS
[Galaxy S Advance I9070 Android Development] arneldna:
[MENTION=4879114]Sami Kabir[/MENTION] I was so tempted to update my device I copied the update in my phone and updated it while I was working in my office...So smooth fluid...you changed my mind...I will continue with this phone for as long as I can credits to you and your ROM.......awesome job bro...just wish you had a systemUi without the quick launch buttons...I know about the old systemui but the icons in that are not that great...
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Thank you. :o

3Minit QuickLaunch Panel is disabled in this SystemUI.apk
[Galaxy S Advance I9070 Android Development] arneldna:
Thank YOU..!! can you share that wallpaper you have in the screens shots ?
[Galaxy S Advance I9070 Android Development] Sami Kabir:
You're welcome.

All the wallpapers are there in my ROM's wallpaper chooser :)

My lock screen wallpaper is the 4th one and my home screen wallpaper is the 35th one.

After a quick Google search, I was only able get my lock screen wallpaper.. (link)
[Galaxy S Advance I9070 Android Development] arneldna:
Oh how could I miss that...neways.. [emoji38] ...one issue I notice from the last thirty minutes... my Poweramp license verification fails...even if I purchased and install the unless cker it doesn't work..any service that is stopped that may cause this?
[Galaxy S Advance I9070 Android Development] charnoha:
Thanks a lot!

Finally its here!. thanks a lot for your hard work!

Going to download ASAP!
[Galaxy S Advance I9070 Android Development] Lukapetr:
Hi, I'm on liteJB 1.2 and I want to try this rom. Do I have to flash Sami 1.0 +update 1.1 and 1.2 or I can directly flash the last 1.3 update?Thanks in advance :) :)
[Galaxy S Advance I9070 Android Development] charnoha:
Updating to Sami OS 1.3:

The instructions are the same as before; and they are quite easy to follow:

- Make sure you're running Sami OS 1.2

- Download SOS_UPDATE_1.3.zip and copy it to your External SD Card

- Reboot to Recovery

- Make sure that you have a Backup of your current System and Data (just to be safe)

- Flash the SOS_UPDATE_1.3.zip to Install the update

- And when that's done, all you have to do is Reboot your phone. The first boot takes 5-10 minutes to complete, so please wait patiently and wait for the "Android is upgrading" process to complete...

- After the device successfully boots up (i.e when you see your lockscreen) please don't use your phone for at least 2 minutes (because media scanning service along with many other services will start running and so its going to be very laggy)

- And that's pretty much it. Congrats, you're now running Sami OS 1.3!
[Galaxy S Advance I9070 Android Development] Lukapetr:
Yes i've read it but i wasnt sure.(my english sucks :) )...so it means i have to flash 1.0 first? And then the updates?sorry

EDIT: done....
[Galaxy S Advance I9070 Android Development] Sami Kabir:
- Thank you.

- Ah, removing 4.2 quick settings might take a while. If I succeed, I'll share it. Why do you hate it btw? At first, it felt a little to me, but now I'm using it all the time (force of habit :p)

- Hmm. I've only used some framework (jar), library (so) and apk files from VJLPE firmware. And I don't think this can cause this issue. This usually happens when you're charging using a charger that wasn't meant for your phone. Or maybe its a kernel issue. Which kernel are you using right now?

Thank you :o

Yeah. You'll have to install 1.0, 1.1, 1.2 and then 1.3. Its tedious, and I'm sorry for that.

You just have to wipe everything before installing Sami OS 1.0. Once that's done. Setup your phone and use it for a while. Then reboot to Recovery and flash 1.1, 1.2 and then 1.3 without wiping anything.

Keep a backup in case something goes wrong. :)
[Galaxy S Advance I9070 Android Development] jineshpatel30:
i can't force my self to chnge my habit that's why i change HJ from sami 1.2 due to that home button problem... i always need to make phone work as i want not as phone wants me to use it :p :p

you misunderstood me ...

i'm not saying this things you changed causing problems..actually i didn't even flash sami yet (busy :( ) it's definitely kernel related issue..and cocafe tried 2-3 times to fix it in cocore but it still present and it's very annoying for me ( you find this issue very much in 8.2 ) contrarily this isn't present in my stock kernel (Indian version ) so i asked for this VJLPE kernel to check...

i'm still using official charger so i don't think that's the problem...bcz on stock kernel it works very well ( you never felt this issue with cocore ?? while charging above 80% )
[Galaxy S Advance I9070 Android Development] arneldna:
Sorry...but where is the host file? How can I remove it..?
[Galaxy S Advance I9070 Android Development] jineshpatel30:
/system/etc/hosts

copy this file to some where before deleting ( if after deleting this still your license couldn't verify restore it and give rw-r--r permissions ...this file blocks ads in device so if you won't restore you see ads here n there )

Edit after deleting / restoring hosts you need to restart your phone
[Galaxy S Advance I9070 Android Development] Epirex:
Congratulations on your ROM! It is excellent! :D
[Galaxy S Advance I9070 Android Development] buffer overflow:
Very nice ROM..Great job.
[Galaxy S Advance I9070 Android Development] isaak:
[MENTION=4879114]Sami Kabir[/MENTION]

Did you ported Blocking mode without any crash in custom contact list? If yes, how?

It's really a hard issue to fix here.
[Galaxy S Advance I9070 Android Development] arneldna:
Sorry but that did not work...Lucky patcher helped though. But I have purchased this app so doesn't serve the purpose.. [MENTION=4879114]Sami Kabir[/MENTION] any other guess ?
[Galaxy S Advance I9070 Android Development] Sami Kabir:
[MENTION=4942685]jineshpatel30[/MENTION]

Ok, Here you go. Here's the View attachment VJLPE_Kernel.zip from VJLPE firmware.

[MENTION=5008436]arneldna[/MENTION]

No. Sorry. I have no idea why it isn't working.

Thank you :o

Thank you :o

Because I enabled and worked on Blocking Mode a long time ago, I can't remember everything I did. :mad:

But here's what I remember.. You need to replace the following smali files:

SecPhone.apk - com/android/phone/PhoneFeature.smali

SecContacts.apk -com/android/contacts/list/ContactsIntentResolver.smali and com/sec/android/app/contacts/interaction/InteractionTabActivity.smali

ClockPackage.apk - com/sec/android/app/clockpackage/alarm/Alarms.smali

I said replace because I can't remember which lines need to be edited (sorry). And one more thing. Did you manage to get a working menu in Settings app and a working toggle for Blocking Mode? If not, then do ask me. I still remember how I did it.
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Here's my battery stats with light usage:

SOT: About 2 hrs, 40 mins

As I said earlier, my phone's battery isn't good at all. Its not a problem for me because I spend most of my time at home and in class.
[Galaxy S Advance I9070 Android Development] isaak:
I need to get a working menu in Settings app, not interested to have a toggle.

Anyway, I ported your processlist.smali and activitymanagerservice.smali to my services.jar, after a wipe dalvik cache + reboot I have more speed but it consumes more battery than stock memory management. Android system usage increased from 15% to 26% and I'm considering to reflash stock service.jar.

Media server is ok.

Finally I was able to introduce call recording mod, it was a weird compilation issue.
[Galaxy S Advance I9070 Android Development] Sami Kabir:
Yeah, its quite hard to have a good balance between performance and battery consumption.

To add a Blocking Mode menu in Settings app, add this:

<header android:icon="@drawable/ic_settings_block" android:title="@string/dormant_mode">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.dormantmode.DormantmodeSettings" />
</header>

to Settings\res\xml\settings_headers.xml file. The lines in settings_headers can be rearranged (or even deleted) to your preference. This is how you can rearrange the menus in Settings app.

And about SecPhone.apk, you might find this useful :)
[Galaxy S Advance I9070 Android Development] paolino08:
This is the first time I install a different ROM in my phone than the stock one.

Your ROM is realy great! Many thanks for sharing your work....

I have some (stupid, but not for me...) questions:

1) how can I set the camera app to use external sd?

2) where can I find original Samsung ringtones installed in the stock ROM?

3) is it possible to have status bar icons not in black/white?