Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 13:52:32 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: Early beta of nspire version string patcher -  (Read 1727 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
tangrs
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: Yesterday at 00:06:05
Date Registered: 13 July, 2011, 04:32:25
Location: Australia
Posts: 190

Topic starter
Total Post Ratings: +89

View Profile WWW
« on: 07 August, 2012, 14:14:31 »
+3

For a bit of fun, I made a version string patcher for the Nspire.



It's still a WIP requiring polish but it works for now Smiley

I'll publish binaries soon but the impatient can see how it works by visiting the github repo https://github.com/tangrs/nspire-version-patcher
Logged
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 07:18:30
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2111


Total Post Ratings: +262

View Profile
« Reply #1 on: 07 August, 2012, 14:21:00 »
0

Lol, that is awesome Big smile
By the way, it has been a long time since the last time I saw you. Are you still working on nspiremovieplayer ? Smiley
Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
tangrs
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: Yesterday at 00:06:05
Date Registered: 13 July, 2011, 04:32:25
Location: Australia
Posts: 190

Topic starter
Total Post Ratings: +89

View Profile WWW
« Reply #2 on: 07 August, 2012, 14:27:36 »
0

Lol, that is awesome Big smile
By the way, it has been a long time since the last time I saw you. Are you still working on nspiremovieplayer ? Smiley

Most of the development in nspiremovieplayer is finding a faster way to decode JPEGS. So there is research work going on behind the scenes Big smile
Logged
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 13:06:15
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1736


Total Post Ratings: +180

View Profile WWW
« Reply #3 on: 07 August, 2012, 15:02:42 »
0

Glad to see you're still having fun with the Nspire Smiley
Also, nice application. I wonder, can you spoof the version number that the Student software detects ?
That would be even cooler as you could trick the software that you have a newer version of the OS installed.
Logged

Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 28 May, 2013, 18:19:14
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1179


Total Post Ratings: +158

View Profile WWW
« Reply #4 on: 07 August, 2012, 16:06:34 »
0

how is it possible to find the location of those things? the more apps like these i see, the more confused i get xp

nice work btw, really nice Smiley and i like it how you call it android xp
Logged

Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 13:23:36
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #5 on: 07 August, 2012, 16:12:09 »
+2

I've got better and shorter :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <os.h>
#include "libndls.h"

static unsigned addr_addrs[] = {0x107C1DDC, 0x10801E3C, 0x107A2DC8, 0x107FF0D0};
#define addr ((unsigned *)nl_osvalue((unsigned*)addr_addrs, 4))

int main(int argc, char* argv[]) {
char lol[]  = "Whatever you want";
char * lol2 = malloc(sizeof(lol));
strcpy(lol2, lol);
    *(addr) = lol2;
    return 0;
}




el problemo ?


Edit : oh, and by the way, show_msg_usr_input() does not work in the current revision of Ndless because my patch for it didn't yet get pushed to the Ndless svn by ExtendeD.

* patch_version.tns (0.34 KB - downloaded 134 times.)
« Last Edit: 08 August, 2012, 14:11:14 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 28 May, 2013, 18:19:14
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1179


Total Post Ratings: +158

View Profile WWW
« Reply #6 on: 07 August, 2012, 16:14:53 »
0

@levak
how come your ':' are messed up a bit? since they have a space in front of them, and the third one even totally dissapeared Shocked
Logged

adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 14 June, 2013, 17:56:38
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1202


Total Post Ratings: +186

View Profile WWW
« Reply #7 on: 07 August, 2012, 16:16:22 »
0

Very nice both of you ;-)
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 13:23:36
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #8 on: 07 August, 2012, 21:34:34 »
+1

@levak
how come your ':' are messed up a bit? since they have a space in front of them, and the third one even totally dissapeared Shocked

French/English difference =(

EDIT :


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <os.h>
#include "libndls.h"

static unsigned addr_addrs[] = {0x107C1DDC, 0x10801E3C, 0x107A2DC8, 0x107FF0D0};
#define addr ((char **)nl_osvalue((int*)addr_addrs, 4))
static unsigned build_addrs[] = {0x10825114, 0x10865174, 0x10806100, 0x10862408};
#define build ((char *)nl_osvalue((int*)build_addrs, 4))
static unsigned version_addrs[] = {0x100A9CD8, 0x100A9F98, 0x100A93D4, 0x100A96BC};
#define version ((unsigned *)nl_osvalue((int*)version_addrs, 4))

int main() {

int major = 3;
int minor = 1;
int revision = 0;
int b = 392;
int ok =
show_2numeric_input("Change version", "model : [3.1].0.392", "3.", &major, -2, 0xF, "1.", &minor, -2, 0xFF)
&& show_2numeric_input("Change version", "model : 3.1.[0.392]", "0.", &revision, -2, 0xF, "392", &b, -2, 0xFFF);
printf("%d", ok);
if(ok){
char v[] = {major, minor, revision};
/* patch inside infos */
char * lol = malloc(sizeof(char)*15);
sprintf(lol, " %d.%d.%d.%03d", v[0], v[1], v[2], b);
*(addr) = lol;

/* patch outide infos */
sprintf(build, "%03d", b);
*(version-3) = 0xE3A02800 | (v[1]*10+v[2]); // MOV R2, #A, LSR16
*(version-2) = 0xE3A01400 | (v[0]); // MOV R1, #3, LSR24
*(version-1) = 0xE0800001; // ADD R0, R0, R1
*(version) =   0xE0800002; // ADD R0, R0, R2
show_msgbox("", "Successfully patched");
} else {
show_msgbox("", "Patch canceled");
}
    return 0;
}

* patch_version.tns (2.72 KB - downloaded 138 times.)
« Last Edit: 07 August, 2012, 22:00:36 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:47:05
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50634


Total Post Ratings: +2637

View Profile WWW
« Reply #9 on: 07 August, 2012, 22:05:59 »
0

Wow nice, so basically we can change most of the system menu text and stuff?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Wayne
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: Yesterday at 08:36:42
Date Registered: 10 October, 2011, 21:14:34
Posts: 54

Total Post Ratings: +1

View Profile
« Reply #10 on: 07 August, 2012, 23:36:15 »
0

Yeah TI finally released 4.1.1  Grin
Logged
Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 13:23:36
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #11 on: 07 August, 2012, 23:38:34 »
0

Wow nice, so basically we can change most of the system menu text and stuff?
You thought is was not possible ?
It is just a matter of time, a matter of goal and a matter of usability.

With Ndless, you can run any ASM or C code, so you can basically modify any value, any code in the OS that is running.
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 14 June, 2013, 17:56:38
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1202


Total Post Ratings: +186

View Profile WWW
« Reply #12 on: 07 August, 2012, 23:44:02 »
0

Awesome levak Tongue
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 28 May, 2013, 18:19:14
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1179


Total Post Ratings: +158

View Profile WWW
« Reply #13 on: 08 August, 2012, 00:19:42 »
0

so now we can trick the sending software by telling it we are running another OS?
Logged

Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:24:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1916

Total Post Ratings: +215

View Profile WWW
« Reply #14 on: 08 August, 2012, 07:06:54 »
0

Quote
so now we can trick the sending software by telling it we are running another OS?
Seems so, indeed Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.439 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.