What's new
  • The default language of any content posted is English.
    Do not create multi-accounts, you will be blocked! For more information about rules, limits, and more, visit the Help page.
    Found a dead link? Use the report button!
Smart School Android App - Mobile Application for Smart School

NULLED Smart School Android App - Mobile Application for Smart School 4.2 NULLED

raz0r 's signature
Reacted by:
  • Like
Reactions: cyberespia
please the Smart School App is not Nulled
 

Attachments

  • n.jpg
    n.jpg
    22.5 KB · Views: 22
Reacted by:
please the Smart School App is not Nulled
Nulling Procedure

Find private void getDatasFromApi(String bodyParams) in NewDashboard.java
and replace the class with this

Java:
    private void getDatasFromApi(String bodyParams) {

        final ProgressDialog pd = new ProgressDialog(this);
        pd.setMessage("Loading");
        pd.setCancelable(false);
        pd.show();

        final String requestBody = bodyParams;

            String url = "";
            StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
                @Override
                public void onResponse(String result) {
                    System.out.println("result=="+result);
                    pd.dismiss();
                }
            }, new Response.ErrorListener() {
                @Override
                public void onErrorResponse(VolleyError volleyError) {
                    pd.dismiss();
                    Log.e("Volley Error", volleyError.toString());
                    Toast.makeText(NewDashboard.this, R.string.apiErrorMsg, Toast.LENGTH_LONG).show();
                }
            }) {
                @Override
                public Map<String, String> getHeaders() throws AuthFailureError {
                    headers.put("Client-Service", Constants.clientService);
                    headers.put("Auth-Key", Constants.authKey);
                    headers.put("Content-Type", Constants.contentType);
                    headers.put("User-ID", Utility.getSharedPreferences(getApplicationContext(), "userId"));
                    headers.put("Authorization", Utility.getSharedPreferences(getApplicationContext(), "accessToken"));
                    return headers;
                }

                @Override
                 public String getBodyContentType() {
                    return "application/json; charset=utf-8";
                   }

                @Override
                public byte[] getBody() throws AuthFailureError {
                    try {
                        return requestBody == null ? null : requestBody.getBytes("utf-8");
                    } catch (UnsupportedEncodingException uee) {
                        VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", requestBody, "utf-8");
                        return null;
                    }
                }
            };
            //Creating a Request Queue
            RequestQueue requestQueue = Volley.newRequestQueue(NewDashboard.this);
            //Adding request to the queue
            requestQueue.add(stringRequest);


    }

Find AcademicModuleAdapter.java and replace with this content

Java:
 private void CheckAddon(String bodyParams, final String type) {

        final String requestBody = bodyParams;
        String url = "";

        StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
            @Override
            public void onResponse(String result) {
            }
        }, new Response.ErrorListener() {
            @Override
            public void onErrorResponse(VolleyError volleyError) {

                Log.e("Volley Error", volleyError.toString());
                Toast.makeText(context.getApplicationContext(), R.string.apiErrorMsg, Toast.LENGTH_LONG).show();
            }
        }) {
            @Override
            public Map<String, String> getHeaders() throws AuthFailureError {
                headers.put("Client-Service", Constants.clientService);
                headers.put("Auth-Key", Constants.authKey);
                headers.put("Content-Type", Constants.contentType);
                headers.put("User-ID", Utility.getSharedPreferences(context.getApplicationContext(), "userId"));
                headers.put("Authorization", Utility.getSharedPreferences(context.getApplicationContext(), "accessToken"));
                return headers;
            }
            @Override
            public String getBodyContentType() {
                return "application/json; charset=utf-8";
            }

            @Override
            public byte[] getBody() throws AuthFailureError {
                try {
                    return requestBody == null ? null : requestBody.getBytes("utf-8");
                } catch (UnsupportedEncodingException uee) {
                    VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", requestBody, "utf-8");
                    return null;
                }
            }
        };
        //Creating a Request Queue
        RequestQueue requestQueue = Volley.newRequestQueue(context.getApplicationContext());

        //Adding request to the queue
        requestQueue.add(stringRequest);

    }

Find ElearningModuleAdapter.java and replace with this

CSS:
 private void CheckAddon(String bodyParams, final String type) {

        final String requestBody = bodyParams;
        String url = "";

            StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
                @Override
                public void onResponse(String result) {
                }
            }, new Response.ErrorListener() {
                @Override
                public void onErrorResponse(VolleyError volleyError) {

                    Log.e("Volley Error", volleyError.toString());
                    Toast.makeText(context.getApplicationContext(), R.string.apiErrorMsg, Toast.LENGTH_LONG).show();
                }
            }) {
                @Override
                public Map<String, String> getHeaders() throws AuthFailureError {
                    headers.put("Client-Service", Constants.clientService);
                    headers.put("Auth-Key", Constants.authKey);
                    headers.put("Content-Type", Constants.contentType);
                    headers.put("User-ID", Utility.getSharedPreferences(context.getApplicationContext(), "userId"));
                    headers.put("Authorization", Utility.getSharedPreferences(context.getApplicationContext(), "accessToken"));
                    return headers;
                }
                @Override
                public String getBodyContentType() {
                    return "application/json; charset=utf-8";
                }

                @Override
                public byte[] getBody() throws AuthFailureError {
                    try {
                        return requestBody == null ? null : requestBody.getBytes("utf-8");
                    } catch (UnsupportedEncodingException uee) {
                        VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", requestBody, "utf-8");
                        return null;
                    }
                }
            };
            //Creating a Request Queue
            RequestQueue requestQueue = Volley.newRequestQueue(context.getApplicationContext());

            //Adding request to the queue
            requestQueue.add(stringRequest);

    }
 
iranthavan 's signature
someone can help please why the resource shows an error during rebuild the apk?
 
Reacted by:
Nulling Procedure

Find private void getDatasFromApi(String bodyParams) in NewDashboard.java
and replace the class with this

Java:
    private void getDatasFromApi(String bodyParams) {

        final ProgressDialog pd = new ProgressDialog(this);
        pd.setMessage("Loading");
        pd.setCancelable(false);
        pd.show();

        final String requestBody = bodyParams;

            String url = "";
            StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
                @Override
                public void onResponse(String result) {
                    System.out.println("result=="+result);
                    pd.dismiss();
                }
            }, new Response.ErrorListener() {
                @Override
                public void onErrorResponse(VolleyError volleyError) {
                    pd.dismiss();
                    Log.e("Volley Error", volleyError.toString());
                    Toast.makeText(NewDashboard.this, R.string.apiErrorMsg, Toast.LENGTH_LONG).show();
                }
            }) {
                @Override
                public Map<String, String> getHeaders() throws AuthFailureError {
                    headers.put("Client-Service", Constants.clientService);
                    headers.put("Auth-Key", Constants.authKey);
                    headers.put("Content-Type", Constants.contentType);
                    headers.put("User-ID", Utility.getSharedPreferences(getApplicationContext(), "userId"));
                    headers.put("Authorization", Utility.getSharedPreferences(getApplicationContext(), "accessToken"));
                    return headers;
                }

                @Override
                 public String getBodyContentType() {
                    return "application/json; charset=utf-8";
                   }

                @Override
                public byte[] getBody() throws AuthFailureError {
                    try {
                        return requestBody == null ? null : requestBody.getBytes("utf-8");
                    } catch (UnsupportedEncodingException uee) {
                        VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", requestBody, "utf-8");
                        return null;
                    }
                }
            };
            //Creating a Request Queue
            RequestQueue requestQueue = Volley.newRequestQueue(NewDashboard.this);
            //Adding request to the queue
            requestQueue.add(stringRequest);


    }

Find AcademicModuleAdapter.java and replace with this content

Java:
 private void CheckAddon(String bodyParams, final String type) {

        final String requestBody = bodyParams;
        String url = "";

        StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
            @Override
            public void onResponse(String result) {
            }
        }, new Response.ErrorListener() {
            @Override
            public void onErrorResponse(VolleyError volleyError) {

                Log.e("Volley Error", volleyError.toString());
                Toast.makeText(context.getApplicationContext(), R.string.apiErrorMsg, Toast.LENGTH_LONG).show();
            }
        }) {
            @Override
            public Map<String, String> getHeaders() throws AuthFailureError {
                headers.put("Client-Service", Constants.clientService);
                headers.put("Auth-Key", Constants.authKey);
                headers.put("Content-Type", Constants.contentType);
                headers.put("User-ID", Utility.getSharedPreferences(context.getApplicationContext(), "userId"));
                headers.put("Authorization", Utility.getSharedPreferences(context.getApplicationContext(), "accessToken"));
                return headers;
            }
            @Override
            public String getBodyContentType() {
                return "application/json; charset=utf-8";
            }

            @Override
            public byte[] getBody() throws AuthFailureError {
                try {
                    return requestBody == null ? null : requestBody.getBytes("utf-8");
                } catch (UnsupportedEncodingException uee) {
                    VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", requestBody, "utf-8");
                    return null;
                }
            }
        };
        //Creating a Request Queue
        RequestQueue requestQueue = Volley.newRequestQueue(context.getApplicationContext());

        //Adding request to the queue
        requestQueue.add(stringRequest);

    }

Find ElearningModuleAdapter.java and replace with this

CSS:
 private void CheckAddon(String bodyParams, final String type) {

        final String requestBody = bodyParams;
        String url = "";

            StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
                @Override
                public void onResponse(String result) {
                }
            }, new Response.ErrorListener() {
                @Override
                public void onErrorResponse(VolleyError volleyError) {

                    Log.e("Volley Error", volleyError.toString());
                    Toast.makeText(context.getApplicationContext(), R.string.apiErrorMsg, Toast.LENGTH_LONG).show();
                }
            }) {
                @Override
                public Map<String, String> getHeaders() throws AuthFailureError {
                    headers.put("Client-Service", Constants.clientService);
                    headers.put("Auth-Key", Constants.authKey);
                    headers.put("Content-Type", Constants.contentType);
                    headers.put("User-ID", Utility.getSharedPreferences(context.getApplicationContext(), "userId"));
                    headers.put("Authorization", Utility.getSharedPreferences(context.getApplicationContext(), "accessToken"));
                    return headers;
                }
                @Override
                public String getBodyContentType() {
                    return "application/json; charset=utf-8";
                }

                @Override
                public byte[] getBody() throws AuthFailureError {
                    try {
                        return requestBody == null ? null : requestBody.getBytes("utf-8");
                    } catch (UnsupportedEncodingException uee) {
                        VolleyLog.wtf("Unsupported Encoding while trying to get the bytes of %s using %s", requestBody, "utf-8");
                        return null;
                    }
                }
            };
            //Creating a Request Queue
            RequestQueue requestQueue = Volley.newRequestQueue(context.getApplicationContext());

            //Adding request to the queue
            requestQueue.add(stringRequest);

    }
public class Constants {
public static final Boolean isDemoModeOn = false;
public static final Boolean askUrlFromUser = true;
public static final String clientService = "smartschool";
public static final String authKey = "schoolAdmin@";
public static final String appKey = "schoolAdmin@1234";

sir why during askUrlFromUser is false will effect anautorised?
and how if we change the authKey & AppKey?
 
Reacted by:
raz0r 's signature
Reacted by:
  • Love
Reactions: Yosa and brightworld
I am set-up properly.



But when put link. It's loading.


Post automatically merged:


Did your problem solved ?
POST /api/webservice/getMaintenanceModeStatus HTTP/1.1" 303 5
The application sends a POST request to your API.
The server returns a 303 See Other code (redirect), rather than the expected 200 OK with JSON.
This means that the server is redirecting the request somewhere else.
GET /site/userlogin HTTP/1.1" 200 6940
After the 303 code, Volley automatically follows the redirect and makes a GET request to /site/userlogin.
The server returns HTML code (size 6940 bytes) with code 200.

Your application (Volley) expects to receive JSON in response to a POST request:
json
{"maintenance_mode":"0"}
But the server instead returns a redirect (303) to the login HTML page (/site/userlogin). The application tries to parse HTML as JSON - an error occurs, and the transition to the Login activity does not occur.

Fix the API on the server
The endpoint /api/webservice/getMaintenanceModeStatus should:
Do not redirect (do not return 303/302 codes).
Always return HTTP 200 with correct JSON in the response body

here is the corrected file, it is a temporary solution.. you still need to correct the API request
 

Attachments

  • SplashActivity.zip
    3.2 KB · Views: 0
Last edited:
Reacted by:
  • Like
Reactions: sanu
Top