Install JTV in Raspberry pi
Step 1: (Not needed if server restarted)
Check service is running in background
Goto to profile directory first
cd ~
then hit the following
$ apktool d test.apk
2. Open the full project in vs-code
3. Install the APKLab extension
4. Right-Click on or inside apktool.yml file ➜ APKLab: Rebuild the APK
5. Debug the smali code use the following extension - https://marketplace.visualstudio.com/items?itemName=chaos.asd
APK signature killer - https://github.com/aimardcr/APKKiller
Remove-NetFirewallRule -DisplayName "Block Adobe x86"
Remove-NetFirewallRule -DisplayName "Block Adobe"
New-NetFirewallRule -DisplayName "Block Adobe x86" -Direction Outbound -Program "C:\Program Files (x86)\Adobe" -Action Block
New-NetFirewallRule -DisplayName "Block Adobe" -Direction Outbound -Program "C:\Program Files\Adobe" -Action Block
$ wget https://archive.org/download/install-java/install-java.sh$ wget https://archive.org/download/jdk-8u221-linux-x64.tar/jdk-8u221-linux-x64.tar.gz$ sudo chmod +x install-java.sh$ sudo ./install-java.sh -f jdk-8u221-linux-x64.tar.gz
This script will do the magic for you...! $ wget https://archive.org/download/install-java/uninstall-java.sh $ sudo chmod +x uninstall-java.sh $ sudo ./uninstall-java.sh
$wget https://archive.org/download/jdk-8u221-linux-x64.tar/jre-8u221-linux-x64.tar.gz
npm install pdfmake
2. Copy Font Folder to Your Directoryvar fonts = { | |
Roboto: { | |
normal: 'fonts/Roboto-Regular.ttf', | |
bold: 'fonts/Roboto-Medium.ttf', | |
italics: 'fonts/Roboto-Italic.ttf', | |
bolditalics: 'fonts/Roboto-MediumItalic.ttf' | |
} | |
}; | |
var PdfPrinter = require('pdfmake'); | |
var printer = new PdfPrinter(fonts); | |
var fs = require('fs'); | |
module.exports = { | |
friendlyName: 'Get by month', | |
description: '', | |
inputs: { | |
year : { | |
type : "number", | |
required : false | |
}, | |
bid : { | |
type : "number", | |
required : false | |
}, | |
month : { | |
type : "number", | |
required : false | |
} | |
}, | |
exits: { | |
}, | |
fn: async function (inputs, exits) { | |
this.res.type('application/pdf'); | |
//var REPORT_MONTH_SQL = 'call sp_report_getMonthly( $1, $2, $3, $4 )'; | |
//var rawResult = await sails.sendNativeQuery(REPORT_MONTH_SQL, [ inputs.month||0, inputs.year||0, 0, inputs.bid||0 ]); | |
//var rptlst =rawResult.rows[0]; | |
var rptlst = [{"MonthName":"Jan","JoinDate":"01-01-2019","PaidAmount":"15","BalanceAmount":"10"},{"MonthName":"Feb","JoinDate":"01-02-2018","PaidAmount":"150","BalanceAmount":"30"}] | |
var bodydata = []; | |
bodydata.push(["S.No","Month Name", "Joined Date", "Paid Amount", "Balance Amount" ]) | |
if(rptlst.length>0){ | |
for(var i=0;i<rptlst.length;i++){ | |
bodydata.push([i+1, rptlst[i].MonthName, rptlst[i].JoinDate, rptlst[i].PaidAmount, rptlst[i].BalanceAmount]); | |
} | |
} | |
var tabledata = { | |
table: { | |
headerRows: 1, | |
widths: [ '*', 'auto', 100, '*' , 'auto'], | |
body: bodydata, | |
} | |
}; | |
var docDefinition = { | |
info: { | |
title: 'Report', | |
author: 'Thirumurthy', | |
subject: 'Report', | |
keywords: 'Report', | |
}, | |
pageSize: 'A4', | |
pageMargins: [ 40, 60, 40, 60 ], | |
header: { text:'\n\n\nMonthy Report' , alignment: 'center'}, | |
footer: { | |
columns: [ | |
'Sample Report', | |
{ text: '2018', alignment: 'right' } | |
] | |
}, | |
content: [ | |
tabledata | |
] | |
}; | |
var pdfDoc = printer.createPdfKitDocument(docDefinition); | |
pdfDoc.pipe(this.res ); | |
pdfDoc.end(); | |
} | |
}; |