android - Why we are able to view source code of java from jar or apk file -


we know able view source code of android apk file or .jar file using tools available free. how extract code of apk file

with thing few question comes mind.

  1. is security flaw our app code open after compiling , building source code using tools ?

  2. does every thing java world like can view html css jscript codes website free.should compare that.

  3. just .jar file can view code .exe, .command or other files formats think not human-readable.

  4. how prevent code viewing inside apk or jar file.because don't want pain app code should behave open source.

i surprised when able android project .apk file.

  1. suppose company has spend billion dollar in making app firm. , decided make propitiatory not under open source license. want protect if other companies might copy app code create own.

  2. is legal things can prevent code copying.

  3. suppose company creating hotel booking app , spend thousands dollar on other hotel requires same ,they decompile app , change strings , basics things. in way enjoy every thing free.how prevvent situation.

  4. i want protect various things googleanalyticsid, googlgeadsense,googleadword , other premium third party api string prevented how do that.

  1. there no security flaw. known can take compiled code software platform , reverse engineer source code compile code executes similarly.

  2. you can not reconstitute exact original source code compiled code. example, compiled code not have comments in original source code. not have original names of local , parameter variables well.

  3. yes, said in #1.

  4. you cannot stop reverse engineering software products. can make harder so. example, android toolchain provides ability run compiled code through proguard obfuscation tool, as can strip out unnecessary details , change names of classes , methods can modified without changing functionality of code.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -