Good job on Capacity! Now I think it could be looking for more files. Let our curious minds know what you find. You can hex edit libgarminos.so, stuff it back in apk with Winrar/7zip, then use SPPC 2.7 so its signed.Quote:
Originally Posted by GHGeorgiev [Only registered and activated users can see links. Click Here To Register...]
Update:Code:Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F
Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F
01036460 72 00 00 00 2F 73 79 73 2F 63 6C 61 73 73 2F 70 r /sys/class/p
01036470 6F 77 65 72 5F 73 75 70 70 6C 79 2F 75 73 62 2F ower_supply/usb/
01036480 6F 6E 6C 69 6E 65 00 00 72 74 00 00 2F 73 79 73 online rt /sys
01036490 2F 64 65 76 69 63 65 73 2F 76 69 72 74 75 61 6C /devices/virtual
010364A0 2F 73 77 69 74 63 68 2F 64 6F 63 6B 2F 73 74 61 /switch/dock/sta
010364B0 74 65 00 00 2F 73 79 73 2F 63 6C 61 73 73 2F 70 te /sys/class/p
010364C0 6F 77 65 72 5F 73 75 70 70 6C 79 2F 61 63 2F 6F ower_supply/ac/o
010364D0 6E 6C 69 6E 65 00 00 00 2F 73 79 73 2F 63 6C 61 nline /sys/cla
010364E0 73 73 2F 70 6F 77 65 72 5F 73 75 70 70 6C 79 2F ss/power_supply/
010364F0 62 61 74 74 65 72 79 2F 63 61 70 61 63 69 74 79 battery/capacity
The /sys/class/power_supply/usb/online is 34 characters long. If you can't fit, then you have to find another spot for your string and update code with new offset to new spot. If this is the case, I see 48 bytes after /capacity you can use.