Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: what does these code exactly mean?

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default what does these code exactly mean?

    hi there nation of earth ! long story short i want codes of an ir remote which happens to have an old android app for it that app didnt work by my phone since i didnt have internal ir blaster and it didnt work with ir dongle , so i decided to decompile apk and see if i can find the ir codes so i send them with my arduino based ir sender and i managed to find the .java code file which had the information of buttons and i saw a 6 character code in front of each line but when i write the code in my arduino ir sender while it can transmit the code the unit does not respond , and i found out that some of characters inside the supposedly IR codes are not allowed like characters J and some other alphabetical characters so im thinking it is not as easy as i thought ! and know im asking for help from professionals

    since i couldnt attach the code file i would post whole code text for you below so you can guide me remember what i think are ir code are at the end of each line starting with f16XX

    --- Update ---
     
    package com.dzonei.remote.p030a;
     
    import com.dzonei.remote.full.R;
    import java.util.HashMap;
     
    /* renamed from: com.dzonei.remote.a.a */
    public class C0599a {
     
        /* renamed from: A */
        private static final int[] f1607A = {128, 127, 28, 227};
     
        /* renamed from: B */
        private static final int[] f1608B = {128, 127, 29, 226};
     
        /* renamed from: C */
        private static final int[] f1609C = {128, 127, 30, 225};
     
        /* renamed from: D */
        private static final int[] f1610D = {128, 127, 74, 181};
     
        /* renamed from: E */
        private static final int[] f1611E = {128, 127, 64, 191};
     
        /* renamed from: F */
        private static final int[] f1612F = {128, 127, 65, 190};
     
        /* renamed from: G */
        private static final int[] f1613G = {128, 127, 66, 189};
     
        /* renamed from: H */
        private static final int[] f1614H = {128, 127, 8, 247};
     
        /* renamed from: I */
        private static final int[] f1615I = {128, 127, 68, 187};
     
        /* renamed from: J */
        private static final int[] f1616J = {128, 127, 69, 186};
     
        /* renamed from: K */
        private static final int[] f1617K = {128, 127, 70, 185};
     
        /* renamed from: L */
        private static final int[] f1618L = {128, 127, 86, 169};
     
        /* renamed from: M */
        private static final int[] f1619M = {128, 127, 71, 184};
     
        /* renamed from: N */
        private static final int[] f1620N = {128, 127, 5, 250};
     
        /* renamed from: a */
        public static final int[] f1621a = {9000, 4500};
     
        /* renamed from: b */
        public static final int[] f1622b = {560, 560};
     
        /* renamed from: c */
        public static final int[] f1623c = {560, 1680};
     
        /* renamed from: e */
        private static final int[] f1624e = {128, 127, 0, 255};
     
        /* renamed from: f */
        private static final int[] f1625f = {128, 127, 17, 238};
     
        /* renamed from: g */
        private static final int[] f1626g = {128, 127, 89, 166};
     
        /* renamed from: h */
        private static final int[] f1627h = {128, 127, 87, 168};
     
        /* renamed from: i */
        private static final int[] f1628i = {128, 127, 11, 244};
     
        /* renamed from: j */
        private static final int[] f1629j = {128, 127, 77, 178};
     
        /* renamed from: k */
        private static final int[] f1630k = {128, 127, 18, 237};
     
        /* renamed from: l */
        private static final int[] f1631l = {128, 127, 9, 246};
     
        /* renamed from: m */
        private static final int[] f1632m = {128, 127, 2, 253};
     
        /* renamed from: n */
        private static final int[] f1633n = {128, 127, 21, 234};
     
        /* renamed from: o */
        private static final int[] f1634o = {128, 127, 20, 235};
     
        /* renamed from: p */
        private static final int[] f1635p = {128, 127, 22, 233};
     
        /* renamed from: q */
        private static final int[] f1636q = {128, 127, 19, 236};
     
        /* renamed from: r */
        private static final int[] f1637r = {128, 127, 12, 243};
     
        /* renamed from: s */
        private static final int[] f1638s = {128, 127, 92, 163};
     
        /* renamed from: t */
        private static final int[] f1639t = {128, 127, 73, 182};
     
        /* renamed from: u */
        private static final int[] f1640u = {128, 127, 27, 228};
     
        /* renamed from: v */
        private static final int[] f1641v = {128, 127, 72, 183};
     
        /* renamed from: w */
        private static final int[] f1642w = {128, 127, 16, 239};
     
        /* renamed from: x */
        private static final int[] f1643x = {128, 127, 78, 177};
     
        /* renamed from: y */
        private static final int[] f1644y = {128, 127, 31, 224};
     
        /* renamed from: z */
        private static final int[] f1645z = {128, 127, 67, 188};
     
        /* renamed from: d */
        HashMap f1646d = new HashMap();
     
        public C0599a() {
            this.f1646d.put(Integer.valueOf(R.id.buttonPower), f1624e);
            this.f1646d.put(Integer.valueOf(R.id.buttonSetup), f1625f);
            this.f1646d.put(Integer.valueOf(R.id.buttonMoveUp), f1626g);
            this.f1646d.put(Integer.valueOf(R.id.buttonMoveDown), f1627h);
            this.f1646d.put(Integer.valueOf(R.id.buttonDELETE), f1628i);
            this.f1646d.put(Integer.valueOf(R.id.buttonCHECK), f1629j);
            this.f1646d.put(Integer.valueOf(R.id.buttonUP), f1630k);
            this.f1646d.put(Integer.valueOf(R.id.buttonResolution), f1631l);
            this.f1646d.put(Integer.valueOf(R.id.buttonDefault), f1632m);
            this.f1646d.put(Integer.valueOf(R.id.buttonEnter), f1633n);
            this.f1646d.put(Integer.valueOf(R.id.buttonLeft), f1634o);
            this.f1646d.put(Integer.valueOf(R.id.buttonRight), f1635p);
            this.f1646d.put(Integer.valueOf(R.id.buttonDown), f1636q);
            this.f1646d.put(Integer.valueOf(R.id.buttonLIST), f1637r);
            this.f1646d.put(Integer.valueOf(R.id.buttonUPDATE), f1638s);
            this.f1646d.put(Integer.valueOf(R.id.buttonPlayPause), f1639t);
            this.f1646d.put(Integer.valueOf(R.id.buttonSplitter), f1640u);
            this.f1646d.put(Integer.valueOf(R.id.buttonSTOP), f1641v);
            this.f1646d.put(Integer.valueOf(R.id.buttonREW), f1642w);
            this.f1646d.put(Integer.valueOf(R.id.buttonFF), f1643x);
            this.f1646d.put(Integer.valueOf(R.id.buttonPREV), f1644y);
            this.f1646d.put(Integer.valueOf(R.id.buttonNEXT), f1645z);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumOne), f1607A);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumTwo), f1608B);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumThree), f1609C);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumFour), f1611E);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumFive), f1612F);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumSix), f1613G);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumSeven), f1615I);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumEight), f1616J);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumNine), f1617K);
            this.f1646d.put(Integer.valueOf(R.id.buttonNumZero), f1619M);
            this.f1646d.put(Integer.valueOf(R.id.buttonVolUP), f1610D);
            this.f1646d.put(Integer.valueOf(R.id.buttonVolDOWN), f1614H);
            this.f1646d.put(Integer.valueOf(R.id.buttonMUTE), f1618L);
            this.f1646d.put(Integer.valueOf(R.id.buttonCANCEL), f1620N);
        }
     
        /* renamed from: a */
        public int[] mo2386a(int i) {
            return (int[]) this.f1646d.get(Integer.valueOf(i));
        }
     
        /* renamed from: b */
        public int[] mo2387b(int i) {
            int[] iArr = new int[68];
            int[] a = mo2386a(i);
            iArr[0] = f1621a[0];
            int i2 = 2;
            iArr[1] = f1621a[1];
            for (int i3 = 0; i3 < 32; i3++) {
                if (((a[i3 / 8] >> (i3 % 8)) & 1) == 1) {
                    int i4 = i2 + 1;
                    iArr[i2] = f1623c[0];
                    i2 = i4 + 1;
                    iArr[i4] = f1623c[1];
                } else {
                    int i5 = i2 + 1;
                    iArr[i2] = f1622b[0];
                    i2 = i5 + 1;
                    iArr[i5] = f1622b[1];
                }
            }
            int i6 = i2 + 1;
            iArr[i2] = 560;
            int i7 = i6 + 1;
            iArr[i6] = 18000;
            return iArr;
        }
     
        /* renamed from: c */
        public int[] mo2388c(int i) {
            int[] b = mo2387b(i);
            for (int i2 = 0; i2 < b.length; i2++) {
                b[i2] = (b[i2] * 38000) / 1000000;
            }
            return b;
        }
    }
    Last edited by pejman1998; October 14th, 2020 at 11:49 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: what does these code exactly mean?

    some of characters inside the supposedly IR codes are not allowed like characters J and some other alphabetical characters so im thinking it is not as easy as i thought ! and know im asking for help from professionals
    Have you asked this on a forum for arduino?

    Do you have any java coding questions that don't require any knowledge of arduino?

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Oct 2020
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: what does these code exactly mean?

    Quote Originally Posted by Norm View Post
    Have you asked this on a forum for arduino?

    Do you have any java coding questions that don't require any knowledge of arduino?

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    tanx for correcting me no i havent asked arduino forum this is not related to arduino this is related to android coding in java if i mentioned arduino that has no relation to my problem this is about .java file in decompiled apk app .

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: what does these code exactly mean?

    Ok, what problem are you having with the code?
    Can you explain the problems by describing current output and desired output?
    For example when it is executed it prints XYZ but it should print abc.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Oct 2020
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: what does these code exactly mean?

    Quote Originally Posted by Norm View Post
    Ok, what problem are you having with the code?
    Can you explain the problems by describing current output and desired output?
    For example when it is executed it prints XYZ but it should print abc.
    if you have worked with ir remotes you know that the code ir led emmits is unique code for each function this app is a ir remote app which requires internal ir hardware which my phone lacks so all i need is those unique codes inside the app i have searched inside the decompiled app and i have found this piece of code which by my understanding is what i need every code starting with f16xx should be an ir code for example f1624e belongs to power button but it does not work i want to know what "this.f1646d.put(Integer.valueOf(R.id.buttonPower) " means in the line that provides the code for power button is there an algorithm to change the code to what it presents so by knowing the algorithm i can reverse it to its original code and feed it to my ir sender, as far as i know there is a formula that converts ir codes into hex codes which i dont think it is my case but i suspect something similar so what do you think?

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: what does these code exactly mean?

    Sorry, I do not know anything about ir remotes.

    Can you ask questions specific to java programming?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 6
    Last Post: August 5th, 2014, 11:19 AM
  2. Replies: 3
    Last Post: April 27th, 2013, 07:19 AM
  3. Replies: 4
    Last Post: January 24th, 2013, 11:20 AM
  4. Trouble Porting my Java File Reading Code to Android Code
    By Gravity Games in forum Android Development
    Replies: 0
    Last Post: December 6th, 2012, 04:38 PM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM