How can I edit the TTL? - Moto G5S Questions & Answers

How can I edit the TTL?
I did not find the line TTL in /proc/net/ip_tables_targets. (XT1799-2)
Maybe some kind of kernel patch is possible?
thanks

Related

[FIXED] Any devs can compile a new wpa_supplicant for connecting to adhoc network

Any devs out there building roms can compile up a wpa_supplicant as per http://szym.net/android/adhoc-wpa-supp.html
+1
Have to apply manual changes on wpa_supplicant.conf to keep my ad-hoc network working each time I add new wifi network.
daveba said:
Any devs out there building roms can compile up a wpa_supplicant as per http://szym.net/android/adhoc-wpa-supp.html
Click to expand...
Click to collapse
Code:
/system/etc/wifi/wpa_supplicant.conf
/data/misc/wifi/wpa_supplicant.conf
Manually ad your ad-hoc network in WiFi settings.
Turn off Wireless
Edit /data/misc/wifi/wpa_supplicant.conf
Code:
ap_scan=2
and
mode=1 (inside the network config in the same file)
Use PowerControl widget to turn off/on as going in to WifiSettings will mess up WPA_Supplicant.conf again.
Maybe doing a proper config in /system/etc/wifi/wpa_supplicant.conf via recovery mode will sort it permanently instead?
For anyone reading this thread, i just came across this and it works perfect. No manual editing of files. Just flash the wpa_adhoc zip attached.
http://forum.xda-developers.com/showthread.php?t=754961
Same here for the Milestone.
Can someone give me pointers on how the patch gets applied to the wpa_supplicant? I suppose it needs to be decompiled and then recompiled but I've never done that so I'm not sure how involved it is or what tools are needed.
Just in case it's a quick job for someone in the know like you here is a link for the Milestone wpa_supplicant http://dl.dropbox.com/u/904989/wpa_supplicant ;-)
Thanks !

How can we edit *.so file?

I found into shp folder *.so files and I want to ask if we can edit them
because I want to see what have in the files
OpEuroIME.so and OpEuroIMESetting.so
HEX Editor... expect not tooo much.
This leads to this...
http://forum.xda-developers.com/showthread.php?t=1294406
But we could investigate, if this or other files about language is in arabic S8600...
Best Regards
.so are equivalents to .dll libraries which you can find in Windows. They contain almost only machine code.
And you cannot edit them, because these are digitally signed, first you'd have to bypass integrity&sign check mechanisms.
Some one using Linux can try this program please?
http://www.fileinfo.com/extension/so
Not to edit, but if it was possible at least to read .so file?
you can see GCC compiler in SDK files....of course if you have it
"SDK Path"\Bada\2.X.X\Tools\Toolchains\ARM\arm-bada-eabi\bin\gcc.exe
You can see this in the readme file too
The executables in this directory are for internal use by the compiler
and may not operate correctly when used directly. This directory
should not be placed on your PATH. Instead, you should use the
executables in ../../bin/ and place that directory on your PATH.
Click to expand...
Click to collapse
So any ideas about a DEcompiler
This is just a compiler that make .so files....Maybe non-compressed ones only too
Best Regards
ML90 Did you try to see so file with SDK?
Because I never used it
There is nothing to see in there
You can use gce2elf plug-in for trix to decompress .so files from bada 2.0 and the files will be converted to elf files that were available in bada 1.2 FWs before
S8600 .so files can't be decompressed until now !
There is no way to compress files back yet !
As i say these files can contain pure code and no pics or any stuff like that as they are compiled from .O libraries files used by C/C++ apps
We need the real experts to come back and help us
Best Regards
Thanks for your answer.
Even if we got pure c++ code perhaps we should be able to see what for exemple setting.so file call on other file firmware... that was my idea
After I know we can not rebuild a file, but it's just to have some more infos that should be usefull?
After I know we can not rebuild a file...
Click to expand...
Click to collapse
This is not 100 % correct...
*.so files are signed... So Security is main problem...
To modify or to rebuild is only problem of skills...
If "Android boys"... ...
See here:
*.so files are also known in Android world...
http://forum.xda-developers.com/showpost.php?p=23559274&postcount=15
Android use folder lib with *so files...
Maybe good chance to find some source... if these files also open source...
But again.
Break first Security check, then you can modify *.so files... depend on your brain.
But at the moment Dead ends...
Smart skilled users on ""holiday""... or missing in action...
First "safe" attempt to remove Security Check:
apps_compressed.bin...
Compression Algo needed... as you have no full access in compressed BINary...
If Bootloader checks *.so files... maybe FOTA could help...
To break RSA 2048...
I hope few of our smart Devs come back to bada Hacking.
To search and find *.so sources in Android world is not useless...
Maybe it helps to better understand.
Best Regards
hi,
editing is not a problem - we dont need to compress gce back - similar situation to rc1/qmd image (gce is light weight qmd version)
Happy to see you there Kubica, we realy need your knowledge
Bada have no big interest if we can't custom firmware (thanks to samsung ).
Someone could post and edited so file please? it's just to see relation with others files in the firmware.
editing is not a problem - we dont need to compress gce back - similar situation to rc1/qmd image (gce is light weight qmd version)
Click to expand...
Click to collapse
Thanx b.kubica
Attached is DEcompressed Admin.so from S8500 XXKK5 as example...
With Help of TriX easy task.
Thanx again.
Here we can see (if we want) Codes as TEXT Strings...
http://forum.xda-developers.com/showthread.php?t=1154945
Prior in bada 1.x they were located in apps_compressed.bin... now in this Admin.so...
In theory we could edit few Codes to harder combos... like:
*#1234567#
But how remove or "rebuild" GeneralSoInfo.so.sig Integrity check
Vodafone branded Firmware or S8600 for instance uses few different Codes... sometimes...
Maybe this could 1 of our first modified *.so file, if someone break *.so Security check.
Thanx.
Best Regards
adfree said:
if someone break *.so Security check.
Click to expand...
Click to collapse
done
b.kubica said:
done
Click to expand...
Click to collapse
How
simple 1 byte patching
later I will post more info
On bada 1.x
Better on XXJEB, other not tested yet...
Only first 4 KB are signed...
If you change something at higher address... above 0x1000
See here:
http://forum.xda-developers.com/showpost.php?p=25255252&postcount=47
Big thanx mijoma
Now I will check again XXLC1... bada 2...
Anyway.
Big thanx b.kubica
My Preconfig Code is now:
*#1234567*#
Best Regards
---------- Post added at 11:27 PM ---------- Previous post was at 11:09 PM ----------
I can confirm... bada 2 on XXLC1 has improved Sig Check...
But now no problem anymore.
Thank you very much b.kubica
Best Regards
apps code:
Code:
// pseudo C
unsigned int AppPkgSvcRequest ( ... )
{
unsigned int action = *(struct field ptr);
switch ( action )
{
/* ... */
case 6:
/* check signature ;) */
break;
case 7:
/* ... */
}
}
assembled code:
Code:
patt: [B]06[/B] 28 3F D0 07 28
mask: FF FF 00 00 FF FF
replace first byte with anything grater than 7 and you'll know what are we talking about
Thank you very much b.kubica
For easy test... Code change in Admin.so:
http://forum.xda-developers.com/showpost.php?p=23127738&postcount=54
Now we could for instance play with Dolfin.so ... Browser.
I need more time to find something usefull.
Best Regards
Someone can explain please? I don't get it
very simply mod - Radio without earphones connected
from LA1 but should works on similar too.

Question about ICS decompilation

Hi everyone,
I will like to know when you decompile ics apk especially systemui ,do you get in public.xml some resources id as : apktool dummy ?
If yes what does at means? It appears to me on some drawable and string id,so how should I know with id correspond to drawable ?
Thanks in advance
zozor said:
Hi everyone,
I will like to know when you decompile ics apk especially systemui ,do you get in public.xml some resources id as : apktool dummy ?
If yes what does at means? It appears to me on some drawable and string id,so how should I know with id correspond to drawable ?
Thanks in advance
Click to expand...
Click to collapse
ignore the apktool dummy stuff, just treat them like any other existing resources
Okay ,another question if an id with ''APKTOOL_DUMMY'' is involve in smali,how should I know what specific object is to perform editing ?
workaround ?
maybe I should really ignore some of them.

what is the file name

What is the file name that I need to edit with sq lite editor? I want to edit system stuff
GayCasper said:
What is the file name that I need to edit with sq lite editor? I want to edit system stuff
Click to expand...
Click to collapse
What are you trying to edit?
I only ask because MM changed the way settings.db is written and sqlite3 edits no longer work the same.
You would need to use this app.
Warning, unless you know exactly what you are editing DON'T DO IT! YOU CAN CAUSE SERIOUS DAMAGE TO YOUR PHONE IF YOU EDIT THE WRONG THING
Good luck
Let me if you have questions?

Need help modifying some system files

While trying to learn most of my tablet...especially when it comes to performance (i am a "power" user) i stumbled upon a few things i am curious about...
I will ask a few questions...hopefully someone will answer
1. What is framework.jar?? If i modify something in it...do i have to modify some other files too...to make sure its applied?
2. Where can i find this "ActivityManager" something? (On my opinion its like a API code)? I wanna modify something in it...hopefully to get some speed
3. About this code "ro.config=low_ram" on some devices thats how the code looks like...but in some cases...especially when about to be forcibly enabled they put "ro.config=low_ram.mod" instead...why so? And what is .mod? Will the code still have effects if it has this ".mod"?
4. Does a command in build.prop really need that "# blablabla" something? For what purposes?
For example:
#NFC
debug.nfc.fw_download=false
debug.nfc.se=false
That "#NFC" is it needed?
5. What is local.prop? Does it have any relation with build.prop?
Thanks for reading...hope someone will be able to answer this questions...thanks in advance

Categories

Resources